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
610 LD_SWITCH_SYSTEM_TEMACS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
675 REPLACE_OBSTACK_PRINTF
700 HAVE_DECL_OBSTACK_PRINTF
706 GNULIB_VSPRINTF_POSIX
710 GNULIB_VFPRINTF_POSIX
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
782 REPLACE_PTHREAD_SIGMASK
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
791 HAVE_POSIX_SIGNALBLOCKING
794 GNULIB_SIGNAL_H_SIGPIPE
796 GNULIB_PTHREAD_SIGMASK
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
812 HAVE_DECL_LOCALTIME_R
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
878 HAVE_SIGNED_SIG_ATOMIC_T
881 BITSIZEOF_SIG_ATOMIC_T
884 APPLE_UNIVERSAL_BUILD
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
893 HAVE_UNSIGNED_LONG_LONG_INT
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
904 GNULIB_GL_UNISTD_H_GETOPT
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
923 REPLACE_CANONICALIZE_FILE_NAME
928 HAVE_STRUCT_RANDOM_DATA
950 HAVE_CANONICALIZE_FILE_NAME
980 GNULIB_CANONICALIZE_FILE_NAME
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1025 REPLACE_GETDOMAINNAME
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1160 x_default_search_path
1235 INSTALL_ARCH_INDEP_EXTRA
1237 LD_SWITCH_X_SITE_RPATH
1306 INSTALL_STRIP_PROGRAM
1348 program_transform_name
1359 ac_subst_files
='deps_frag
1362 enable_option_checking
1385 with_toolkit_scroll_bars
1398 with_pkg_config_prog
1402 enable_ns_self_contained
1403 enable_locallisppath
1405 enable_check_lisp_object_type
1408 enable_dependency_tracking
1411 enable_link_time_optimization
1414 ac_precious_vars
='build_alias
1426 # Initialize some variables set by options.
1428 ac_init_version
=false
1429 ac_unrecognized_opts
=
1430 ac_unrecognized_sep
=
1431 # The variables have the same names as the options, with
1432 # dashes changed to underlines.
1433 cache_file
=/dev
/null
1440 program_transform_name
=s
,x
,x
,
1448 # Installation directory options.
1449 # These are left unexpanded so users can "make install exec_prefix=/foo"
1450 # and all the variables that are supposed to be based on exec_prefix
1451 # by default will actually change.
1452 # Use braces instead of parens because sh, perl, etc. also accept them.
1453 # (The list follows the same order as the GNU Coding Standards.)
1454 bindir
='${exec_prefix}/bin'
1455 sbindir
='${exec_prefix}/sbin'
1456 libexecdir
='${exec_prefix}/libexec'
1457 datarootdir
='${prefix}/share'
1458 datadir
='${datarootdir}'
1459 sysconfdir
='${prefix}/etc'
1460 sharedstatedir
='${prefix}/com'
1461 localstatedir
='${prefix}/var'
1462 includedir
='${prefix}/include'
1463 oldincludedir
='/usr/include'
1464 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1465 infodir
='${datarootdir}/info'
1470 libdir
='${exec_prefix}/lib'
1471 localedir
='${datarootdir}/locale'
1472 mandir
='${datarootdir}/man'
1478 # If the previous option needs an argument, assign it.
1479 if test -n "$ac_prev"; then
1480 eval $ac_prev=\
$ac_option
1486 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1490 # Accept the important Cygnus configure options, so we can diagnose typos.
1492 case $ac_dashdash$ac_option in
1496 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1498 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1499 bindir
=$ac_optarg ;;
1501 -build |
--build |
--buil |
--bui |
--bu)
1502 ac_prev
=build_alias
;;
1503 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1504 build_alias
=$ac_optarg ;;
1506 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1507 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1508 ac_prev
=cache_file
;;
1509 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1510 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1511 cache_file
=$ac_optarg ;;
1513 --config-cache |
-C)
1514 cache_file
=config.cache
;;
1516 -datadir |
--datadir |
--datadi |
--datad)
1518 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1519 datadir
=$ac_optarg ;;
1521 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1522 |
--dataroo |
--dataro |
--datar)
1523 ac_prev
=datarootdir
;;
1524 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1525 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1526 datarootdir
=$ac_optarg ;;
1528 -disable-* |
--disable-*)
1529 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1532 as_fn_error
"invalid feature name: $ac_useropt"
1533 ac_useropt_orig
=$ac_useropt
1534 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1537 "enable_
$ac_useropt"
1539 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1540 ac_unrecognized_sep
=', ';;
1542 eval enable_
$ac_useropt=no
;;
1544 -docdir |
--docdir |
--docdi |
--doc |
--do)
1546 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1547 docdir
=$ac_optarg ;;
1549 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1551 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1552 dvidir
=$ac_optarg ;;
1554 -enable-* |
--enable-*)
1555 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1558 as_fn_error
"invalid feature name: $ac_useropt"
1559 ac_useropt_orig
=$ac_useropt
1560 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1563 "enable_
$ac_useropt"
1565 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1566 ac_unrecognized_sep
=', ';;
1568 eval enable_
$ac_useropt=\
$ac_optarg ;;
1570 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1571 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1572 |
--exec |
--exe |
--ex)
1573 ac_prev
=exec_prefix
;;
1574 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1575 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1576 |
--exec=* |
--exe=* |
--ex=*)
1577 exec_prefix
=$ac_optarg ;;
1579 -gas |
--gas |
--ga |
--g)
1580 # Obsolete; use --with-gas.
1583 -help |
--help |
--hel |
--he |
-h)
1584 ac_init_help
=long
;;
1585 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1586 ac_init_help
=recursive
;;
1587 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1588 ac_init_help
=short
;;
1590 -host |
--host |
--hos |
--ho)
1591 ac_prev
=host_alias
;;
1592 -host=* |
--host=* |
--hos=* |
--ho=*)
1593 host_alias
=$ac_optarg ;;
1595 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1597 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1599 htmldir
=$ac_optarg ;;
1601 -includedir |
--includedir |
--includedi |
--included |
--include \
1602 |
--includ |
--inclu |
--incl |
--inc)
1603 ac_prev
=includedir
;;
1604 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1605 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1606 includedir
=$ac_optarg ;;
1608 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1610 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1611 infodir
=$ac_optarg ;;
1613 -libdir |
--libdir |
--libdi |
--libd)
1615 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1616 libdir
=$ac_optarg ;;
1618 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1619 |
--libexe |
--libex |
--libe)
1620 ac_prev
=libexecdir
;;
1621 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1622 |
--libexe=* |
--libex=* |
--libe=*)
1623 libexecdir
=$ac_optarg ;;
1625 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1626 ac_prev
=localedir
;;
1627 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1628 localedir
=$ac_optarg ;;
1630 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1631 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1632 ac_prev
=localstatedir
;;
1633 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1634 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1635 localstatedir
=$ac_optarg ;;
1637 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1639 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1640 mandir
=$ac_optarg ;;
1642 -nfp |
--nfp |
--nf)
1643 # Obsolete; use --without-fp.
1646 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1647 |
--no-cr |
--no-c |
-n)
1650 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1651 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1654 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1655 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1656 |
--oldin |
--oldi |
--old |
--ol |
--o)
1657 ac_prev
=oldincludedir
;;
1658 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1659 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1660 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1661 oldincludedir
=$ac_optarg ;;
1663 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1665 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1666 prefix
=$ac_optarg ;;
1668 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1669 |
--program-pre |
--program-pr |
--program-p)
1670 ac_prev
=program_prefix
;;
1671 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1672 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1673 program_prefix
=$ac_optarg ;;
1675 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1676 |
--program-suf |
--program-su |
--program-s)
1677 ac_prev
=program_suffix
;;
1678 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1679 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1680 program_suffix
=$ac_optarg ;;
1682 -program-transform-name |
--program-transform-name \
1683 |
--program-transform-nam |
--program-transform-na \
1684 |
--program-transform-n |
--program-transform- \
1685 |
--program-transform |
--program-transfor \
1686 |
--program-transfo |
--program-transf \
1687 |
--program-trans |
--program-tran \
1688 |
--progr-tra |
--program-tr |
--program-t)
1689 ac_prev
=program_transform_name
;;
1690 -program-transform-name=* |
--program-transform-name=* \
1691 |
--program-transform-nam=* |
--program-transform-na=* \
1692 |
--program-transform-n=* |
--program-transform-=* \
1693 |
--program-transform=* |
--program-transfor=* \
1694 |
--program-transfo=* |
--program-transf=* \
1695 |
--program-trans=* |
--program-tran=* \
1696 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1697 program_transform_name
=$ac_optarg ;;
1699 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1701 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1702 pdfdir
=$ac_optarg ;;
1704 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1706 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1709 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1710 |
-silent |
--silent |
--silen |
--sile |
--sil)
1713 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1715 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1717 sbindir
=$ac_optarg ;;
1719 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1720 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1721 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1723 ac_prev
=sharedstatedir
;;
1724 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1725 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1726 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1728 sharedstatedir
=$ac_optarg ;;
1730 -site |
--site |
--sit)
1732 -site=* |
--site=* |
--sit=*)
1735 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1737 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1738 srcdir
=$ac_optarg ;;
1740 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1741 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1742 ac_prev
=sysconfdir
;;
1743 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1744 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1745 sysconfdir
=$ac_optarg ;;
1747 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1748 ac_prev
=target_alias
;;
1749 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1750 target_alias
=$ac_optarg ;;
1752 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1755 -version |
--version |
--versio |
--versi |
--vers |
-V)
1756 ac_init_version
=: ;;
1759 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1760 # Reject names that are not valid shell variable names.
1761 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1762 as_fn_error
"invalid package name: $ac_useropt"
1763 ac_useropt_orig
=$ac_useropt
1764 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765 case $ac_user_opts in
1769 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1770 ac_unrecognized_sep
=', ';;
1772 eval with_
$ac_useropt=\
$ac_optarg ;;
1774 -without-* |
--without-*)
1775 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1776 # Reject names that are not valid shell variable names.
1777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1778 as_fn_error
"invalid package name: $ac_useropt"
1779 ac_useropt_orig
=$ac_useropt
1780 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1781 case $ac_user_opts in
1785 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1786 ac_unrecognized_sep
=', ';;
1788 eval with_
$ac_useropt=no
;;
1791 # Obsolete; use --with-x.
1794 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1795 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1796 ac_prev
=x_includes
;;
1797 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1798 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1799 x_includes
=$ac_optarg ;;
1801 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1802 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1803 ac_prev
=x_libraries
;;
1804 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1805 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1806 x_libraries
=$ac_optarg ;;
1808 -*) as_fn_error
"unrecognized option: \`$ac_option'
1809 Try \`$0 --help' for more information."
1813 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1814 # Reject names that are not valid shell variable names.
1815 case $ac_envvar in #(
1816 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1817 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1819 eval $ac_envvar=\
$ac_optarg
1820 export $ac_envvar ;;
1823 # FIXME: should be removed in autoconf 3.0.
1824 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1825 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1826 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1827 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1833 if test -n "$ac_prev"; then
1834 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1835 as_fn_error
"missing argument to $ac_option"
1838 if test -n "$ac_unrecognized_opts"; then
1839 case $enable_option_checking in
1841 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1842 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1846 # Check all directory arguments for consistency.
1847 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1848 datadir sysconfdir sharedstatedir localstatedir includedir \
1849 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1850 libdir localedir mandir
1852 eval ac_val
=\$
$ac_var
1853 # Remove trailing slashes.
1856 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1857 eval $ac_var=\
$ac_val;;
1859 # Be sure to have absolute directory names.
1861 [\\/$
]* | ?
:[\\/]* ) continue;;
1862 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1864 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1867 # There might be people who depend on the old broken behavior: `$host'
1868 # used to hold the argument of --host etc.
1869 # FIXME: To remove some day.
1872 target
=$target_alias
1874 # FIXME: To remove some day.
1875 if test "x$host_alias" != x
; then
1876 if test "x$build_alias" = x
; then
1877 cross_compiling
=maybe
1878 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1879 If a cross compiler is detected then cross compile mode will be used." >&2
1880 elif test "x$build_alias" != "x$host_alias"; then
1886 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1888 test "$silent" = yes && exec 6>/dev
/null
1891 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1892 ac_ls_di
=`ls -di .` &&
1893 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1894 as_fn_error
"working directory cannot be determined"
1895 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1896 as_fn_error
"pwd does not report name of working directory"
1899 # Find the source files, if location was not specified.
1900 if test -z "$srcdir"; then
1901 ac_srcdir_defaulted
=yes
1902 # Try the directory containing this script, then the parent directory.
1903 ac_confdir
=`$as_dirname -- "$as_myself" ||
1904 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1905 X"$as_myself" : 'X\(//\)[^/]' \| \
1906 X"$as_myself" : 'X\(//\)$' \| \
1907 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1908 $as_echo X"$as_myself" |
1909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1927 if test ! -r "$srcdir/$ac_unique_file"; then
1931 ac_srcdir_defaulted
=no
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1935 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1937 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1939 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1941 # When building in place, set srcdir=.
1942 if test "$ac_abs_confdir" = "$ac_pwd"; then
1945 # Remove unnecessary trailing slashes from srcdir.
1946 # Double slashes in file names in object file debugging info
1947 # mess up M-x gdb in Emacs.
1949 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1951 for ac_var
in $ac_precious_vars; do
1952 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1953 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1954 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1955 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1959 # Report the --help message.
1961 if test "$ac_init_help" = "long"; then
1962 # Omit some internal or obsolete options to make the list less imposing.
1963 # This message is too long to be a string in the A/UX 3.1 sh.
1965 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1967 Usage: $0 [OPTION]... [VAR=VALUE]...
1969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1970 VAR=VALUE. See below for descriptions of some of the useful variables.
1972 Defaults for the options are specified in brackets.
1975 -h, --help display this help and exit
1976 --help=short display options specific to this package
1977 --help=recursive display the short help of all the included packages
1978 -V, --version display version information and exit
1979 -q, --quiet, --silent do not print \`checking...' messages
1980 --cache-file=FILE cache test results in FILE [disabled]
1981 -C, --config-cache alias for \`--cache-file=config.cache'
1982 -n, --no-create do not create output files
1983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1985 Installation directories:
1986 --prefix=PREFIX install architecture-independent files in PREFIX
1987 [$ac_default_prefix]
1988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1991 By default, \`make install' will install all the files in
1992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1994 for instance \`--prefix=\$HOME'.
1996 For better control, use the options below.
1998 Fine tuning of the installation directories:
1999 --bindir=DIR user executables [EPREFIX/bin]
2000 --sbindir=DIR system admin executables [EPREFIX/sbin]
2001 --libexecdir=DIR program executables [EPREFIX/libexec]
2002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2005 --libdir=DIR object code libraries [EPREFIX/lib]
2006 --includedir=DIR C header files [PREFIX/include]
2007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2008 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2009 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2010 --infodir=DIR info documentation [DATAROOTDIR/info]
2011 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2012 --mandir=DIR man documentation [DATAROOTDIR/man]
2013 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2014 --htmldir=DIR html documentation [DOCDIR]
2015 --dvidir=DIR dvi documentation [DOCDIR]
2016 --pdfdir=DIR pdf documentation [DOCDIR]
2017 --psdir=DIR ps documentation [DOCDIR]
2023 --program-prefix=PREFIX prepend PREFIX to installed program names
2024 --program-suffix=SUFFIX append SUFFIX to installed program names
2025 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2028 --x-includes=DIR X include files are
in DIR
2029 --x-libraries=DIR X library files are
in DIR
2032 --build=BUILD configure
for building on BUILD
[guessed
]
2033 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2037 if test -n "$ac_init_help"; then
2038 case $ac_init_help in
2039 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2044 --disable-option-checking ignore unrecognized
--enable/--with options
2045 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2046 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2047 --disable-ns-self-contained
2048 disable self contained build under NeXTstep
2049 --enable-locallisppath=PATH
2050 directories Emacs should search
for lisp files
2051 specific to this site
2052 --enable-checking[=LIST
]
2053 enable expensive run-time checks. With LIST
, enable
2054 only specific categories of checks. Categories are
:
2055 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2056 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2057 --enable-check-lisp-object-type
2058 enable compile
time checks
for the Lisp_Object data
2059 type. This is useful
for development
for catching
2060 certain types of bugs.
2061 --enable-profiling build emacs with profiling support. This might not
2062 work on all platforms
2063 --enable-autodepend automatically generate dependencies to .h-files.
2064 Requires GNU Make and Gcc. Enabled
if GNU Make and
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --disable-largefile omit support
for large files
2069 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2070 developers
, and may generate false alarms when used
2071 with older or non-GNU development tools.
2072 --enable-link-time-optimization
2073 build emacs with link-time optimization. This is
2074 supported only
for GCC since
4.5.0.
2077 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2078 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2079 --without-all omit almost all features and build small executable
2080 with minimal dependencies
2081 --without-pop don
't support POP mail retrieval with movemail
2082 --with-kerberos support Kerberos-authenticated POP
2083 --with-kerberos5 support Kerberos version 5 authenticated POP
2084 --with-hesiod support Hesiod to get the POP server host
2085 --with-mmdf support MMDF mailboxes
2086 --with-mail-unlink unlink, rather than empty, mail spool after reading
2087 --with-mailhost=HOSTNAME
2088 string giving default POP mail host
2089 --without-sound don't compile with sound support
2090 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2091 gtk3
, lucid or athena
, motif
, no
)
2092 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2093 --without-xpm don
't compile with XPM image support
2094 --without-jpeg don't compile with JPEG image support
2095 --without-tiff don
't compile with TIFF image support
2096 --without-gif don't compile with GIF image support
2097 --without-png don
't compile with PNG image support
2098 --without-rsvg don't compile with SVG image support
2099 --without-xml2 don
't compile with XML parsing support
2100 --without-imagemagick don't compile with ImageMagick image support
2101 --without-xft don
't use XFT for anti aliased fonts
2102 --without-libotf don't use libotf
for OpenType font support
2103 --without-m17n-flt don
't use m17n-flt for text shaping
2104 --without-toolkit-scroll-bars
2105 don't use Motif or Xaw3d scroll bars
2106 --without-xaw3d don
't use Xaw3d
2107 --without-xim don't use X11 XIM
2108 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2109 --with-w32 use native MS Windows GUI
2110 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2112 --without-dbus don't compile with D-Bus support
2113 --without-gconf don
't compile with GConf support
2114 --without-gsettings don't compile with GSettings support
2115 --without-selinux don
't compile with SELinux support
2116 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2117 --without-makeinfo don
't require makeinfo for building manuals
2118 --without-compress-info don't
compress the installed Info pages
2119 --with-pkg-config-prog=PATH
2120 path to pkg-config
for finding GTK and librsvg
2121 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2122 /usr
/lib
, or
/usr
/lib64 on some platforms.
2123 --with-gameuser=USER user
for shared game score files
2124 --with-gnustep-conf=PATH
2125 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2126 or
/etc
/GNUstep
/GNUstep.conf
2127 --with-x use the X Window System
2129 Some influential environment variables
:
2130 CC C compiler
command
2131 CFLAGS C compiler flags
2132 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2133 nonstandard directory
<lib dir
>
2134 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2135 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2136 you have headers
in a nonstandard directory
<include dir
>
2138 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2140 Use these variables to override the choices made by
`configure' or to help
2141 it to find libraries and programs with nonstandard names/locations.
2143 Report bugs to the package provider.
2148 if test "$ac_init_help" = "recursive"; then
2149 # If there are subdirs, report their specific --help.
2150 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2151 test -d "$ac_dir" ||
2152 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2159 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2160 # A ".." for each directory in $ac_dir_suffix.
2161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2162 case $ac_top_builddir_sub in
2163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2167 ac_abs_top_builddir=$ac_pwd
2168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2169 # for backward compatibility:
2170 ac_top_builddir=$ac_top_build_prefix
2173 .) # We are building in place.
2175 ac_top_srcdir=$ac_top_builddir_sub
2176 ac_abs_top_srcdir=$ac_pwd ;;
2177 [\\/]* | ?:[\\/]* ) # Absolute name.
2178 ac_srcdir=$srcdir$ac_dir_suffix;
2179 ac_top_srcdir=$srcdir
2180 ac_abs_top_srcdir=$srcdir ;;
2182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2183 ac_top_srcdir=$ac_top_build_prefix$srcdir
2184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2188 cd "$ac_dir" || { ac_status=$?; continue; }
2189 # Check for guested configure.
2190 if test -f "$ac_srcdir/configure.gnu"; then
2192 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2193 elif test -f "$ac_srcdir/configure"; then
2195 $SHELL "$ac_srcdir/configure" --help=recursive
2197 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2199 cd "$ac_pwd" || { ac_status=$?; break; }
2203 test -n "$ac_init_help" && exit $ac_status
2204 if $ac_init_version; then
2206 emacs configure 24.3.50
2207 generated by GNU Autoconf 2.65
2209 Copyright (C) 2009 Free Software Foundation, Inc.
2210 This configure script is free software; the Free Software Foundation
2211 gives unlimited permission to copy, distribute and modify it.
2216 ## ------------------------ ##
2217 ## Autoconf initialization. ##
2218 ## ------------------------ ##
2220 # ac_fn_c_try_compile LINENO
2221 # --------------------------
2222 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_compile ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext
2227 if { { ac_try="$ac_compile"
2229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2230 *) ac_try_echo
=$ac_try;;
2232 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_compile") 2>conftest.err
2236 if test -s conftest.err
; then
2237 grep -v '^ *+' conftest.err
>conftest.er1
2238 cat conftest.er1
>&5
2239 mv -f conftest.er1 conftest.err
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest.
$ac_objext; then :
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.
$ac_ext >&5
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2254 as_fn_set_status
$ac_retval
2256 } # ac_fn_c_try_compile
2258 # ac_fn_c_try_cpp LINENO
2259 # ----------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2263 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2264 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } >/dev/null && {
2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281 test ! -s conftest.err
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 as_fn_set_status $ac_retval
2295 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # -------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2300 ac_fn_c_check_header_mongrel ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 $as_echo_n "(cached) " >&6
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2324 ac_header_compiler=no
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2337 if ac_fn_c_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2340 ac_header_preproc=no
2342 rm -f conftest.err conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2372 eval "$3=\$ac_header_compiler"
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_header_mongrel
2382 # ac_fn_c_try_run LINENO
2383 # ----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2385 # that executables *can* be run.
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 if { { ac_try="$ac_link"
2391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2392 *) ac_try_echo
=$ac_try;;
2394 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>&5
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2400 { { case "(($ac_try" in
2401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2405 $as_echo "$ac_try_echo"; } >&5
2406 (eval "$ac_try") 2>&5
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; }; }; then :
2412 $as_echo "$as_me: program exited with status $ac_status" >&5
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_retval=$ac_status
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 as_fn_set_status $ac_retval
2424 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2425 # -------------------------------------------------------
2426 # Tests whether HEADER exists and can be compiled using the include files in
2427 # INCLUDES, setting the cache variable VAR accordingly.
2428 ac_fn_c_check_header_compile ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2441 if ac_fn_c_try_compile "$LINENO"; then :
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 } # ac_fn_c_check_header_compile
2455 # ac_fn_c_try_link LINENO
2456 # -----------------------
2457 # Try to link conftest.$ac_ext, and return whether this succeeded.
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 rm -f conftest.$ac_objext conftest$ac_exeext
2462 if { { ac_try="$ac_link"
2464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2465 *) ac_try_echo
=$ac_try;;
2467 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2468 $as_echo "$ac_try_echo"; } >&5
2469 (eval "$ac_link") 2>conftest.err
2471 if test -s conftest.err
; then
2472 grep -v '^ *+' conftest.err
>conftest.er1
2473 cat conftest.er1
>&5
2474 mv -f conftest.er1 conftest.err
2476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2477 test $ac_status = 0; } && {
2478 test -z "$ac_c_werror_flag" ||
2479 test ! -s conftest.err
2480 } && test -s conftest
$ac_exeext && {
2481 test "$cross_compiling" = yes ||
2482 $as_test_x conftest
$ac_exeext
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.
$ac_ext >&5
2491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2493 # interfere with the next link command; also delete a directory that is
2494 # left behind by Apple's compiler. We do this before executing the actions.
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2497 as_fn_set_status
$ac_retval
2499 } # ac_fn_c_try_link
2501 # ac_fn_c_check_decl LINENO SYMBOL VAR
2502 # ------------------------------------
2503 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2504 ac_fn_c_check_decl
()
2506 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2508 $as_echo_n "checking whether $2 is declared... " >&6; }
2509 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 $as_echo_n "(cached) " >&6
2512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2526 if ac_fn_c_try_compile
"$LINENO"; then :
2531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2538 } # ac_fn_c_check_decl
2540 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2541 # ----------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_c_check_header_preproc
()
2545 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2555 if ac_fn_c_try_cpp
"$LINENO"; then :
2560 rm -f conftest.err conftest.
$ac_ext
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2567 } # ac_fn_c_check_header_preproc
2569 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2570 # ----------------------------------------------------
2571 # Tries to find if the field MEMBER exists in type AGGR, after including
2572 # INCLUDES, setting cache variable VAR accordingly.
2573 ac_fn_c_check_member
()
2575 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2577 $as_echo_n "checking for $2.$3... " >&6; }
2578 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2594 if ac_fn_c_try_compile
"$LINENO"; then :
2597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2604 if (sizeof ac_aggr.$3)
2610 if ac_fn_c_try_compile
"$LINENO"; then :
2615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2624 } # ac_fn_c_check_member
2626 # ac_fn_c_check_func LINENO FUNC VAR
2627 # ----------------------------------
2628 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2629 ac_fn_c_check_func
()
2631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2641 #define $2 innocuous_$2
2643 /* System header to define __stub macros and hopefully few prototypes,
2644 which can conflict with char $2 (); below.
2645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646 <limits.h> exists even on freestanding compilers. */
2649 # include <limits.h>
2651 # include <assert.h>
2656 /* Override any GCC internal prototype to avoid an error.
2657 Use char because int might match the return type of a GCC
2658 builtin and then its argument prototype would still apply. */
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined __stub_$2 || defined __stub___$2
2678 if ac_fn_c_try_link
"$LINENO"; then :
2683 rm -f core conftest.err conftest.
$ac_objext \
2684 conftest
$ac_exeext conftest.
$ac_ext
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2691 } # ac_fn_c_check_func
2693 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2694 # -------------------------------------------
2695 # Tests whether TYPE exists after having included INCLUDES, setting cache
2696 # variable VAR accordingly.
2697 ac_fn_c_check_type
()
2699 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2703 $as_echo_n "(cached) " >&6
2706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2718 if ac_fn_c_try_compile
"$LINENO"; then :
2719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2731 if ac_fn_c_try_compile
"$LINENO"; then :
2736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2745 } # ac_fn_c_check_type
2747 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2748 # --------------------------------------------
2749 # Tries to find the compile-time value of EXPR in a program that includes
2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2752 ac_fn_c_compute_int
()
2754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2755 if test "$cross_compiling" = yes; then
2756 # Depending upon the size, compute the lo and hi bounds.
2757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2763 static int test_array [1 - 2 * !(($2) >= 0)];
2770 if ac_fn_c_try_compile
"$LINENO"; then :
2773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786 if ac_fn_c_try_compile
"$LINENO"; then :
2787 ac_hi
=$ac_mid; break
2789 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2790 if test $ac_lo -le $ac_mid; then
2794 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2805 static int test_array [1 - 2 * !(($2) < 0)];
2812 if ac_fn_c_try_compile
"$LINENO"; then :
2815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2821 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2828 if ac_fn_c_try_compile
"$LINENO"; then :
2829 ac_lo
=$ac_mid; break
2831 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2832 if test $ac_mid -le $ac_hi; then
2836 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2846 # Binary search between lo and hi bounds.
2847 while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2855 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2862 if ac_fn_c_try_compile
"$LINENO"; then :
2865 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2870 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2877 static long int longval () { return $2; }
2878 static unsigned long int ulongval () { return $2; }
2885 FILE *f = fopen ("conftest.val", "w");
2890 long int i = longval ();
2893 fprintf (f, "%ld", i);
2897 unsigned long int i = ulongval ();
2900 fprintf (f, "%lu", i);
2902 /* Do not output a trailing newline, as this causes \r\n confusion
2903 on some platforms. */
2904 return ferror (f) || fclose (f) != 0;
2910 if ac_fn_c_try_run
"$LINENO"; then :
2911 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2915 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2916 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2921 as_fn_set_status
$ac_retval
2923 } # ac_fn_c_compute_int
2924 cat >config.log
<<_ACEOF
2925 This file contains any messages produced by compilers while
2926 running configure, to aid debugging if configure makes a mistake.
2928 It was created by emacs $as_me 24.3.50, which was
2929 generated by GNU Autoconf 2.65. Invocation command line was
2941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 $as_echo "PATH: $as_dir"
2981 # Keep a trace of the command line.
2982 # Strip out --no-create and --no-recursion so they do not pile up.
2983 # Strip out --silent because we don't want to record it for future runs.
2984 # Also quote any args containing shell meta-characters.
2985 # Make two passes to allow for proper duplicate-argument suppression.
2989 ac_must_keep_next
=false
2995 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2996 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2997 |
-silent |
--silent |
--silen |
--sile |
--sil)
3000 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3003 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3005 as_fn_append ac_configure_args1
" '$ac_arg'"
3006 if test $ac_must_keep_next = true
; then
3007 ac_must_keep_next
=false
# Got value, back to normal.
3010 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3011 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3012 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3013 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3014 case "$ac_configure_args0 " in
3015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3018 -* ) ac_must_keep_next
=true
;;
3021 as_fn_append ac_configure_args
" '$ac_arg'"
3026 { ac_configure_args0
=; unset ac_configure_args0
;}
3027 { ac_configure_args1
=; unset ac_configure_args1
;}
3029 # When interrupted or exit'd, cleanup temporary files, and complete
3030 # config.log. We remove comments because anyway the quotes in there
3031 # would cause problems or look ugly.
3032 # WARNING: Use '\'' to represent an apostrophe within the trap.
3033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3034 trap 'exit_status=$?
3035 # Save into config.log some information that might help in debugging.
3040 ## ---------------- ##
3041 ## Cache variables. ##
3042 ## ---------------- ##
3045 # The following way of writing the cache mishandles newlines in values,
3047 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3048 eval ac_val=\$$ac_var
3052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3056 _ | IFS | as_nl) ;; #(
3057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3058 *) { eval $ac_var=; unset $ac_var;} ;;
3063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3064 *${as_nl}ac_space=\ *)
3066 "s/'\''/'\''\\\\'\'''\''/g;
3067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3078 ## ----------------- ##
3079 ## Output variables. ##
3080 ## ----------------- ##
3083 for ac_var in $ac_subst_vars
3085 eval ac_val=\$$ac_var
3087 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3089 $as_echo "$ac_var='\''$ac_val'\''"
3093 if test -n "$ac_subst_files"; then
3095 ## ------------------- ##
3096 ## File substitutions. ##
3097 ## ------------------- ##
3100 for ac_var
in $ac_subst_files
3102 eval ac_val
=\$
$ac_var
3104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3106 $as_echo "$ac_var='\''$ac_val'\''"
3111 if test -s confdefs.h; then
3121 test "$ac_signal" != 0 &&
3122 $as_echo "$as_me: caught signal $ac_signal"
3123 $as_echo "$as_me: exit $exit_status"
3125 rm -f core *.core core.conftest.* &&
3126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3129 for ac_signal
in 1 2 13 15; do
3130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3135 rm -f -r conftest
* confdefs.h
3137 $as_echo "/* confdefs.h */" > confdefs.h
3139 # Predefined preprocessor variables.
3141 cat >>confdefs.h
<<_ACEOF
3142 #define PACKAGE_NAME "$PACKAGE_NAME"
3145 cat >>confdefs.h
<<_ACEOF
3146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3149 cat >>confdefs.h
<<_ACEOF
3150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3153 cat >>confdefs.h
<<_ACEOF
3154 #define PACKAGE_STRING "$PACKAGE_STRING"
3157 cat >>confdefs.h
<<_ACEOF
3158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3161 cat >>confdefs.h
<<_ACEOF
3162 #define PACKAGE_URL "$PACKAGE_URL"
3166 # Let the site file select an alternate cache file if it wants to.
3167 # Prefer an explicitly selected file to automatically selected ones.
3170 if test -n "$CONFIG_SITE"; then
3171 ac_site_file1
=$CONFIG_SITE
3172 elif test "x$prefix" != xNONE
; then
3173 ac_site_file1
=$prefix/share
/config.site
3174 ac_site_file2
=$prefix/etc
/config.site
3176 ac_site_file1
=$ac_default_prefix/share
/config.site
3177 ac_site_file2
=$ac_default_prefix/etc
/config.site
3179 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3181 test "x$ac_site_file" = xNONE
&& continue
3182 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3185 sed 's/^/| /' "$ac_site_file" >&5
3190 if test -r "$cache_file"; then
3191 # Some versions of bash will fail to source /dev/null (special files
3192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3193 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3195 $as_echo "$as_me: loading cache $cache_file" >&6;}
3197 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3198 *) .
"./$cache_file";;
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3203 $as_echo "$as_me: creating cache $cache_file" >&6;}
3207 as_fn_append ac_header_list
" linux/version.h"
3208 as_fn_append ac_header_list
" sys/systeminfo.h"
3209 as_fn_append ac_header_list
" fcntl.h"
3210 as_fn_append ac_header_list
" coff.h"
3211 as_fn_append ac_header_list
" pty.h"
3212 as_fn_append ac_header_list
" sys/vlimit.h"
3213 as_fn_append ac_header_list
" sys/resource.h"
3214 as_fn_append ac_header_list
" sys/utsname.h"
3215 as_fn_append ac_header_list
" pwd.h"
3216 as_fn_append ac_header_list
" utmp.h"
3217 as_fn_append ac_header_list
" dirent.h"
3218 as_fn_append ac_header_list
" util.h"
3219 as_fn_append ac_header_list
" sys/socket.h"
3220 as_fn_append ac_header_list
" stdlib.h"
3221 as_fn_append ac_header_list
" unistd.h"
3222 as_fn_append ac_header_list
" sys/param.h"
3223 as_fn_append ac_header_list
" pthread.h"
3224 as_fn_append ac_header_list
" malloc/malloc.h"
3225 as_fn_append ac_header_list
" maillock.h"
3226 as_fn_append ac_header_list
" sys/un.h"
3227 as_fn_append ac_func_list
" tzset"
3228 as_fn_append ac_func_list
" readlinkat"
3229 as_fn_append ac_header_list
" execinfo.h"
3230 as_fn_append ac_func_list
" faccessat"
3231 as_fn_append ac_header_list
" stdio_ext.h"
3232 as_fn_append ac_func_list
" __fpending"
3233 gl_getopt_required
=GNU
3234 as_fn_append ac_header_list
" getopt.h"
3235 as_fn_append ac_func_list
" gettimeofday"
3236 as_fn_append ac_func_list
" nanotime"
3237 as_fn_append ac_header_list
" sys/time.h"
3238 as_fn_append ac_header_list
" wchar.h"
3239 as_fn_append ac_header_list
" stdint.h"
3240 as_fn_append ac_header_list
" inttypes.h"
3241 as_fn_append ac_func_list
" lstat"
3242 as_fn_append ac_func_list
" alarm"
3243 as_fn_append ac_header_list
" sys/select.h"
3244 as_fn_append ac_func_list
" pselect"
3245 as_fn_append ac_func_list
" pthread_sigmask"
3246 as_fn_append ac_func_list
" readlink"
3247 as_fn_append ac_func_list
" strtoimax"
3248 as_fn_append ac_func_list
" strtoumax"
3249 as_fn_append ac_func_list
" symlink"
3250 as_fn_append ac_header_list
" sys/stat.h"
3251 as_fn_append ac_func_list
" localtime_r"
3252 as_fn_append ac_header_list
" utime.h"
3253 as_fn_append ac_func_list
" futimes"
3254 as_fn_append ac_func_list
" futimesat"
3255 as_fn_append ac_func_list
" futimens"
3256 as_fn_append ac_func_list
" utimensat"
3257 as_fn_append ac_func_list
" lutimes"
3258 # Check that the precious variables saved in the cache have kept the same
3260 ac_cache_corrupted
=false
3261 for ac_var
in $ac_precious_vars; do
3262 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3263 eval ac_new_set
=\
$ac_env_${ac_var}_set
3264 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3265 eval ac_new_val
=\
$ac_env_${ac_var}_value
3266 case $ac_old_set,$ac_new_set in
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3270 ac_cache_corrupted
=: ;;
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3274 ac_cache_corrupted
=: ;;
3277 if test "x$ac_old_val" != "x$ac_new_val"; then
3278 # differences in whitespace do not lead to failure.
3279 ac_old_val_w
=`echo x $ac_old_val`
3280 ac_new_val_w
=`echo x $ac_new_val`
3281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3284 ac_cache_corrupted
=:
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3288 eval $ac_var=\
$ac_old_val
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3296 # Pass precious variables to config.status.
3297 if test "$ac_new_set" = set; then
3299 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3300 *) ac_arg
=$ac_var=$ac_new_val ;;
3302 case " $ac_configure_args " in
3303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3304 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3308 if $ac_cache_corrupted; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3313 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3315 ## -------------------- ##
3316 ## Main body of script. ##
3317 ## -------------------- ##
3320 ac_cpp
='$CPP $CPPFLAGS'
3321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3326 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3330 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3331 for ac_t
in install-sh
install.sh shtool
; do
3332 if test -f "$ac_dir/$ac_t"; then
3334 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3339 if test -z "$ac_aux_dir"; then
3340 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3343 # These three variables are undocumented and unsupported,
3344 # and are intended to be withdrawn in a future Autoconf release.
3345 # They can cause serious problems if a builder's source tree is in a directory
3346 # whose full name contains unusual characters.
3347 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3348 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3349 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3352 am__api_version
='1.11'
3354 # Find a good install program. We prefer a C program (faster),
3355 # so one script is as good as another. But avoid the broken or
3356 # incompatible versions:
3357 # SysV /etc/install, /usr/sbin/install
3358 # SunOS /usr/etc/install
3359 # IRIX /sbin/install
3361 # AmigaOS /C/install, which installs bootblocks on floppy discs
3362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365 # OS/2's system install, which has a completely different semantic
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 # Reject install programs that cannot install multiple files.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3369 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3370 if test -z "$INSTALL"; then
3371 if test "${ac_cv_path_install+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 # Account for people who put trailing slashes in PATH elements.
3380 case $as_dir/ in #((
3381 .
/ | .
// |
/[cC
]/* | \
3382 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3383 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3386 # OSF1 and SCO ODT 3.0 have their own names for install.
3387 # Don't use installbsd from OSF since it installs stuff as root
3389 for ac_prog
in ginstall scoinst
install; do
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3392 if test $ac_prog = install &&
3393 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3394 # AIX install. It has an incompatible calling convention.
3396 elif test $ac_prog = install &&
3397 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3398 # program-specific install script used by HP pwplus--don't use.
3401 rm -rf conftest.one conftest.two conftest.dir
3402 echo one
> conftest.one
3403 echo two
> conftest.two
3405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3406 test -s conftest.one
&& test -s conftest.two
&&
3407 test -s conftest.dir
/conftest.one
&&
3408 test -s conftest.dir
/conftest.two
3410 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3423 rm -rf conftest.one conftest.two conftest.dir
3426 if test "${ac_cv_path_install+set}" = set; then
3427 INSTALL
=$ac_cv_path_install
3429 # As a last resort, use the slow shell script. Don't cache a
3430 # value for INSTALL within a source directory, because that will
3431 # break other packages using the cache if that directory is
3432 # removed, or if the value is a relative name.
3433 INSTALL
=$ac_install_sh
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3437 $as_echo "$INSTALL" >&6; }
3439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3440 # It thinks the first close brace ends the variable substitution.
3441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3445 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3448 $as_echo_n "checking whether build environment is sane... " >&6; }
3451 echo timestamp
> conftest.
file
3452 # Reject unsafe characters in $srcdir or the absolute working directory
3453 # name. Accept space and tab only in the latter.
3457 *[\\\"\
#\$\&\'\`$am_lf]*)
3458 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3461 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3462 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3465 # Do `set' in a subshell so we don't clobber the current shell's
3466 # arguments. Must try -L first in case configure is actually a
3467 # symlink; some systems play weird games with the mod time of symlinks
3468 # (eg FreeBSD returns the mod time of the symlink's containing
3471 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3472 if test "$*" = "X"; then
3474 set X
`ls -t "$srcdir/configure" conftest.file`
3477 if test "$*" != "X $srcdir/configure conftest.file" \
3478 && test "$*" != "X conftest.file $srcdir/configure"; then
3480 # If neither matched, then we have a broken ls. This can happen
3481 # if, for instance, CONFIG_SHELL is bash and it inherits a
3482 # broken ls alias from the environment. This has actually
3483 # happened. Such a system could not be considered "sane".
3484 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3485 alias in your environment" "$LINENO" 5
3488 test "$2" = conftest.
file
3494 as_fn_error
"newly created file is older than distributed files!
3495 Check your system clock" "$LINENO" 5
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 test "$program_prefix" != NONE
&&
3500 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3501 # Use a double $ so make ignores it.
3502 test "$program_suffix" != NONE
&&
3503 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3504 # Double any \ or $.
3505 # By default was `s,x,x', remove it if useless.
3506 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3507 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3509 # expand $ac_aux_dir to an absolute path
3510 am_aux_dir
=`cd $ac_aux_dir && pwd`
3512 if test x
"${MISSING+set}" != xset
; then
3515 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3517 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3520 # Use eval to expand $SHELL
3521 if eval "$MISSING --run true"; then
3522 am_missing_run
="$MISSING --run "
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3526 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3529 if test x
"${install_sh}" != xset
; then
3532 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3534 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3538 # Installed binaries are usually stripped using `strip' when the user
3539 # run `make install-strip'. However `strip' might not be the right
3540 # tool to use in cross-compilation environments, therefore Automake
3541 # will honor the `STRIP' environment variable to overrule this program.
3542 if test "$cross_compiling" != no
; then
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3545 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_STRIP+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3551 if test -n "$STRIP"; then
3552 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 STRIP
=$ac_cv_prog_STRIP
3572 if test -n "$STRIP"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3574 $as_echo "$STRIP" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3582 if test -z "$ac_cv_prog_STRIP"; then
3584 # Extract the first word of "strip", so it can be a program name with args.
3585 set dummy strip
; ac_word
=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$ac_ct_STRIP"; then
3592 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_exec_ext
in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_STRIP
="strip"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3612 if test -n "$ac_ct_STRIP"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3614 $as_echo "$ac_ct_STRIP" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3620 if test "x$ac_ct_STRIP" = x
; then
3623 case $cross_compiling:$ac_tool_warned in
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned
=yes ;;
3632 STRIP
="$ac_cv_prog_STRIP"
3636 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3640 if test -z "$MKDIR_P"; then
3641 if test "${ac_cv_path_mkdir+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3645 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3648 test -z "$as_dir" && as_dir
=.
3649 for ac_prog
in mkdir gmkdir
; do
3650 for ac_exec_ext
in '' $ac_executable_extensions; do
3651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3653 'mkdir (GNU coreutils) '* | \
3654 'mkdir (coreutils) '* | \
3655 'mkdir (fileutils) '4.1*)
3656 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3666 test -d .
/--version && rmdir .
/--version
3667 if test "${ac_cv_path_mkdir+set}" = set; then
3668 MKDIR_P
="$ac_cv_path_mkdir -p"
3670 # As a last resort, use the slow shell script. Don't cache a
3671 # value for MKDIR_P within a source directory, because that will
3672 # break other packages using the cache if that directory is
3673 # removed, or if the value is a relative name.
3674 MKDIR_P
="$ac_install_sh -d"
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3678 $as_echo "$MKDIR_P" >&6; }
3683 [\\/$
]* | ?
:[\\/]*) ;;
3684 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3687 for ac_prog
in gawk mawk nawk
awk
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy
$ac_prog; ac_word
=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_AWK+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 if test -n "$AWK"; then
3697 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir
=.
3704 for ac_exec_ext
in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_AWK
="$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 if test -n "$AWK"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3719 $as_echo "$AWK" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3726 test -n "$AWK" && break
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3730 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3732 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3733 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3734 $as_echo_n "(cached) " >&6
3736 cat >conftest.
make <<\_ACEOF
3739 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3744 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3746 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3750 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752 $as_echo "yes" >&6; }
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 SET_MAKE
="MAKE=${MAKE-make}"
3760 rm -rf .tst
2>/dev
/null
3761 mkdir .tst
2>/dev
/null
3762 if test -d .tst
; then
3767 rmdir .tst
2>/dev
/null
3769 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771 # is not polluted with repeated "-I."
3772 am__isrc
=' -I$(srcdir)'
3773 # test to see if srcdir already configured
3774 if test -f $srcdir/config.status
; then
3775 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3779 # test whether we have cygpath
3780 if test -z "$CYGPATH_W"; then
3781 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3782 CYGPATH_W
='cygpath -w'
3789 # Define the identity of the package.
3794 cat >>confdefs.h
<<_ACEOF
3795 #define PACKAGE "$PACKAGE"
3799 cat >>confdefs.h
<<_ACEOF
3800 #define VERSION "$VERSION"
3803 # Some tools Automake needs.
3805 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3808 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3811 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3814 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3817 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3819 # We need awk for the "check" target. The system "awk" is bad on
3821 # Always define AMTAR for backward compatibility.
3823 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3825 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3834 lispdir
='${datadir}/emacs/${version}/lisp'
3835 leimdir
='${datadir}/emacs/${version}/leim'
3836 standardlisppath
='${lispdir}:${leimdir}'
3837 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3838 '${datadir}/emacs/site-lisp'
3839 lisppath
='${locallisppath}:${standardlisppath}'
3840 etcdir
='${datadir}/emacs/${version}/etc'
3841 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3842 docdir
='${datadir}/emacs/${version}/etc'
3843 gamedir
='${localstatedir}/games/emacs'
3846 # Check whether --with-all was given.
3847 if test "${with_all+set}" = set; then :
3848 withval
=$with_all; with_features
=$withval
3857 # Check whether --with-pop was given.
3858 if test "${with_pop+set}" = set; then :
3861 with_pop
=$with_features
3864 if test "$with_pop" = yes; then
3865 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3870 # Check whether --with-kerberos was given.
3871 if test "${with_kerberos+set}" = set; then :
3872 withval
=$with_kerberos;
3877 if test "$with_kerberos" != no
; then
3878 $as_echo "#define KERBEROS 1" >>confdefs.h
3883 # Check whether --with-kerberos5 was given.
3884 if test "${with_kerberos5+set}" = set; then :
3885 withval
=$with_kerberos5;
3890 if test "${with_kerberos5}" != no
; then
3891 if test "${with_kerberos}" = no
; then
3893 $as_echo "#define KERBEROS 1" >>confdefs.h
3897 $as_echo "#define KERBEROS5 1" >>confdefs.h
3902 # Check whether --with-hesiod was given.
3903 if test "${with_hesiod+set}" = set; then :
3904 withval
=$with_hesiod;
3909 if test "$with_hesiod" != no
; then
3911 $as_echo "#define HESIOD 1" >>confdefs.h
3916 # Check whether --with-mmdf was given.
3917 if test "${with_mmdf+set}" = set; then :
3923 if test "$with_mmdf" != no
; then
3925 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3930 # Check whether --with-mail-unlink was given.
3931 if test "${with_mail_unlink+set}" = set; then :
3932 withval
=$with_mail_unlink;
3937 if test "$with_mail_unlink" != no
; then
3939 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3944 # Check whether --with-mailhost was given.
3945 if test "${with_mailhost+set}" = set; then :
3946 withval
=$with_mailhost;
3947 cat >>confdefs.h
<<_ACEOF
3948 #define MAILHOST "$withval"
3955 # Check whether --with-sound was given.
3956 if test "${with_sound+set}" = set; then :
3957 withval
=$with_sound;
3959 with_sound
=$with_features
3964 # Check whether --with-x-toolkit was given.
3965 if test "${with_x_toolkit+set}" = set; then :
3966 withval
=$with_x_toolkit; case "${withval}" in
3967 y | ye |
yes ) val
=gtk
;;
3969 l | lu | luc | luci | lucid
) val
=lucid
;;
3970 a |
at | ath | athe | athen | athena
) val
=athena
;;
3971 m | mo | mot | moti | motif
) val
=motif
;;
3972 g | gt | gtk
) val
=gtk
;;
3976 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3978 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3979 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3988 # Check whether --with-wide-int was given.
3989 if test "${with_wide_int+set}" = set; then :
3990 withval
=$with_wide_int;
3995 if test "$with_wide_int" = yes; then
3997 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4002 # Check whether --with-xpm was given.
4003 if test "${with_xpm+set}" = set; then :
4006 with_xpm
=$with_features
4010 # Check whether --with-jpeg was given.
4011 if test "${with_jpeg+set}" = set; then :
4014 with_jpeg
=$with_features
4018 # Check whether --with-tiff was given.
4019 if test "${with_tiff+set}" = set; then :
4022 with_tiff
=$with_features
4026 # Check whether --with-gif was given.
4027 if test "${with_gif+set}" = set; then :
4030 with_gif
=$with_features
4034 # Check whether --with-png was given.
4035 if test "${with_png+set}" = set; then :
4038 with_png
=$with_features
4042 # Check whether --with-rsvg was given.
4043 if test "${with_rsvg+set}" = set; then :
4046 with_rsvg
=$with_features
4050 # Check whether --with-xml2 was given.
4051 if test "${with_xml2+set}" = set; then :
4054 with_xml2
=$with_features
4058 # Check whether --with-imagemagick was given.
4059 if test "${with_imagemagick+set}" = set; then :
4060 withval
=$with_imagemagick;
4062 with_imagemagick
=$with_features
4067 # Check whether --with-xft was given.
4068 if test "${with_xft+set}" = set; then :
4071 with_xft
=$with_features
4075 # Check whether --with-libotf was given.
4076 if test "${with_libotf+set}" = set; then :
4077 withval
=$with_libotf;
4079 with_libotf
=$with_features
4083 # Check whether --with-m17n-flt was given.
4084 if test "${with_m17n_flt+set}" = set; then :
4085 withval
=$with_m17n_flt;
4087 with_m17n_flt
=$with_features
4092 # Check whether --with-toolkit-scroll-bars was given.
4093 if test "${with_toolkit_scroll_bars+set}" = set; then :
4094 withval
=$with_toolkit_scroll_bars;
4096 with_toolkit_scroll_bars
=$with_features
4100 # Check whether --with-xaw3d was given.
4101 if test "${with_xaw3d+set}" = set; then :
4102 withval
=$with_xaw3d;
4104 with_xaw3d
=$with_features
4108 # Check whether --with-xim was given.
4109 if test "${with_xim+set}" = set; then :
4112 with_xim
=$with_features
4116 # Check whether --with-ns was given.
4117 if test "${with_ns+set}" = set; then :
4124 # Check whether --with-w32 was given.
4125 if test "${with_w32+set}" = set; then :
4133 # Check whether --with-gpm was given.
4134 if test "${with_gpm+set}" = set; then :
4137 with_gpm
=$with_features
4141 # Check whether --with-dbus was given.
4142 if test "${with_dbus+set}" = set; then :
4145 with_dbus
=$with_features
4149 # Check whether --with-gconf was given.
4150 if test "${with_gconf+set}" = set; then :
4151 withval
=$with_gconf;
4153 with_gconf
=$with_features
4157 # Check whether --with-gsettings was given.
4158 if test "${with_gsettings+set}" = set; then :
4159 withval
=$with_gsettings;
4161 with_gsettings
=$with_features
4165 # Check whether --with-selinux was given.
4166 if test "${with_selinux+set}" = set; then :
4167 withval
=$with_selinux;
4169 with_selinux
=$with_features
4173 # Check whether --with-gnutls was given.
4174 if test "${with_gnutls+set}" = set; then :
4175 withval
=$with_gnutls;
4177 with_gnutls
=$with_features
4181 ## For the times when you want to build Emacs but don't have
4182 ## a suitable makeinfo, and can live without the manuals.
4184 # Check whether --with-makeinfo was given.
4185 if test "${with_makeinfo+set}" = set; then :
4186 withval
=$with_makeinfo;
4188 with_makeinfo
=$with_features
4192 ## Makefile.in needs the cache file name.
4195 ## This is an option because I do not know if all info/man support
4196 ## compressed files, nor how to test if they do so.
4198 # Check whether --with-compress-info was given.
4199 if test "${with_compress_info+set}" = set; then :
4200 withval
=$with_compress_info;
4202 with_compress_info
=$with_features
4205 if test $with_compress_info = yes; then
4213 # Check whether --with-pkg-config-prog was given.
4214 if test "${with_pkg_config_prog+set}" = set; then :
4215 withval
=$with_pkg_config_prog;
4218 if test "X${with_pkg_config_prog}" != X
; then
4219 if test "${with_pkg_config_prog}" != yes; then
4220 PKG_CONFIG
="${with_pkg_config_prog}"
4226 # Check whether --with-crt-dir was given.
4227 if test "${with_crt_dir+set}" = set; then :
4228 withval
=$with_crt_dir;
4231 CRT_DIR
="${with_crt_dir}"
4234 # Check whether --with-gameuser was given.
4235 if test "${with_gameuser+set}" = set; then :
4236 withval
=$with_gameuser;
4239 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4240 && gameuser
="${with_gameuser}"
4241 test "X$gameuser" = X
&& gameuser
=games
4244 # Check whether --with-gnustep-conf was given.
4245 if test "${with_gnustep_conf+set}" = set; then :
4246 withval
=$with_gnustep_conf;
4249 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4250 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4251 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4252 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4254 # Check whether --enable-ns-self-contained was given.
4255 if test "${enable_ns_self_contained+set}" = set; then :
4256 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4258 EN_NS_SELF_CONTAINED
=yes
4262 # Check whether --enable-locallisppath was given.
4263 if test "${enable_locallisppath+set}" = set; then :
4264 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4266 elif test "${enableval}" != "yes"; then
4267 locallisppath
=${enableval}
4272 # Check whether --enable-checking was given.
4273 if test "${enable_checking+set}" = set; then :
4274 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4277 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4278 for check
in $ac_checking_flags
4281 # these set all the flags to specific states
4282 yes) ac_enable_checking
=1 ;;
4283 no
) ac_enable_checking
= ;
4284 ac_gc_check_stringbytes
= ;
4285 ac_gc_check_string_overrun
= ;
4286 ac_gc_check_string_free_list
= ;
4287 ac_xmalloc_overrun
= ;
4288 ac_gc_check_cons_list
= ;
4290 all
) ac_enable_checking
=1 ;
4291 ac_gc_check_stringbytes
=1 ;
4292 ac_gc_check_string_overrun
=1 ;
4293 ac_gc_check_string_free_list
=1 ;
4294 ac_xmalloc_overrun
=1 ;
4295 ac_gc_check_cons_list
=1 ;
4296 ac_glyphs_debug
=1 ;;
4297 # these enable particular checks
4298 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4299 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4300 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4301 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4302 conslist
) ac_gc_check_cons_list
=1 ;;
4303 glyphs
) ac_glyphs_debug
=1 ;;
4304 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4309 if test x
$ac_enable_checking != x
; then
4311 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4314 if test x
$ac_gc_check_stringbytes != x
; then
4316 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4319 if test x
$ac_gc_check_string_overrun != x
; then
4321 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4324 if test x
$ac_gc_check_string_free_list != x
; then
4326 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4329 if test x
$ac_xmalloc_overrun != x
; then
4331 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4334 if test x
$ac_gc_check_cons_list != x
; then
4336 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4339 if test x
$ac_glyphs_debug != x
; then
4341 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4345 # Check whether --enable-check-lisp-object-type was given.
4346 if test "${enable_check_lisp_object_type+set}" = set; then :
4347 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4349 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4356 # Check whether --enable-profiling was given.
4357 if test "${enable_profiling+set}" = set; then :
4358 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4361 if test x
$ac_enable_profiling != x
; then
4362 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4368 # Check whether --enable-autodepend was given.
4369 if test "${enable_autodepend+set}" = set; then :
4370 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4372 ac_enable_autodepend
=yes
4376 #### Make srcdir absolute, if it isn't already. It's important to
4377 #### avoid running the path through pwd unnecessarily, since pwd can
4378 #### give you automounter prefixes, which can go away. We do all this
4379 #### so Emacs can find its files when run uninstalled.
4380 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4385 ## We may be able to use the $PWD environment variable to make this
4386 ## absolute. But sometimes PWD is inaccurate.
4387 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4388 ## but that tested only for a well-formed and valid PWD,
4389 ## it did not object when PWD was well-formed and valid but just wrong.
4390 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4394 srcdir
="`(cd ${srcdir}; pwd)`"
4397 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4400 ### Canonicalize the configuration name.
4402 # Make sure we can run config.sub.
4403 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4404 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4407 $as_echo_n "checking build system type... " >&6; }
4408 if test "${ac_cv_build+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 ac_build_alias
=$build_alias
4412 test "x$ac_build_alias" = x
&&
4413 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4414 test "x$ac_build_alias" = x
&&
4415 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4416 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4417 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4421 $as_echo "$ac_cv_build" >&6; }
4422 case $ac_cv_build in
4424 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4427 ac_save_IFS
=$IFS; IFS
='-'
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4437 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4441 $as_echo_n "checking host system type... " >&6; }
4442 if test "${ac_cv_host+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test "x$host_alias" = x
; then
4446 ac_cv_host
=$ac_cv_build
4448 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4449 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4454 $as_echo "$ac_cv_host" >&6; }
4457 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4460 ac_save_IFS
=$IFS; IFS
='-'
4466 # Remember, the first character of IFS is used to create $*,
4467 # except with old shells:
4470 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4474 configuration
=${host_alias-${build_alias-$host}}
4478 ### If you add support for a new configuration, add code to this
4479 ### switch statement to recognize your configuration name and select
4480 ### the appropriate operating system file.
4482 ### You would hope that you could choose an s/*.h
4483 ### file based on the operating system portion. However, it turns out
4484 ### that each s/*.h file is pretty manufacturer-specific.
4485 ### So we basically have to have a special case for each
4486 ### configuration name.
4488 ### As far as handling version numbers on operating systems is
4489 ### concerned, make sure things will fail in a fixable way. If
4490 ### /etc/MACHINES doesn't say anything about version numbers, be
4491 ### prepared to handle anything reasonably. If version numbers
4492 ### matter, be sure /etc/MACHINES says something about it.
4494 opsys
='' unported
=no
4495 case "${canonical}" in
4497 ## GNU/Linux and similar ports
4507 ## FreeBSD kernel + glibc based userland
4522 ## Apple Darwin / Mac OS X
4524 case "${canonical}" in
4531 ## Use fink packages if available.
4532 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4533 ## if test -d /sw/include && test -d /sw/lib; then
4534 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4535 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4539 ## HP 9000 series 700 and 800, running HP/UX
4540 hppa
*-hp-hpux10.2
* )
4543 hppa
*-hp-hpux1[1-9]* )
4545 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4549 rs6000-ibm-aix4.
[23]* )
4552 powerpc-ibm-aix4.
[23]* )
4555 rs6000-ibm-aix
[56]* )
4558 powerpc-ibm-aix
[56]* )
4562 ## Silicon Graphics machines
4566 # Without defining _LANGUAGE_C, things get masked out in the headers
4567 # so that, for instance, grepping for `free' in stdlib.h fails and
4568 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4569 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4574 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4575 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4576 case "${canonical}" in
4578 amd64-
*-*|x86_64-
*-*) ;;
4582 case "${canonical}" in
4583 *-sunos5.6
* |
*-solaris2.6
* )
4587 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4589 emacs_check_sunpro_c
=yes
4591 *-sunos5* |
*-solaris* )
4593 emacs_check_sunpro_c
=yes
4596 ## Watch out for a compiler that we know will not work.
4597 case "${canonical}" in
4598 *-solaris* |
*-sunos5* )
4599 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4600 ## /usr/ucb/cc doesn't work;
4601 ## we should find some other compiler that does work.
4609 ## Intel 386 machines where we don't care about the manufacturer.
4611 case "${canonical}" in
4612 *-cygwin ) opsys
=cygwin
;;
4613 *-darwin* ) opsys
=darwin
;;
4614 *-sysv4.2uw
* ) opsys
=unixware
;;
4615 *-sysv5uw* ) opsys
=unixware
;;
4616 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4617 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4626 ### If the code above didn't choose an operating system, just choose
4627 ### an operating system based on the configuration name. You really
4628 ### only want to use this when you have no idea what the right
4629 ### operating system is; if you know what operating systems a machine
4630 ### runs, it's cleaner to make it explicit in the case statement
4632 if test x
"${opsys}" = x
; then
4633 case "${canonical}" in
4634 *-gnu* ) opsys
=gnu
;;
4643 if test $unported = yes; then
4644 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4645 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4649 #### Choose a compiler.
4652 ac_cpp
='$CPP $CPPFLAGS'
4653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4658 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_CC+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC
="$CC" # Let the user override the test.
4667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir
=.
4672 for ac_exec_ext
in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 if test -n "$CC"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4687 $as_echo "$CC" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_prog_CC"; then
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc
; ac_word
=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir
=.
4712 for ac_exec_ext
in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_CC
="gcc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4733 if test "x$ac_ct_CC" = x
; then
4736 case $cross_compiling:$ac_tool_warned in
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned
=yes ;;
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4751 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC
="$CC" # Let the user override the test.
4760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir
=.
4765 for ac_exec_ext
in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4789 if test -z "$CC"; then
4790 # Extract the first word of "cc", so it can be a program name with args.
4791 set dummy cc
; ac_word
=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC
="$CC" # Let the user override the test.
4801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir
=.
4806 for ac_exec_ext
in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4809 ac_prog_rejected
=yes
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 if test $ac_prog_rejected = yes; then
4821 # We found a bogon in the path, so make sure we never use it.
4822 set dummy
$ac_cv_prog_CC
4824 if test $# != 0; then
4825 # We chose a different compiler from the bogus one.
4826 # However, it has the same basename, so the bogon will be chosen
4827 # first if we set CC to just the basename; use the full file name.
4829 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4835 if test -n "$CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 $as_echo "$CC" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4845 if test -z "$CC"; then
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog
in cl.exe
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy
$ac_tool_prefix$ac_prog; 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$ac_prog"
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; }
4886 test -n "$CC" && break
4889 if test -z "$CC"; then
4891 for ac_prog
in cl.exe
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy
$ac_prog; ac_word
=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4907 test -z "$as_dir" && as_dir
=.
4908 for ac_exec_ext
in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC
="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4923 $as_echo "$ac_ct_CC" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 test -n "$ac_ct_CC" && break
4933 if test "x$ac_ct_CC" = x
; then
4936 case $cross_compiling:$ac_tool_warned in
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned
=yes ;;
4949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error
"no acceptable C compiler found in \$PATH
4952 See \`config.log' for more details." "$LINENO" 5; }
4954 # Provide some information about the compiler.
4955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4958 for ac_option
in --version -v -V -qversion; do
4959 { { ac_try
="$ac_compiler $ac_option >&5"
4961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4968 if test -s conftest.err; then
4970 ... rest of stderr output deleted ...
4971 10q' conftest.err >conftest.er1
4972 cat conftest.er1 >&5
4974 rm -f conftest.er1 conftest.err
4975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4990 ac_clean_files_save=$ac_clean_files
4991 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4992 # Try to create an executable without -o first, disregard a.out.
4993 # It will help us diagnose broken compilers, and finding out an intuition
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4996 $as_echo_n "checking whether the C compiler works... " >&6; }
4997 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4999 # The possible output files:
5000 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5003 for ac_file in $ac_files
5006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5012 if { { ac_try="$ac_link_default"
5014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5015 *) ac_try_echo
=$ac_try;;
5017 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5018 $as_echo "$ac_try_echo"; } >&5
5019 (eval "$ac_link_default") 2>&5
5021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022 test $ac_status = 0; }; then :
5023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5026 # so that the user can short-circuit this test for compilers unknown to
5028 for ac_file
in $ac_files ''
5030 test -f "$ac_file" ||
continue
5032 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5035 # We found the default executable, but exeext='' is most
5039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5043 # We set ac_cv_exeext here because the later test for it is not
5044 # safe: cross compilers may not add the suffix if given an `-o'
5045 # argument, so we may need to know it at that point already.
5046 # Even if this section looks crufty: it has the advantage of
5053 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5058 if test -z "$ac_file"; then :
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066 { as_fn_set_status
77
5067 as_fn_error
"C compiler cannot create executables
5068 See \`config.log' for more details." "$LINENO" 5; }; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5074 $as_echo_n "checking for C compiler default output file name... " >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5076 $as_echo "$ac_file" >&6; }
5077 ac_exeext
=$ac_cv_exeext
5079 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5080 ac_clean_files
=$ac_clean_files_save
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5082 $as_echo_n "checking for suffix of executables... " >&6; }
5083 if { { ac_try
="$ac_link"
5085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_link") 2>&5
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; then :
5094 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5095 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5096 # work properly (i.e., refer to `conftest.exe'), while it won't with
5098 for ac_file
in conftest.exe conftest conftest.
*; do
5099 test -f "$ac_file" ||
continue
5101 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5102 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5111 See \`config.log' for more details." "$LINENO" 5; }
5113 rm -f conftest conftest
$ac_cv_exeext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5115 $as_echo "$ac_cv_exeext" >&6; }
5117 rm -f conftest.
$ac_ext
5118 EXEEXT
=$ac_cv_exeext
5120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5126 FILE *f = fopen ("conftest.out", "w");
5127 return ferror (f) || fclose (f) != 0;
5133 ac_clean_files
="$ac_clean_files conftest.out"
5134 # Check that the compiler produces executables we can run. If not, either
5135 # the compiler is broken, or we cross compile.
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5137 $as_echo_n "checking whether we are cross compiling... " >&6; }
5138 if test "$cross_compiling" != yes; then
5139 { { ac_try
="$ac_link"
5141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_link") 2>&5
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; }
5150 if { ac_try='./conftest$ac_cv_exeext'
5151 { { case "(($ac_try" in
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_try") 2>&5
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; }; then
5163 if test "$cross_compiling" = maybe
; then
5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168 as_fn_error
"cannot run C compiled programs.
5169 If you meant to cross compile, use \`--host'.
5170 See \`config.log' for more details." "$LINENO" 5; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5175 $as_echo "$cross_compiling" >&6; }
5177 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5178 ac_clean_files
=$ac_clean_files_save
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5180 $as_echo_n "checking for suffix of object files... " >&6; }
5181 if test "${ac_cv_objext+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5195 rm -f conftest.o conftest.obj
5196 if { { ac_try
="$ac_compile"
5198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5202 $as_echo "$ac_try_echo"; } >&5
5203 (eval "$ac_compile") 2>&5
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; }; then :
5207 for ac_file in conftest.o conftest.obj conftest.*; do
5208 test -f "$ac_file" || continue;
5210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "cannot compute suffix of object files
: cannot compile
5222 See \
`config.log' for more details." "$LINENO" 5; }
5224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5227 $as_echo "$ac_cv_objext" >&6; }
5228 OBJEXT=$ac_cv_objext
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5232 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5249 if ac_fn_c_try_compile "$LINENO"; then :
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5259 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5260 if test $ac_compiler_gnu = yes; then
5265 ac_test_CFLAGS=${CFLAGS+set}
5266 ac_save_CFLAGS=$CFLAGS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5268 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5269 if test "${ac_cv_prog_cc_g+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5272 ac_save_c_werror_flag=$ac_c_werror_flag
5273 ac_c_werror_flag=yes
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5287 if ac_fn_c_try_compile "$LINENO"; then :
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5302 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_c_werror_flag=$ac_save_c_werror_flag
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5318 if ac_fn_c_try_compile "$LINENO"; then :
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_c_werror_flag=$ac_save_c_werror_flag
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5329 $as_echo "$ac_cv_prog_cc_g" >&6; }
5330 if test "$ac_test_CFLAGS" = set; then
5331 CFLAGS=$ac_save_CFLAGS
5332 elif test $ac_cv_prog_cc_g = yes; then
5333 if test "$GCC" = yes; then
5339 if test "$GCC" = yes; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5347 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 ac_cv_prog_cc_c89=no
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5356 #include <sys/types.h>
5357 #include <sys/stat.h>
5358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5359 struct buf { int x; };
5360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5361 static char *e (p, i)
5367 static char *f (char * (*g) (char **, int), char **p, ...)
5372 s = g (p, va_arg (v,int));
5377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5378 function prototypes and stuff, but not '\xHH' hex character constants.
5379 These don't provoke an error unfortunately, instead are silently treated
5380 as 'x'. The following induces an error, until -std is added to get
5381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5382 array size at least. It's necessary to write '\x00'==0 to get something
5383 that's true only with -std. */
5384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5387 inside strings and character constants. */
5389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5391 int test (int i, double x);
5392 struct s1 {int (*f) (int a);};
5393 struct s2 {int (*f) (double a);};
5394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5408 CC="$ac_save_CC $ac_arg"
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_cv_prog_cc_c89=$ac_arg
5412 rm -f core conftest.err conftest.$ac_objext
5413 test "x$ac_cv_prog_cc_c89" != "xno" && break
5415 rm -f conftest.$ac_ext
5420 case "x$ac_cv_prog_cc_c89" in
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5423 $as_echo "none needed" >&6; } ;;
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5426 $as_echo "unsupported" >&6; } ;;
5428 CC="$CC $ac_cv_prog_cc_c89"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5432 if test "x$ac_cv_prog_cc_c89" != xno; then :
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 DEPDIR="${am__leading_dot}deps"
5443 ac_config_commands="$ac_config_commands depfiles"
5446 am_make=${MAKE-make}
5447 cat > confinc << 'END'
5449 @echo this is the am__doit target
5452 # If we don't find an include directive, just comment out the code.
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5454 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5458 # First try GNU make style include.
5459 echo "include confinc" > confmf
5460 # Ignore all kinds of additional output from `make'.
5461 case `$am_make -s -f confmf 2> /dev/null` in #(
5462 *the\ am__doit\ target*)
5468 # Now try BSD make style include.
5469 if test "$am__include" = "#"; then
5470 echo '.include
"confinc"' > confmf
5471 case `$am_make -s -f confmf 2> /dev/null` in #(
5472 *the\ am__doit\ target*)
5473 am__include=.include
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5482 $as_echo "$_am_result" >&6; }
5483 rm -f confinc confmf
5485 # Check whether --enable-dependency-tracking was given.
5486 if test "${enable_dependency_tracking+set}" = set; then :
5487 enableval=$enable_dependency_tracking;
5490 if test "x$enable_dependency_tracking" != xno; then
5491 am_depcomp="$ac_aux_dir/depcomp"
5494 if test "x$enable_dependency_tracking" != xno
; then
5504 depcc
="$CC" am_compiler_list
=
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5507 $as_echo_n "checking dependency style of $depcc... " >&6; }
5508 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5512 # We make a subdir and do the tests there. Otherwise we can end up
5513 # making bogus files that we don't know about and never remove. For
5514 # instance it was reported that on HP-UX the gcc test will end up
5515 # making a dummy file named `D' -- because `-MD' means `put the output
5518 # Copy depcomp to subdir because otherwise we won't find it if we're
5519 # using a relative directory.
5520 cp "$am_depcomp" conftest.dir
5522 # We will build objects and dependencies in a subdirectory because
5523 # it helps to detect inapplicable dependency modes. For instance
5524 # both Tru64's cc and ICC support -MD to output dependencies as a
5525 # side effect of compilation, but ICC will put the dependencies in
5526 # the current directory while Tru64 will put them in the object
5530 am_cv_CC_dependencies_compiler_type
=none
5531 if test "$am_compiler_list" = ""; then
5532 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5535 case " $depcc " in #(
5536 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5539 for depmode
in $am_compiler_list; do
5540 # Setup a source with many dependencies, because some compilers
5541 # like to wrap large dependency lists on column 80 (with \), and
5542 # we should not choose a depcomp mode which is confused by this.
5544 # We need to recreate these files for each test, as the compiler may
5545 # overwrite some of them when testing with obscure command lines.
5546 # This happens at least with the AIX C compiler.
5548 for i
in 1 2 3 4 5 6; do
5549 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5551 # Solaris 8's {/usr,}/bin/sh.
5552 touch sub
/conftst
$i.h
5554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557 # mode. It turns out that the SunPro C++ compiler does not properly
5558 # handle `-M -o', and we need to detect this. Also, some Intel
5559 # versions had trouble with output in subdirs
5560 am__obj
=sub
/conftest.
${OBJEXT-o}
5561 am__minus_obj
="-o $am__obj"
5564 # This depmode causes a compiler race in universal mode.
5565 test "$am__universal" = false ||
continue
5568 # after this tag, mechanisms are not by side-effect, so they'll
5569 # only be used when explicitly requested
5570 if test "x$enable_dependency_tracking" = xyes
; then
5576 msvisualcpp | msvcmsys
)
5577 # This compiler won't grok `-c -o', but also, the minuso test has
5578 # not run yet. These depmodes are late enough in the game, and
5579 # so weak that their functioning should not be impacted.
5580 am__obj
=conftest.
${OBJEXT-o}
5585 if depmode
=$depmode \
5586 source=sub
/conftest.c object
=$am__obj \
5587 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5588 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5589 >/dev
/null
2>conftest.err
&&
5590 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5591 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5592 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5593 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5594 # icc doesn't choke on unknown options, it will just issue warnings
5595 # or remarks (even with -Werror). So we grep stderr for any message
5596 # that says an option was ignored or not supported.
5597 # When given -MP, icc 7.0 and 7.1 complain thusly:
5598 # icc: Command line warning: ignoring option '-M'; no argument required
5599 # The diagnosis changed in icc 8.0:
5600 # icc: Command line remark: option '-MP' not supported
5601 if (grep 'ignoring option' conftest.err ||
5602 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5603 am_cv_CC_dependencies_compiler_type
=$depmode
5612 am_cv_CC_dependencies_compiler_type
=none
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5621 test "x$enable_dependency_tracking" != xno \
5622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5624 am__fastdepCC_FALSE
='#'
5626 am__fastdepCC_TRUE
='#'
5627 am__fastdepCC_FALSE
=
5631 if test "x$CC" != xcc
; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5633 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5636 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5638 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5639 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5640 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5641 $as_echo_n "(cached) " >&6
5643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5654 # Make sure it works both with $CC and with simple cc.
5655 # We do the test twice because some compilers refuse to overwrite an
5656 # existing .o file with -o, though they will create one.
5657 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5659 if { { case "(($ac_try" in
5660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5671 *) ac_try_echo
=$ac_try;;
5673 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5680 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5681 if test "x$CC" != xcc
; then
5682 # Test first that cc exists at all.
5683 if { ac_try
='cc -c conftest.$ac_ext >&5'
5684 { { case "(($ac_try" in
5685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5696 if { { case "(($ac_try" in
5697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5698 *) ac_try_echo
=$ac_try;;
5700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; } &&
5706 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711 $as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; };
5720 # cc exists but doesn't like -o.
5721 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5728 rm -f core conftest*
5731 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5738 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5742 # FIXME: we rely on the cache variable name because
5743 # there is no other way.
5745 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5746 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5747 if test "$am_t" != yes; then
5748 # Losing compiler, so override with the script.
5749 # FIXME: It is wrong to rewrite CC.
5750 # But if we don't then we get into trouble of one sort or another.
5751 # A longer-term fix would be to have automake use am__CC in this case,
5752 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5753 CC="$am_aux_dir/compile $CC"
5758 if test x$GCC = xyes; then
5759 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5761 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5764 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5766 # Avoid gnulib's threadlib module, as we do threads our own way.
5769 # Initialize gnulib right after choosing the compiler.
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5778 # On Suns, sometimes $CPP names a directory.
5779 if test -n "$CPP" && test -d "$CPP"; then
5782 if test -z "$CPP"; then
5783 if test "${ac_cv_prog_CPP+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5786 # Double quotes because CPP needs to be expanded
5787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5790 for ac_c_preproc_warn_flag in '' yes
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5795 # <limits.h> exists even on freestanding compilers.
5796 # On the NeXT, cc -E runs the code through the compiler's parser,
5797 # not just through cpp. "Syntax error" is here to catch this case.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5801 # include <limits.h>
5803 # include <assert.h>
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5810 # Broken: fails on valid input.
5813 rm -f conftest.err conftest.$ac_ext
5815 # OK, works on sane cases. Now check whether nonexistent headers
5816 # can be detected and how.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <ac_nonexistent.h>
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5822 # Broken: success on invalid input.
5825 # Passes both tests.
5829 rm -f conftest.err conftest.$ac_ext
5832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833 rm -f conftest.err conftest.
$ac_ext
5834 if $ac_preproc_ok; then :
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5847 $as_echo "$CPP" >&6; }
5849 for ac_c_preproc_warn_flag
in '' yes
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5860 # include <limits.h>
5862 # include <assert.h>
5866 if ac_fn_c_try_cpp
"$LINENO"; then :
5869 # Broken: fails on valid input.
5872 rm -f conftest.err conftest.
$ac_ext
5874 # OK, works on sane cases. Now check whether nonexistent headers
5875 # can be detected and how.
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5880 if ac_fn_c_try_cpp
"$LINENO"; then :
5881 # Broken: success on invalid input.
5884 # Passes both tests.
5888 rm -f conftest.err conftest.
$ac_ext
5891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5892 rm -f conftest.err conftest.
$ac_ext
5893 if $ac_preproc_ok; then :
5896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5899 See \`config.log' for more details." "$LINENO" 5; }
5903 ac_cpp
='$CPP $CPPFLAGS'
5904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 if test -z "$GREP"; then
5915 ac_path_GREP_found
=false
5916 # Loop through the user's path and test for each of PROGNAME-LIST
5917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5918 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5921 test -z "$as_dir" && as_dir
=.
5922 for ac_prog
in grep ggrep
; do
5923 for ac_exec_ext
in '' $ac_executable_extensions; do
5924 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5926 # Check for GNU ac_path_GREP and select it if it is found.
5927 # Check for GNU $ac_path_GREP
5928 case `"$ac_path_GREP" --version 2>&1` in
5930 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5933 $as_echo_n 0123456789 >"conftest.in"
5936 cat "conftest.in" "conftest.in" >"conftest.tmp"
5937 mv "conftest.tmp" "conftest.in"
5938 cp "conftest.in" "conftest.nl"
5939 $as_echo 'GREP' >> "conftest.nl"
5940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5941 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5942 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5944 # Best one so far, save it but keep looking for a better one
5945 ac_cv_path_GREP
="$ac_path_GREP"
5946 ac_path_GREP_max
=$ac_count
5948 # 10*(2^10) chars as input seems more than enough
5949 test $ac_count -gt 10 && break
5951 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5954 $ac_path_GREP_found && break 3
5959 if test -z "$ac_cv_path_GREP"; then
5960 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5963 ac_cv_path_GREP
=$GREP
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5968 $as_echo "$ac_cv_path_GREP" >&6; }
5969 GREP
="$ac_cv_path_GREP"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5973 $as_echo_n "checking for egrep... " >&6; }
5974 if test "${ac_cv_path_EGREP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5977 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5978 then ac_cv_path_EGREP
="$GREP -E"
5980 if test -z "$EGREP"; then
5981 ac_path_EGREP_found
=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5984 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5987 test -z "$as_dir" && as_dir
=.
5988 for ac_prog
in egrep; do
5989 for ac_exec_ext
in '' $ac_executable_extensions; do
5990 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5992 # Check for GNU ac_path_EGREP and select it if it is found.
5993 # Check for GNU $ac_path_EGREP
5994 case `"$ac_path_EGREP" --version 2>&1` in
5996 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5999 $as_echo_n 0123456789 >"conftest.in"
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'EGREP' >> "conftest.nl"
6006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6007 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6008 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_EGREP
="$ac_path_EGREP"
6012 ac_path_EGREP_max
=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6017 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6020 $ac_path_EGREP_found && break 3
6025 if test -z "$ac_cv_path_EGREP"; then
6026 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6029 ac_cv_path_EGREP
=$EGREP
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6035 $as_echo "$ac_cv_path_EGREP" >&6; }
6036 EGREP
="$ac_cv_path_EGREP"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6042 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6043 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6057 gl_cv_c_amsterdam_compiler
=yes
6059 gl_cv_c_amsterdam_compiler
=no
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6066 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6067 if test -z "$AR"; then
6068 if test $gl_cv_c_amsterdam_compiler = yes; then
6070 if test -z "$ARFLAGS"; then
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6076 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$AR"; then
6083 ac_cv_prog_AR
="$AR" # Let the user override the test.
6085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir
=.
6090 for ac_exec_ext
in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 if test -n "$AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6105 $as_echo "$AR" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6113 if test -z "$ac_cv_prog_AR"; then
6115 # Extract the first word of "ar", so it can be a program name with args.
6116 set dummy
ar; ac_word
=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6122 if test -n "$ac_ct_AR"; then
6123 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir
=.
6130 for ac_exec_ext
in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_AR
="ar"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6143 if test -n "$ac_ct_AR"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6145 $as_echo "$ac_ct_AR" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6151 if test "x$ac_ct_AR" = x
; then
6154 case $cross_compiling:$ac_tool_warned in
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned
=yes ;;
6166 if test -z "$ARFLAGS"; then
6171 if test -z "$ARFLAGS"; then
6177 if test -z "$RANLIB"; then
6178 if test $gl_cv_c_amsterdam_compiler = yes; then
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 if test -n "$RANLIB"; then
6190 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir
=.
6197 for ac_exec_ext
in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 RANLIB
=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221 ac_ct_RANLIB
=$RANLIB
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib
; ac_word
=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$ac_ct_RANLIB"; then
6230 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir
=.
6237 for ac_exec_ext
in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6258 if test "x$ac_ct_RANLIB" = x
; then
6261 case $cross_compiling:$ac_tool_warned in
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned
=yes ;;
6267 RANLIB
=$ac_ct_RANLIB
6270 RANLIB
="$ac_cv_prog_RANLIB"
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6278 $as_echo_n "checking for ANSI C header files... " >&6; }
6279 if test "${ac_cv_header_stdc+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6297 if ac_fn_c_try_compile
"$LINENO"; then :
6298 ac_cv_header_stdc
=yes
6300 ac_cv_header_stdc
=no
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6304 if test $ac_cv_header_stdc = yes; then
6305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 $EGREP "memchr" >/dev
/null
2>&1; then :
6315 ac_cv_header_stdc
=no
6321 if test $ac_cv_header_stdc = yes; then
6322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "free" >/dev
/null
2>&1; then :
6332 ac_cv_header_stdc
=no
6338 if test $ac_cv_header_stdc = yes; then
6339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6340 if test "$cross_compiling" = yes; then :
6343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6347 #if ((' ' & 0x0FF) == 0x020)
6348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6351 # define ISLOWER(c) \
6352 (('a' <= (c) && (c) <= 'i') \
6353 || ('j' <= (c) && (c) <= 'r') \
6354 || ('s' <= (c) && (c) <= 'z'))
6355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6363 for (i = 0; i < 256; i++)
6364 if (XOR (islower (i), ISLOWER (i))
6365 || toupper (i) != TOUPPER (i))
6370 if ac_fn_c_try_run
"$LINENO"; then :
6373 ac_cv_header_stdc
=no
6375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6382 $as_echo "$ac_cv_header_stdc" >&6; }
6383 if test $ac_cv_header_stdc = yes; then
6385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6390 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6391 inttypes.h stdint.h unistd.h
6393 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6396 eval as_val
=\$
$as_ac_Header
6397 if test "x$as_val" = x
""yes; then :
6398 cat >>confdefs.h
<<_ACEOF
6399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6410 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6411 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6418 if test "$MINIX" = yes; then
6420 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6423 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6426 $as_echo "#define _MINIX 1" >>confdefs.h
6433 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6440 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6441 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6447 # define __EXTENSIONS__ 1
6448 $ac_includes_default
6457 if ac_fn_c_try_compile
"$LINENO"; then :
6458 ac_cv_safe_to_define___extensions__
=yes
6460 ac_cv_safe_to_define___extensions__
=no
6462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6465 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6466 test $ac_cv_safe_to_define___extensions__ = yes &&
6467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6471 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6486 # Check whether --enable-largefile was given.
6487 if test "${enable_largefile+set}" = set; then :
6488 enableval
=$enable_largefile;
6491 if test "$enable_largefile" != no
; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6498 ac_cv_sys_largefile_CC
=no
6499 if test "$GCC" != yes; then
6502 # IRIX 6.2 and later do not support large files by default,
6503 # so use the C compiler's -n32 option if that helps.
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6526 rm -f core conftest.err conftest.
$ac_objext
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 ac_cv_sys_largefile_CC
=' -n32'; break
6531 rm -f core conftest.err conftest.
$ac_objext
6535 rm -f conftest.
$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6540 if test "$ac_cv_sys_largefile_CC" != no
; then
6541 CC
=$CC$ac_cv_sys_largefile_CC
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <sys/types.h>
6553 /* Check that off_t can represent 2**63 - 1 correctly.
6554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6555 since some C++ compilers masquerading as C compilers
6556 incorrectly reject 9223372036854775807. */
6557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6559 && LARGE_OFF_T % 2147483647 == 1)
6569 if ac_fn_c_try_compile
"$LINENO"; then :
6570 ac_cv_sys_file_offset_bits
=no
; break
6572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #define _FILE_OFFSET_BITS 64
6576 #include <sys/types.h>
6577 /* Check that off_t can represent 2**63 - 1 correctly.
6578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6579 since some C++ compilers masquerading as C compilers
6580 incorrectly reject 9223372036854775807. */
6581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6583 && LARGE_OFF_T % 2147483647 == 1)
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 ac_cv_sys_file_offset_bits
=64; break
6596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 ac_cv_sys_file_offset_bits
=unknown
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6603 case $ac_cv_sys_file_offset_bits in #(
6606 cat >>confdefs.h
<<_ACEOF
6607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6612 if test $ac_cv_sys_file_offset_bits = unknown
; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6615 if test "${ac_cv_sys_large_files+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6638 if ac_fn_c_try_compile
"$LINENO"; then :
6639 ac_cv_sys_large_files
=no
; break
6641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #define _LARGE_FILES 1
6645 #include <sys/types.h>
6646 /* Check that off_t can represent 2**63 - 1 correctly.
6647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6648 since some C++ compilers masquerading as C compilers
6649 incorrectly reject 9223372036854775807. */
6650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6652 && LARGE_OFF_T % 2147483647 == 1)
6662 if ac_fn_c_try_compile
"$LINENO"; then :
6663 ac_cv_sys_large_files
=1; break
6665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6666 ac_cv_sys_large_files
=unknown
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6671 $as_echo "$ac_cv_sys_large_files" >&6; }
6672 case $ac_cv_sys_large_files in #(
6675 cat >>confdefs.h
<<_ACEOF
6676 #define _LARGE_FILES $ac_cv_sys_large_files
6686 case $ac_cv_prog_cc_stdc in #(
6688 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6691 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6692 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6695 ac_cv_prog_cc_c99
=no
6697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6700 #include <stdbool.h>
6705 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6706 #define debug(...) fprintf (stderr, __VA_ARGS__)
6707 #define showlist(...) puts (#__VA_ARGS__)
6708 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6710 test_varargs_macros (void)
6715 debug ("X = %d\n", x);
6716 showlist (The first, second, and third items.);
6717 report (x>y, "x is %d but y is %d", x, y);
6720 // Check long long types.
6721 #define BIG64 18446744073709551615ull
6722 #define BIG32 4294967295ul
6723 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6725 your preprocessor is broken;
6729 your preprocessor is broken;
6731 static long long int bignum = -9223372036854775807LL;
6732 static unsigned long long int ubignum = BIG64;
6734 struct incomplete_array
6742 const wchar_t *name;
6746 typedef const char *ccp;
6749 test_restrict (ccp restrict text)
6751 // See if C++-style comments work.
6752 // Iterate through items via the restricted pointer.
6753 // Also check for declarations in for loops.
6754 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6759 // Check varargs and va_copy.
6761 test_varargs (const char *format, ...)
6764 va_start (args, format);
6766 va_copy (args_copy, args);
6777 str = va_arg (args_copy, const char *);
6780 number = va_arg (args_copy, int);
6783 fnumber = va_arg (args_copy, double);
6798 _Bool success = false;
6801 if (test_restrict ("String literal") == 0)
6803 char *restrict newvar = "Another string";
6806 test_varargs ("s, d' f .", "string", 65, 34.234);
6807 test_varargs_macros ();
6809 // Check flexible array members.
6810 struct incomplete_array *ia =
6811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6813 for (int i = 0; i < ia->datasize; ++i)
6814 ia->data[i] = i * 1.234;
6816 // Check named initializers.
6817 struct named_init ni = {
6819 .name = L"Test wide string",
6820 .average = 543.34343,
6825 int dynamic_array[ni.number];
6826 dynamic_array[ni.number - 1] = 543;
6828 // work around unused variable warnings
6829 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6830 || dynamic_array[ni.number - 1] != 543);
6836 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6838 CC
="$ac_save_CC $ac_arg"
6839 if ac_fn_c_try_compile
"$LINENO"; then :
6840 ac_cv_prog_cc_c99
=$ac_arg
6842 rm -f core conftest.err conftest.
$ac_objext
6843 test "x$ac_cv_prog_cc_c99" != "xno" && break
6845 rm -f conftest.
$ac_ext
6850 case "x$ac_cv_prog_cc_c99" in
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6853 $as_echo "none needed" >&6; } ;;
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6856 $as_echo "unsupported" >&6; } ;;
6858 CC
="$CC $ac_cv_prog_cc_c99"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6860 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6862 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6863 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6867 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6870 ac_cv_prog_cc_c89
=no
6872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6876 #include <sys/types.h>
6877 #include <sys/stat.h>
6878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6879 struct buf { int x; };
6880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6881 static char *e (p, i)
6887 static char *f (char * (*g) (char **, int), char **p, ...)
6892 s = g (p, va_arg (v,int));
6897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6898 function prototypes and stuff, but not '\xHH' hex character constants.
6899 These don't provoke an error unfortunately, instead are silently treated
6900 as 'x'. The following induces an error, until -std is added to get
6901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6902 array size at least. It's necessary to write '\x00'==0 to get something
6903 that's true only with -std. */
6904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6907 inside strings and character constants. */
6909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6911 int test (int i, double x);
6912 struct s1 {int (*f) (int a);};
6913 struct s2 {int (*f) (double a);};
6914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6925 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6928 CC
="$ac_save_CC $ac_arg"
6929 if ac_fn_c_try_compile
"$LINENO"; then :
6930 ac_cv_prog_cc_c89
=$ac_arg
6932 rm -f core conftest.err conftest.
$ac_objext
6933 test "x$ac_cv_prog_cc_c89" != "xno" && break
6935 rm -f conftest.
$ac_ext
6940 case "x$ac_cv_prog_cc_c89" in
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6943 $as_echo "none needed" >&6; } ;;
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6946 $as_echo "unsupported" >&6; } ;;
6948 CC
="$CC $ac_cv_prog_cc_c89"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6952 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6953 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6955 ac_cv_prog_cc_stdc
=no
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6962 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6963 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6967 case $ac_cv_prog_cc_stdc in #(
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6970 $as_echo "unsupported" >&6; } ;; #(
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6973 $as_echo "none needed" >&6; } ;; #(
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6976 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6981 # Code from module alloca-opt:
6982 # Code from module allocator:
6983 # Code from module c-ctype:
6984 # Code from module c-strcase:
6985 # Code from module careadlinkat:
6986 # Code from module clock-time:
6987 # Code from module close-stream:
6988 # Code from module crypto/md5:
6989 # Code from module crypto/sha1:
6990 # Code from module crypto/sha256:
6991 # Code from module crypto/sha512:
6992 # Code from module dosname:
6993 # Code from module dtoastr:
6994 # Code from module dtotimespec:
6995 # Code from module dup2:
6996 # Code from module environ:
6997 # Code from module euidaccess:
6998 # Code from module execinfo:
6999 # Code from module extensions:
7001 # Code from module extern-inline:
7002 # Code from module faccessat:
7003 # Code from module fcntl-h:
7004 # Code from module filemode:
7005 # Code from module fpending:
7006 # Code from module getgroups:
7007 # Code from module getloadavg:
7008 # Code from module getopt-gnu:
7009 # Code from module getopt-posix:
7010 # Code from module gettext-h:
7011 # Code from module gettime:
7012 # Code from module gettimeofday:
7013 # Code from module group-member:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7020 # Code from module lstat:
7021 # Code from module manywarnings:
7022 # Code from module mktime:
7023 # Code from module multiarch:
7024 # Code from module nocrash:
7025 # Code from module pathmax:
7026 # Code from module pselect:
7027 # Code from module pthread_sigmask:
7028 # Code from module readlink:
7029 # Code from module root-uid:
7030 # Code from module signal-h:
7031 # Code from module snippet/_Noreturn:
7032 # Code from module snippet/arg-nonnull:
7033 # Code from module snippet/c++defs:
7034 # Code from module snippet/warn-on-use:
7035 # Code from module socklen:
7036 # Code from module ssize_t:
7037 # Code from module stat:
7038 # Code from module stat-time:
7039 # Code from module stdalign:
7040 # Code from module stdarg:
7044 # Code from module stdbool:
7045 # Code from module stddef:
7046 # Code from module stdint:
7047 # Code from module stdio:
7048 # Code from module stdlib:
7049 # Code from module strftime:
7050 # Code from module strtoimax:
7051 # Code from module strtoll:
7052 # Code from module strtoull:
7053 # Code from module strtoumax:
7054 # Code from module symlink:
7055 # Code from module sys_select:
7056 # Code from module sys_stat:
7057 # Code from module sys_time:
7058 # Code from module time:
7059 # Code from module time_r:
7060 # Code from module timer-time:
7061 # Code from module timespec:
7062 # Code from module timespec-add:
7063 # Code from module timespec-sub:
7064 # Code from module u64:
7065 # Code from module unistd:
7066 # Code from module utimens:
7067 # Code from module verify:
7068 # Code from module warnings:
7069 # Code from module xalloc-oversized:
7072 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7073 # if -g3 works and the user does not specify CFLAGS.
7074 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7075 if test "$ac_test_CFLAGS" != set; then
7078 emacs_g3_CFLAGS
='-g3';;
7080 emacs_g3_CFLAGS
='-g3 -O2';;
7082 emacs_g3_CFLAGS
='';;
7084 if test -n "$emacs_g3_CFLAGS"; then
7085 emacs_save_CFLAGS
=$CFLAGS
7086 CFLAGS
=$emacs_g3_CFLAGS
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7088 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7089 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7103 if ac_fn_c_try_link
"$LINENO"; then :
7104 emacs_cv_prog_cc_g3
=yes
7106 emacs_cv_prog_cc_g3
=no
7108 rm -f core conftest.err conftest.
$ac_objext \
7109 conftest
$ac_exeext conftest.
$ac_ext
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7112 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7113 if test $emacs_cv_prog_cc_g3 = yes; then
7114 CFLAGS
=$emacs_g3_CFLAGS
7116 CFLAGS
=$emacs_save_CFLAGS
7121 # Check whether --enable-gcc-warnings was given.
7122 if test "${enable_gcc_warnings+set}" = set; then :
7123 enableval
=$enable_gcc_warnings; case $enableval in
7125 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7127 gl_gcc_warnings
=$enableval
7134 # Check whether --enable-link-time-optimization was given.
7135 if test "${enable_link_time_optimization+set}" = set; then :
7136 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7138 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7140 if test x
$GCC = xyes
; then
7141 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7142 if test x
$CPUS != x
; then
7148 CFLAGS
="$CFLAGS $LTO"
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7160 if ac_fn_c_try_compile
"$LINENO"; then :
7161 ac_lto_supported
=yes
7165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7166 CFLAGS
="$old_CFLAGS"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7169 $as_echo "$ac_lto_supported" >&6; }
7170 if test "$ac_lto_supported" = "yes"; then
7171 CFLAGS
="$CFLAGS $LTO"
7177 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7178 # ------------------------------------------------
7179 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7180 # Otherwise, run RUN-IF-NOT-FOUND.
7183 # When compiling with GCC, prefer -isystem to -I when including system
7184 # include files, to avoid generating useless diagnostics for the files.
7185 if test "$gl_gcc_warnings" != yes; then
7190 # This, $nw, is the list of warnings we disable.
7193 case $with_x_toolkit in
7194 lucid | athena | motif
)
7195 # Old toolkits mishandle 'const'.
7196 nw
="$nw -Wwrite-strings"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7200 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7201 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7205 gl_save_compiler_FLAGS
="$CFLAGS"
7206 as_fn_append CFLAGS
" -Werror"
7207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7218 if ac_fn_c_try_compile
"$LINENO"; then :
7219 gl_cv_warn_c__Werror
=yes
7221 gl_cv_warn_c__Werror
=no
7223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 CFLAGS
="$gl_save_compiler_FLAGS"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7228 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7229 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7230 as_fn_append WERROR_CFLAGS
" -Werror"
7238 nw
="$nw -Waggregate-return" # anachronistic
7239 nw
="$nw -Wlong-long" # C90 is anachronistic
7240 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7241 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7242 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7243 nw
="$nw -Wcast-qual" # Too many warnings for now
7244 nw
="$nw -Wconversion" # Too many warnings for now
7245 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7246 nw
="$nw -Wsign-conversion" # Too many warnings for now
7247 nw
="$nw -Woverlength-strings" # Not a problem these days
7248 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7249 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7250 nw
="$nw -Wpadded" # Our structs are not padded
7251 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7252 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7253 nw
="$nw -Wformat-nonliteral" # we do this a lot
7254 nw
="$nw -Wvla" # warnings in gettext.h
7255 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7256 nw
="$nw -Wswitch-enum" # Too many warnings for now
7257 nw
="$nw -Wswitch-default" # Too many warnings for now
7258 nw
="$nw -Wfloat-equal" # warns about high-quality code
7259 nw
="$nw -Winline" # OK to ignore 'inline'
7260 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7261 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7262 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7264 # Emacs doesn't care about shadowing; see
7265 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7268 # The following lines should be removable at some point.
7269 nw
="$nw -Wstack-protector"
7270 nw
="$nw -Wstrict-overflow"
7271 nw
="$nw -Wsuggest-attribute=pure"
7275 if test -n "$GCC"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7278 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7279 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7283 gl_save_CFLAGS
="$CFLAGS"
7284 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7296 if ac_fn_c_try_compile
"$LINENO"; then :
7297 gl_cv_cc_nomfi_supported
=yes
7299 gl_cv_cc_nomfi_supported
=no
7301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 CFLAGS
="$gl_save_CFLAGS"
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7306 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7308 if test "$gl_cv_cc_nomfi_supported" = yes; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7310 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7311 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7315 gl_save_CFLAGS
="$CFLAGS"
7316 CFLAGS
="$CFLAGS -W -Werror"
7317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7321 typedef struct { int a; int b; } s_t;
7333 if ac_fn_c_try_compile
"$LINENO"; then :
7334 gl_cv_cc_nomfi_needed
=no
7336 gl_cv_cc_nomfi_needed
=yes
7338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7339 CFLAGS
="$gl_save_CFLAGS"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7344 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7348 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7349 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7353 gl_save_CFLAGS
="$CFLAGS"
7354 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7366 if ac_fn_c_try_compile
"$LINENO"; then :
7367 gl_cv_cc_uninitialized_supported
=yes
7369 gl_cv_cc_uninitialized_supported
=no
7371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7372 CFLAGS
="$gl_save_CFLAGS"
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7376 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7380 # List all gcc warning categories.
7382 for gl_manywarn_item
in \
7389 -Wbad-function-cast \
7390 -Wbuiltin-macro-redefined \
7396 -Wcoverage-mismatch \
7399 -Wdeprecated-declarations \
7400 -Wdisabled-optimization \
7402 -Wdouble-promotion \
7407 -Wformat-contains-nul \
7408 -Wformat-extra-args \
7409 -Wformat-nonliteral \
7412 -Wformat-zero-length \
7414 -Wfree-nonheap-object \
7415 -Wignored-qualifiers \
7417 -Wimplicit-function-declaration \
7421 -Wint-to-pointer-cast \
7422 -Winvalid-memory-model \
7424 -Wjump-misses-init \
7427 -Wmaybe-uninitialized \
7429 -Wmissing-declarations \
7430 -Wmissing-field-initializers \
7431 -Wmissing-format-attribute \
7432 -Wmissing-include-dirs \
7433 -Wmissing-noreturn \
7434 -Wmissing-parameter-type \
7435 -Wmissing-prototypes \
7442 -Wold-style-declaration \
7443 -Wold-style-definition \
7445 -Woverlength-strings \
7448 -Wpacked-bitfield-compat \
7452 -Wpointer-to-int-cast \
7457 -Wsizeof-pointer-memaccess \
7461 -Wstrict-prototypes \
7462 -Wsuggest-attribute=const \
7463 -Wsuggest-attribute=format \
7464 -Wsuggest-attribute=noreturn \
7465 -Wsuggest-attribute=pure \
7475 -Wunreachable-code \
7476 -Wunsafe-loop-optimizations \
7478 -Wunused-but-set-parameter \
7479 -Wunused-but-set-variable \
7482 -Wunused-local-typedefs \
7484 -Wunused-parameter \
7490 -Wvector-operation-performance \
7492 -Wvolatile-register-var \
7496 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7499 # Disable specific options as needed.
7500 if test "$gl_cv_cc_nomfi_needed" = yes; then
7501 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7504 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7505 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7516 *" $gl_warn_item "*)
7519 gl_warn_set
="$gl_warn_set $gl_warn_item"
7526 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7528 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7529 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7530 $as_echo_n "(cached) " >&6
7533 gl_save_compiler_FLAGS
="$CFLAGS"
7534 as_fn_append CFLAGS
" $w"
7535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7546 if ac_fn_c_try_compile
"$LINENO"; then :
7547 eval "$as_gl_Warn=yes"
7549 eval "$as_gl_Warn=no"
7551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7552 CFLAGS
="$gl_save_compiler_FLAGS"
7555 eval ac_res
=\$
$as_gl_Warn
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7557 $as_echo "$ac_res" >&6; }
7558 eval as_val
=\$
$as_gl_Warn
7559 if test "x$as_val" = x
""yes; then :
7560 as_fn_append WARN_CFLAGS
" $w"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7566 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7567 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7571 gl_save_compiler_FLAGS
="$CFLAGS"
7572 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7584 if ac_fn_c_try_compile
"$LINENO"; then :
7585 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7587 gl_cv_warn_c__Wno_missing_field_initializers
=no
7589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7590 CFLAGS
="$gl_save_compiler_FLAGS"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7594 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7595 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7596 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7601 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7602 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7606 gl_save_compiler_FLAGS
="$CFLAGS"
7607 as_fn_append CFLAGS
" -Wno-sign-compare"
7608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7619 if ac_fn_c_try_compile
"$LINENO"; then :
7620 gl_cv_warn_c__Wno_sign_compare
=yes
7622 gl_cv_warn_c__Wno_sign_compare
=no
7624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7625 CFLAGS
="$gl_save_compiler_FLAGS"
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7629 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7630 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7631 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7634 # Too many warnings for now
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7636 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7637 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7641 gl_save_compiler_FLAGS
="$CFLAGS"
7642 as_fn_append CFLAGS
" -Wno-type-limits"
7643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7654 if ac_fn_c_try_compile
"$LINENO"; then :
7655 gl_cv_warn_c__Wno_type_limits
=yes
7657 gl_cv_warn_c__Wno_type_limits
=no
7659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7660 CFLAGS
="$gl_save_compiler_FLAGS"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7664 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7665 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7666 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7669 # Too many warnings for now
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7671 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7672 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7676 gl_save_compiler_FLAGS
="$CFLAGS"
7677 as_fn_append CFLAGS
" -Wno-switch"
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7689 if ac_fn_c_try_compile
"$LINENO"; then :
7690 gl_cv_warn_c__Wno_switch
=yes
7692 gl_cv_warn_c__Wno_switch
=no
7694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7695 CFLAGS
="$gl_save_compiler_FLAGS"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7699 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7700 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7701 as_fn_append WARN_CFLAGS
" -Wno-switch"
7704 # Too many warnings for now
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7706 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7707 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7711 gl_save_compiler_FLAGS
="$CFLAGS"
7712 as_fn_append CFLAGS
" -Wno-unused-parameter"
7713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7724 if ac_fn_c_try_compile
"$LINENO"; then :
7725 gl_cv_warn_c__Wno_unused_parameter
=yes
7727 gl_cv_warn_c__Wno_unused_parameter
=no
7729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7730 CFLAGS
="$gl_save_compiler_FLAGS"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7734 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7735 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7736 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7739 # Too many warnings for now
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7741 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7742 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7746 gl_save_compiler_FLAGS
="$CFLAGS"
7747 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7759 if ac_fn_c_try_compile
"$LINENO"; then :
7760 gl_cv_warn_c__Wno_format_nonliteral
=yes
7762 gl_cv_warn_c__Wno_format_nonliteral
=no
7764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7765 CFLAGS
="$gl_save_compiler_FLAGS"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7769 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7770 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7771 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7776 # In spite of excluding -Wlogical-op above, it is enabled, as of
7777 # gcc 4.5.0 20090517.
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7779 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7780 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
7784 gl_save_compiler_FLAGS
="$CFLAGS"
7785 as_fn_append CFLAGS
" -Wno-logical-op"
7786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7797 if ac_fn_c_try_compile
"$LINENO"; then :
7798 gl_cv_warn_c__Wno_logical_op
=yes
7800 gl_cv_warn_c__Wno_logical_op
=no
7802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 CFLAGS
="$gl_save_compiler_FLAGS"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7807 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7808 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7809 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7815 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7816 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7820 gl_save_compiler_FLAGS
="$CFLAGS"
7821 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7833 if ac_fn_c_try_compile
"$LINENO"; then :
7834 gl_cv_warn_c__fdiagnostics_show_option
=yes
7836 gl_cv_warn_c__fdiagnostics_show_option
=no
7838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7839 CFLAGS
="$gl_save_compiler_FLAGS"
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7843 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7844 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7845 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7850 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7851 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7855 gl_save_compiler_FLAGS
="$CFLAGS"
7856 as_fn_append CFLAGS
" -funit-at-a-time"
7857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7868 if ac_fn_c_try_compile
"$LINENO"; then :
7869 gl_cv_warn_c__funit_at_a_time
=yes
7871 gl_cv_warn_c__funit_at_a_time
=no
7873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7874 CFLAGS
="$gl_save_compiler_FLAGS"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7878 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7879 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7880 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7886 $as_echo "#define lint 1" >>confdefs.h
7890 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7893 # We use a slightly smaller set of warning options for lib/.
7894 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7896 nw
="$nw -Wunused-macros"
7900 set x
$WARN_CFLAGS; shift
7904 *" $gl_warn_item "*)
7907 gl_warn_set
="$gl_warn_set $gl_warn_item"
7911 GNULIB_WARN_CFLAGS
=$gl_warn_set
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7919 $as_echo_n "checking whether ln -s works... " >&6; }
7921 if test "$LN_S" = "ln -s"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7923 $as_echo "yes" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7926 $as_echo "no, using $LN_S" >&6; }
7930 # Extract the first word of "install-info", so it can be a program name with args.
7931 set dummy install-info
; ac_word
=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7937 case $INSTALL_INFO in
7939 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7943 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7961 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7962 if test -n "$INSTALL_INFO"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7964 $as_echo "$INSTALL_INFO" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7971 # Extract the first word of "gzip", so it can be a program name with args.
7972 set dummy
gzip; ac_word
=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7980 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir
=.
7988 for ac_exec_ext
in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8002 if test -n "$GZIP_PROG"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8004 $as_echo "$GZIP_PROG" >&6; }
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8012 if test $opsys = gnu-linux
; then
8013 # Extract the first word of "paxctl", so it can be a program name with args.
8014 set dummy paxctl
; ac_word
=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8022 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8026 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 PAXCTL
=$ac_cv_path_PAXCTL
8044 if test -n "$PAXCTL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8046 $as_echo "$PAXCTL" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8053 if test "X$PAXCTL" != X
; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8055 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8067 if ac_fn_c_try_link
"$LINENO"; then :
8068 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8070 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }; PAXCTL
=""; fi
8073 rm -f core conftest.err conftest.
$ac_objext \
8074 conftest
$ac_exeext conftest.
$ac_ext
8078 ## Need makeinfo >= 4.7 (?) to build the manuals.
8079 # Extract the first word of "makeinfo", so it can be a program name with args.
8080 set dummy makeinfo
; ac_word
=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8088 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir
=.
8096 for ac_exec_ext
in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8110 MAKEINFO
=$ac_cv_path_MAKEINFO
8111 if test -n "$MAKEINFO"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8113 $as_echo "$MAKEINFO" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8120 if test "$MAKEINFO" != "no" && \
8121 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
8125 ## Makeinfo is unusual. For a released Emacs, the manuals are
8126 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8127 ## therefore in the category of "special tools" not normally required, which
8128 ## configure does not have to check for (eg autoconf itself).
8129 ## In a Bazaar checkout on the other hand, the manuals are not included.
8130 ## So makeinfo is a requirement to build from Bazaar, and configure
8131 ## should test for it as it does for any other build requirement.
8132 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8133 ## with pre-built manuals, from a Bazaar checkout.
8136 if test "$MAKEINFO" = "no"; then
8138 if test "x${with_makeinfo}" = "xno"; then
8140 elif test ! -e $srcdir/info
/emacs
; then
8141 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8142 source tree does not seem to have pre-built manuals in the \`info' directory.
8143 Either install a suitable version of makeinfo, or re-run configure
8144 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8150 INFO_OPTS
=--no-split
8155 if test x
$GCC = xyes
; then
8156 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8157 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8159 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8160 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8164 late_LDFLAGS
=$LDFLAGS
8165 if test x
$GCC = xyes
; then
8166 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8168 LDFLAGS
="$LDFLAGS -znocombreloc"
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8172 $as_echo_n "checking for -znocombreloc... " >&6; }
8173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8184 if ac_fn_c_try_link
"$LINENO"; then :
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8186 $as_echo "yes" >&6; }
8188 LDFLAGS
=$late_LDFLAGS
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8192 rm -f core conftest.err conftest.
$ac_objext \
8193 conftest
$ac_exeext conftest.
$ac_ext
8196 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8198 your-opsys-here
) CANNOT_DUMP
=yes ;;
8201 test "$CANNOT_DUMP" = "yes" && \
8203 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8209 UNEXEC_OBJ
=unexelf.o
8211 # MSDOS uses unexcoff.o
8212 # MSWindows uses unexw32.o
8214 UNEXEC_OBJ
=unexaix.o
8220 UNEXEC_OBJ
=unexmacosx.o
8223 UNEXEC_OBJ
=unexhp9k800.o
8226 # Use the Solaris dldump() function, called from unexsol.c, to dump
8227 # emacs, instead of the generic ELF dump code found in unexelf.c.
8228 # The resulting binary has a complete symbol table, and is better
8229 # for debugging and other observability tools (debuggers, pstack, etc).
8231 # If you encounter a problem using dldump(), please consider sending
8232 # a message to the OpenSolaris tools-linking mailing list:
8233 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8235 # It is likely that dldump() works with older Solaris too, but this has
8236 # not been tested, so for now this change is for Solaris 10 or newer.
8237 UNEXEC_OBJ
=unexsol.o
8244 ## Let `ld' find image libs and similar things in /usr/local/lib.
8245 ## The system compiler, GCC, has apparently been modified to not
8246 ## look there, contrary to what a stock GCC would do.
8247 ### It's not our place to do this. See bug#10313#17.
8248 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8253 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8254 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8258 ### It's not our place to do this. See bug#10313#17.
8259 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8264 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8265 ## otherwise Emacs dumps core on elf systems.
8266 LD_SWITCH_SYSTEM
="-Z"
8271 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8273 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8274 ## which has not been defined yet. When this was handled with cpp,
8275 ## it was expanded to null when configure sourced the s/*.h file.
8276 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8277 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8278 ## (or somesuch), but because it is supposed to go at the _front_
8279 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8280 ## Compare with the gnu-linux case below, which added to the end
8281 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8282 ## LD_SWITCH_SYSTEM_TEMACS.
8285 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8292 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8293 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8297 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8298 ## With ELF, make sure that all common symbols get allocated to in the
8299 ## data section. Otherwise, the dump of temacs may miss variables in
8300 ## the shared library that have been initialized. For example, with
8301 ## GNU libc, __malloc_initialized would normally be resolved to the
8302 ## shared library's .bss section, which is fatal.
8303 if test "x$GCC" = "xyes"; then
8304 C_SWITCH_MACHINE
="-fno-common"
8306 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8309 UNEXEC_OBJ
=unexalpha.o
8318 ## Some programs in src produce warnings saying certain subprograms
8319 ## are too complex and need a MAXMEM value greater than 2000 for
8320 ## additional optimization. --nils@exp-math.uni-essen.de
8321 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8322 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8323 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8324 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8330 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8331 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8333 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8335 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8337 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8339 ## Motif needs -lgen.
8340 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8345 ### Make sure subsequent tests use flags consistent with the build flags.
8347 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8348 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8350 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8353 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8355 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8362 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8367 START_FILES
='pre-crt0.o'
8370 ## Adding -lm confuses the dynamic linker, so omit it.
8372 START_FILES
='pre-crt0.o'
8375 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8376 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8377 SYSTEM_TYPE
=berkeley-unix
8379 gnu-linux | gnu-kfreebsd
)
8380 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8381 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8383 hpux10-20 | hpux11
)
8385 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8388 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8389 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8390 SYSTEM_TYPE
=berkeley-unix
8394 SYSTEM_TYPE
=usg-unix-v
8402 cat >>confdefs.h
<<_ACEOF
8403 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8409 for file in x
$LIB_STANDARD $START_FILES; do
8411 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8415 if test "x$crt_files" != x
; then
8417 ## If user specified a crt-dir, use that unconditionally.
8420 if test "X$CRT_DIR" = "X"; then
8422 CRT_DIR
=/usr
/lib
# default
8424 case "$canonical" in
8425 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8426 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8427 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8428 ## For anything else (eg /usr/lib32), it is up the user to specify
8429 ## the location (bug#5655).
8430 ## Test for crtn.o, not just the directory, because sometimes the
8431 ## directory exists but does not have the relevant files (bug#1287).
8432 ## FIXME better to test for binary compatibility somehow.
8433 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8436 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8440 hpux10-20
) CRT_DIR
=/lib
;;
8443 test "x${GCC}" = xyes
&& crt_gcc
=yes
8449 for file in $crt_files; do
8451 ## If we're using gcc, try to determine it automatically by asking
8452 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8453 ## system-dependent default from above.]
8454 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8456 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8459 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8460 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8461 X"$crt_file" : 'X\(//\)[^/]' \| \
8462 X"$crt_file" : 'X\(//\)$' \| \
8463 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8464 $as_echo X"$crt_file" |
8465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8488 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8491 test "x$crt_missing" = x || \
8492 as_fn_error
"Required file(s) not found:$crt_missing
8493 Try using the --with-crt-dir option." "$LINENO" 5
8495 fi # crt_files != ""
8501 if test -f $CRT_DIR/crti.o
; then
8503 test -f $CRT_DIR/crtn.o || \
8504 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8506 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8507 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8513 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8514 pre_PKG_CONFIG_LIBS
=$LIBS
8516 # Extract the first word of "pkg-config", so it can be a program name with args.
8517 set dummy pkg-config
; ac_word
=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
8525 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8532 test -z "$as_dir" && as_dir
=.
8533 for ac_exec_ext
in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8547 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8548 if test -n "$PKG_CONFIG"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8550 $as_echo "$PKG_CONFIG" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8561 if test "${with_sound}" != "no"; then
8562 # Sound support for GNU/Linux and the free BSDs.
8563 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8565 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8567 eval as_val
=\$
$as_ac_Header
8568 if test "x$as_val" = x
""yes; then :
8569 cat >>confdefs.h
<<_ACEOF
8570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 have_sound_header
=yes
8577 # Emulation library used on NetBSD.
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8579 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8580 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8583 ac_check_lib_save_LIBS
=$LIBS
8584 LIBS
="-lossaudio $LIBS"
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8588 /* Override any GCC internal prototype to avoid an error.
8589 Use char because int might match the return type of a GCC
8590 builtin and then its argument prototype would still apply. */
8598 return _oss_ioctl ();
8603 if ac_fn_c_try_link
"$LINENO"; then :
8604 ac_cv_lib_ossaudio__oss_ioctl
=yes
8606 ac_cv_lib_ossaudio__oss_ioctl
=no
8608 rm -f core conftest.err conftest.
$ac_objext \
8609 conftest
$ac_exeext conftest.
$ac_ext
8610 LIBS
=$ac_check_lib_save_LIBS
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8613 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8614 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8623 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8627 if test "$PKG_CONFIG" = "no" ; then
8630 PKG_CONFIG_MIN_VERSION
=0.9.0
8631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8633 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8635 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8636 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8637 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8644 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8645 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8647 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8654 ## If we have a custom action on failure, don't print errors, but
8655 ## do set a variable so people can do so. Do it in a subshell
8656 ## to capture any diagnostics in invoking pkg-config.
8657 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8669 if test $succeeded = yes; then
8675 if test $HAVE_ALSA = yes; then
8676 SAVE_CFLAGS
="$CFLAGS"
8678 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8679 LIBS
="$ALSA_LIBS $LIBS"
8680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #include <asoundlib.h>
8686 snd_lib_error_set_handler (0);
8691 if ac_fn_c_try_compile
"$LINENO"; then :
8692 emacs_alsa_normal
=yes
8694 emacs_alsa_normal
=no
8696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8697 if test "$emacs_alsa_normal" != yes; then
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <alsa/asoundlib.h>
8704 snd_lib_error_set_handler (0);
8709 if ac_fn_c_try_compile
"$LINENO"; then :
8710 emacs_alsa_subdir
=yes
8712 emacs_alsa_subdir
=no
8714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 if test "$emacs_alsa_subdir" != yes; then
8716 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8718 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8721 CFLAGS
="$SAVE_CFLAGS"
8723 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8724 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8726 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8730 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8732 gnu-linux|freebsd|netbsd
)
8734 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8746 for ac_header
in $ac_header_list
8748 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8751 eval as_val
=\$
$as_ac_Header
8752 if test "x$as_val" = x
""yes; then :
8753 cat >>confdefs.h
<<_ACEOF
8754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8788 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/personality.h>
8795 personality (PER_LINUX32)
8800 if ac_fn_c_try_compile
"$LINENO"; then :
8801 emacs_cv_personality_linux32
=yes
8803 emacs_cv_personality_linux32
=no
8805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8807 $as_echo "$emacs_cv_personality_linux32" >&6; }
8809 if test $emacs_cv_personality_linux32 = yes; then
8811 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8815 for ac_header
in term.h
8817 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8818 if test "x$ac_cv_header_term_h" = x
""yes; then :
8819 cat >>confdefs.h
<<_ACEOF
8820 #define HAVE_TERM_H 1
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8829 if test "${ac_cv_header_time+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <sys/types.h>
8835 #include <sys/time.h>
8841 if ((struct tm *) 0)
8847 if ac_fn_c_try_compile
"$LINENO"; then :
8848 ac_cv_header_time
=yes
8850 ac_cv_header_time
=no
8852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8855 $as_echo "$ac_cv_header_time" >&6; }
8856 if test $ac_cv_header_time = yes; then
8858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8862 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8865 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8871 cat >>confdefs.h
<<_ACEOF
8872 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8875 if test $ac_cv_have_decl_sys_siglist != yes; then
8876 # For Tru64, at least:
8877 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8880 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8886 cat >>confdefs.h
<<_ACEOF
8887 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8890 if test $ac_cv_have_decl___sys_siglist = yes; then
8892 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8897 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8898 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 #include <sys/types.h>
8904 #include <sys/wait.h>
8906 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8909 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8917 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8922 if ac_fn_c_try_compile
"$LINENO"; then :
8923 ac_cv_header_sys_wait_h
=yes
8925 ac_cv_header_sys_wait_h
=no
8927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8930 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8931 if test $ac_cv_header_sys_wait_h = yes; then
8933 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8939 $as_echo_n "checking for speed_t... " >&6; }
8940 if test "${emacs_cv_speed_t+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <termios.h>
8954 if ac_fn_c_try_compile
"$LINENO"; then :
8955 emacs_cv_speed_t
=yes
8959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8962 $as_echo "$emacs_cv_speed_t" >&6; }
8963 if test $emacs_cv_speed_t = yes; then
8965 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8972 for ac_header
in net
/if.h
8974 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8979 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8980 cat >>confdefs.h
<<_ACEOF
8981 #define HAVE_NET_IF_H 1
8988 for ac_header
in ifaddrs.h
8990 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8995 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8996 cat >>confdefs.h
<<_ACEOF
8997 #define HAVE_IFADDRS_H 1
9004 for ac_header
in net
/if_dl.h
9006 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9007 #if HAVE_SYS_SOCKET_H
9008 #include <sys/socket.h>
9011 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9012 cat >>confdefs.h
<<_ACEOF
9013 #define HAVE_NET_IF_DL_H 1
9021 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9022 #if HAVE_SYS_SOCKET_H
9023 #include <sys/socket.h>
9029 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9031 cat >>confdefs.h
<<_ACEOF
9032 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9037 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9038 #if HAVE_SYS_SOCKET_H
9039 #include <sys/socket.h>
9045 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9053 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9054 #if HAVE_SYS_SOCKET_H
9055 #include <sys/socket.h>
9061 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9063 cat >>confdefs.h
<<_ACEOF
9064 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9069 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9070 #if HAVE_SYS_SOCKET_H
9071 #include <sys/socket.h>
9077 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9079 cat >>confdefs.h
<<_ACEOF
9080 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9085 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9086 #if HAVE_SYS_SOCKET_H
9087 #include <sys/socket.h>
9093 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9095 cat >>confdefs.h
<<_ACEOF
9096 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9101 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9102 #if HAVE_SYS_SOCKET_H
9103 #include <sys/socket.h>
9109 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9111 cat >>confdefs.h
<<_ACEOF
9112 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9124 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9126 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9128 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9129 if test "x$testval" != x
; then
9132 ac_enable_autodepend
=no
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9135 $as_echo "$HAVE_GNU_MAKE" >&6; }
9136 if test $HAVE_GNU_MAKE = yes; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9138 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9139 SAVE_CFLAGS
="$CFLAGS"
9140 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9152 if ac_fn_c_try_compile
"$LINENO"; then :
9155 ac_enable_autodepend
=no
9157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9158 CFLAGS
="$SAVE_CFLAGS"
9159 test -f deps.d || ac_enable_autodepend
=no
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9162 $as_echo "$ac_enable_autodepend" >&6; }
9164 if test $ac_enable_autodepend = yes; then
9165 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9166 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9167 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9168 deps_frag
=autodeps.mk
9171 deps_frag
=$srcdir/src
/$deps_frag
9177 lisp_frag
=$srcdir/src
/lisp.mk
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9182 $as_echo_n "checking for long file names... " >&6; }
9183 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9186 ac_cv_sys_long_file_names
=yes
9187 # Test for long file names in all the places we know might matter:
9188 # . the current directory, where building will happen
9189 # $prefix/lib where we will be installing things
9190 # $exec_prefix/lib likewise
9191 # $TMPDIR if set, where it might want to write temporary files
9192 # /tmp where it might want to write temporary files
9195 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9196 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9197 # in the usual case where exec_prefix is '${prefix}'.
9199 . |
/* | ?
:[\\/]*) ;; #(
9202 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9203 ac_xdir
=$ac_dir/cf$$
9204 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9205 ac_tf1
=$ac_xdir/conftest9012345
9206 ac_tf2
=$ac_xdir/conftest9012346
9207 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9208 ac_cv_sys_long_file_names
=no
9209 rm -f -r "$ac_xdir" 2>/dev
/null
9210 test $ac_cv_sys_long_file_names = no
&& break
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9214 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9215 if test $ac_cv_sys_long_file_names = yes; then
9217 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9222 #### Choose a window system.
9224 ## We leave window_system equal to none if
9225 ## we end up building without one. Any new window system should
9226 ## set window_system to an appropriate value and add objects to
9227 ## window-system-specific substs.
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9231 $as_echo_n "checking for X... " >&6; }
9234 # Check whether --with-x was given.
9235 if test "${with_x+set}" = set; then :
9239 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9240 if test "x$with_x" = xno
; then
9241 # The user explicitly disabled X.
9244 case $x_includes,$x_libraries in #(
9245 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9246 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9249 # One or both of the vars are not set, and there is no cached value.
9250 ac_x_includes
=no ac_x_libraries
=no
9251 rm -f -r conftest.dir
9252 if mkdir conftest.dir
; then
9254 cat >Imakefile
<<'_ACEOF'
9256 @echo incroot='${INCROOT}'
9258 @echo usrlibdir='${USRLIBDIR}'
9260 @echo libdir='${LIBDIR}'
9262 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9264 for ac_var
in incroot usrlibdir libdir
; do
9265 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9267 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9268 for ac_extension
in a so sl dylib la dll
; do
9269 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9270 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9271 ac_im_usrlibdir
=$ac_im_libdir; break
9274 # Screen out bogus values from the imake configuration. They are
9275 # bogus both because they are the default anyway, and because
9276 # using them would break gcc on systems where it needs fixed includes.
9277 case $ac_im_incroot in
9278 /usr
/include
) ac_x_includes
= ;;
9279 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9281 case $ac_im_usrlibdir in
9282 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9283 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9287 rm -f -r conftest.dir
9290 # Standard set of common directories for X headers.
9291 # Check X11 before X11Rn because it is often a symlink to the current release.
9305 /usr/local/X11/include
9306 /usr/local/X11R7/include
9307 /usr/local/X11R6/include
9308 /usr/local/X11R5/include
9309 /usr/local/X11R4/include
9311 /usr/local/include/X11
9312 /usr/local/include/X11R7
9313 /usr/local/include/X11R6
9314 /usr/local/include/X11R5
9315 /usr/local/include/X11R4
9319 /usr/XFree86/include/X11
9323 /usr/unsupported/include
9325 /usr/local/x11r5/include
9326 /usr/lpp/Xamples/include
9328 /usr/openwin/include
9329 /usr/openwin/share/include'
9331 if test "$ac_x_includes" = no
; then
9332 # Guess where to find include files, by looking for Xlib.h.
9333 # First, try using that file with no special directory specified.
9334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <X11/Xlib.h>
9338 if ac_fn_c_try_cpp
"$LINENO"; then :
9339 # We can compile using X headers with no special include directory.
9342 for ac_dir
in $ac_x_header_dirs; do
9343 if test -r "$ac_dir/X11/Xlib.h"; then
9344 ac_x_includes
=$ac_dir
9349 rm -f conftest.err conftest.
$ac_ext
9350 fi # $ac_x_includes = no
9352 if test "$ac_x_libraries" = no
; then
9353 # Check for the libraries.
9354 # See if we find them without any special options.
9355 # Don't add to $LIBS permanently.
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <X11/Xlib.h>
9369 if ac_fn_c_try_link
"$LINENO"; then :
9371 # We can link X programs with no special library path.
9375 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9377 # Don't even attempt the hair of trying to link an X program!
9378 for ac_extension
in a so sl dylib la dll
; do
9379 if test -r "$ac_dir/libX11.$ac_extension"; then
9380 ac_x_libraries
=$ac_dir
9386 rm -f core conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 fi # $ac_x_libraries = no
9390 case $ac_x_includes,$ac_x_libraries in #(
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x
="have_x=no";; #(
9395 # Record where we found X for the cache.
9396 ac_cv_have_x
="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9404 eval "$ac_cv_have_x"
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9414 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x
="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9423 if test "$no_x" != yes; then
9427 LD_SWITCH_X_SITE_RPATH
=
9428 if test "${x_libraries}" != NONE
; then
9429 if test -n "${x_libraries}"; then
9430 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9431 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9433 x_default_search_path
=""
9434 x_search_path
=${x_libraries}
9435 if test -z "${x_search_path}"; then
9436 x_search_path
=/usr
/lib
9438 for x_library
in `echo ${x_search_path}: | \
9439 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9441 ${x_library}/X11/%L/%T/%N%C%S:\
9442 ${x_library}/X11/%l/%T/%N%C%S:\
9443 ${x_library}/X11/%T/%N%C%S:\
9444 ${x_library}/X11/%L/%T/%N%S:\
9445 ${x_library}/X11/%l/%T/%N%S:\
9446 ${x_library}/X11/%T/%N%S"
9447 if test x
"${x_default_search_path}" = x
; then
9448 x_default_search_path
=${x_search_path}
9450 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9456 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9457 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9460 if test x
"${x_includes}" = x
; then
9461 bitmapdir
=/usr
/include
/X11
/bitmaps
9463 # accumulate include directories that have X11 bitmap subdirectories
9465 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9466 if test -d "${bmd}/X11/bitmaps"; then
9467 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9469 if test -d "${bmd}/bitmaps"; then
9470 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9473 if test ${bmd_acc} != "dummyval"; then
9474 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9481 tmp_CPPFLAGS
="$CPPFLAGS"
9482 tmp_CFLAGS
="$CFLAGS"
9483 CPPFLAGS
="$CPPFLAGS -x objective-c"
9484 CFLAGS
="$CFLAGS -x objective-c"
9485 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9487 if test "${with_ns}" != no
; then
9488 if test "${opsys}" = darwin
; then
9490 ns_appdir
=`pwd`/nextstep
/Emacs.app
9491 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9492 ns_appresdir
=${ns_appdir}/Contents
/Resources
9493 ns_appsrc
=Cocoa
/Emacs.base
9494 elif test -f $GNUSTEP_CONFIG_FILE; then
9496 ns_appdir
=`pwd`/nextstep
/Emacs.app
9497 ns_appbindir
=${ns_appdir}
9498 ns_appresdir
=${ns_appdir}/Resources
9499 ns_appsrc
=GNUstep
/Emacs.base
9500 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9501 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9502 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9503 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9504 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9505 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9506 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9507 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9508 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9509 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9510 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9515 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9516 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 #include <GNUstepBase/GSConfig.h>
9525 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9534 if ac_fn_c_try_compile
"$LINENO"; then :
9535 emacs_cv_objc_exceptions
=yes
9537 emacs_cv_objc_exceptions
=no
9539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9542 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9543 if test $emacs_cv_objc_exceptions = yes; then
9545 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9547 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9551 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9553 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9554 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9557 as_fn_error
"\`--with-ns' was specified, but the include
9558 files are missing or cannot be compiled." "$LINENO" 5
9563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 #include <AppKit/AppKit.h>
9570 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9571 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9574 #error "OSX 10.4 or newer required"
9582 if ac_fn_c_try_compile
"$LINENO"; then :
9587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <Foundation/NSObjCRuntime.h>
9599 if ac_fn_c_try_compile
"$LINENO"; then :
9600 ns_have_nsinteger
=yes
9602 ns_have_nsinteger
=no
9604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9605 if test $ns_osx_have_104 = no
; then
9606 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9608 if test $ns_have_nsinteger = yes; then
9610 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9617 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9618 ns_self_contained
=no
9621 if test "${HAVE_NS}" = yes; then
9622 if test "$with_toolkit_scroll_bars" = "no"; then
9623 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9626 window_system
=nextstep
9627 # set up packaging dirs
9628 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9629 ns_self_contained
=yes
9630 prefix
=${ns_appresdir}
9631 exec_prefix
=${ns_appbindir}
9632 libexecdir
="\${ns_appbindir}/libexec"
9633 archlibdir
="\${ns_appbindir}/libexec"
9634 docdir
="\${ns_appresdir}/etc"
9635 etcdir
="\${ns_appresdir}/etc"
9636 infodir
="\${ns_appresdir}/info"
9637 mandir
="\${ns_appresdir}/man"
9638 lispdir
="\${ns_appresdir}/lisp"
9639 leimdir
="\${ns_appresdir}/leim"
9640 INSTALL_ARCH_INDEP_EXTRA
=
9642 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9644 CFLAGS
="$tmp_CFLAGS"
9645 CPPFLAGS
="$tmp_CPPFLAGS"
9655 if test "${with_w32}" != no
; then
9656 if test "${opsys}" != "cygwin"; then
9657 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9659 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9660 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9663 as_fn_error
"\`--with-w32' was specified, but windows.h
9664 cannot be found." "$LINENO" 5
9669 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9671 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9672 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9673 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9674 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9679 if test "${HAVE_W32}" = "yes"; then
9684 ## $window_system is now set to the window system we will
9692 case "${window_system}" in
9697 case "${with_x_toolkit}" in
9698 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9699 motif
) USE_X_TOOLKIT
=MOTIF
;;
9701 term_header
=gtkutil.h
9702 USE_X_TOOLKIT
=none
;;
9703 gtk2
) with_gtk2
=yes
9704 term_header
=gtkutil.h
9705 USE_X_TOOLKIT
=none
;;
9706 gtk3
) with_gtk3
=yes
9707 term_header
=gtkutil.h
9708 USE_X_TOOLKIT
=none
;;
9709 no
) USE_X_TOOLKIT
=none
;;
9710 * ) USE_X_TOOLKIT
=maybe
;;
9714 term_header
=nsterm.h
9717 term_header
=w32term.h
9721 if test -n "${term_header}"; then
9723 cat >>confdefs.h
<<_ACEOF
9724 #define TERM_HEADER "${term_header}"
9729 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9730 # Extract the first word of "X", so it can be a program name with args.
9731 set dummy X
; ac_word
=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9737 if test -n "$HAVE_XSERVER"; then
9738 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9744 test -z "$as_dir" && as_dir
=.
9745 for ac_exec_ext
in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_prog_HAVE_XSERVER
="true"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9758 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9759 if test -n "$HAVE_XSERVER"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9761 $as_echo "$HAVE_XSERVER" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9768 if test "$HAVE_XSERVER" = true ||
9769 test -n "$DISPLAY" ||
9770 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9771 as_fn_error
"You seem to be running X, but no X development libraries
9772 were found. You should install the relevant development files for X
9773 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9774 sure you have development files for image handling, i.e.
9775 tiff, gif, jpeg, png and xpm.
9776 If you are sure you want Emacs compiled without X window support, pass
9778 to configure." "$LINENO" 5
9782 ### If we're using X11, we should use the X menu package.
9785 yes ) HAVE_MENUS
=yes ;;
9788 # Does the opsystem file prohibit the use of the GNU malloc?
9789 # Assume not, until told otherwise.
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9793 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9794 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 static void hook (void) {}
9804 malloc_set_state (malloc_get_state ());
9805 __after_morecore_hook = hook;
9806 __malloc_initialize_hook = hook;
9811 if ac_fn_c_try_link
"$LINENO"; then :
9812 emacs_cv_var_doug_lea_malloc
=yes
9814 emacs_cv_var_doug_lea_malloc
=no
9816 rm -f core conftest.err conftest.
$ac_objext \
9817 conftest
$ac_exeext conftest.
$ac_ext
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9820 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9821 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9826 ## darwin ld insists on the use of malloc routines in the System framework.
9827 darwin|sol2-10
) system_malloc
=yes ;;
9830 if test "${system_malloc}" = "yes"; then
9832 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9836 (The GNU allocators don't work with this system configuration.)"
9840 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9841 VMLIMIT_OBJ
=vm-limit.o
9846 if test "$doug_lea_malloc" = "yes" ; then
9847 if test "$GNU_MALLOC" = yes ; then
9849 (Using Doug Lea's new malloc from the GNU C Library.)"
9852 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9855 ## Use mmap directly for allocating larger buffers.
9856 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9857 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9858 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9860 gnu
*) REL_ALLOC
=no
;;
9864 if test x
"${REL_ALLOC}" = x
; then
9865 REL_ALLOC
=${GNU_MALLOC}
9868 use_mmap_for_buffers
=no
9870 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9880 for ac_func
in getpagesize
9882 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9883 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9884 cat >>confdefs.h
<<_ACEOF
9885 #define HAVE_GETPAGESIZE 1
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9892 $as_echo_n "checking for working mmap... " >&6; }
9893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9896 if test "$cross_compiling" = yes; then :
9897 ac_cv_func_mmap_fixed_mapped
=no
9899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 $ac_includes_default
9902 /* malloc might have been renamed as rpl_malloc. */
9905 /* Thanks to Mike Haertel and Jim Avera for this test.
9906 Here is a matrix of mmap possibilities:
9907 mmap private not fixed
9908 mmap private fixed at somewhere currently unmapped
9909 mmap private fixed at somewhere already mapped
9910 mmap shared not fixed
9911 mmap shared fixed at somewhere currently unmapped
9912 mmap shared fixed at somewhere already mapped
9913 For private mappings, we should verify that changes cannot be read()
9914 back from the file, nor mmap's back from the file at a different
9915 address. (There have been systems where private was not correctly
9916 implemented like the infamous i386 svr4.0, and systems where the
9917 VM page cache was not coherent with the file system buffer cache
9918 like early versions of FreeBSD and possibly contemporary NetBSD.)
9919 For shared mappings, we should conversely verify that changes get
9920 propagated back to all the places they're supposed to be.
9922 Grep wants private fixed already mapped.
9923 The main things grep needs to know about mmap are:
9924 * does it exist and is it safe to write into the mmap'd area
9925 * how to use it (BSD variants) */
9928 #include <sys/mman.h>
9930 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9934 /* This mess was copied from the GNU getpagesize.h. */
9935 #ifndef HAVE_GETPAGESIZE
9936 # ifdef _SC_PAGESIZE
9937 # define getpagesize() sysconf(_SC_PAGESIZE)
9938 # else /* no _SC_PAGESIZE */
9939 # ifdef HAVE_SYS_PARAM_H
9940 # include <sys/param.h>
9941 # ifdef EXEC_PAGESIZE
9942 # define getpagesize() EXEC_PAGESIZE
9943 # else /* no EXEC_PAGESIZE */
9945 # define getpagesize() NBPG * CLSIZE
9948 # endif /* no CLSIZE */
9949 # else /* no NBPG */
9951 # define getpagesize() NBPC
9952 # else /* no NBPC */
9954 # define getpagesize() PAGESIZE
9955 # endif /* PAGESIZE */
9956 # endif /* no NBPC */
9957 # endif /* no NBPG */
9958 # endif /* no EXEC_PAGESIZE */
9959 # else /* no HAVE_SYS_PARAM_H */
9960 # define getpagesize() 8192 /* punt totally */
9961 # endif /* no HAVE_SYS_PARAM_H */
9962 # endif /* no _SC_PAGESIZE */
9964 #endif /* no HAVE_GETPAGESIZE */
9969 char *data, *data2, *data3;
9974 pagesize = getpagesize ();
9976 /* First, make a file with some known garbage in it. */
9977 data = (char *) malloc (pagesize);
9980 for (i = 0; i < pagesize; ++i)
9981 *(data + i) = rand ();
9983 fd = creat ("conftest.mmap", 0600);
9986 if (write (fd, data, pagesize) != pagesize)
9990 /* Next, check that the tail of a page is zero-filled. File must have
9991 non-zero length, otherwise we risk SIGBUS for entire page. */
9992 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9996 if (write (fd2, cdata2, 1) != 1)
9998 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9999 if (data2 == MAP_FAILED)
10001 for (i = 0; i < pagesize; ++i)
10005 if (munmap (data2, pagesize))
10008 /* Next, try to mmap the file at a fixed address which already has
10009 something else allocated at it. If we can, also make sure that
10010 we see the same garbage. */
10011 fd = open ("conftest.mmap", O_RDWR);
10014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10017 for (i = 0; i < pagesize; ++i)
10018 if (*(data + i) != *(data2 + i))
10021 /* Finally, make sure that changes to the mapped area do not
10022 percolate back to the file as seen by read(). (This is a bug on
10023 some variants of i386 svr4.0.) */
10024 for (i = 0; i < pagesize; ++i)
10025 *(data2 + i) = *(data2 + i) + 1;
10026 data3 = (char *) malloc (pagesize);
10029 if (read (fd, data3, pagesize) != pagesize)
10031 for (i = 0; i < pagesize; ++i)
10032 if (*(data + i) != *(data3 + i))
10038 if ac_fn_c_try_run
"$LINENO"; then :
10039 ac_cv_func_mmap_fixed_mapped
=yes
10041 ac_cv_func_mmap_fixed_mapped
=no
10043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10052 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10055 rm -f conftest.mmap conftest.txt
10057 if test $use_mmap_for_buffers = yes; then
10059 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10064 LIBS
="$LIBS_SYSTEM $LIBS"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10067 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
10071 ac_check_lib_save_LIBS
=$LIBS
10072 LIBS
="-ldnet $LIBS"
10073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10076 /* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10086 return dnet_ntoa ();
10091 if ac_fn_c_try_link
"$LINENO"; then :
10092 ac_cv_lib_dnet_dnet_ntoa
=yes
10094 ac_cv_lib_dnet_dnet_ntoa
=no
10096 rm -f core conftest.err conftest.
$ac_objext \
10097 conftest
$ac_exeext conftest.
$ac_ext
10098 LIBS
=$ac_check_lib_save_LIBS
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10101 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10102 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10103 cat >>confdefs.h
<<_ACEOF
10104 #define HAVE_LIBDNET 1
10107 LIBS
="-ldnet $LIBS"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10113 $as_echo_n "checking for main in -lXbsd... " >&6; }
10114 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10117 ac_check_lib_save_LIBS
=$LIBS
10118 LIBS
="-lXbsd $LIBS"
10119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10131 if ac_fn_c_try_link
"$LINENO"; then :
10132 ac_cv_lib_Xbsd_main
=yes
10134 ac_cv_lib_Xbsd_main
=no
10136 rm -f core conftest.err conftest.
$ac_objext \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 LIBS
=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10141 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10142 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10143 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10151 if test "$ac_cv_header_pthread_h"; then
10152 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10153 emacs_pthread_function
=pthread_atfork
10155 emacs_pthread_function
=pthread_self
10157 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10159 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10160 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10161 $as_echo_n "(cached) " >&6
10163 ac_check_lib_save_LIBS
=$LIBS
10164 LIBS
="-lpthread $LIBS"
10165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10174 char $emacs_pthread_function ();
10178 return $emacs_pthread_function ();
10183 if ac_fn_c_try_link
"$LINENO"; then :
10184 eval "$as_ac_Lib=yes"
10186 eval "$as_ac_Lib=no"
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10190 LIBS
=$ac_check_lib_save_LIBS
10192 eval ac_res
=\$
$as_ac_Lib
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10194 $as_echo "$ac_res" >&6; }
10195 eval as_val
=\$
$as_ac_Lib
10196 if test "x$as_val" = x
""yes; then :
10201 if test "$HAVE_PTHREAD" = yes; then
10202 case "${canonical}" in
10204 *) LIB_PTHREAD
="-lpthread"
10205 LIBS
="$LIB_PTHREAD $LIBS" ;;
10208 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10214 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10215 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10218 ac_check_lib_save_LIBS
=$LIBS
10219 LIBS
="-lpthreads $LIBS"
10220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10233 return cma_open ();
10238 if ac_fn_c_try_link
"$LINENO"; then :
10239 ac_cv_lib_pthreads_cma_open
=yes
10241 ac_cv_lib_pthreads_cma_open
=no
10243 rm -f core conftest.err conftest.
$ac_objext \
10244 conftest
$ac_exeext conftest.
$ac_ext
10245 LIBS
=$ac_check_lib_save_LIBS
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10248 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10249 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10250 cat >>confdefs.h
<<_ACEOF
10251 #define HAVE_LIBPTHREADS 1
10254 LIBS
="-lpthreads $LIBS"
10259 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10260 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10261 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10262 ## added to LIBS in configure would never contain the pthreads part,
10263 ## but the value used in Makefiles might. FIXME?
10265 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10266 ## be harmless on older versions of X where it happens to exist.
10267 test "$opsys" = "aix4-2" && \
10268 test $ac_cv_lib_pthreads_cma_open = yes && \
10269 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10275 $as_echo_n "checking for -bbigtoc option... " >&6; }
10276 if test "${gdb_cv_bigtoc+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10281 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10282 *) gdb_cv_bigtoc
=-bbigtoc ;;
10285 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10297 if ac_fn_c_try_link
"$LINENO"; then :
10302 rm -f core conftest.err conftest.
$ac_objext \
10303 conftest
$ac_exeext conftest.
$ac_ext
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10307 $as_echo "$gdb_cv_bigtoc" >&6; }
10311 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10312 # used for the tests that follow. We set them back to REAL_CFLAGS and
10313 # REAL_CPPFLAGS later on.
10315 REAL_CFLAGS
="$CFLAGS"
10316 REAL_CPPFLAGS
="$CPPFLAGS"
10318 if test "${HAVE_X11}" = "yes"; then
10319 DEFS
="$C_SWITCH_X_SITE $DEFS"
10320 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10322 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10323 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10325 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10326 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10327 # but it's more convenient here to set LD_RUN_PATH since this
10328 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10329 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10330 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10334 if test "${opsys}" = "gnu-linux"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10336 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10343 XOpenDisplay ("foo");
10348 if ac_fn_c_try_link
"$LINENO"; then :
10349 xgnu_linux_first_failure
=no
10351 xgnu_linux_first_failure
=yes
10353 rm -f core conftest.err conftest.
$ac_objext \
10354 conftest
$ac_exeext conftest.
$ac_ext
10355 if test "${xgnu_linux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS
="$CPPFLAGS"
10360 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10363 LIBS
="$LIBS -b i486-linuxaout"
10364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10370 XOpenDisplay ("foo");
10375 if ac_fn_c_try_link
"$LINENO"; then :
10376 xgnu_linux_second_failure
=no
10378 xgnu_linux_second_failure
=yes
10380 rm -f core conftest.err conftest.
$ac_objext \
10381 conftest
$ac_exeext conftest.
$ac_ext
10382 if test "${xgnu_linux_second_failure}" = "yes"; then
10383 # If we get the same failure with -b, there is no use adding -b.
10384 # So take it out. This plays safe.
10385 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10386 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10387 CPPFLAGS
="$OLD_CPPFLAGS"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10393 $as_echo "yes" >&6; }
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10401 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10402 # header files included from there.
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10404 $as_echo_n "checking for Xkb... " >&6; }
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 #include <X11/Xlib.h>
10408 #include <X11/XKBlib.h>
10412 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10417 if ac_fn_c_try_link
"$LINENO"; then :
10422 rm -f core conftest.err conftest.
$ac_objext \
10423 conftest
$ac_exeext conftest.
$ac_ext
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10425 $as_echo "$emacs_xkb" >&6; }
10426 if test $emacs_xkb = yes; then
10428 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10432 for ac_func
in XrmSetDatabase XScreenResourceString \
10433 XScreenNumberOfScreen
10435 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10436 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10437 eval as_val
=\$
$as_ac_var
10438 if test "x$as_val" = x
""yes; then :
10439 cat >>confdefs.h
<<_ACEOF
10440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448 if test "${window_system}" = "x11"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10450 $as_echo_n "checking X11 version 6... " >&6; }
10451 if test "${emacs_cv_x11_version_6+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 #include <X11/Xlib.h>
10460 #if XlibSpecificationRelease < 6
10468 if ac_fn_c_try_link
"$LINENO"; then :
10469 emacs_cv_x11_version_6
=yes
10471 emacs_cv_x11_version_6
=no
10473 rm -f core conftest.err conftest.
$ac_objext \
10474 conftest
$ac_exeext conftest.
$ac_ext
10477 if test $emacs_cv_x11_version_6 = yes; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10479 $as_echo "6 or newer" >&6; }
10481 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10484 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10486 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10491 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10497 $as_echo "before 6" >&6; }
10502 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10504 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10505 if test "${with_rsvg}" != "no"; then
10506 RSVG_REQUIRED
=2.11.0
10507 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10512 if test "$PKG_CONFIG" = "no" ; then
10515 PKG_CONFIG_MIN_VERSION
=0.9.0
10516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10518 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10520 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10521 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10522 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10529 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10530 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10532 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10539 ## If we have a custom action on failure, don't print errors, but
10540 ## do set a variable so people can do so. Do it in a subshell
10541 ## to capture any diagnostics in invoking pkg-config.
10542 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10554 if test $succeeded = yes; then
10563 if test $HAVE_RSVG = yes; then
10565 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10567 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10568 LIBS
="$RSVG_LIBS $LIBS"
10573 HAVE_IMAGEMAGICK
=no
10574 if test "${HAVE_X11}" = "yes"; then
10575 if test "${with_imagemagick}" != "no"; then
10576 ## 6.2.8 is the earliest version known to work, but earlier versions
10577 ## might work - let us know if you find one.
10578 ## 6.0.7 does not work. See bug#7955.
10579 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10583 if test "$PKG_CONFIG" = "no" ; then
10586 PKG_CONFIG_MIN_VERSION
=0.9.0
10587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10589 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10591 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10592 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10593 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10600 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10601 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10603 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 IMAGEMAGICK_CFLAGS
=""
10609 IMAGEMAGICK_LIBS
=""
10610 ## If we have a custom action on failure, don't print errors, but
10611 ## do set a variable so people can do so. Do it in a subshell
10612 ## to capture any diagnostics in invoking pkg-config.
10613 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10625 if test $succeeded = yes; then
10626 HAVE_IMAGEMAGICK
=yes
10634 if test $HAVE_IMAGEMAGICK = yes; then
10636 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10638 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10639 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10640 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10642 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10644 eval as_val
=\$
$as_ac_var
10645 if test "x$as_val" = x
""yes; then :
10646 cat >>confdefs.h
<<_ACEOF
10647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10662 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10665 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10670 if test "$PKG_CONFIG" = "no" ; then
10673 PKG_CONFIG_MIN_VERSION
=0.9.0
10674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10676 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10678 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10679 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10680 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10687 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10688 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10690 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10697 ## If we have a custom action on failure, don't print errors, but
10698 ## do set a variable so people can do so. Do it in a subshell
10699 ## to capture any diagnostics in invoking pkg-config.
10700 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10707 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10708 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10712 if test $succeeded = yes; then
10718 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10719 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10721 if test "$pkg_check_gtk" = "yes"; then
10723 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10725 GTK_OBJ
=emacsgtkfixed.o
10726 term_header
=gtkutil.h
10727 USE_GTK_TOOLKIT
="GTK3"
10730 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10734 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10737 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10742 if test "$PKG_CONFIG" = "no" ; then
10745 PKG_CONFIG_MIN_VERSION
=0.9.0
10746 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10748 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10750 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10751 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10752 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10759 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10760 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10762 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10769 ## If we have a custom action on failure, don't print errors, but
10770 ## do set a variable so people can do so. Do it in a subshell
10771 ## to capture any diagnostics in invoking pkg-config.
10772 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10784 if test $succeeded = yes; then
10790 if test "$pkg_check_gtk" = "no" &&
10791 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10793 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10795 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10798 if test x
"$pkg_check_gtk" = xyes
; then
10802 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10803 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10804 LIBS
="$GTK_LIBS $LIBS"
10806 for ac_func
in gtk_main
10808 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10809 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10810 cat >>confdefs.h
<<_ACEOF
10811 #define HAVE_GTK_MAIN 1
10817 if test "${GTK_COMPILES}" != "yes"; then
10818 if test "$USE_X_TOOLKIT" != "maybe"; then
10819 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10824 $as_echo "#define USE_GTK 1" >>confdefs.h
10826 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10828 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10832 closing open displays. This is no problem if you just use
10833 one display, but if you use more than one and close one of them
10834 Emacs may crash." >&5
10835 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10836 closing open displays. This is no problem if you just use
10837 one display, but if you use more than one and close one of them
10838 Emacs may crash." >&2;}
10847 if test "${HAVE_GTK}" = "yes"; then
10849 if test "$with_toolkit_scroll_bars" != no
; then
10850 with_toolkit_scroll_bars
=yes
10853 HAVE_GTK_FILE_SELECTION
=no
10854 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10855 #include <gtk/gtk.h>
10857 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10858 HAVE_GTK_FILE_SELECTION
=yes
10860 HAVE_GTK_FILE_SELECTION
=no
10863 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10864 for ac_func
in gtk_file_selection_new
10866 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10867 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10868 cat >>confdefs.h
<<_ACEOF
10869 #define HAVE_GTK_FILE_SELECTION_NEW 1
10878 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10879 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10880 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10881 gtk_orientable_set_orientation \
10882 gtk_window_set_has_resize_grip
10884 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10886 eval as_val
=\$
$as_ac_var
10887 if test "x$as_val" = x
""yes; then :
10888 cat >>confdefs.h
<<_ACEOF
10889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10896 term_header
=gtkutil.h
10901 if test "${with_dbus}" = "yes"; then
10905 if test "$PKG_CONFIG" = "no" ; then
10908 PKG_CONFIG_MIN_VERSION
=0.9.0
10909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10911 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10913 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10914 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10915 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10922 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10923 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10925 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10932 ## If we have a custom action on failure, don't print errors, but
10933 ## do set a variable so people can do so. Do it in a subshell
10934 ## to capture any diagnostics in invoking pkg-config.
10935 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10947 if test $succeeded = yes; then
10953 if test "$HAVE_DBUS" = yes; then
10954 LIBS
="$LIBS $DBUS_LIBS"
10956 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10958 for ac_func
in dbus_watch_get_unix_fd \
10959 dbus_type_is_valid \
10960 dbus_validate_bus_name \
10961 dbus_validate_path \
10962 dbus_validate_interface \
10963 dbus_validate_member
10965 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10966 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10967 eval as_val
=\$
$as_ac_var
10968 if test "x$as_val" = x
""yes; then :
10969 cat >>confdefs.h
<<_ACEOF
10970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 DBUS_OBJ
=dbusbind.o
10982 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10986 if test "$PKG_CONFIG" = "no" ; then
10989 PKG_CONFIG_MIN_VERSION
=0.9.0
10990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10992 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10994 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10995 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10996 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11003 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11004 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11006 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 GSETTINGS_CFLAGS
=""
11013 ## If we have a custom action on failure, don't print errors, but
11014 ## do set a variable so people can do so. Do it in a subshell
11015 ## to capture any diagnostics in invoking pkg-config.
11016 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11023 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11024 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11028 if test $succeeded = yes; then
11034 if test "$HAVE_GSETTINGS" = "yes"; then
11036 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11038 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11039 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11044 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11048 if test "$PKG_CONFIG" = "no" ; then
11051 PKG_CONFIG_MIN_VERSION
=0.9.0
11052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11054 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11056 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11057 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11058 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11065 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11066 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11068 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11075 ## If we have a custom action on failure, don't print errors, but
11076 ## do set a variable so people can do so. Do it in a subshell
11077 ## to capture any diagnostics in invoking pkg-config.
11078 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11085 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11086 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11090 if test $succeeded = yes; then
11096 if test "$HAVE_GCONF" = yes; then
11098 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11100 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11101 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11105 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11109 if test "$PKG_CONFIG" = "no" ; then
11112 PKG_CONFIG_MIN_VERSION
=0.9.0
11113 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11115 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11117 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11118 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11119 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11126 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11127 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11129 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11136 ## If we have a custom action on failure, don't print errors, but
11137 ## do set a variable so people can do so. Do it in a subshell
11138 ## to capture any diagnostics in invoking pkg-config.
11139 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11146 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11147 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11151 if test $succeeded = yes; then
11157 if test "$HAVE_GOBJECT" = "yes"; then
11158 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11159 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11161 SAVE_CFLAGS
="$CFLAGS"
11163 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11164 LIBS
="$SETTINGS_LIBS $LIBS"
11165 for ac_func
in g_type_init
11167 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11168 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11169 cat >>confdefs.h
<<_ACEOF
11170 #define HAVE_G_TYPE_INIT 1
11176 CFLAGS
="$SAVE_CFLAGS"
11185 if test "${with_selinux}" = "yes"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11187 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11188 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11191 ac_check_lib_save_LIBS
=$LIBS
11192 LIBS
="-lselinux $LIBS"
11193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11202 char lgetfilecon ();
11206 return lgetfilecon ();
11211 if ac_fn_c_try_link
"$LINENO"; then :
11212 ac_cv_lib_selinux_lgetfilecon
=yes
11214 ac_cv_lib_selinux_lgetfilecon
=no
11216 rm -f core conftest.err conftest.
$ac_objext \
11217 conftest
$ac_exeext conftest.
$ac_ext
11218 LIBS
=$ac_check_lib_save_LIBS
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11221 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11222 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11223 HAVE_LIBSELINUX
=yes
11228 if test "$HAVE_LIBSELINUX" = yes; then
11230 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11232 LIBSELINUX_LIBS
=-lselinux
11238 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11239 if test "${with_gnutls}" = "yes" ; then
11243 if test "$PKG_CONFIG" = "no" ; then
11246 PKG_CONFIG_MIN_VERSION
=0.9.0
11247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11249 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11251 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11252 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11253 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11260 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11261 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11263 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 LIBGNUTLS_CFLAGS
=""
11270 ## If we have a custom action on failure, don't print errors, but
11271 ## do set a variable so people can do so. Do it in a subshell
11272 ## to capture any diagnostics in invoking pkg-config.
11273 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11285 if test $succeeded = yes; then
11291 if test "${HAVE_GNUTLS}" = "yes"; then
11293 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11297 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11298 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11299 for ac_func
in gnutls_certificate_set_verify_function
11301 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11302 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11303 cat >>confdefs.h
<<_ACEOF
11304 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11306 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11311 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11313 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11323 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11324 if test "$with_xaw3d" != no
; then
11325 if test "${emacs_cv_xaw3d+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 #include <X11/Intrinsic.h>
11332 #include <X11/Xaw3d/Simple.h>
11341 if ac_fn_c_try_link
"$LINENO"; then :
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11343 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11344 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 ac_check_lib_save_LIBS
=$LIBS
11348 LIBS
="-lXaw3d $LIBS"
11349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11358 char XawScrollbarSetThumb ();
11362 return XawScrollbarSetThumb ();
11367 if ac_fn_c_try_link
"$LINENO"; then :
11368 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11370 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11372 rm -f core conftest.err conftest.
$ac_objext \
11373 conftest
$ac_exeext conftest.
$ac_ext
11374 LIBS
=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11377 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11378 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11387 rm -f core conftest.err conftest.
$ac_objext \
11388 conftest
$ac_exeext conftest.
$ac_ext
11394 if test $emacs_cv_xaw3d = yes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11396 $as_echo_n "checking for xaw3d... " >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11398 $as_echo "yes; using Lucid toolkit" >&6; }
11399 USE_X_TOOLKIT
=LUCID
11403 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11407 $as_echo_n "checking for xaw3d... " >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11411 $as_echo_n "checking for libXaw... " >&6; }
11412 if test "${emacs_cv_xaw+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 #include <X11/Intrinsic.h>
11419 #include <X11/Xaw/Simple.h>
11428 if ac_fn_c_try_link
"$LINENO"; then :
11433 rm -f core conftest.err conftest.
$ac_objext \
11434 conftest
$ac_exeext conftest.
$ac_ext
11437 if test $emacs_cv_xaw = yes; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11439 $as_echo "yes; using Lucid toolkit" >&6; }
11440 USE_X_TOOLKIT
=LUCID
11442 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11443 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11445 as_fn_error
"No X toolkit could be found.
11446 If you are sure you want Emacs compiled without an X toolkit, pass
11447 --with-x-toolkit=no
11448 to configure. Otherwise, install the development libraries for the toolkit
11449 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11454 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11457 if test "${USE_X_TOOLKIT}" != "none"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11459 $as_echo_n "checking X11 toolkit version... " >&6; }
11460 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 #include <X11/Intrinsic.h>
11469 #if XtSpecificationRelease < 6
11477 if ac_fn_c_try_link
"$LINENO"; then :
11478 emacs_cv_x11_toolkit_version_6
=yes
11480 emacs_cv_x11_toolkit_version_6
=no
11482 rm -f core conftest.err conftest.
$ac_objext \
11483 conftest
$ac_exeext conftest.
$ac_ext
11486 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11487 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11489 $as_echo "6 or newer" >&6; }
11491 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11493 LIBXTR6
="-lSM -lICE"
11495 ## Use libw.a along with X11R6 Xt.
11496 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11500 $as_echo "before 6" >&6; }
11504 if test x
$HAVE_X11XTR6 = xyes
; then
11505 LIBS
="-lXt -lSM -lICE $LIBS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11510 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11511 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11514 ac_check_lib_save_LIBS
=$LIBS
11516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11525 char XmuConvertStandardSelection ();
11529 return XmuConvertStandardSelection ();
11534 if ac_fn_c_try_link
"$LINENO"; then :
11535 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11537 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11539 rm -f core conftest.err conftest.
$ac_objext \
11540 conftest
$ac_exeext conftest.
$ac_ext
11541 LIBS
=$ac_check_lib_save_LIBS
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11544 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11545 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_LIBXMU 1
11554 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11560 ## These systems don't supply Xmu.
11562 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11567 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11568 if test "${HAVE_X11}" = "yes"; then
11569 if test "${USE_X_TOOLKIT}" != "none"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11571 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11572 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 ac_check_lib_save_LIBS
=$LIBS
11576 LIBS
="-lXext $LIBS"
11577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11586 char XShapeQueryExtension ();
11590 return XShapeQueryExtension ();
11595 if ac_fn_c_try_link
"$LINENO"; then :
11596 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11598 ac_cv_lib_Xext_XShapeQueryExtension
=no
11600 rm -f core conftest.err conftest.
$ac_objext \
11601 conftest
$ac_exeext conftest.
$ac_ext
11602 LIBS
=$ac_check_lib_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11605 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11606 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11607 cat >>confdefs.h
<<_ACEOF
11608 #define HAVE_LIBXEXT 1
11611 LIBS
="-lXext $LIBS"
11619 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11620 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11621 if test -d /usr
/include
/openmotif
; then
11622 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11623 emacs_cv_openmotif
=yes
11624 case "$canonical" in
11625 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11626 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11629 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11632 emacs_cv_openmotif
=no
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11635 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11636 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11645 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11648 Motif version prior to 2.1.
11654 if ac_fn_c_try_compile
"$LINENO"; then :
11655 emacs_cv_motif_version_2_1
=yes
11657 emacs_cv_motif_version_2_1
=no
11659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11662 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11663 if test $emacs_cv_motif_version_2_1 = yes; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11665 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11666 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11669 ac_check_lib_save_LIBS
=$LIBS
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11680 char XpCreateContext ();
11684 return XpCreateContext ();
11689 if ac_fn_c_try_link
"$LINENO"; then :
11690 ac_cv_lib_Xp_XpCreateContext
=yes
11692 ac_cv_lib_Xp_XpCreateContext
=no
11694 rm -f core conftest.err conftest.
$ac_objext \
11695 conftest
$ac_exeext conftest.
$ac_ext
11696 LIBS
=$ac_check_lib_save_LIBS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11699 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11700 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11704 if test x
$emacs_cv_openmotif = xyes
; then
11705 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11709 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11710 if test "${emacs_cv_lesstif+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11713 # We put this in CFLAGS temporarily to precede other -I options
11714 # that might be in CFLAGS temporarily.
11715 # We put this in CPPFLAGS where it precedes the other -I options.
11716 OLD_CPPFLAGS
=$CPPFLAGS
11718 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11719 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11731 if ac_fn_c_try_compile
"$LINENO"; then :
11732 emacs_cv_lesstif
=yes
11734 emacs_cv_lesstif
=no
11736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11739 $as_echo "$emacs_cv_lesstif" >&6; }
11740 if test $emacs_cv_lesstif = yes; then
11741 # Make sure this -I option remains in CPPFLAGS after it is set
11742 # back to REAL_CPPFLAGS.
11743 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11744 # have those other -I options anyway. Ultimately, having this
11745 # directory ultimately in CPPFLAGS will be enough.
11746 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11747 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11750 CPPFLAGS
=$OLD_CPPFLAGS
11753 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11754 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11757 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11764 USE_TOOLKIT_SCROLL_BARS
=no
11765 if test "${with_toolkit_scroll_bars}" != "no"; then
11766 if test "${USE_X_TOOLKIT}" != "none"; then
11767 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11768 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11771 USE_TOOLKIT_SCROLL_BARS
=yes
11772 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11773 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11775 USE_TOOLKIT_SCROLL_BARS
=yes
11777 elif test "${HAVE_GTK}" = "yes"; then
11778 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11780 USE_TOOLKIT_SCROLL_BARS
=yes
11781 elif test "${HAVE_NS}" = "yes"; then
11782 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11784 USE_TOOLKIT_SCROLL_BARS
=yes
11785 elif test "${HAVE_W32}" = "yes"; then
11786 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11788 USE_TOOLKIT_SCROLL_BARS
=yes
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 #include <X11/Xlib.h>
11796 #include <X11/Xresource.h>
11805 if ac_fn_c_try_compile
"$LINENO"; then :
11808 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11816 if test "${with_xim}" != "no"; then
11818 $as_echo "#define USE_XIM 1" >>confdefs.h
11823 if test "${HAVE_XIM}" != "no"; then
11824 late_CFLAGS
=$CFLAGS
11825 if test "$GCC" = yes; then
11826 CFLAGS
="$CFLAGS --pedantic-errors"
11828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 #include <X11/Xlib.h>
11832 #include <X11/Xresource.h>
11841 XPointer *client_data;
11843 /* If we're not using GCC, it's probably not XFree86, and this is
11844 probably right, but we can't use something like --pedantic-errors. */
11845 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11846 char*, XIMProc, XPointer*);
11848 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11854 if ac_fn_c_try_compile
"$LINENO"; then :
11855 emacs_cv_arg6_star
=yes
11857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11858 if test "$emacs_cv_arg6_star" = yes; then
11859 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11862 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11865 CFLAGS
=$late_CFLAGS
11868 ### Start of font-backend (under any platform) section.
11869 # (nothing here yet -- this is a placeholder)
11870 ### End of font-backend (under any platform) section.
11872 ### Start of font-backend (under X11) section.
11873 if test "${HAVE_X11}" = "yes"; then
11877 if test "$PKG_CONFIG" = "no" ; then
11880 PKG_CONFIG_MIN_VERSION
=0.9.0
11881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11883 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11885 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11886 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11887 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11894 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11895 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11897 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 FONTCONFIG_CFLAGS
=""
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so. Do it in a subshell
11906 ## to capture any diagnostics in invoking pkg-config.
11907 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11919 if test $succeeded = yes; then
11926 ## Use -lXft if available, unless `--with-xft=no'.
11928 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11931 if test "x${with_xft}" != "xno"; then
11936 if test "$PKG_CONFIG" = "no" ; then
11939 PKG_CONFIG_MIN_VERSION
=0.9.0
11940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11942 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11944 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11945 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11946 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11953 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11954 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11956 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11963 ## If we have a custom action on failure, don't print errors, but
11964 ## do set a variable so people can do so. Do it in a subshell
11965 ## to capture any diagnostics in invoking pkg-config.
11966 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11978 if test $succeeded = yes; then
11984 ## Because xftfont.c uses XRenderQueryExtension, we also
11985 ## need to link to -lXrender.
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11988 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11989 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11992 ac_check_lib_save_LIBS
=$LIBS
11993 LIBS
="-lXrender $LIBS"
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12003 char XRenderQueryExtension ();
12007 return XRenderQueryExtension ();
12012 if ac_fn_c_try_link
"$LINENO"; then :
12013 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12015 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12017 rm -f core conftest.err conftest.
$ac_objext \
12018 conftest
$ac_exeext conftest.
$ac_ext
12019 LIBS
=$ac_check_lib_save_LIBS
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12022 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12023 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12027 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12028 OLD_CPPFLAGS
="$CPPFLAGS"
12029 OLD_CFLAGS
="$CFLAGS"
12031 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12032 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12033 XFT_LIBS
="-lXrender $XFT_LIBS"
12034 LIBS
="$XFT_LIBS $LIBS"
12035 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12036 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12038 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12039 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12042 ac_check_lib_save_LIBS
=$LIBS
12043 LIBS
="-lXft $XFT_LIBS $LIBS"
12044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12053 char XftFontOpen ();
12057 return XftFontOpen ();
12062 if ac_fn_c_try_link
"$LINENO"; then :
12063 ac_cv_lib_Xft_XftFontOpen
=yes
12065 ac_cv_lib_Xft_XftFontOpen
=no
12067 rm -f core conftest.err conftest.
$ac_objext \
12068 conftest
$ac_exeext conftest.
$ac_ext
12069 LIBS
=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12072 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12073 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12081 if test "${HAVE_XFT}" = "yes"; then
12083 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12086 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12088 CPPFLAGS
="$OLD_CPPFLAGS"
12089 CFLAGS
="$OLD_CFLAGS"
12091 fi # "${HAVE_XFT}" = "yes"
12092 fi # "$HAVE_XFT" != no
12093 fi # "x${with_xft}" != "xno"
12095 ## We used to allow building with FreeType and without Xft.
12096 ## However, the ftx font backend driver is not in good shape.
12097 if test "$HAVE_XFT" != "yes"; then
12104 if test "$PKG_CONFIG" = "no" ; then
12107 PKG_CONFIG_MIN_VERSION
=0.9.0
12108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12110 $as_echo_n "checking for freetype2... " >&6; }
12112 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12113 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12114 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12121 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12122 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12124 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12131 ## If we have a custom action on failure, don't print errors, but
12132 ## do set a variable so people can do so. Do it in a subshell
12133 ## to capture any diagnostics in invoking pkg-config.
12134 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12146 if test $succeeded = yes; then
12153 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12157 if test "${HAVE_FREETYPE}" = "yes"; then
12159 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12161 if test "${with_libotf}" != "no"; then
12165 if test "$PKG_CONFIG" = "no" ; then
12168 PKG_CONFIG_MIN_VERSION
=0.9.0
12169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12171 $as_echo_n "checking for libotf... " >&6; }
12173 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12174 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12175 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12182 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12183 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12185 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12192 ## If we have a custom action on failure, don't print errors, but
12193 ## do set a variable so people can do so. Do it in a subshell
12194 ## to capture any diagnostics in invoking pkg-config.
12195 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12207 if test $succeeded = yes; then
12213 if test "$HAVE_LIBOTF" = "yes"; then
12215 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12218 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12219 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12222 ac_check_lib_save_LIBS
=$LIBS
12224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12233 char OTF_get_variation_glyphs ();
12237 return OTF_get_variation_glyphs ();
12242 if ac_fn_c_try_link
"$LINENO"; then :
12243 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12245 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12247 rm -f core conftest.err conftest.
$ac_objext \
12248 conftest
$ac_exeext conftest.
$ac_ext
12249 LIBS
=$ac_check_lib_save_LIBS
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12252 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12253 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12254 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12256 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12259 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12261 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12269 if test "${HAVE_LIBOTF}" = yes; then
12270 if test "${with_m17n_flt}" != "no"; then
12274 if test "$PKG_CONFIG" = "no" ; then
12277 PKG_CONFIG_MIN_VERSION
=0.9.0
12278 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12280 $as_echo_n "checking for m17n-flt... " >&6; }
12282 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12283 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12284 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12291 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12292 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12294 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12301 ## If we have a custom action on failure, don't print errors, but
12302 ## do set a variable so people can do so. Do it in a subshell
12303 ## to capture any diagnostics in invoking pkg-config.
12304 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12316 if test $succeeded = yes; then
12322 if test "$HAVE_M17N_FLT" = "yes"; then
12324 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12336 ### End of font-backend (under X11) section.
12347 ### Use -lXpm if available, unless `--with-xpm=no'.
12351 if test "${HAVE_W32}" = "yes"; then
12352 if test "${with_xpm}" != "no"; then
12353 SAVE_CPPFLAGS
="$CPPFLAGS"
12354 SAVE_LDFLAGS
="$LDFLAGS"
12355 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12356 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12357 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12358 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12360 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12361 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12364 ac_check_lib_save_LIBS
=$LIBS
12366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12375 char XpmReadFileToImage ();
12379 return XpmReadFileToImage ();
12384 if ac_fn_c_try_link
"$LINENO"; then :
12385 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12387 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12389 rm -f core conftest.err conftest.
$ac_objext \
12390 conftest
$ac_exeext conftest.
$ac_ext
12391 LIBS
=$ac_check_lib_save_LIBS
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12394 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12395 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12402 if test "${HAVE_XPM}" = "yes"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12404 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407 #include "X11/xpm.h"
12408 #ifndef XpmReturnAllocPixels
12409 no_return_alloc_pixels
12413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12414 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12422 if test "${HAVE_XPM}" = "yes"; then
12423 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 CPPFLAGS
="$SAVE_CPPFLAGS"
12430 LDFLAGS
="$SAVE_LDFLAGS"
12435 if test "${HAVE_XPM}" = "yes"; then
12437 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12443 if test "${HAVE_X11}" = "yes"; then
12444 if test "${with_xpm}" != "no"; then
12445 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12448 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12449 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12452 ac_check_lib_save_LIBS
=$LIBS
12453 LIBS
="-lXpm -lX11 $LIBS"
12454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 /* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12463 char XpmReadFileToPixmap ();
12467 return XpmReadFileToPixmap ();
12472 if ac_fn_c_try_link
"$LINENO"; then :
12473 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12475 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12477 rm -f core conftest.err conftest.
$ac_objext \
12478 conftest
$ac_exeext conftest.
$ac_ext
12479 LIBS
=$ac_check_lib_save_LIBS
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12482 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12483 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12490 if test "${HAVE_XPM}" = "yes"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12492 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include "X11/xpm.h"
12496 #ifndef XpmReturnAllocPixels
12497 no_return_alloc_pixels
12501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12502 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12510 if test "${HAVE_XPM}" = "yes"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512 $as_echo "yes" >&6; }
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12520 if test "${HAVE_XPM}" = "yes"; then
12522 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12530 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12533 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12534 if test "${with_jpeg}" != "no"; then
12535 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12536 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12538 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12539 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12542 ac_check_lib_save_LIBS
=$LIBS
12543 LIBS
="-ljpeg $LIBS"
12544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12553 char jpeg_destroy_compress ();
12557 return jpeg_destroy_compress ();
12562 if ac_fn_c_try_link
"$LINENO"; then :
12563 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12565 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12567 rm -f core conftest.err conftest.
$ac_objext \
12568 conftest
$ac_exeext conftest.
$ac_ext
12569 LIBS
=$ac_check_lib_save_LIBS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12572 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12573 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12582 if test "${HAVE_JPEG}" = "yes"; then
12583 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <jpeglib.h>
12588 version=JPEG_LIB_VERSION
12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12593 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12597 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12603 if test "${HAVE_JPEG}" = "yes"; then
12609 ### Use -lpng if available, unless `--with-png=no'.
12612 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12613 if test "${with_png}" != "no"; then
12614 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12615 # in /usr/include/libpng.
12616 for ac_header
in png.h libpng
/png.h
12618 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12620 eval as_val
=\$
$as_ac_Header
12621 if test "x$as_val" = x
""yes; then :
12622 cat >>confdefs.h
<<_ACEOF
12623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12632 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12633 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12636 ac_check_lib_save_LIBS
=$LIBS
12637 LIBS
="-lpng -lz -lm $LIBS"
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12647 char png_get_channels ();
12651 return png_get_channels ();
12656 if ac_fn_c_try_link
"$LINENO"; then :
12657 ac_cv_lib_png_png_get_channels
=yes
12659 ac_cv_lib_png_png_get_channels
=no
12661 rm -f core conftest.err conftest.
$ac_objext \
12662 conftest
$ac_exeext conftest.
$ac_ext
12663 LIBS
=$ac_check_lib_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12666 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12667 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12674 if test "${HAVE_PNG}" = "yes"; then
12676 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12678 LIBPNG
="-lpng -lz -lm"
12680 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12681 # include <libpng/png.h>
12687 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12691 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12699 ### Use -ltiff if available, unless `--with-tiff=no'.
12702 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12703 if test "${with_tiff}" != "no"; then
12704 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12705 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12707 # At least one tiff package requires the jpeg library.
12708 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12710 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12711 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12714 ac_check_lib_save_LIBS
=$LIBS
12715 LIBS
="-ltiff $tifflibs $LIBS"
12716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12725 char TIFFGetVersion ();
12729 return TIFFGetVersion ();
12734 if ac_fn_c_try_link
"$LINENO"; then :
12735 ac_cv_lib_tiff_TIFFGetVersion
=yes
12737 ac_cv_lib_tiff_TIFFGetVersion
=no
12739 rm -f core conftest.err conftest.
$ac_objext \
12740 conftest
$ac_exeext conftest.
$ac_ext
12741 LIBS
=$ac_check_lib_save_LIBS
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12744 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12745 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12754 if test "${HAVE_TIFF}" = "yes"; then
12756 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12763 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12766 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12767 ||
test "${HAVE_W32}" = "yes"; then
12768 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12769 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12770 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12771 # Earlier versions can crash Emacs.
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12773 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12774 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12777 ac_check_lib_save_LIBS
=$LIBS
12779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12782 /* Override any GCC internal prototype to avoid an error.
12783 Use char because int might match the return type of a GCC
12784 builtin and then its argument prototype would still apply. */
12788 char EGifPutExtensionLast ();
12792 return EGifPutExtensionLast ();
12797 if ac_fn_c_try_link
"$LINENO"; then :
12798 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12800 ac_cv_lib_gif_EGifPutExtensionLast
=no
12802 rm -f core conftest.err conftest.
$ac_objext \
12803 conftest
$ac_exeext conftest.
$ac_ext
12804 LIBS
=$ac_check_lib_save_LIBS
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12807 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12808 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12818 if test "$HAVE_GIF" = yes; then
12820 elif test "$HAVE_GIF" = maybe
; then
12821 # If gif_lib.h but no libgif, try libungif.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12823 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12824 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12827 ac_check_lib_save_LIBS
=$LIBS
12828 LIBS
="-lungif $LIBS"
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12838 char EGifPutExtensionLast ();
12842 return EGifPutExtensionLast ();
12847 if ac_fn_c_try_link
"$LINENO"; then :
12848 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12850 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12852 rm -f core conftest.err conftest.
$ac_objext \
12853 conftest
$ac_exeext conftest.
$ac_ext
12854 LIBS
=$ac_check_lib_save_LIBS
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12857 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12858 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12864 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12867 if test "${HAVE_GIF}" = "yes"; then
12869 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12875 if test "${HAVE_X11}" = "yes"; then
12878 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12879 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12880 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12881 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12882 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12883 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12884 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12885 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12886 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12887 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12889 if test "X${MISSING}" != X
; then
12890 as_fn_error
"The following required libraries were not found:
12892 Maybe some development libraries/packages are missing?
12893 If you don't want to link with them give
12895 as options to configure" "$LINENO" 5
12899 ### Use -lgpm if available, unless `--with-gpm=no'.
12902 if test "${with_gpm}" != "no"; then
12903 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12904 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12906 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12907 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12910 ac_check_lib_save_LIBS
=$LIBS
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12925 return Gpm_Open ();
12930 if ac_fn_c_try_link
"$LINENO"; then :
12931 ac_cv_lib_gpm_Gpm_Open
=yes
12933 ac_cv_lib_gpm_Gpm_Open
=no
12935 rm -f core conftest.err conftest.
$ac_objext \
12936 conftest
$ac_exeext conftest.
$ac_ext
12937 LIBS
=$ac_check_lib_save_LIBS
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12940 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12941 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12949 if test "${HAVE_GPM}" = "yes"; then
12951 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12963 ### Use NeXTstep API to implement GUI.
12964 if test "${HAVE_NS}" = "yes"; then
12966 $as_echo "#define HAVE_NS 1" >>confdefs.h
12968 if test "${NS_IMPL_COCOA}" = "yes"; then
12970 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12973 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12975 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12977 # See also .m.o rule in Makefile.in */
12978 # FIXME: are all these flags really needed? Document here why. */
12979 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12980 ## Extra CFLAGS applied to src/*.m files.
12981 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"
12983 # We also have mouse menus.
12988 if test "${HAVE_W32}" = "yes"; then
12992 ### Use session management (-lSM -lICE) if available
12995 if test "${HAVE_X11}" = "yes"; then
12996 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12997 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12999 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13000 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13001 $as_echo_n "(cached) " >&6
13003 ac_check_lib_save_LIBS
=$LIBS
13004 LIBS
="-lSM -lICE $LIBS"
13005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13014 char SmcOpenConnection ();
13018 return SmcOpenConnection ();
13023 if ac_fn_c_try_link
"$LINENO"; then :
13024 ac_cv_lib_SM_SmcOpenConnection
=yes
13026 ac_cv_lib_SM_SmcOpenConnection
=no
13028 rm -f core conftest.err conftest.
$ac_objext \
13029 conftest
$ac_exeext conftest.
$ac_ext
13030 LIBS
=$ac_check_lib_save_LIBS
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13033 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13034 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13042 if test "${HAVE_X_SM}" = "yes"; then
13044 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13046 LIBXSM
="-lSM -lICE"
13049 *) LIBS
="$LIBXSM $LIBS" ;;
13055 ### Use libxml (-lxml2) if available
13057 if test "${with_xml2}" != "no"; then
13058 ### I'm not sure what the version number should be, so I just guessed.
13062 if test "$PKG_CONFIG" = "no" ; then
13065 PKG_CONFIG_MIN_VERSION
=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13068 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13070 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13071 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13072 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13079 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13080 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13082 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13089 ## If we have a custom action on failure, don't print errors, but
13090 ## do set a variable so people can do so. Do it in a subshell
13091 ## to capture any diagnostics in invoking pkg-config.
13092 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13104 if test $succeeded = yes; then
13110 if test "${HAVE_LIBXML2}" = "yes"; then
13111 LIBS
="$LIBXML2_LIBS $LIBS"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13113 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13114 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13117 ac_check_lib_save_LIBS
=$LIBS
13118 LIBS
="-lxml2 $LIBS"
13119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13128 char htmlReadMemory ();
13132 return htmlReadMemory ();
13137 if ac_fn_c_try_link
"$LINENO"; then :
13138 ac_cv_lib_xml2_htmlReadMemory
=yes
13140 ac_cv_lib_xml2_htmlReadMemory
=no
13142 rm -f core conftest.err conftest.
$ac_objext \
13143 conftest
$ac_exeext conftest.
$ac_ext
13144 LIBS
=$ac_check_lib_save_LIBS
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13147 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13148 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13154 if test "${HAVE_LIBXML2}" = "yes"; then
13156 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13167 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13169 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13170 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13184 if ac_fn_c_try_link
"$LINENO"; then :
13185 emacs_cv_netdb_declares_h_errno
=yes
13187 emacs_cv_netdb_declares_h_errno
=no
13189 rm -f core conftest.err conftest.
$ac_objext \
13190 conftest
$ac_exeext conftest.
$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13193 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13194 if test $emacs_cv_netdb_declares_h_errno = yes; then
13196 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13200 # sqrt and other floating-point functions such as fmod and frexp
13201 # are found in -lm on most systems.
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13203 $as_echo_n "checking for sqrt in -lm... " >&6; }
13204 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13207 ac_check_lib_save_LIBS
=$LIBS
13209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13227 if ac_fn_c_try_link
"$LINENO"; then :
13228 ac_cv_lib_m_sqrt
=yes
13230 ac_cv_lib_m_sqrt
=no
13232 rm -f core conftest.err conftest.
$ac_objext \
13233 conftest
$ac_exeext conftest.
$ac_ext
13234 LIBS
=$ac_check_lib_save_LIBS
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13237 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13238 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13239 cat >>confdefs.h
<<_ACEOF
13240 #define HAVE_LIBM 1
13248 # Check for mail-locking functions in a "mail" library. Probably this should
13249 # have the same check as for liblockfile below.
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13251 $as_echo_n "checking for maillock in -lmail... " >&6; }
13252 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13255 ac_check_lib_save_LIBS
=$LIBS
13256 LIBS
="-lmail $LIBS"
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13270 return maillock ();
13275 if ac_fn_c_try_link
"$LINENO"; then :
13276 ac_cv_lib_mail_maillock
=yes
13278 ac_cv_lib_mail_maillock
=no
13280 rm -f core conftest.err conftest.
$ac_objext \
13281 conftest
$ac_exeext conftest.
$ac_ext
13282 LIBS
=$ac_check_lib_save_LIBS
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13285 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13286 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13292 if test $have_mail = yes; then
13294 LIBS
="$LIBS_MAIL $LIBS"
13296 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13302 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13303 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13306 ac_check_lib_save_LIBS
=$LIBS
13307 LIBS
="-llockfile $LIBS"
13308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13321 return maillock ();
13326 if ac_fn_c_try_link
"$LINENO"; then :
13327 ac_cv_lib_lockfile_maillock
=yes
13329 ac_cv_lib_lockfile_maillock
=no
13331 rm -f core conftest.err conftest.
$ac_objext \
13332 conftest
$ac_exeext conftest.
$ac_ext
13333 LIBS
=$ac_check_lib_save_LIBS
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13336 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13337 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13343 if test $have_lockfile = yes; then
13344 LIBS_MAIL
=-llockfile
13345 LIBS
="$LIBS_MAIL $LIBS"
13347 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13350 # If we have the shared liblockfile, assume we must use it for mail
13351 # locking (e.g. Debian). If we couldn't link against liblockfile
13352 # (no liblockfile.a installed), ensure that we don't need to.
13353 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13354 set dummy liblockfile.so
; ac_word
=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13360 if test -n "$liblockfile"; then
13361 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13364 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13365 for as_dir
in $as_dummy
13368 test -z "$as_dir" && as_dir
=.
13369 for ac_exec_ext
in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_liblockfile
="yes"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13382 liblockfile
=$ac_cv_prog_liblockfile
13383 if test -n "$liblockfile"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13385 $as_echo "$liblockfile" >&6; }
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13392 if test $ac_cv_prog_liblockfile = yes; then
13393 as_fn_error
"Shared liblockfile found but can't link against it.
13394 This probably means that movemail could lose mail.
13395 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13403 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13404 ## interlock access to the mail spool. The alternative is a lock file named
13405 ## /usr/spool/mail/$USER.lock.
13408 aix4-2
) mail_lock
="lockf" ;;
13410 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13412 ## On GNU/Linux systems, both methods are used by various mail programs.
13413 ## I assume most people are using newer mailers that have heard of flock.
13414 ## Change this if you need to.
13415 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13416 ## configure gets the right answers, and that means *NOT* using flock.
13417 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13418 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13419 ## Debian maintainer hasn't provided a clean fix for Emacs.
13420 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13421 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13422 ## correct logic. -- fx
13423 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13424 ## liblockfile is a Free Software replacement for libmail, used on
13425 ## Debian systems and elsewhere. -rfr.
13428 if test $have_mail = yes ||
test $have_lockfile = yes; then
13429 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13435 case "$mail_lock" in
13437 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13441 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13444 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13449 for ac_func
in gethostname \
13450 closedir getrusage get_current_dir_name \
13452 fpathconf
select getpagesize setlocale \
13453 utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
13454 strsignal setitimer \
13455 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13456 gai_strerror mkstemp getline getdelim fsync sync \
13457 difftime posix_memalign \
13458 getpwent endpwent getgrent endgrent \
13460 cfmakeraw cfsetspeed copysign __executable_start
13462 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13463 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13464 eval as_val
=\$
$as_ac_var
13465 if test "x$as_val" = x
""yes; then :
13466 cat >>confdefs.h
<<_ACEOF
13467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13474 if test $opsys = unixware
; then
13476 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13479 for ac_func
in getwd
13481 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13482 if test "x$ac_cv_func_getwd" = x
""yes; then :
13483 cat >>confdefs.h
<<_ACEOF
13484 #define HAVE_GETWD 1
13492 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13493 ## has a broken `rint' in some library versions including math library
13494 ## version number A.09.05.
13495 ## You can fix the math library by installing patch number PHSS_4630.
13496 ## But we can fix it more reliably for Emacs by just not using rint.
13497 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13500 *) for ac_func
in random rint
13502 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13503 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13504 eval as_val
=\$
$as_ac_var
13505 if test "x$as_val" = x
""yes; then :
13506 cat >>confdefs.h
<<_ACEOF
13507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13516 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13517 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13526 __builtin_unwind_init ();
13531 if ac_fn_c_try_link
"$LINENO"; then :
13532 emacs_cv_func___builtin_unwind_init
=yes
13534 emacs_cv_func___builtin_unwind_init
=no
13536 rm -f core conftest.err conftest.
$ac_objext \
13537 conftest
$ac_exeext conftest.
$ac_ext
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13540 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13541 if test $emacs_cv_func___builtin_unwind_init = yes; then
13543 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13553 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <sys/types.h> /* for off_t */
13564 int (*fp) (FILE *, off_t, int) = fseeko;
13565 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13570 if ac_fn_c_try_link
"$LINENO"; then :
13571 ac_cv_sys_largefile_source
=no
; break
13573 rm -f core conftest.err conftest.
$ac_objext \
13574 conftest
$ac_exeext conftest.
$ac_ext
13575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 #define _LARGEFILE_SOURCE 1
13578 #include <sys/types.h> /* for off_t */
13583 int (*fp) (FILE *, off_t, int) = fseeko;
13584 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13589 if ac_fn_c_try_link
"$LINENO"; then :
13590 ac_cv_sys_largefile_source
=1; break
13592 rm -f core conftest.err conftest.
$ac_objext \
13593 conftest
$ac_exeext conftest.
$ac_ext
13594 ac_cv_sys_largefile_source
=unknown
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13600 case $ac_cv_sys_largefile_source in #(
13603 cat >>confdefs.h
<<_ACEOF
13604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13611 # in glibc 2.1.3, but that breaks too many other things.
13612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13613 if test $ac_cv_sys_largefile_source != unknown
; then
13615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13621 for ac_func
in grantpt
13623 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13624 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13625 cat >>confdefs.h
<<_ACEOF
13626 #define HAVE_GRANTPT 1
13633 # PTY-related GNU extensions.
13634 for ac_func
in getpt posix_openpt
13636 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13637 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13638 eval as_val
=\$
$as_ac_var
13639 if test "x$as_val" = x
""yes; then :
13640 cat >>confdefs.h
<<_ACEOF
13641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13648 # Check this now, so that we will NOT find the above functions in ncurses.
13649 # That is because we have not set up to link ncurses in lib-src.
13650 # It's better to believe a function is not available
13651 # than to expect to find it in ncurses.
13652 # Also we need tputs and friends to be able to build at all.
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13654 $as_echo_n "checking for library containing tputs... " >&6; }
13655 # Run a test program that contains a call to tputs, a call that is
13656 # never executed. This tests whether a pre-'main' dynamic linker
13657 # works with the library. It's too much trouble to actually call
13658 # tputs in the test program, due to portability hassles. When
13659 # cross-compiling, assume the test program will run if it links.
13661 # Maybe curses should be tried earlier?
13662 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13663 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13665 if test -z "$tputs_library"; then
13667 msg
='none required'
13669 LIBS_TERMCAP
=-l$tputs_library
13671 LIBS
="$LIBS_TERMCAP $LIBS"
13673 if test "$cross_compiling" = yes; then :
13674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 extern void tputs (const char *, int, int (*)(int));
13678 int main (int argc, char **argv)
13681 tputs (argv[0], 0, 0);
13686 if ac_fn_c_try_link
"$LINENO"; then :
13691 rm -f core conftest.err conftest.
$ac_objext \
13692 conftest
$ac_exeext conftest.
$ac_ext
13694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 extern void tputs (const char *, int, int (*)(int));
13698 int main (int argc, char **argv)
13701 tputs (argv[0], 0, 0);
13706 if ac_fn_c_try_run
"$LINENO"; then :
13711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13716 if test "X$msg" != Xno
; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13721 $as_echo "$msg" >&6; }
13722 if test "X$msg" = Xno
; then
13723 as_fn_error
"The required function \`tputs' was not found in any library.
13724 The following libraries were tried (in order):
13725 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13726 Please try installing whichever of these libraries is most appropriate
13727 for your system, together with its header files.
13728 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13731 ## Use termcap instead of terminfo?
13732 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13734 ## FIXME? In the cases below where we unconditionally set
13735 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13736 ## if that was found above to have tputs.
13737 ## Should we use the gnu* logic everywhere?
13739 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13740 ## The ncurses library has been moved out of the System framework in
13741 ## Mac OS X 10.2. So if configure detects it, set the command-line
13742 ## option to use it.
13743 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13745 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13749 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13750 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 #include <osreldate.h>
13759 #if __FreeBSD_version < 400000
13767 if ac_fn_c_try_link
"$LINENO"; then :
13768 emacs_cv_freebsd_terminfo
=yes
13770 emacs_cv_freebsd_terminfo
=no
13772 rm -f core conftest.err conftest.
$ac_objext \
13773 conftest
$ac_exeext conftest.
$ac_ext
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13778 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13780 if test $emacs_cv_freebsd_terminfo = yes; then
13781 LIBS_TERMCAP
="-lncurses"
13784 LIBS_TERMCAP
="-ltermcap"
13789 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13791 LIBS_TERMCAP
="-ltermcap"
13795 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13797 ## hpux: Make sure we get select from libc rather than from libcurses
13798 ## because libcurses on HPUX 10.10 has a broken version of select.
13799 ## We used to use -lc -lcurses, but this may be cleaner.
13800 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13801 # set that way, now it uses the default). Isn't this a contradiction?
13802 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13806 TERMCAP_OBJ
=tparam.o
13807 if test $TERMINFO = yes; then
13809 $as_echo "#define TERMINFO 1" >>confdefs.h
13811 TERMCAP_OBJ
=terminfo.o
13817 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13818 # On Darwin, res_init appears not to be useful: see bug#562 and
13819 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13822 if test $opsys != darwin
; then
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <netinet/in.h>
13827 #include <arpa/nameser.h>
13828 #include <resolv.h>
13837 if ac_fn_c_try_link
"$LINENO"; then :
13842 rm -f core conftest.err conftest.
$ac_objext \
13843 conftest
$ac_exeext conftest.
$ac_ext
13844 if test "$have_res_init" = no
; then
13846 LIBS
="$LIBS -lresolv"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13848 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 #include <netinet/in.h>
13852 #include <arpa/nameser.h>
13853 #include <resolv.h>
13862 if ac_fn_c_try_link
"$LINENO"; then :
13867 rm -f core conftest.err conftest.
$ac_objext \
13868 conftest
$ac_exeext conftest.
$ac_ext
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13870 $as_echo "$have_res_init" >&6; }
13871 if test "$have_res_init" = yes ; then
13877 if test "$have_res_init" = yes; then
13879 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13883 # Do we need the Hesiod library to provide the support routines?
13885 if test "$with_hesiod" != no
; then
13886 # Don't set $LIBS here -- see comments above. FIXME which comments?
13887 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13888 if test "x$ac_cv_func_res_send" = x
""yes; then :
13891 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13892 if test "x$ac_cv_func___res_send" = x
""yes; then :
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13896 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13897 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13900 ac_check_lib_save_LIBS
=$LIBS
13901 LIBS
="-lresolv $LIBS"
13902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13905 /* Override any GCC internal prototype to avoid an error.
13906 Use char because int might match the return type of a GCC
13907 builtin and then its argument prototype would still apply. */
13915 return res_send ();
13920 if ac_fn_c_try_link
"$LINENO"; then :
13921 ac_cv_lib_resolv_res_send
=yes
13923 ac_cv_lib_resolv_res_send
=no
13925 rm -f core conftest.err conftest.
$ac_objext \
13926 conftest
$ac_exeext conftest.
$ac_ext
13927 LIBS
=$ac_check_lib_save_LIBS
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13930 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13931 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13935 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13936 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13939 ac_check_lib_save_LIBS
=$LIBS
13940 LIBS
="-lresolv $LIBS"
13941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13950 char __res_send ();
13954 return __res_send ();
13959 if ac_fn_c_try_link
"$LINENO"; then :
13960 ac_cv_lib_resolv___res_send
=yes
13962 ac_cv_lib_resolv___res_send
=no
13964 rm -f core conftest.err conftest.
$ac_objext \
13965 conftest
$ac_exeext conftest.
$ac_ext
13966 LIBS
=$ac_check_lib_save_LIBS
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13969 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13970 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13980 if test "$resolv" = yes ; then
13985 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13986 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13990 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13991 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13994 ac_check_lib_save_LIBS
=$LIBS
13995 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14005 char hes_getmailhost ();
14009 return hes_getmailhost ();
14014 if ac_fn_c_try_link
"$LINENO"; then :
14015 ac_cv_lib_hesiod_hes_getmailhost
=yes
14017 ac_cv_lib_hesiod_hes_getmailhost
=no
14019 rm -f core conftest.err conftest.
$ac_objext \
14020 conftest
$ac_exeext conftest.
$ac_ext
14021 LIBS
=$ac_check_lib_save_LIBS
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14024 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14025 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14034 if test x
"$hesiod" = xyes
; then
14036 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14043 # Do we need libresolv (due to res_init or Hesiod)?
14044 if test "$resolv" = yes && test $opsys != darwin
; then
14046 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14054 # These tell us which Kerberos-related libraries to use.
14061 if test "${with_kerberos}" != no
; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14063 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14064 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14067 ac_check_lib_save_LIBS
=$LIBS
14068 LIBS
="-lcom_err $LIBS"
14069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14087 if ac_fn_c_try_link
"$LINENO"; then :
14088 ac_cv_lib_com_err_com_err
=yes
14090 ac_cv_lib_com_err_com_err
=no
14092 rm -f core conftest.err conftest.
$ac_objext \
14093 conftest
$ac_exeext conftest.
$ac_ext
14094 LIBS
=$ac_check_lib_save_LIBS
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14097 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14098 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14104 if test $have_com_err = yes; then
14105 COM_ERRLIB
=-lcom_err
14106 LIBS
="$COM_ERRLIB $LIBS"
14108 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14112 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14113 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14116 ac_check_lib_save_LIBS
=$LIBS
14117 LIBS
="-lcrypto $LIBS"
14118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14127 char mit_des_cbc_encrypt ();
14131 return mit_des_cbc_encrypt ();
14136 if ac_fn_c_try_link
"$LINENO"; then :
14137 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14139 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14141 rm -f core conftest.err conftest.
$ac_objext \
14142 conftest
$ac_exeext conftest.
$ac_ext
14143 LIBS
=$ac_check_lib_save_LIBS
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14146 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14147 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14153 if test $have_crypto = yes; then
14155 LIBS
="$CRYPTOLIB $LIBS"
14157 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14161 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14162 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14165 ac_check_lib_save_LIBS
=$LIBS
14166 LIBS
="-lk5crypto $LIBS"
14167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14176 char mit_des_cbc_encrypt ();
14180 return mit_des_cbc_encrypt ();
14185 if ac_fn_c_try_link
"$LINENO"; then :
14186 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14188 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14190 rm -f core conftest.err conftest.
$ac_objext \
14191 conftest
$ac_exeext conftest.
$ac_ext
14192 LIBS
=$ac_check_lib_save_LIBS
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14195 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14196 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14202 if test $have_k5crypto = yes; then
14203 CRYPTOLIB
=-lk5crypto
14204 LIBS
="$CRYPTOLIB $LIBS"
14206 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14210 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14211 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14214 ac_check_lib_save_LIBS
=$LIBS
14215 LIBS
="-lkrb5 $LIBS"
14216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14225 char krb5_init_context ();
14229 return krb5_init_context ();
14234 if ac_fn_c_try_link
"$LINENO"; then :
14235 ac_cv_lib_krb5_krb5_init_context
=yes
14237 ac_cv_lib_krb5_krb5_init_context
=no
14239 rm -f core conftest.err conftest.
$ac_objext \
14240 conftest
$ac_exeext conftest.
$ac_ext
14241 LIBS
=$ac_check_lib_save_LIBS
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14244 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14245 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14251 if test $have_krb5=yes; then
14253 LIBS
="$KRB5LIB $LIBS"
14255 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14258 if test "${with_kerberos5}" = no
; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14260 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14261 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14264 ac_check_lib_save_LIBS
=$LIBS
14265 LIBS
="-ldes425 $LIBS"
14266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14269 /* Override any GCC internal prototype to avoid an error.
14270 Use char because int might match the return type of a GCC
14271 builtin and then its argument prototype would still apply. */
14275 char des_cbc_encrypt ();
14279 return des_cbc_encrypt ();
14284 if ac_fn_c_try_link
"$LINENO"; then :
14285 ac_cv_lib_des425_des_cbc_encrypt
=yes
14287 ac_cv_lib_des425_des_cbc_encrypt
=no
14289 rm -f core conftest.err conftest.
$ac_objext \
14290 conftest
$ac_exeext conftest.
$ac_ext
14291 LIBS
=$ac_check_lib_save_LIBS
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14294 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14295 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14301 if test $have_des425 = yes; then
14303 LIBS
="$DESLIB $LIBS"
14305 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14309 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14310 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14313 ac_check_lib_save_LIBS
=$LIBS
14315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14318 /* Override any GCC internal prototype to avoid an error.
14319 Use char because int might match the return type of a GCC
14320 builtin and then its argument prototype would still apply. */
14324 char des_cbc_encrypt ();
14328 return des_cbc_encrypt ();
14333 if ac_fn_c_try_link
"$LINENO"; then :
14334 ac_cv_lib_des_des_cbc_encrypt
=yes
14336 ac_cv_lib_des_des_cbc_encrypt
=no
14338 rm -f core conftest.err conftest.
$ac_objext \
14339 conftest
$ac_exeext conftest.
$ac_ext
14340 LIBS
=$ac_check_lib_save_LIBS
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14343 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14344 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14350 if test $have_des = yes; then
14352 LIBS
="$DESLIB $LIBS"
14354 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14359 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14360 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14363 ac_check_lib_save_LIBS
=$LIBS
14364 LIBS
="-lkrb4 $LIBS"
14365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14368 /* Override any GCC internal prototype to avoid an error.
14369 Use char because int might match the return type of a GCC
14370 builtin and then its argument prototype would still apply. */
14374 char krb_get_cred ();
14378 return krb_get_cred ();
14383 if ac_fn_c_try_link
"$LINENO"; then :
14384 ac_cv_lib_krb4_krb_get_cred
=yes
14386 ac_cv_lib_krb4_krb_get_cred
=no
14388 rm -f core conftest.err conftest.
$ac_objext \
14389 conftest
$ac_exeext conftest.
$ac_ext
14390 LIBS
=$ac_check_lib_save_LIBS
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14393 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14394 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14400 if test $have_krb4 = yes; then
14402 LIBS
="$KRB4LIB $LIBS"
14404 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14408 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14409 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14412 ac_check_lib_save_LIBS
=$LIBS
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14423 char krb_get_cred ();
14427 return krb_get_cred ();
14432 if ac_fn_c_try_link
"$LINENO"; then :
14433 ac_cv_lib_krb_krb_get_cred
=yes
14435 ac_cv_lib_krb_krb_get_cred
=no
14437 rm -f core conftest.err conftest.
$ac_objext \
14438 conftest
$ac_exeext conftest.
$ac_ext
14439 LIBS
=$ac_check_lib_save_LIBS
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14442 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14443 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14449 if test $have_krb = yes; then
14451 LIBS
="$KRB4LIB $LIBS"
14453 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14459 if test "${with_kerberos5}" != no
; then
14460 for ac_header
in krb5.h
14462 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14463 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14464 cat >>confdefs.h
<<_ACEOF
14465 #define HAVE_KRB5_H 1
14467 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14469 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14471 cat >>confdefs.h
<<_ACEOF
14472 #define HAVE_KRB5_ERROR_TEXT 1
14477 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14479 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14481 cat >>confdefs.h
<<_ACEOF
14482 #define HAVE_KRB5_ERROR_E_TEXT 1
14493 for ac_header
in des.h
14495 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14496 if test "x$ac_cv_header_des_h" = x
""yes; then :
14497 cat >>confdefs.h
<<_ACEOF
14498 #define HAVE_DES_H 1
14502 for ac_header
in kerberosIV
/des.h
14504 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14505 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14506 cat >>confdefs.h
<<_ACEOF
14507 #define HAVE_KERBEROSIV_DES_H 1
14511 for ac_header
in kerberos
/des.h
14513 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14514 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14515 cat >>confdefs.h
<<_ACEOF
14516 #define HAVE_KERBEROS_DES_H 1
14531 for ac_header
in krb.h
14533 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14534 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14535 cat >>confdefs.h
<<_ACEOF
14536 #define HAVE_KRB_H 1
14540 for ac_header
in kerberosIV
/krb.h
14542 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14543 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14544 cat >>confdefs.h
<<_ACEOF
14545 #define HAVE_KERBEROSIV_KRB_H 1
14549 for ac_header
in kerberos
/krb.h
14551 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14552 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14553 cat >>confdefs.h
<<_ACEOF
14554 #define HAVE_KERBEROS_KRB_H 1
14570 for ac_header
in com_err.h
14572 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14573 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14574 cat >>confdefs.h
<<_ACEOF
14575 #define HAVE_COM_ERR_H 1
14593 for ac_func
in $ac_func_list
14595 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14597 eval as_val
=\$
$as_ac_var
14598 if test "x$as_val" = x
""yes; then :
14599 cat >>confdefs.h
<<_ACEOF
14600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14610 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14611 if test "${emacs_cv_localtime_cache+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14614 if test x
$ac_cv_func_tzset = xyes
; then
14615 if test "$cross_compiling" = yes; then :
14616 # If we have tzset, assume the worst when cross-compiling.
14617 emacs_cv_localtime_cache
=yes
14619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 char TZ_GMT0[] = "TZ=GMT0";
14623 char TZ_PST8[] = "TZ=PST8";
14626 time_t now = time ((time_t *) 0);
14627 int hour_GMT0, hour_unset;
14628 if (putenv (TZ_GMT0) != 0)
14630 hour_GMT0 = localtime (&now)->tm_hour;
14632 hour_unset = localtime (&now)->tm_hour;
14633 if (putenv (TZ_PST8) != 0)
14635 if (localtime (&now)->tm_hour == hour_GMT0)
14638 if (localtime (&now)->tm_hour != hour_unset)
14643 if ac_fn_c_try_run
"$LINENO"; then :
14644 emacs_cv_localtime_cache
=no
14646 emacs_cv_localtime_cache
=yes
14648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14653 # If we lack tzset, report that localtime does not cache TZ,
14654 # since we can't invalidate the cache if we don't have tzset.
14655 emacs_cv_localtime_cache
=no
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14659 $as_echo "$emacs_cv_localtime_cache" >&6; }
14660 if test $emacs_cv_localtime_cache = yes; then
14662 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14667 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14668 if test "x$ac_cv_func_socket" = x
""yes; then :
14674 if test $ok_so_far = yes; then
14675 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14676 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14684 if test $ok_so_far = yes; then
14685 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14686 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14694 if test $ok_so_far = yes; then
14696 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14700 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14702 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14707 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14708 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14710 $as_echo "yes" >&6; }
14712 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716 $as_echo "no" >&6; }
14720 *-solaris2.4 |
*-solaris2.4.
*)
14721 : ${ac_cv_func_vfork_works=no};;
14724 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14725 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14729 cat >>confdefs.h
<<_ACEOF
14735 for ac_header
in vfork.h
14737 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14738 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14739 cat >>confdefs.h
<<_ACEOF
14740 #define HAVE_VFORK_H 1
14747 for ac_func
in fork vfork
14749 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14751 eval as_val
=\$
$as_ac_var
14752 if test "x$as_val" = x
""yes; then :
14753 cat >>confdefs.h
<<_ACEOF
14754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 if test "x$ac_cv_func_fork" = xyes
; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14762 $as_echo_n "checking for working fork... " >&6; }
14763 if test "${ac_cv_func_fork_works+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14766 if test "$cross_compiling" = yes; then :
14767 ac_cv_func_fork_works
=cross
14769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14771 $ac_includes_default
14776 /* By Ruediger Kuhlmann. */
14777 return fork () < 0;
14783 if ac_fn_c_try_run
"$LINENO"; then :
14784 ac_cv_func_fork_works
=yes
14786 ac_cv_func_fork_works
=no
14788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14789 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14794 $as_echo "$ac_cv_func_fork_works" >&6; }
14797 ac_cv_func_fork_works
=$ac_cv_func_fork
14799 if test "x$ac_cv_func_fork_works" = xcross
; then
14801 *-*-amigaos* |
*-*-msdosdjgpp*)
14802 # Override, as these systems have only a dummy fork() stub
14803 ac_cv_func_fork_works
=no
14806 ac_cv_func_fork_works
=yes
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14810 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14812 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14813 if test "x$ac_cv_func_vfork" = xyes
; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14815 $as_echo_n "checking for working vfork... " >&6; }
14816 if test "${ac_cv_func_vfork_works+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14819 if test "$cross_compiling" = yes; then :
14820 ac_cv_func_vfork_works
=cross
14822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 /* Thanks to Paul Eggert for this test. */
14825 $ac_includes_default
14826 #include <sys/wait.h>
14827 #ifdef HAVE_VFORK_H
14828 # include <vfork.h>
14830 /* On some sparc systems, changes by the child to local and incoming
14831 argument registers are propagated back to the parent. The compiler
14832 is told about this with #include <vfork.h>, but some compilers
14833 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14834 static variable whose address is put into a register that is
14835 clobbered by the vfork. */
14838 sparc_address_test (int arg)
14840 sparc_address_test (arg) int arg;
14843 static pid_t child;
14861 pid_t parent = getpid ();
14864 sparc_address_test (0);
14869 /* Here is another test for sparc vfork register problems. This
14870 test uses lots of local variables, at least as many local
14871 variables as main has allocated so far including compiler
14872 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14873 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14874 reuse the register of parent for one of the local variables,
14875 since it will think that parent can't possibly be used any more
14876 in this routine. Assigning to the local variable will thus
14877 munge parent in the parent process. */
14879 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14880 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14881 /* Convince the compiler that p..p7 are live; otherwise, it might
14882 use the same hardware register for all 8 local variables. */
14883 if (p != p1 || p != p2 || p != p3 || p != p4
14884 || p != p5 || p != p6 || p != p7)
14887 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14888 from child file descriptors. If the child closes a descriptor
14889 before it execs or exits, this munges the parent's descriptor
14890 as well. Test for this by closing stdout in the child. */
14891 _exit(close(fileno(stdout)) != 0);
14896 while (wait(&status) != child)
14899 /* Was there some problem with vforking? */
14902 /* Did the child fail? (This shouldn't happen.) */
14905 /* Did the vfork/compiler bug occur? */
14906 || parent != getpid()
14908 /* Did the file descriptor bug occur? */
14909 || fstat(fileno(stdout), &st) != 0
14914 if ac_fn_c_try_run
"$LINENO"; then :
14915 ac_cv_func_vfork_works
=yes
14917 ac_cv_func_vfork_works
=no
14919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14925 $as_echo "$ac_cv_func_vfork_works" >&6; }
14928 if test "x$ac_cv_func_fork_works" = xcross
; then
14929 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14931 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14934 if test "x$ac_cv_func_vfork_works" = xyes
; then
14936 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14940 $as_echo "#define vfork fork" >>confdefs.h
14943 if test "x$ac_cv_func_fork_works" = xyes
; then
14945 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14950 for ac_func
in snprintf
14952 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14953 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14954 cat >>confdefs.h
<<_ACEOF
14955 #define HAVE_SNPRINTF 1
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14963 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14964 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <langinfo.h>
14973 char* cs = nl_langinfo(CODESET);
14978 if ac_fn_c_try_link
"$LINENO"; then :
14979 emacs_cv_langinfo_codeset
=yes
14981 emacs_cv_langinfo_codeset
=no
14983 rm -f core conftest.err conftest.
$ac_objext \
14984 conftest
$ac_exeext conftest.
$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14988 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14989 if test $emacs_cv_langinfo_codeset = yes; then
14991 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14996 $as_echo_n "checking for mbstate_t... " >&6; }
14997 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14998 $as_echo_n "(cached) " >&6
15000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 # include <wchar.h>
15007 mbstate_t x; return sizeof x;
15012 if ac_fn_c_try_compile
"$LINENO"; then :
15013 ac_cv_type_mbstate_t
=yes
15015 ac_cv_type_mbstate_t
=no
15017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15020 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15021 if test $ac_cv_type_mbstate_t = yes; then
15023 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15027 $as_echo "#define mbstate_t int" >>confdefs.h
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15032 $as_echo_n "checking for C restricted array declarations... " >&6; }
15033 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15034 $as_echo_n "(cached) " >&6
15036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 void fred (int x[__restrict]);
15047 if ac_fn_c_try_compile
"$LINENO"; then :
15048 emacs_cv_c_restrict_arr
=yes
15050 emacs_cv_c_restrict_arr
=no
15052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15055 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15056 if test "$emacs_cv_c_restrict_arr" = yes; then
15058 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15064 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15068 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15071 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15073 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15077 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15083 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15087 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15091 $as_echo "#define subprocesses 1" >>confdefs.h
15095 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15100 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15106 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15110 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15114 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15122 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15123 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15129 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15136 irix6-5 | sol2
* | unixware
)
15138 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15143 emacs_broken_SIGIO
=no
15146 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15147 emacs_broken_SIGIO
=yes
15152 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15158 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15166 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15172 darwin | freebsd | netbsd | openbsd
)
15174 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15180 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15181 *) sound_device
="/dev/dsp" ;;
15185 cat >>confdefs.h
<<_ACEOF
15186 #define DEFAULT_SOUND_DEVICE "$sound_device"
15192 darwin | gnu-linux | gnu-kfreebsd
)
15194 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15201 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15203 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15217 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15219 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15221 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15226 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15228 $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
15230 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15232 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15237 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15239 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15241 $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
15243 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15245 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15250 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15254 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15255 if test "x$ac_cv_func_grantpt" = xyes
; then
15257 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15259 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15261 $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
15263 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15264 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15266 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15268 elif test "x$ac_cv_func_getpt" = xyes
; then
15269 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15271 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15274 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15278 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15284 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15286 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15288 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15293 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15295 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15297 $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(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &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
15299 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15301 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15306 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15311 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15319 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15321 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15324 $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
15333 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15334 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15338 gnu-linux | gnu-kfreebsd
)
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15341 $as_echo_n "checking for signals via characters... " >&6; }
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15345 #include <linux/version.h>
15346 #if LINUX_VERSION_CODE < 0x20400
15347 # error "Linux version too old"
15358 if ac_fn_c_try_cpp
"$LINENO"; then :
15359 emacs_signals_via_chars
=yes
15361 emacs_signals_via_chars
=no
15363 rm -f conftest.err conftest.
$ac_ext
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15366 $as_echo "$emacs_signals_via_chars" >&6; }
15367 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15378 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15383 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15385 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15389 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15391 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15401 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15404 gnu | freebsd | netbsd | openbsd
)
15406 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15408 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15412 gnu-linux | gnu-kfreebsd
)
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15428 if ac_fn_c_try_cpp
"$LINENO"; then :
15429 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15432 rm -f conftest.err conftest.
$ac_ext
15434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15449 if ac_fn_c_try_cpp
"$LINENO"; then :
15451 $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
15454 rm -f conftest.err conftest.
$ac_ext
15459 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15464 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15476 aix4-2 | hpux
* | unixware
)
15477 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15481 gnu-linux | gnu-kfreebsd
)
15482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15485 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15486 || defined __alpha__ || defined __mips__ || defined __s390__ \
15487 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15488 || defined __ia64__ || defined __sh__
15491 # error "setjmp not known to work on this arch"
15502 if ac_fn_c_try_cpp
"$LINENO"; then :
15503 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15506 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15509 rm -f conftest.err conftest.
$ac_ext
15514 if test x
$GCC = xyes
; then
15515 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15519 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15520 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15526 $as_echo_n "checking for _setjmp... " >&6; }
15527 if test "${emacs_cv_func__setjmp+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <setjmp.h>
15544 if ac_fn_c_try_link
"$LINENO"; then :
15545 emacs_cv_func__setjmp
=yes
15547 emacs_cv_func__setjmp
=no
15549 rm -f core conftest.err conftest.
$ac_objext \
15550 conftest
$ac_exeext conftest.
$ac_ext
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15553 $as_echo "$emacs_cv_func__setjmp" >&6; }
15554 if test $emacs_cv_func__setjmp = yes; then
15556 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15560 $as_echo_n "checking for sigsetjmp... " >&6; }
15561 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <setjmp.h>
15572 if (! sigsetjmp (j, 1))
15578 if ac_fn_c_try_link
"$LINENO"; then :
15579 emacs_cv_func_sigsetjmp
=yes
15581 emacs_cv_func_sigsetjmp
=no
15583 rm -f core conftest.err conftest.
$ac_objext \
15584 conftest
$ac_exeext conftest.
$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15587 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15588 if test $emacs_cv_func_sigsetjmp = yes; then
15590 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15598 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15607 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15623 $as_echo "#define USG /**/" >>confdefs.h
15625 $as_echo "#define USG5 /**/" >>confdefs.h
15627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15631 # error "_AIX not defined"
15642 if ac_fn_c_try_cpp
"$LINENO"; then :
15646 $as_echo "#define _AIX /**/" >>confdefs.h
15649 rm -f conftest.err conftest.
$ac_ext
15654 $as_echo "#define CYGWIN 1" >>confdefs.h
15659 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15661 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15664 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15669 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15672 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15676 gnu | netbsd | openbsd
)
15677 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15683 # error "BSD_SYSTEM not defined"
15694 if ac_fn_c_try_cpp
"$LINENO"; then :
15697 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15700 rm -f conftest.err conftest.
$ac_ext
15703 gnu-linux | gnu-kfreebsd
)
15704 $as_echo "#define USG /**/" >>confdefs.h
15707 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15712 $as_echo "#define USG /**/" >>confdefs.h
15714 $as_echo "#define USG5 /**/" >>confdefs.h
15717 $as_echo "#define HPUX /**/" >>confdefs.h
15722 $as_echo "#define USG /**/" >>confdefs.h
15724 $as_echo "#define USG5 /**/" >>confdefs.h
15726 $as_echo "#define USG5_4 /**/" >>confdefs.h
15729 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15734 $as_echo "#define USG /**/" >>confdefs.h
15736 $as_echo "#define USG5 /**/" >>confdefs.h
15738 $as_echo "#define USG5_4 /**/" >>confdefs.h
15741 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15746 $as_echo "#define USG /**/" >>confdefs.h
15748 $as_echo "#define USG5 /**/" >>confdefs.h
15750 $as_echo "#define USG5_4 /**/" >>confdefs.h
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15756 $as_echo_n "checking for usable FIONREAD... " >&6; }
15757 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
15762 emacs_cv_usable_FIONREAD
=no
15766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 #include <sys/types.h>
15769 #include <sys/ioctl.h>
15771 # include <sys/filio.h>
15777 int foo = ioctl (0, FIONREAD, &foo);
15782 if ac_fn_c_try_compile
"$LINENO"; then :
15783 emacs_cv_usable_FIONREAD
=yes
15785 emacs_cv_usable_FIONREAD
=no
15787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15792 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15793 if test $emacs_cv_usable_FIONREAD = yes; then
15795 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15798 if test $emacs_broken_SIGIO = no
; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15800 $as_echo_n "checking for usable SIGIO... " >&6; }
15801 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15807 #include <signal.h>
15812 int foo = SIGIO | F_SETFL | FASYNC;
15817 if ac_fn_c_try_compile
"$LINENO"; then :
15818 emacs_cv_usable_SIGIO
=yes
15820 emacs_cv_usable_SIGIO
=no
15822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15825 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15826 if test $emacs_cv_usable_SIGIO = yes; then
15828 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15838 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15844 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15850 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15856 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15861 # Set up the CFLAGS for real compilation, so we can substitute it.
15862 CFLAGS
="$REAL_CFLAGS"
15863 CPPFLAGS
="$REAL_CPPFLAGS"
15865 ## Hack to detect a buggy GCC version.
15866 if test "x$GCC" = xyes \
15867 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15868 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15869 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15870 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15873 version
=$PACKAGE_VERSION
15875 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15877 cat >>confdefs.h
<<_ACEOF
15878 #define COPYRIGHT "$copyright"
15883 ### Specify what sort of things we'll be editing into Makefile and config.h.
15884 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15910 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15911 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15912 ## end of LIBX_BASE, but nothing ever set it.
15917 ## Used in lwlib/Makefile.in.
15926 if test -n "${term_header}"; then
15928 cat >>confdefs.h
<<_ACEOF
15929 #define TERM_HEADER "${term_header}"
15935 cat >>confdefs.h
<<_ACEOF
15936 #define EMACS_CONFIGURATION "${canonical}"
15940 cat >>confdefs.h
<<_ACEOF
15941 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15949 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15951 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15954 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15956 if test "$HAVE_XFT" = "yes"; then
15957 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15958 elif test "$HAVE_FREETYPE" = "yes"; then
15959 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15969 if test "${USE_X_TOOLKIT}" != "none" ; then
15970 WIDGET_OBJ
=widget.o
15972 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15974 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15976 $as_echo "#define USE_LUCID 1" >>confdefs.h
15978 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15980 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15985 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15986 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15990 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15991 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15992 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15996 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15997 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16000 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16006 case "$USE_X_TOOLKIT" in
16007 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16008 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16009 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16013 if test "$USE_X_TOOLKIT" = "none"; then
16014 LIBXT_OTHER
="\$(LIBXSM)"
16015 OLDXMENU_TARGET
="really-oldXMenu"
16017 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16018 OLDXMENU_TARGET
="really-lwlib"
16022 ## The X Menu stuff is present in the X10 distribution, but missing
16023 ## from X11. If we have X10, just use the installed library;
16024 ## otherwise, use our own copy.
16025 if test "${HAVE_X11}" = "yes" ; then
16027 $as_echo "#define HAVE_X11 1" >>confdefs.h
16030 if test "$USE_X_TOOLKIT" = "none"; then
16031 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16033 OLDXMENU
="\${lwlibdir}/liblw.a"
16035 LIBXMENU
="\$(OLDXMENU)"
16036 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16037 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16039 ## For a syntactically valid Makefile; not actually used for anything.
16040 ## See comments in src/Makefile.in.
16042 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16043 if test "${HAVE_X_WINDOWS}" = "yes"; then
16052 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16065 if test "${HAVE_MENUS}" = "yes" ; then
16067 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16071 if test "${GNU_MALLOC}" = "yes" ; then
16073 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16078 if test "${REL_ALLOC}" = "yes" ; then
16080 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16083 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16087 if test "$opsys" = "cygwin"; then
16088 CYGWIN_OBJ
="sheap.o cygw32.o"
16089 ## Cygwin differs because of its unexec().
16091 POST_ALLOC_OBJ
=lastfile.o
16094 PRE_ALLOC_OBJ
=lastfile.o
16101 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16102 # it temporarily reverts them to their pre-pkg-config values,
16103 # because gnulib needs to work with both src (which uses the
16104 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16105 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16106 # and it therefore needs to run in an environment where LIBS does not
16107 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16108 # for some package unrelated to lib-src.
16109 SAVE_CFLAGS
=$CFLAGS
16111 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16112 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16124 LIBC_FATAL_STDERR_
=1
16125 export LIBC_FATAL_STDERR_
16127 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16128 # for constant arguments. Useless!
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16130 $as_echo_n "checking for working alloca.h... " >&6; }
16131 if test "${ac_cv_working_alloca_h+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 #include <alloca.h>
16140 char *p = (char *) alloca (2 * sizeof (int));
16146 if ac_fn_c_try_link
"$LINENO"; then :
16147 ac_cv_working_alloca_h
=yes
16149 ac_cv_working_alloca_h
=no
16151 rm -f core conftest.err conftest.
$ac_objext \
16152 conftest
$ac_exeext conftest.
$ac_ext
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16155 $as_echo "$ac_cv_working_alloca_h" >&6; }
16156 if test $ac_cv_working_alloca_h = yes; then
16158 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16163 $as_echo_n "checking for alloca... " >&6; }
16164 if test "${ac_cv_func_alloca_works+set}" = set; then :
16165 $as_echo_n "(cached) " >&6
16167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16170 # define alloca __builtin_alloca
16173 # include <malloc.h>
16174 # define alloca _alloca
16176 # ifdef HAVE_ALLOCA_H
16177 # include <alloca.h>
16182 # ifndef alloca /* predefined by HP cc +Olibcalls */
16193 char *p = (char *) alloca (1);
16199 if ac_fn_c_try_link
"$LINENO"; then :
16200 ac_cv_func_alloca_works
=yes
16202 ac_cv_func_alloca_works
=no
16204 rm -f core conftest.err conftest.
$ac_objext \
16205 conftest
$ac_exeext conftest.
$ac_ext
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16208 $as_echo "$ac_cv_func_alloca_works" >&6; }
16210 if test $ac_cv_func_alloca_works = yes; then
16212 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16215 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16216 # that cause trouble. Some versions do not even contain alloca or
16217 # contain a buggy version. If you still want to use their alloca,
16218 # use ar to extract alloca.o from them instead of compiling alloca.c.
16224 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16226 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16230 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16231 if test "${ac_cv_os_cray+set}" = set; then :
16232 $as_echo_n "(cached) " >&6
16234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236 #if defined CRAY && ! defined CRAY2
16243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16244 $EGREP "webecray" >/dev
/null
2>&1; then :
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16253 $as_echo "$ac_cv_os_cray" >&6; }
16254 if test $ac_cv_os_cray = yes; then
16255 for ac_func
in _getb67 GETB67 getb67
; do
16256 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16257 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16258 eval as_val
=\$
$as_ac_var
16259 if test "x$as_val" = x
""yes; then :
16261 cat >>confdefs.h
<<_ACEOF
16262 #define CRAY_STACKSEG_END $ac_func
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16272 $as_echo_n "checking stack direction for C alloca... " >&6; }
16273 if test "${ac_cv_c_stack_direction+set}" = set; then :
16274 $as_echo_n "(cached) " >&6
16276 if test "$cross_compiling" = yes; then :
16277 ac_cv_c_stack_direction
=0
16279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 $ac_includes_default
16283 find_stack_direction (int *addr, int depth)
16285 int dir, dummy = 0;
16288 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16289 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16290 return dir + dummy;
16294 main (int argc, char **argv)
16296 return find_stack_direction (0, argc + !argv + 20) < 0;
16299 if ac_fn_c_try_run
"$LINENO"; then :
16300 ac_cv_c_stack_direction
=1
16302 ac_cv_c_stack_direction
=-1
16304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16310 $as_echo "$ac_cv_c_stack_direction" >&6; }
16311 cat >>confdefs.h
<<_ACEOF
16312 #define STACK_DIRECTION $ac_cv_c_stack_direction
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16322 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16323 if test "${ac_cv_c_bigendian+set}" = set; then :
16324 $as_echo_n "(cached) " >&6
16326 ac_cv_c_bigendian
=unknown
16327 # See if we're dealing with a universal compiler.
16328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 #ifndef __APPLE_CC__
16331 not a universal capable compiler
16336 if ac_fn_c_try_compile
"$LINENO"; then :
16338 # Check for potential -arch flags. It is not universal unless
16339 # there are at least two -arch flags with different values.
16342 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16343 if test -n "$ac_prev"; then
16345 i?
86 | x86_64 | ppc | ppc64
)
16346 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16349 ac_cv_c_bigendian
=universal
16355 elif test "x$ac_word" = "x-arch"; then
16360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16361 if test $ac_cv_c_bigendian = unknown
; then
16362 # See if sys/param.h defines the BYTE_ORDER macro.
16363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16365 #include <sys/types.h>
16366 #include <sys/param.h>
16371 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16372 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16374 bogus endian macros
16381 if ac_fn_c_try_compile
"$LINENO"; then :
16382 # It does; now see whether it defined to BIG_ENDIAN or not.
16383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #include <sys/types.h>
16386 #include <sys/param.h>
16391 #if BYTE_ORDER != BIG_ENDIAN
16399 if ac_fn_c_try_compile
"$LINENO"; then :
16400 ac_cv_c_bigendian
=yes
16402 ac_cv_c_bigendian
=no
16404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16408 if test $ac_cv_c_bigendian = unknown
; then
16409 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <limits.h>
16417 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16418 bogus endian macros
16425 if ac_fn_c_try_compile
"$LINENO"; then :
16426 # It does; now see whether it defined to _BIG_ENDIAN or not.
16427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 #include <limits.h>
16434 #ifndef _BIG_ENDIAN
16442 if ac_fn_c_try_compile
"$LINENO"; then :
16443 ac_cv_c_bigendian
=yes
16445 ac_cv_c_bigendian
=no
16447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16451 if test $ac_cv_c_bigendian = unknown
; then
16452 # Compile a test program.
16453 if test "$cross_compiling" = yes; then :
16454 # Try to guess by grepping values from an object file.
16455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 short int ascii_mm[] =
16458 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16459 short int ascii_ii[] =
16460 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16461 int use_ascii (int i) {
16462 return ascii_mm[i] + ascii_ii[i];
16464 short int ebcdic_ii[] =
16465 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16466 short int ebcdic_mm[] =
16467 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16468 int use_ebcdic (int i) {
16469 return ebcdic_mm[i] + ebcdic_ii[i];
16476 return use_ascii (foo) == use_ebcdic (foo);
16481 if ac_fn_c_try_compile
"$LINENO"; then :
16482 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16483 ac_cv_c_bigendian
=yes
16485 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16486 if test "$ac_cv_c_bigendian" = unknown
; then
16487 ac_cv_c_bigendian
=no
16489 # finding both strings is unlikely to happen, but who knows?
16490 ac_cv_c_bigendian
=unknown
16494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 $ac_includes_default
16503 /* Are we little or big endian? From Harbison&Steele. */
16507 char c[sizeof (long int)];
16510 return u.c[sizeof (long int) - 1] == 1;
16516 if ac_fn_c_try_run
"$LINENO"; then :
16517 ac_cv_c_bigendian
=no
16519 ac_cv_c_bigendian
=yes
16521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16522 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16528 $as_echo "$ac_cv_c_bigendian" >&6; }
16529 case $ac_cv_c_bigendian in #(
16531 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16537 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16541 as_fn_error
"unknown endianness
16542 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16547 $as_echo_n "checking for inline... " >&6; }
16548 if test "${ac_cv_c_inline+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16552 for ac_kw
in inline __inline__ __inline
; do
16553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #ifndef __cplusplus
16557 static $ac_kw foo_t static_foo () {return 0; }
16558 $ac_kw foo_t foo () {return 0; }
16562 if ac_fn_c_try_compile
"$LINENO"; then :
16563 ac_cv_c_inline
=$ac_kw
16565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16566 test "$ac_cv_c_inline" != no
&& break
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16571 $as_echo "$ac_cv_c_inline" >&6; }
16573 case $ac_cv_c_inline in
16576 case $ac_cv_c_inline in
16578 *) ac_val
=$ac_cv_c_inline;;
16580 cat >>confdefs.h
<<_ACEOF
16581 #ifndef __cplusplus
16582 #define inline $ac_val
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16590 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16591 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16592 $as_echo_n "(cached) " >&6
16594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 /* On HP-UX before 11.23, strtold returns a struct instead of
16597 long double. Reject implementations like that, by requiring
16598 compatibility with the C99 prototype. */
16599 #include <stdlib.h>
16600 static long double (*p) (char const *, char **) = strtold;
16602 test (char const *nptr, char **endptr)
16605 r = strtold (nptr, endptr);
16611 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16616 if ac_fn_c_try_link
"$LINENO"; then :
16617 gl_cv_func_c99_strtold
=yes
16619 gl_cv_func_c99_strtold
=no
16621 rm -f core conftest.err conftest.
$ac_objext \
16622 conftest
$ac_exeext conftest.
$ac_ext
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16625 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16626 if test $gl_cv_func_c99_strtold = yes; then
16628 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16640 GNULIB_EUIDACCESS
=0;
16641 GNULIB_FACCESSAT
=0;
16644 GNULIB_FDATASYNC
=0;
16646 GNULIB_FTRUNCATE
=0;
16648 GNULIB_GETDOMAINNAME
=0;
16649 GNULIB_GETDTABLESIZE
=0;
16650 GNULIB_GETGROUPS
=0;
16651 GNULIB_GETHOSTNAME
=0;
16653 GNULIB_GETLOGIN_R
=0;
16654 GNULIB_GETPAGESIZE
=0;
16655 GNULIB_GETUSERSHELL
=0;
16656 GNULIB_GROUP_MEMBER
=0;
16668 GNULIB_READLINKAT
=0;
16670 GNULIB_SETHOSTNAME
=0;
16673 GNULIB_SYMLINKAT
=0;
16674 GNULIB_TTYNAME_R
=0;
16675 GNULIB_UNISTD_H_NONBLOCKING
=0;
16676 GNULIB_UNISTD_H_SIGPIPE
=0;
16691 HAVE_GETDTABLESIZE
=1;
16693 HAVE_GETHOSTNAME
=1;
16695 HAVE_GETPAGESIZE
=1;
16696 HAVE_GROUP_MEMBER
=1;
16706 HAVE_SETHOSTNAME
=1;
16712 HAVE_DECL_ENVIRON
=1;
16713 HAVE_DECL_FCHDIR
=1;
16714 HAVE_DECL_FDATASYNC
=1;
16715 HAVE_DECL_GETDOMAINNAME
=1;
16716 HAVE_DECL_GETLOGIN_R
=1;
16717 HAVE_DECL_GETPAGESIZE
=1;
16718 HAVE_DECL_GETUSERSHELL
=1;
16719 HAVE_DECL_SETHOSTNAME
=1;
16720 HAVE_DECL_TTYNAME_R
=1;
16722 HAVE_SYS_PARAM_H
=0;
16727 REPLACE_FCHOWNAT
=0;
16728 REPLACE_FTRUNCATE
=0;
16730 REPLACE_GETDOMAINNAME
=0;
16731 REPLACE_GETLOGIN_R
=0;
16732 REPLACE_GETGROUPS
=0;
16733 REPLACE_GETPAGESIZE
=0;
16742 REPLACE_READLINK
=0;
16746 REPLACE_TTYNAME_R
=0;
16748 REPLACE_UNLINKAT
=0;
16751 UNISTD_H_HAVE_WINSOCK2_H
=0;
16752 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16763 $as_echo_n "checking if environ is properly declared... " >&6; }
16764 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16771 #include <unistd.h>
16773 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16774 #include <stdlib.h>
16776 extern struct { int foo; } environ;
16785 if ac_fn_c_try_compile
"$LINENO"; then :
16786 gt_cv_var_environ_declaration
=no
16788 gt_cv_var_environ_declaration
=yes
16790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16794 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16795 if test $gt_cv_var_environ_declaration = yes; then
16797 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16802 if test $gt_cv_var_environ_declaration != yes; then
16803 HAVE_DECL_ENVIRON
=0
16816 GNULIB_NONBLOCKING
=0;
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16829 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16830 if test "${gl_cv_have_include_next+set}" = set; then :
16831 $as_echo_n "(cached) " >&6
16833 rm -rf conftestd1a conftestd1b conftestd2
16834 mkdir conftestd1a conftestd1b conftestd2
16835 cat <<EOF > conftestd1a/conftest.h
16836 #define DEFINED_IN_CONFTESTD1
16837 #include_next <conftest.h>
16838 #ifdef DEFINED_IN_CONFTESTD2
16841 #error "include_next doesn't work"
16844 cat <<EOF > conftestd1b/conftest.h
16845 #define DEFINED_IN_CONFTESTD1
16847 #include_next <conftest.h>
16848 #ifdef DEFINED_IN_CONFTESTD2
16851 #error "include_next doesn't work"
16854 cat <<EOF > conftestd2/conftest.h
16855 #ifndef DEFINED_IN_CONFTESTD1
16856 #error "include_next test doesn't work"
16858 #define DEFINED_IN_CONFTESTD2
16860 gl_save_CPPFLAGS
="$CPPFLAGS"
16861 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 #include <conftest.h>
16866 if ac_fn_c_try_compile
"$LINENO"; then :
16867 gl_cv_have_include_next
=yes
16869 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 #include <conftest.h>
16874 if ac_fn_c_try_compile
"$LINENO"; then :
16875 gl_cv_have_include_next
=buggy
16877 gl_cv_have_include_next
=no
16879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16883 CPPFLAGS
="$gl_save_CPPFLAGS"
16884 rm -rf conftestd1a conftestd1b conftestd2
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16888 $as_echo "$gl_cv_have_include_next" >&6; }
16889 PRAGMA_SYSTEM_HEADER
=
16890 if test $gl_cv_have_include_next = yes; then
16891 INCLUDE_NEXT
=include_next
16892 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16893 if test -n "$GCC"; then
16894 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16897 if test $gl_cv_have_include_next = buggy
; then
16898 INCLUDE_NEXT
=include
16899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16901 INCLUDE_NEXT
=include
16902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16909 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16910 if test "${gl_cv_pragma_columns+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16922 $EGREP "choke me" >/dev
/null
2>&1; then :
16923 gl_cv_pragma_columns
=yes
16925 gl_cv_pragma_columns
=no
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16932 $as_echo "$gl_cv_pragma_columns" >&6; }
16933 if test $gl_cv_pragma_columns = yes; then
16934 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16940 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16941 if test "x$ac_cv_type_mode_t" = x
""yes; then :
16945 cat >>confdefs.h
<<_ACEOF
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16952 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16953 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16959 #include <sys/types.h>
16960 #include <sys/stat.h>
16964 struct stat s; s.st_dm_mode;
16969 if ac_fn_c_try_compile
"$LINENO"; then :
16970 ac_cv_struct_st_dm_mode
=yes
16972 ac_cv_struct_st_dm_mode
=no
16974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16977 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16979 if test $ac_cv_struct_st_dm_mode = yes; then
16981 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16986 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16987 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16993 cat >>confdefs.h
<<_ACEOF
16994 #define HAVE_DECL_STRMODE $ac_have_decl
17004 GNULIB_CALLOC_POSIX
=0;
17005 GNULIB_CANONICALIZE_FILE_NAME
=0;
17006 GNULIB_GETLOADAVG
=0;
17007 GNULIB_GETSUBOPT
=0;
17009 GNULIB_MALLOC_POSIX
=0;
17013 GNULIB_MKOSTEMPS
=0;
17016 GNULIB_POSIX_OPENPT
=0;
17018 GNULIB_PTSNAME_R
=0;
17022 GNULIB_REALLOC_POSIX
=0;
17029 GNULIB_SYSTEM_POSIX
=0;
17035 HAVE_CANONICALIZE_FILE_NAME
=1;
17036 HAVE_DECL_GETLOADAVG
=1;
17044 HAVE_POSIX_OPENPT
=1;
17053 HAVE_DECL_SETENV
=1;
17057 HAVE_STRUCT_RANDOM_DATA
=1;
17058 HAVE_SYS_LOADAVG_H
=0;
17060 HAVE_DECL_UNSETENV
=1;
17062 REPLACE_CANONICALIZE_FILE_NAME
=0;
17067 REPLACE_PTSNAME_R
=0;
17069 REPLACE_RANDOM_R
=0;
17071 REPLACE_REALPATH
=0;
17074 REPLACE_UNSETENV
=0;
17092 if test $gl_cv_have_include_next = yes; then
17093 gl_cv_next_getopt_h
='<'getopt.h
'>'
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17096 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17097 if test "${gl_cv_next_getopt_h+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17101 if test $ac_cv_header_getopt_h = yes; then
17104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 #include <getopt.h>
17110 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17111 *) gl_absname_cpp
="$ac_cpp" ;;
17116 gl_dirsep_regex
='[/\\]'
17119 gl_dirsep_regex
='\/'
17122 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17124 gl_header_literal_regex
=`echo 'getopt.h' \
17125 | sed -e "$gl_make_literal_regex_sed"`
17126 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17127 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17132 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17133 sed -n "$gl_absolute_header_sed"`'"'
17135 gl_cv_next_getopt_h
='<'getopt.h
'>'
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17141 $as_echo "$gl_cv_next_getopt_h" >&6; }
17143 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17145 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17147 gl_next_as_first_directive
='<'getopt.h
'>'
17149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17150 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17152 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17157 if test $ac_cv_header_getopt_h = yes; then
17166 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17167 for ac_header
in getopt.h
17169 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17170 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17171 cat >>confdefs.h
<<_ACEOF
17172 #define HAVE_GETOPT_H 1
17176 gl_replace_getopt
=yes
17183 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17184 for ac_func
in getopt_long_only
17186 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17187 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17188 cat >>confdefs.h
<<_ACEOF
17189 #define HAVE_GETOPT_LONG_ONLY 1
17193 gl_replace_getopt
=yes
17199 if test -z "$gl_replace_getopt"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17201 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17202 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17203 $as_echo_n "(cached) " >&6
17206 if test $cross_compiling = no
; then
17207 if test "$cross_compiling" = yes; then :
17208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17210 as_fn_error
"cannot run test program while cross compiling
17211 See \`config.log' for more details." "$LINENO" 5; }
17213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17216 #include <unistd.h>
17217 #include <stdlib.h>
17218 #include <string.h>
17223 static char program[] = "program";
17224 static char a[] = "-a";
17225 static char foo[] = "foo";
17226 static char bar[] = "bar";
17227 char *argv[] = { program, a, foo, bar, NULL };
17230 c = getopt (4, argv, "ab");
17233 c = getopt (4, argv, "ab");
17236 if (!(optind == 2))
17242 if ac_fn_c_try_run
"$LINENO"; then :
17243 gl_cv_func_getopt_posix
=maybe
17245 gl_cv_func_getopt_posix
=no
17247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17248 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17251 if test $gl_cv_func_getopt_posix = maybe
; then
17252 if test "$cross_compiling" = yes; then :
17253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17255 as_fn_error
"cannot run test program while cross compiling
17256 See \`config.log' for more details." "$LINENO" 5; }
17258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17261 #include <unistd.h>
17262 #include <stdlib.h>
17263 #include <string.h>
17268 static char program[] = "program";
17269 static char donald[] = "donald";
17270 static char p[] = "-p";
17271 static char billy[] = "billy";
17272 static char duck[] = "duck";
17273 static char a[] = "-a";
17274 static char bar[] = "bar";
17275 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17278 c = getopt (7, argv, "+abp:q:");
17281 if (!(strcmp (argv[0], "program") == 0))
17283 if (!(strcmp (argv[1], "donald") == 0))
17285 if (!(strcmp (argv[2], "-p") == 0))
17287 if (!(strcmp (argv[3], "billy") == 0))
17289 if (!(strcmp (argv[4], "duck") == 0))
17291 if (!(strcmp (argv[5], "-a") == 0))
17293 if (!(strcmp (argv[6], "bar") == 0))
17295 if (!(optind == 1))
17301 if ac_fn_c_try_run
"$LINENO"; then :
17302 gl_cv_func_getopt_posix
=maybe
17304 gl_cv_func_getopt_posix
=no
17306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17311 if test $gl_cv_func_getopt_posix = maybe
; then
17312 if test "$cross_compiling" = yes; then :
17313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17315 as_fn_error
"cannot run test program while cross compiling
17316 See \`config.log' for more details." "$LINENO" 5; }
17318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17321 #include <unistd.h>
17322 #include <stdlib.h>
17323 #include <string.h>
17328 static char program[] = "program";
17329 static char ab[] = "-ab";
17330 char *argv[3] = { program, ab, NULL };
17331 if (getopt (2, argv, "ab:") != 'a')
17333 if (getopt (2, argv, "ab:") != '?')
17343 if ac_fn_c_try_run
"$LINENO"; then :
17344 gl_cv_func_getopt_posix
=yes
17346 gl_cv_func_getopt_posix
=no
17348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17355 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17356 *) gl_cv_func_getopt_posix
="guessing yes";;
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17362 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17363 case "$gl_cv_func_getopt_posix" in
17364 *no
) gl_replace_getopt
=yes ;;
17368 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17370 $as_echo_n "checking for working GNU getopt function... " >&6; }
17371 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17374 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17375 # optstring is necessary for programs like m4 that have POSIX-mandated
17376 # semantics for supporting options interspersed with files.
17377 # Also, since getopt_long is a GNU extension, we require optind=0.
17378 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17379 # so take care to revert to the correct (non-)export state.
17380 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17381 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17382 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17383 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17384 *) gl_had_POSIXLY_CORRECT
= ;;
17387 export POSIXLY_CORRECT
17388 if test "$cross_compiling" = yes; then :
17389 gl_cv_func_getopt_gnu
="guessing no"
17392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 #include <getopt.h>
17395 #include <stddef.h>
17396 #include <string.h>
17398 #include <stdlib.h>
17399 #if defined __MACH__ && defined __APPLE__
17400 /* Avoid a crash on Mac OS X. */
17401 #include <mach/mach.h>
17402 #include <mach/mach_error.h>
17403 #include <mach/thread_status.h>
17404 #include <mach/exception.h>
17405 #include <mach/task.h>
17406 #include <pthread.h>
17407 /* The exception port on which our thread listens. */
17408 static mach_port_t our_exception_port;
17409 /* The main function of the thread listening for exceptions of type
17412 mach_exception_thread (void *arg)
17414 /* Buffer for a message to be received. */
17416 mach_msg_header_t head;
17417 mach_msg_body_t msgh_body;
17420 mach_msg_return_t retval;
17421 /* Wait for a message on the exception port. */
17422 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17423 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17424 if (retval != MACH_MSG_SUCCESS)
17429 nocrash_init (void)
17431 mach_port_t self = mach_task_self ();
17432 /* Allocate a port on which the thread shall listen for exceptions. */
17433 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17435 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17436 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17437 MACH_MSG_TYPE_MAKE_SEND)
17439 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17441 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17442 /* Create the thread listening on the exception port. */
17443 pthread_attr_t attr;
17445 if (pthread_attr_init (&attr) == 0
17446 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17447 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17448 pthread_attr_destroy (&attr);
17449 /* Replace the exception port info for these exceptions with our own.
17450 Note that we replace the exception port for the entire task, not only
17451 for a particular thread. This has the effect that when our exception
17452 port gets the message, the thread specific exception port has already
17453 been asked, and we don't need to bother about it.
17454 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17455 task_set_exception_ports (self, mask, our_exception_port,
17456 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17461 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17462 /* Avoid a crash on native Windows. */
17463 #define WIN32_LEAN_AND_MEAN
17464 #include <windows.h>
17465 #include <winerror.h>
17467 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17469 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17471 case EXCEPTION_ACCESS_VIOLATION:
17472 case EXCEPTION_IN_PAGE_ERROR:
17473 case EXCEPTION_STACK_OVERFLOW:
17474 case EXCEPTION_GUARD_PAGE:
17475 case EXCEPTION_PRIV_INSTRUCTION:
17476 case EXCEPTION_ILLEGAL_INSTRUCTION:
17477 case EXCEPTION_DATATYPE_MISALIGNMENT:
17478 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17479 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17482 return EXCEPTION_CONTINUE_SEARCH;
17485 nocrash_init (void)
17487 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17490 /* Avoid a crash on POSIX systems. */
17491 #include <signal.h>
17492 /* A POSIX signal handler. */
17494 exception_handler (int sig)
17499 nocrash_init (void)
17502 signal (SIGSEGV, exception_handler);
17505 signal (SIGBUS, exception_handler);
17519 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17520 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17521 OSF/1 5.1, Solaris 10. */
17523 static char conftest[] = "conftest";
17524 static char plus[] = "-+";
17525 char *argv[3] = { conftest, plus, NULL };
17527 if (getopt (2, argv, "+a") != '?')
17530 /* This code succeeds on glibc 2.8, mingw,
17531 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17532 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17534 static char program[] = "program";
17535 static char p[] = "-p";
17536 static char foo[] = "foo";
17537 static char bar[] = "bar";
17538 char *argv[] = { program, p, foo, bar, NULL };
17541 if (getopt (4, argv, "p::") != 'p')
17543 else if (optarg != NULL)
17545 else if (getopt (4, argv, "p::") != -1)
17547 else if (optind != 2)
17550 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17552 static char program[] = "program";
17553 static char foo[] = "foo";
17554 static char p[] = "-p";
17555 char *argv[] = { program, foo, p, NULL };
17557 if (getopt (3, argv, "-p") != 1)
17559 else if (getopt (3, argv, "-p") != 'p')
17562 /* This code fails on glibc 2.11. */
17564 static char program[] = "program";
17565 static char b[] = "-b";
17566 static char a[] = "-a";
17567 char *argv[] = { program, b, a, NULL };
17568 optind = opterr = 0;
17569 if (getopt (3, argv, "+:a:b") != 'b')
17571 else if (getopt (3, argv, "+:a:b") != ':')
17574 /* This code dumps core on glibc 2.14. */
17576 static char program[] = "program";
17577 static char w[] = "-W";
17578 static char dummy[] = "dummy";
17579 char *argv[] = { program, w, dummy, NULL };
17580 optind = opterr = 1;
17581 if (getopt (3, argv, "W;") != 'W')
17590 if ac_fn_c_try_run
"$LINENO"; then :
17591 gl_cv_func_getopt_gnu
=yes
17593 gl_cv_func_getopt_gnu
=no
17595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17599 case $gl_had_POSIXLY_CORRECT in
17601 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17602 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17607 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17608 if test "$gl_cv_func_getopt_gnu" != yes; then
17609 gl_replace_getopt
=yes
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17612 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17613 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17614 $as_echo_n "(cached) " >&6
17616 if test "$cross_compiling" = yes; then :
17618 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17619 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 #include <getopt.h>
17626 #include <stddef.h>
17627 #include <string.h>
17632 static const struct option long_options[] =
17634 { "xtremely-",no_argument, NULL, 1003 },
17635 { "xtra", no_argument, NULL, 1001 },
17636 { "xtreme", no_argument, NULL, 1002 },
17637 { "xtremely", no_argument, NULL, 1003 },
17638 { NULL, 0, NULL, 0 }
17640 /* This code fails on OpenBSD 5.0. */
17642 static char program[] = "program";
17643 static char xtremel[] = "--xtremel";
17644 char *argv[] = { program, xtremel, NULL };
17646 optind = 1; opterr = 0;
17647 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17656 if ac_fn_c_try_run
"$LINENO"; then :
17657 gl_cv_func_getopt_long_gnu
=yes
17659 gl_cv_func_getopt_long_gnu
=no
17661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17668 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17669 case "$gl_cv_func_getopt_long_gnu" in
17671 *) gl_replace_getopt
=yes ;;
17682 if test -n "$gl_replace_getopt"; then
17686 if test $REPLACE_GETOPT = 1; then
17690 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17696 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17697 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17703 cat >>confdefs.h
<<_ACEOF
17704 #define HAVE_DECL_GETENV $ac_have_decl
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17713 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17714 if test "${ac_cv_c_restrict+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17717 ac_cv_c_restrict
=no
17718 # The order here caters to the fact that C++ does not require restrict.
17719 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 typedef int * int_ptr;
17723 int foo (int_ptr $ac_kw ip) {
17730 int * $ac_kw t = s;
17737 if ac_fn_c_try_compile
"$LINENO"; then :
17738 ac_cv_c_restrict
=$ac_kw
17740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17741 test "$ac_cv_c_restrict" != no
&& break
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17746 $as_echo "$ac_cv_c_restrict" >&6; }
17748 case $ac_cv_c_restrict in
17750 no
) $as_echo "#define restrict /**/" >>confdefs.h
17752 *) cat >>confdefs.h
<<_ACEOF
17753 #define restrict $ac_cv_c_restrict
17759 GNULIB_GETTIMEOFDAY
=0;
17760 HAVE_GETTIMEOFDAY
=1;
17761 HAVE_STRUCT_TIMEVAL
=1;
17763 REPLACE_GETTIMEOFDAY
=0;
17764 REPLACE_STRUCT_TIMEVAL
=0;
17781 if test $gl_cv_have_include_next = yes; then
17782 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17785 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17786 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17787 $as_echo_n "(cached) " >&6
17790 if test $ac_cv_header_sys_time_h = yes; then
17793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 #include <sys/time.h>
17799 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17800 *) gl_absname_cpp
="$ac_cpp" ;;
17805 gl_dirsep_regex
='[/\\]'
17808 gl_dirsep_regex
='\/'
17811 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17813 gl_header_literal_regex
=`echo 'sys/time.h' \
17814 | sed -e "$gl_make_literal_regex_sed"`
17815 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17816 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17821 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17822 sed -n "$gl_absolute_header_sed"`'"'
17824 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17830 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17832 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17834 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17835 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17836 gl_next_as_first_directive
='<'sys
/time.h
'>'
17838 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17839 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17841 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17847 if test $ac_cv_header_sys_time_h != yes; then
17855 if test $ac_cv_header_sys_socket_h != yes; then
17856 for ac_header
in winsock2.h
17858 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17859 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17860 cat >>confdefs.h
<<_ACEOF
17861 #define HAVE_WINSOCK2_H 1
17869 if test "$ac_cv_header_winsock2_h" = yes; then
17871 UNISTD_H_HAVE_WINSOCK2_H
=1
17872 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17879 $as_echo_n "checking for struct timeval... " >&6; }
17880 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17881 $as_echo_n "(cached) " >&6
17883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #if HAVE_SYS_TIME_H
17886 #include <sys/time.h>
17889 #if HAVE_WINSOCK2_H
17890 # include <winsock2.h>
17896 static struct timeval x; x.tv_sec = x.tv_usec;
17901 if ac_fn_c_try_compile
"$LINENO"; then :
17902 gl_cv_sys_struct_timeval
=yes
17904 gl_cv_sys_struct_timeval
=no
17906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17910 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17911 if test $gl_cv_sys_struct_timeval != yes; then
17912 HAVE_STRUCT_TIMEVAL
=0
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17915 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17916 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17917 $as_echo_n "(cached) " >&6
17919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 #if HAVE_SYS_TIME_H
17922 #include <sys/time.h>
17925 #if HAVE_WINSOCK2_H
17926 # include <winsock2.h>
17932 static struct timeval x;
17933 typedef int verify_tv_sec_type[
17934 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17941 if ac_fn_c_try_compile
"$LINENO"; then :
17942 gl_cv_sys_struct_timeval_tv_sec
=yes
17944 gl_cv_sys_struct_timeval_tv_sec
=no
17946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17950 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17951 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17952 REPLACE_STRUCT_TIMEVAL
=1
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17963 $as_echo_n "checking for unsigned long long int... " >&6; }
17964 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17967 ac_cv_type_unsigned_long_long_int
=yes
17968 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17972 /* For now, do not test the preprocessor; as of 2007 there are too many
17973 implementations with broken preprocessors. Perhaps this can
17974 be revisited in 2012. In the meantime, code should not expect
17975 #if to work with literals wider than 32 bits. */
17976 /* Test literals. */
17977 long long int ll = 9223372036854775807ll;
17978 long long int nll = -9223372036854775807LL;
17979 unsigned long long int ull = 18446744073709551615ULL;
17980 /* Test constant expressions. */
17981 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17983 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17989 /* Test availability of runtime routines for shift and division. */
17990 long long int llmax = 9223372036854775807ll;
17991 unsigned long long int ullmax = 18446744073709551615ull;
17992 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17993 | (llmax / ll) | (llmax % ll)
17994 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17995 | (ullmax / ull) | (ullmax % ull));
18001 if ac_fn_c_try_link
"$LINENO"; then :
18004 ac_cv_type_unsigned_long_long_int
=no
18006 rm -f core conftest.err conftest.
$ac_objext \
18007 conftest
$ac_exeext conftest.
$ac_ext
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18011 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18012 if test $ac_cv_type_unsigned_long_long_int = yes; then
18014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18021 $as_echo_n "checking for long long int... " >&6; }
18022 if test "${ac_cv_type_long_long_int+set}" = set; then :
18023 $as_echo_n "(cached) " >&6
18025 ac_cv_type_long_long_int
=yes
18026 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18027 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18028 if test $ac_cv_type_long_long_int = yes; then
18029 if test "$cross_compiling" = yes; then :
18032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18034 #include <limits.h>
18037 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18038 # define LLONG_MAX (HALF - 1 + HALF)
18043 long long int n = 1;
18047 long long int m = n << i;
18050 if (LLONG_MAX / 2 < m)
18058 if ac_fn_c_try_run
"$LINENO"; then :
18061 ac_cv_type_long_long_int
=no
18063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18071 $as_echo "$ac_cv_type_long_long_int" >&6; }
18072 if test $ac_cv_type_long_long_int = yes; then
18074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18083 gl_cv_c_multiarch
=no
18084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 #ifndef __APPLE_CC__
18087 not a universal capable compiler
18092 if ac_fn_c_try_compile
"$LINENO"; then :
18096 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18097 if test -n "$prev"; then
18099 i?
86 | x86_64 | ppc | ppc64
)
18100 if test -z "$arch" ||
test "$arch" = "$word"; then
18103 gl_cv_c_multiarch
=yes
18109 if test "x$word" = "x-arch"; then
18116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18117 if test $gl_cv_c_multiarch = yes; then
18118 APPLE_UNIVERSAL_BUILD
=1
18120 APPLE_UNIVERSAL_BUILD
=0
18127 if test $ac_cv_type_long_long_int = yes; then
18128 HAVE_LONG_LONG_INT
=1
18130 HAVE_LONG_LONG_INT
=0
18134 if test $ac_cv_type_unsigned_long_long_int = yes; then
18135 HAVE_UNSIGNED_LONG_LONG_INT
=1
18137 HAVE_UNSIGNED_LONG_LONG_INT
=0
18142 if test $ac_cv_header_wchar_h = yes; then
18149 if test $ac_cv_header_inttypes_h = yes; then
18156 if test $ac_cv_header_sys_types_h = yes; then
18172 if test $gl_cv_have_include_next = yes; then
18173 gl_cv_next_stdint_h
='<'stdint.h
'>'
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18176 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18177 if test "${gl_cv_next_stdint_h+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18181 if test $ac_cv_header_stdint_h = yes; then
18184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186 #include <stdint.h>
18190 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18191 *) gl_absname_cpp
="$ac_cpp" ;;
18196 gl_dirsep_regex
='[/\\]'
18199 gl_dirsep_regex
='\/'
18202 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18204 gl_header_literal_regex
=`echo 'stdint.h' \
18205 | sed -e "$gl_make_literal_regex_sed"`
18206 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18207 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18212 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18213 sed -n "$gl_absolute_header_sed"`'"'
18215 gl_cv_next_stdint_h
='<'stdint.h
'>'
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18221 $as_echo "$gl_cv_next_stdint_h" >&6; }
18223 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18225 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18227 gl_next_as_first_directive
='<'stdint.h
'>'
18229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18230 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18232 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18237 if test $ac_cv_header_stdint_h = yes; then
18244 if test $ac_cv_header_stdint_h = yes; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18246 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18247 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18250 gl_cv_header_working_stdint_h
=no
18251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18255 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18256 #include <stdint.h>
18257 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18258 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18259 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18263 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18264 included before <wchar.h>. */
18265 #include <stddef.h>
18266 #include <signal.h>
18268 # include <stdio.h>
18270 # include <wchar.h>
18275 int8_t a1 = INT8_MAX;
18276 int8_t a1min = INT8_MIN;
18279 int16_t a2 = INT16_MAX;
18280 int16_t a2min = INT16_MIN;
18283 int32_t a3 = INT32_MAX;
18284 int32_t a3min = INT32_MIN;
18287 int64_t a4 = INT64_MAX;
18288 int64_t a4min = INT64_MIN;
18291 uint8_t b1 = UINT8_MAX;
18293 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18296 uint16_t b2 = UINT16_MAX;
18299 uint32_t b3 = UINT32_MAX;
18302 uint64_t b4 = UINT64_MAX;
18304 int_least8_t c1 = INT8_C (0x7f);
18305 int_least8_t c1max = INT_LEAST8_MAX;
18306 int_least8_t c1min = INT_LEAST8_MIN;
18307 int_least16_t c2 = INT16_C (0x7fff);
18308 int_least16_t c2max = INT_LEAST16_MAX;
18309 int_least16_t c2min = INT_LEAST16_MIN;
18310 int_least32_t c3 = INT32_C (0x7fffffff);
18311 int_least32_t c3max = INT_LEAST32_MAX;
18312 int_least32_t c3min = INT_LEAST32_MIN;
18313 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18314 int_least64_t c4max = INT_LEAST64_MAX;
18315 int_least64_t c4min = INT_LEAST64_MIN;
18316 uint_least8_t d1 = UINT8_C (0xff);
18317 uint_least8_t d1max = UINT_LEAST8_MAX;
18318 uint_least16_t d2 = UINT16_C (0xffff);
18319 uint_least16_t d2max = UINT_LEAST16_MAX;
18320 uint_least32_t d3 = UINT32_C (0xffffffff);
18321 uint_least32_t d3max = UINT_LEAST32_MAX;
18322 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18323 uint_least64_t d4max = UINT_LEAST64_MAX;
18324 int_fast8_t e1 = INT_FAST8_MAX;
18325 int_fast8_t e1min = INT_FAST8_MIN;
18326 int_fast16_t e2 = INT_FAST16_MAX;
18327 int_fast16_t e2min = INT_FAST16_MIN;
18328 int_fast32_t e3 = INT_FAST32_MAX;
18329 int_fast32_t e3min = INT_FAST32_MIN;
18330 int_fast64_t e4 = INT_FAST64_MAX;
18331 int_fast64_t e4min = INT_FAST64_MIN;
18332 uint_fast8_t f1 = UINT_FAST8_MAX;
18333 uint_fast16_t f2 = UINT_FAST16_MAX;
18334 uint_fast32_t f3 = UINT_FAST32_MAX;
18335 uint_fast64_t f4 = UINT_FAST64_MAX;
18337 intptr_t g = INTPTR_MAX;
18338 intptr_t gmin = INTPTR_MIN;
18341 uintptr_t h = UINTPTR_MAX;
18343 intmax_t i = INTMAX_MAX;
18344 uintmax_t j = UINTMAX_MAX;
18346 #include <limits.h> /* for CHAR_BIT */
18347 #define TYPE_MINIMUM(t) \
18348 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18349 #define TYPE_MAXIMUM(t) \
18350 ((t) ((t) 0 < (t) -1 \
18352 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18355 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18356 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18358 /* Detect bug in FreeBSD 6.0 / ia64. */
18359 int check_SIG_ATOMIC:
18360 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18361 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18363 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18365 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18366 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18368 /* Detect bug in mingw. */
18370 WINT_MIN == TYPE_MINIMUM (wint_t)
18371 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18374 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18376 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18377 int check_UINT16_C:
18378 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18380 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18382 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18385 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18388 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18391 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18393 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18394 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18395 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18396 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18397 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18398 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18399 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18400 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18401 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18402 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18403 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18414 if ac_fn_c_try_compile
"$LINENO"; then :
18415 if test "$cross_compiling" = yes; then :
18416 gl_cv_header_working_stdint_h
=yes
18419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18423 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18424 #include <stdint.h>
18427 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18428 included before <wchar.h>. */
18429 #include <stddef.h>
18430 #include <signal.h>
18432 # include <stdio.h>
18434 # include <wchar.h>
18439 #include <string.h>
18440 #define MVAL(macro) MVAL1(macro)
18441 #define MVAL1(expression) #expression
18442 static const char *macro_values[] =
18476 for (mv = macro_values; *mv != NULL; mv++)
18478 const char *value = *mv;
18479 /* Test whether it looks like a cast expression. */
18480 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18481 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18482 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18483 || strncmp (value, "((int)"/*)*/, 6) == 0
18484 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18485 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18486 return mv - macro_values + 1;
18494 if ac_fn_c_try_run
"$LINENO"; then :
18495 gl_cv_header_working_stdint_h
=yes
18497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18507 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18509 if test "$gl_cv_header_working_stdint_h" = yes; then
18512 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18514 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18515 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18516 eval as_val
=\$
$as_ac_Header
18517 if test "x$as_val" = x
""yes; then :
18518 cat >>confdefs.h
<<_ACEOF
18519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18526 if test $ac_cv_header_sys_inttypes_h = yes; then
18527 HAVE_SYS_INTTYPES_H
=1
18529 HAVE_SYS_INTTYPES_H
=0
18532 if test $ac_cv_header_sys_bitypes_h = yes; then
18533 HAVE_SYS_BITYPES_H
=1
18535 HAVE_SYS_BITYPES_H
=0
18541 if test $APPLE_UNIVERSAL_BUILD = 0; then
18544 for gltype
in ptrdiff_t size_t
; do
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18546 $as_echo_n "checking for bit size of $gltype... " >&6; }
18547 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18548 $as_echo_n "(cached) " >&6
18550 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18552 included before <wchar.h>. */
18553 #include <stddef.h>
18554 #include <signal.h>
18556 # include <stdio.h>
18558 # include <wchar.h>
18561 #include <limits.h>"; then :
18567 eval gl_cv_bitsizeof_
${gltype}=\
$result
18570 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18572 $as_echo "$ac_res" >&6; }
18573 eval result
=\
$gl_cv_bitsizeof_${gltype}
18574 if test $result = unknown
; then
18577 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18578 cat >>confdefs.h
<<_ACEOF
18579 #define BITSIZEOF_${GLTYPE} $result
18582 eval BITSIZEOF_
${GLTYPE}=\
$result
18589 for gltype
in sig_atomic_t wchar_t wint_t
; do
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18591 $as_echo_n "checking for bit size of $gltype... " >&6; }
18592 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18593 $as_echo_n "(cached) " >&6
18595 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18596 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18597 included before <wchar.h>. */
18598 #include <stddef.h>
18599 #include <signal.h>
18601 # include <stdio.h>
18603 # include <wchar.h>
18606 #include <limits.h>"; then :
18612 eval gl_cv_bitsizeof_
${gltype}=\
$result
18615 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18617 $as_echo "$ac_res" >&6; }
18618 eval result
=\
$gl_cv_bitsizeof_${gltype}
18619 if test $result = unknown
; then
18622 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18623 cat >>confdefs.h
<<_ACEOF
18624 #define BITSIZEOF_${GLTYPE} $result
18627 eval BITSIZEOF_
${GLTYPE}=\
$result
18633 for gltype
in sig_atomic_t wchar_t wint_t
; do
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18635 $as_echo_n "checking whether $gltype is signed... " >&6; }
18636 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18637 $as_echo_n "(cached) " >&6
18639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18642 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18643 included before <wchar.h>. */
18644 #include <stddef.h>
18645 #include <signal.h>
18647 # include <stdio.h>
18649 # include <wchar.h>
18652 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18661 if ac_fn_c_try_compile
"$LINENO"; then :
18666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18667 eval gl_cv_type_
${gltype}_signed
=\
$result
18670 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18672 $as_echo "$ac_res" >&6; }
18673 eval result
=\
$gl_cv_type_${gltype}_signed
18674 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18675 if test "$result" = yes; then
18676 cat >>confdefs.h
<<_ACEOF
18677 #define HAVE_SIGNED_${GLTYPE} 1
18680 eval HAVE_SIGNED_
${GLTYPE}=1
18682 eval HAVE_SIGNED_
${GLTYPE}=0
18687 gl_cv_type_ptrdiff_t_signed
=yes
18688 gl_cv_type_size_t_signed
=no
18689 if test $APPLE_UNIVERSAL_BUILD = 0; then
18692 for gltype
in ptrdiff_t size_t
; do
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18694 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18695 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18696 $as_echo_n "(cached) " >&6
18698 eval gl_cv_type_
${gltype}_suffix
=no
18699 eval result
=\
$gl_cv_type_${gltype}_signed
18700 if test "$result" = yes; then
18705 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18707 '') gltype1
='int';;
18708 l
) gltype1
='long int';;
18709 ll
) gltype1
='long long int';;
18710 i64
) gltype1
='__int64';;
18711 u
) gltype1
='unsigned int';;
18712 ul
) gltype1
='unsigned long int';;
18713 ull
) gltype1
='unsigned long long int';;
18714 ui64
)gltype1
='unsigned __int64';;
18716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18719 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18720 included before <wchar.h>. */
18721 #include <stddef.h>
18722 #include <signal.h>
18724 # include <stdio.h>
18726 # include <wchar.h>
18729 extern $gltype foo;
18730 extern $gltype1 foo;
18739 if ac_fn_c_try_compile
"$LINENO"; then :
18740 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18743 eval result
=\
$gl_cv_type_${gltype}_suffix
18744 test "$result" != no
&& break
18747 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18749 $as_echo "$ac_res" >&6; }
18750 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18751 eval result
=\
$gl_cv_type_${gltype}_suffix
18752 test "$result" = no
&& result
=
18753 eval ${GLTYPE}_SUFFIX
=\
$result
18754 cat >>confdefs.h
<<_ACEOF
18755 #define ${GLTYPE}_SUFFIX $result
18764 for gltype
in sig_atomic_t wchar_t wint_t
; do
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18766 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18767 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18768 $as_echo_n "(cached) " >&6
18770 eval gl_cv_type_
${gltype}_suffix
=no
18771 eval result
=\
$gl_cv_type_${gltype}_signed
18772 if test "$result" = yes; then
18777 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18779 '') gltype1
='int';;
18780 l
) gltype1
='long int';;
18781 ll
) gltype1
='long long int';;
18782 i64
) gltype1
='__int64';;
18783 u
) gltype1
='unsigned int';;
18784 ul
) gltype1
='unsigned long int';;
18785 ull
) gltype1
='unsigned long long int';;
18786 ui64
)gltype1
='unsigned __int64';;
18788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18791 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18792 included before <wchar.h>. */
18793 #include <stddef.h>
18794 #include <signal.h>
18796 # include <stdio.h>
18798 # include <wchar.h>
18801 extern $gltype foo;
18802 extern $gltype1 foo;
18811 if ac_fn_c_try_compile
"$LINENO"; then :
18812 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18815 eval result
=\
$gl_cv_type_${gltype}_suffix
18816 test "$result" != no
&& break
18819 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18821 $as_echo "$ac_res" >&6; }
18822 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18823 eval result
=\
$gl_cv_type_${gltype}_suffix
18824 test "$result" = no
&& result
=
18825 eval ${GLTYPE}_SUFFIX
=\
$result
18826 cat >>confdefs.h
<<_ACEOF
18827 #define ${GLTYPE}_SUFFIX $result
18834 if test $BITSIZEOF_WINT_T -lt 32; then
18835 BITSIZEOF_WINT_T
=32
18841 if test -n "$STDINT_H"; then
18842 GL_GENERATE_STDINT_H_TRUE
=
18843 GL_GENERATE_STDINT_H_FALSE
='#'
18845 GL_GENERATE_STDINT_H_TRUE
='#'
18846 GL_GENERATE_STDINT_H_FALSE
=
18855 GNULIB_STRTOIMAX
=0;
18856 GNULIB_STRTOUMAX
=0;
18857 HAVE_DECL_IMAXABS
=1;
18858 HAVE_DECL_IMAXDIV
=1;
18859 HAVE_DECL_STRTOIMAX
=1;
18860 HAVE_DECL_STRTOUMAX
=1;
18861 REPLACE_STRTOIMAX
=0;
18862 INT32_MAX_LT_INTMAX_MAX
=1;
18863 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18864 PRI_MACROS_BROKEN
=0;
18865 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18866 UINT32_MAX_LT_UINTMAX_MAX
=1;
18867 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18883 if test $gl_cv_have_include_next = yes; then
18884 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18887 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18888 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18889 $as_echo_n "(cached) " >&6
18892 if test $ac_cv_header_inttypes_h = yes; then
18895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897 #include <inttypes.h>
18901 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18902 *) gl_absname_cpp
="$ac_cpp" ;;
18907 gl_dirsep_regex
='[/\\]'
18910 gl_dirsep_regex
='\/'
18913 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18915 gl_header_literal_regex
=`echo 'inttypes.h' \
18916 | sed -e "$gl_make_literal_regex_sed"`
18917 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18923 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18924 sed -n "$gl_absolute_header_sed"`'"'
18926 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18932 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18934 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18936 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18938 gl_next_as_first_directive
='<'inttypes.h
'>'
18940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18941 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18943 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18958 $as_echo_n "checking for 64-bit off_t... " >&6; }
18959 if test "${gl_cv_type_off_t_64+set}" = set; then :
18960 $as_echo_n "(cached) " >&6
18962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h. */
18964 #include <sys/types.h>
18965 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18975 if ac_fn_c_try_compile
"$LINENO"; then :
18976 gl_cv_type_off_t_64
=yes
18978 gl_cv_type_off_t_64
=no
18980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18984 $as_echo "$gl_cv_type_off_t_64" >&6; }
18985 if test $gl_cv_type_off_t_64 = no
; then
18986 WINDOWS_64_BIT_OFF_T
=1
18988 WINDOWS_64_BIT_OFF_T
=0
18990 WINDOWS_64_BIT_ST_SIZE
=1
18993 WINDOWS_64_BIT_OFF_T
=0
18994 WINDOWS_64_BIT_ST_SIZE
=0
19011 GNULIB_UTIMENSAT
=0;
19025 REPLACE_FUTIMENS
=0;
19031 REPLACE_UTIMENSAT
=0;
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19037 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19038 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19039 $as_echo_n "(cached) " >&6
19041 rm -f conftest.sym conftest.
file
19042 echo >conftest.
file
19043 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
19044 if test "$cross_compiling" = yes; then :
19046 # Guess yes on glibc systems.
19047 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
19048 # If we don't know, assume the worst.
19049 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
19053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19055 $ac_includes_default
19060 /* Linux will dereference the symlink and fail, as required by
19061 POSIX. That is better in the sense that it means we will not
19062 have to compile and use the lstat wrapper. */
19063 return lstat ("conftest.sym/", &sbuf) == 0;
19069 if ac_fn_c_try_run
"$LINENO"; then :
19070 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19072 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19079 # If the 'ln -s' command failed, then we probably don't even
19080 # have an lstat function.
19081 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19083 rm -f conftest.sym conftest.
file
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19087 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19088 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19091 cat >>confdefs.h
<<_ACEOF
19092 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19100 GNULIB_NANOSLEEP
=0;
19104 HAVE_DECL_LOCALTIME_R
=1;
19108 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19109 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19110 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19111 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19128 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19129 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19130 $as_echo_n "(cached) " >&6
19133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135 #include <sys/select.h>
19144 if ac_fn_c_try_compile
"$LINENO"; then :
19145 gl_cv_header_sys_select_h_selfcontained
=yes
19147 gl_cv_header_sys_select_h_selfcontained
=no
19149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19150 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153 #include <sys/select.h>
19157 int memset; int bzero;
19163 if ac_fn_c_try_compile
"$LINENO"; then :
19164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19166 #include <sys/select.h>
19172 #define memset nonexistent_memset
19177 void *memset (void *, int, unsigned long);
19179 #define bzero nonexistent_bzero
19184 void bzero (void *, unsigned long);
19193 if ac_fn_c_try_link
"$LINENO"; then :
19196 gl_cv_header_sys_select_h_selfcontained
=no
19198 rm -f core conftest.err conftest.
$ac_objext \
19199 conftest
$ac_exeext conftest.
$ac_ext
19202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19207 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19217 if test $gl_cv_have_include_next = yes; then
19218 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19221 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19222 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19223 $as_echo_n "(cached) " >&6
19226 if test $ac_cv_header_sys_select_h = yes; then
19229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19231 #include <sys/select.h>
19235 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19236 *) gl_absname_cpp
="$ac_cpp" ;;
19241 gl_dirsep_regex
='[/\\]'
19244 gl_dirsep_regex
='\/'
19247 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19249 gl_header_literal_regex
=`echo 'sys/select.h' \
19250 | sed -e "$gl_make_literal_regex_sed"`
19251 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19252 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19257 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19258 sed -n "$gl_absolute_header_sed"`'"'
19260 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19266 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19268 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19270 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19272 gl_next_as_first_directive
='<'sys
/select.h
'>'
19274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19275 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19277 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19282 if test $ac_cv_header_sys_select_h = yes; then
19283 HAVE_SYS_SELECT_H
=1
19285 HAVE_SYS_SELECT_H
=0
19292 if test $ac_cv_header_sys_socket_h != yes; then
19293 for ac_header
in winsock2.h
19295 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19296 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19297 cat >>confdefs.h
<<_ACEOF
19298 #define HAVE_WINSOCK2_H 1
19306 if test "$ac_cv_header_winsock2_h" = yes; then
19308 UNISTD_H_HAVE_WINSOCK2_H
=1
19309 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19321 GNULIB_PTHREAD_SIGMASK
=0;
19323 GNULIB_SIGNAL_H_SIGPIPE
=0;
19324 GNULIB_SIGPROCMASK
=0;
19325 GNULIB_SIGACTION
=0;
19326 HAVE_POSIX_SIGNALBLOCKING
=1;
19327 HAVE_PTHREAD_SIGMASK
=1;
19332 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19334 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19336 HAVE_SIGHANDLER_T
=1;
19337 REPLACE_PTHREAD_SIGMASK
=0;
19346 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19347 #include <signal.h>
19348 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19349 #include <sys/types.h>
19352 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19354 cat >>confdefs.h
<<_ACEOF
19355 #define HAVE_SIGSET_T 1
19358 gl_cv_type_sigset_t
=yes
19360 gl_cv_type_sigset_t
=no
19363 if test $gl_cv_type_sigset_t != yes; then
19369 if test $ac_cv_header_sys_socket_h = no
; then
19370 for ac_header
in ws2tcpip.h
19372 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19373 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19374 cat >>confdefs.h
<<_ACEOF
19375 #define HAVE_WS2TCPIP_H 1
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19385 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19386 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19392 #include <stdbool.h>
19394 "error: bool is not defined"
19397 "error: false is not defined"
19400 "error: false is not 0"
19403 "error: true is not defined"
19406 "error: true is not 1"
19408 #ifndef __bool_true_false_are_defined
19409 "error: __bool_true_false_are_defined is not defined"
19412 struct s { _Bool s: 1; _Bool t; } s;
19414 char a[true == 1 ? 1 : -1];
19415 char b[false == 0 ? 1 : -1];
19416 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19417 char d[(bool) 0.5 == true ? 1 : -1];
19418 /* See body of main program for 'e'. */
19419 char f[(_Bool) 0.0 == false ? 1 : -1];
19421 char h[sizeof (_Bool)];
19422 char i[sizeof s.t];
19423 enum { j = false, k = true, l = false * true, m = true * 256 };
19424 /* The following fails for
19425 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19427 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19428 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19429 /* Catch a bug in an HP-UX C compiler. See
19430 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19431 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19443 /* Refer to every declared value, to avoid compiler optimizations. */
19444 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19445 + !m + !n + !o + !p + !q + !pq);
19451 if ac_fn_c_try_compile
"$LINENO"; then :
19452 ac_cv_header_stdbool_h
=yes
19454 ac_cv_header_stdbool_h
=no
19456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19459 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19460 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19461 if test "x$ac_cv_type__Bool" = x
""yes; then :
19463 cat >>confdefs.h
<<_ACEOF
19464 #define HAVE__BOOL 1
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19477 $as_echo_n "checking for wchar_t... " >&6; }
19478 if test "${gt_cv_c_wchar_t+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 #include <stddef.h>
19484 wchar_t foo = (wchar_t)'\0';
19493 if ac_fn_c_try_compile
"$LINENO"; then :
19494 gt_cv_c_wchar_t
=yes
19498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19501 $as_echo "$gt_cv_c_wchar_t" >&6; }
19502 if test $gt_cv_c_wchar_t = yes; then
19504 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19517 GNULIB_FPRINTF_POSIX
=0;
19533 GNULIB_OBSTACK_PRINTF
=0;
19534 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19539 GNULIB_PRINTF_POSIX
=0;
19548 GNULIB_SPRINTF_POSIX
=0;
19549 GNULIB_STDIO_H_NONBLOCKING
=0;
19550 GNULIB_STDIO_H_SIGPIPE
=0;
19552 GNULIB_VASPRINTF
=0;
19557 GNULIB_VFPRINTF_POSIX
=0;
19559 GNULIB_VPRINTF_POSIX
=0;
19560 GNULIB_VSNPRINTF
=0;
19561 GNULIB_VSPRINTF_POSIX
=0;
19562 HAVE_DECL_FPURGE
=1;
19563 HAVE_DECL_FSEEKO
=1;
19564 HAVE_DECL_FTELLO
=1;
19565 HAVE_DECL_GETDELIM
=1;
19566 HAVE_DECL_GETLINE
=1;
19567 HAVE_DECL_OBSTACK_PRINTF
=1;
19568 HAVE_DECL_SNPRINTF
=1;
19569 HAVE_DECL_VSNPRINTF
=1;
19590 REPLACE_GETDELIM
=0;
19592 REPLACE_OBSTACK_PRINTF
=0;
19598 REPLACE_RENAMEAT
=0;
19599 REPLACE_SNPRINTF
=0;
19601 REPLACE_STDIO_READ_FUNCS
=0;
19602 REPLACE_STDIO_WRITE_FUNCS
=0;
19604 REPLACE_VASPRINTF
=0;
19605 REPLACE_VDPRINTF
=0;
19606 REPLACE_VFPRINTF
=0;
19608 REPLACE_VSNPRINTF
=0;
19609 REPLACE_VSPRINTF
=0;
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19612 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19613 if test "${ac_cv_struct_tm+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618 #include <sys/types.h>
19625 int *p = &tm.tm_sec;
19631 if ac_fn_c_try_compile
"$LINENO"; then :
19632 ac_cv_struct_tm
=time.h
19634 ac_cv_struct_tm
=sys
/time.h
19636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19639 $as_echo "$ac_cv_struct_tm" >&6; }
19640 if test $ac_cv_struct_tm = sys
/time.h
; then
19642 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19646 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19647 #include <$ac_cv_struct_tm>
19650 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19652 cat >>confdefs.h
<<_ACEOF
19653 #define HAVE_STRUCT_TM_TM_ZONE 1
19659 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19661 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19664 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19666 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19672 cat >>confdefs.h
<<_ACEOF
19673 #define HAVE_DECL_TZNAME $ac_have_decl
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19677 $as_echo_n "checking for tzname... " >&6; }
19678 if test "${ac_cv_var_tzname+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19684 #if !HAVE_DECL_TZNAME
19685 extern char *tzname[];
19691 return tzname[0][0];
19696 if ac_fn_c_try_link
"$LINENO"; then :
19697 ac_cv_var_tzname
=yes
19699 ac_cv_var_tzname
=no
19701 rm -f core conftest.err conftest.
$ac_objext \
19702 conftest
$ac_exeext conftest.
$ac_ext
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19705 $as_echo "$ac_cv_var_tzname" >&6; }
19706 if test $ac_cv_var_tzname = yes; then
19708 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19714 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19716 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19718 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19725 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19726 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19732 cat >>confdefs.h
<<_ACEOF
19733 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19738 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19739 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19745 cat >>confdefs.h
<<_ACEOF
19746 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19752 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19753 if test "${ac_cv_header_stat_broken+set}" = set; then :
19754 $as_echo_n "(cached) " >&6
19756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h. */
19758 #include <sys/types.h>
19759 #include <sys/stat.h>
19761 #if defined S_ISBLK && defined S_IFDIR
19762 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19765 #if defined S_ISBLK && defined S_IFCHR
19766 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19769 #if defined S_ISLNK && defined S_IFREG
19770 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19773 #if defined S_ISSOCK && defined S_IFREG
19774 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19778 if ac_fn_c_try_compile
"$LINENO"; then :
19779 ac_cv_header_stat_broken
=no
19781 ac_cv_header_stat_broken
=yes
19783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19786 $as_echo "$ac_cv_header_stat_broken" >&6; }
19787 if test $ac_cv_header_stat_broken = yes; then
19789 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19798 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19799 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19800 $as_echo_n "(cached) " >&6
19802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19809 static struct timespec x; x.tv_sec = x.tv_nsec;
19814 if ac_fn_c_try_compile
"$LINENO"; then :
19815 gl_cv_sys_struct_timespec_in_time_h
=yes
19817 gl_cv_sys_struct_timespec_in_time_h
=no
19819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19822 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19824 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19825 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19826 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19827 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19828 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19831 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19832 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19833 $as_echo_n "(cached) " >&6
19835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837 #include <sys/time.h>
19842 static struct timespec x; x.tv_sec = x.tv_nsec;
19847 if ac_fn_c_try_compile
"$LINENO"; then :
19848 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19850 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19855 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19856 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19857 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19860 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19861 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19862 $as_echo_n "(cached) " >&6
19864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 #include <pthread.h>
19871 static struct timespec x; x.tv_sec = x.tv_nsec;
19876 if ac_fn_c_try_compile
"$LINENO"; then :
19877 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19879 gl_cv_sys_struct_timespec_in_pthread_h
=no
19881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19884 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19885 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19886 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19905 if test $gl_cv_have_include_next = yes; then
19906 gl_cv_next_time_h
='<'time.h
'>'
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19909 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19910 if test "${gl_cv_next_time_h+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19920 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19921 *) gl_absname_cpp
="$ac_cpp" ;;
19926 gl_dirsep_regex
='[/\\]'
19929 gl_dirsep_regex
='\/'
19932 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19934 gl_header_literal_regex
=`echo 'time.h' \
19935 | sed -e "$gl_make_literal_regex_sed"`
19936 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19937 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19942 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19943 sed -n "$gl_absolute_header_sed"`'"'
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19948 $as_echo "$gl_cv_next_time_h" >&6; }
19950 NEXT_TIME_H
=$gl_cv_next_time_h
19952 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19954 gl_next_as_first_directive
='<'time.h
'>'
19956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19957 gl_next_as_first_directive
=$gl_cv_next_time_h
19959 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19976 $as_echo_n "checking whether the utimes function works... " >&6; }
19977 if test "${gl_cv_func_working_utimes+set}" = set; then :
19978 $as_echo_n "(cached) " >&6
19981 if test "$cross_compiling" = yes; then :
19982 gl_cv_func_working_utimes
=no
19984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19987 #include <sys/types.h>
19988 #include <sys/stat.h>
19990 #include <sys/time.h>
19992 #include <unistd.h>
19993 #include <stdlib.h>
19998 inorder (time_t a, time_t b, time_t c)
20000 return a <= b && b <= c;
20007 char const *file = "conftest.utimes";
20008 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20010 /* Test whether utimes() essentially works. */
20013 FILE *f = fopen (file, "w");
20016 else if (fclose (f) != 0)
20018 else if (utimes (file, timeval) != 0)
20020 else if (lstat (file, &sbuf) != 0)
20022 else if (!(sbuf.st_atime == timeval[0].tv_sec
20023 && sbuf.st_mtime == timeval[1].tv_sec))
20025 if (unlink (file) != 0)
20029 /* Test whether utimes() with a NULL argument sets the file's timestamp
20030 to the current time. Use 'fstat' as well as 'time' to
20031 determine the "current" time, to accommodate NFS file systems
20032 if there is a time skew between the host and the NFS server. */
20034 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20040 struct stat st0, st1, st2;
20041 if (time (&t0) == (time_t) -1)
20043 else if (fstat (fd, &st0) != 0)
20045 else if (utimes (file, timeval) != 0)
20047 else if (utimes (file, NULL) != 0)
20049 else if (fstat (fd, &st1) != 0)
20051 else if (write (fd, "\n", 1) != 1)
20053 else if (fstat (fd, &st2) != 0)
20055 else if (time (&t2) == (time_t) -1)
20059 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20060 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20061 if (! (st1.st_atime == st1.st_mtime))
20063 if (! (m_ok_POSIX || m_ok_NFS))
20066 if (close (fd) != 0)
20069 if (unlink (file) != 0)
20073 /* Test whether utimes() with a NULL argument works on read-only files. */
20075 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20078 else if (close (fd) != 0)
20080 else if (utimes (file, NULL) != 0)
20082 if (unlink (file) != 0)
20090 if ac_fn_c_try_run
"$LINENO"; then :
20091 gl_cv_func_working_utimes
=yes
20093 gl_cv_func_working_utimes
=no
20095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20101 $as_echo "$gl_cv_func_working_utimes" >&6; }
20103 if test $gl_cv_func_working_utimes = yes; then
20105 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20114 $as_echo_n "checking for struct utimbuf... " >&6; }
20115 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120 #if HAVE_SYS_TIME_H
20121 #include <sys/time.h>
20124 #ifdef HAVE_UTIME_H
20131 static struct utimbuf x; x.actime = x.modtime;
20136 if ac_fn_c_try_compile
"$LINENO"; then :
20137 gl_cv_sys_struct_utimbuf
=yes
20139 gl_cv_sys_struct_utimbuf
=no
20141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20144 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20146 if test $gl_cv_sys_struct_utimbuf = yes; then
20148 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20163 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20164 if test "${ac_cv_type_getgroups+set}" = set; then :
20165 $as_echo_n "(cached) " >&6
20167 if test "$cross_compiling" = yes; then :
20168 ac_cv_type_getgroups
=cross
20170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20172 /* Thanks to Mike Rendell for this test. */
20173 $ac_includes_default
20176 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20181 gid_t gidset[NGID];
20183 union { gid_t gval; long int lval; } val;
20186 for (i = 0; i < NGID; i++)
20187 gidset[i] = val.gval;
20188 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20190 /* Exit non-zero if getgroups seems to require an array of ints. This
20191 happens when gid_t is short int but getgroups modifies an array
20193 return n > 0 && gidset[n] != val.gval;
20196 if ac_fn_c_try_run
"$LINENO"; then :
20197 ac_cv_type_getgroups
=gid_t
20199 ac_cv_type_getgroups
=int
20201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20205 if test $ac_cv_type_getgroups = cross
; then
20206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <unistd.h>
20211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20212 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20213 ac_cv_type_getgroups
=gid_t
20215 ac_cv_type_getgroups
=int
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20222 $as_echo "$ac_cv_type_getgroups" >&6; }
20224 cat >>confdefs.h
<<_ACEOF
20225 #define GETGROUPS_T $ac_cv_type_getgroups
20232 GL_COND_LIBTOOL_TRUE
=
20233 GL_COND_LIBTOOL_FALSE
='#'
20235 GL_COND_LIBTOOL_TRUE
='#'
20236 GL_COND_LIBTOOL_FALSE
=
20239 gl_cond_libtool
=false
20252 gl_source_base
='lib'
20255 if test $ac_cv_func_alloca_works = no
; then
20259 # Define an additional variable used in the Makefile substitution.
20260 if test $ac_cv_working_alloca_h = yes; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20262 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20263 if test "${gl_cv_rpl_alloca+set}" = set; then :
20264 $as_echo_n "(cached) " >&6
20267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h. */
20270 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20277 gl_cv_rpl_alloca
=yes
20279 gl_cv_rpl_alloca
=no
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20286 $as_echo "$gl_cv_rpl_alloca" >&6; }
20287 if test $gl_cv_rpl_alloca = yes; then
20289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20299 if test -n "$ALLOCA_H"; then
20300 GL_GENERATE_ALLOCA_H_TRUE
=
20301 GL_GENERATE_ALLOCA_H_FALSE
='#'
20303 GL_GENERATE_ALLOCA_H_TRUE
='#'
20304 GL_GENERATE_ALLOCA_H_FALSE
=
20312 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20313 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20315 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20316 # programs in the package would end up linked with that potentially-shared
20317 # library, inducing unnecessary run-time overhead.
20320 gl_saved_libs
=$LIBS
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20322 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20323 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20324 $as_echo_n "(cached) " >&6
20326 ac_func_search_save_LIBS
=$LIBS
20327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20336 char clock_gettime ();
20340 return clock_gettime ();
20345 for ac_lib
in '' rt posix4
; do
20346 if test -z "$ac_lib"; then
20347 ac_res
="none required"
20350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20352 if ac_fn_c_try_link
"$LINENO"; then :
20353 ac_cv_search_clock_gettime
=$ac_res
20355 rm -f core conftest.err conftest.
$ac_objext \
20357 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20361 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20364 ac_cv_search_clock_gettime
=no
20366 rm conftest.
$ac_ext
20367 LIBS
=$ac_func_search_save_LIBS
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20370 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20371 ac_res
=$ac_cv_search_clock_gettime
20372 if test "$ac_res" != no
; then :
20373 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20374 test "$ac_cv_search_clock_gettime" = "none required" ||
20375 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20378 for ac_func
in clock_gettime clock_settime
20380 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20381 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20382 eval as_val
=\$
$as_ac_var
20383 if test "x$as_val" = x
""yes; then :
20384 cat >>confdefs.h
<<_ACEOF
20385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20391 LIBS
=$gl_saved_libs
20398 cat >>confdefs.h
<<_ACEOF
20399 #define GNULIB_CLOSE_STREAM 1
20427 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20430 if test $HAVE_DUP2 = 1; then
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20432 $as_echo_n "checking whether dup2 works... " >&6; }
20433 if test "${gl_cv_func_dup2_works+set}" = set; then :
20434 $as_echo_n "(cached) " >&6
20436 if test "$cross_compiling" = yes; then :
20438 mingw
*) # on this platform, dup2 always returns 0 for success
20439 gl_cv_func_dup2_works
="guessing no" ;;
20440 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20441 gl_cv_func_dup2_works
="guessing no" ;;
20442 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20443 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20444 gl_cv_func_dup2_works
="guessing no" ;;
20445 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20446 gl_cv_func_dup2_works
="guessing no" ;;
20447 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20448 gl_cv_func_dup2_works
="guessing no" ;;
20449 *) gl_cv_func_dup2_works
="guessing yes" ;;
20452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20455 #include <unistd.h>
20463 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20466 if (dup2 (1, 1) == 0)
20469 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20473 if (dup2 (0, 0) != -1)
20475 /* Many gnulib modules require POSIX conformance of EBADF. */
20476 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20485 if ac_fn_c_try_run
"$LINENO"; then :
20486 gl_cv_func_dup2_works
=yes
20488 gl_cv_func_dup2_works
=no
20490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20497 $as_echo "$gl_cv_func_dup2_works" >&6; }
20498 case "$gl_cv_func_dup2_works" in
20507 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20516 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20547 EXECINFO_H
='execinfo.h'
20549 if test $ac_cv_header_execinfo_h = yes; then
20550 gl_saved_libs
=$LIBS
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20552 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20553 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20554 $as_echo_n "(cached) " >&6
20556 ac_func_search_save_LIBS
=$LIBS
20557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20560 /* Override any GCC internal prototype to avoid an error.
20561 Use char because int might match the return type of a GCC
20562 builtin and then its argument prototype would still apply. */
20566 char backtrace_symbols_fd ();
20570 return backtrace_symbols_fd ();
20575 for ac_lib
in '' execinfo
; do
20576 if test -z "$ac_lib"; then
20577 ac_res
="none required"
20580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20582 if ac_fn_c_try_link
"$LINENO"; then :
20583 ac_cv_search_backtrace_symbols_fd
=$ac_res
20585 rm -f core conftest.err conftest.
$ac_objext \
20587 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20591 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20594 ac_cv_search_backtrace_symbols_fd
=no
20596 rm conftest.
$ac_ext
20597 LIBS
=$ac_func_search_save_LIBS
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20600 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20601 ac_res
=$ac_cv_search_backtrace_symbols_fd
20602 if test "$ac_res" != no
; then :
20603 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20604 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20605 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20608 LIBS
=$gl_saved_libs
20609 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20612 if test -n "$EXECINFO_H"; then
20621 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20627 if test -n "$EXECINFO_H"; then
20628 GL_GENERATE_EXECINFO_H_TRUE
=
20629 GL_GENERATE_EXECINFO_H_FALSE
='#'
20631 GL_GENERATE_EXECINFO_H_TRUE
='#'
20632 GL_GENERATE_EXECINFO_H_FALSE
=
20643 if test $ac_cv_func_faccessat = no
; then
20647 if test $HAVE_FACCESSAT = 0; then
20656 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
20659 for ac_func
in access
20661 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
20662 if test "x$ac_cv_func_access" = x
""yes; then :
20663 cat >>confdefs.h
<<_ACEOF
20664 #define HAVE_ACCESS 1
20674 cat >>confdefs.h
<<_ACEOF
20675 #define GNULIB_FACCESSAT 1
20701 if test $gl_cv_have_include_next = yes; then
20702 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20705 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20706 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20711 /* end confdefs.h. */
20716 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20717 *) gl_absname_cpp
="$ac_cpp" ;;
20722 gl_dirsep_regex
='[/\\]'
20725 gl_dirsep_regex
='\/'
20728 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20730 gl_header_literal_regex
=`echo 'fcntl.h' \
20731 | sed -e "$gl_make_literal_regex_sed"`
20732 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20738 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20739 sed -n "$gl_absolute_header_sed"`'"'
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20744 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20746 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
20748 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20750 gl_next_as_first_directive
='<'fcntl.h
'>'
20752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20753 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
20755 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
20775 # include <stdio.h>
20776 # if HAVE_STDIO_EXT_H
20777 # include <stdio_ext.h>
20780 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20782 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
20788 cat >>confdefs.h
<<_ACEOF
20789 #define HAVE_DECL___FPENDING $ac_have_decl
20793 if test $ac_cv_func___fpending = no
; then
20802 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20806 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20807 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20814 'fp->_IO_write_ptr - fp->_IO_write_base' \
20816 '# traditional Unix' \
20817 'fp->_ptr - fp->_base' \
20820 'fp->_p - fp->_bf._base' \
20822 '# SCO, Unixware' \
20823 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20826 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20829 'fp->__bufp - fp->__buffer' \
20831 '# old glibc iostream?' \
20832 'fp->_pptr - fp->_pbase' \
20835 'fp->_ptr - fp->_buffer' \
20838 'fp->_ptr - fp->_buf' \
20841 'fp->wp - fp->buf' \
20844 '(*fp)->_ptr - (*fp)->_base' \
20846 '# e.g., DGUX R4.11; the info is not available' \
20850 # Skip each embedded comment.
20851 case "$ac_expr" in '#'*) continue;; esac
20853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20859 FILE *fp = stdin; (void) ($ac_expr);
20864 if ac_fn_c_try_compile
"$LINENO"; then :
20868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20869 test "$fp_done" = yes && break
20872 ac_cv_sys_pending_output_n_bytes
=$ac_expr
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20877 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20879 cat >>confdefs.h
<<_ACEOF
20880 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20887 # Persuade glibc <stdlib.h> to declare getloadavg().
20892 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20893 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20895 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20896 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20899 gl_func_getloadavg_done
=no
20901 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20902 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20903 # to get the right answer into the cache.
20904 # For kstat on solaris, we need to test for libelf and libkvm to force the
20905 # definition of SVR4 below.
20906 if test $gl_func_getloadavg_done = no
; then
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20908 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20909 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20910 $as_echo_n "(cached) " >&6
20912 ac_check_lib_save_LIBS
=$LIBS
20914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20927 return elf_begin ();
20932 if ac_fn_c_try_link
"$LINENO"; then :
20933 ac_cv_lib_elf_elf_begin
=yes
20935 ac_cv_lib_elf_elf_begin
=no
20937 rm -f core conftest.err conftest.
$ac_objext \
20938 conftest
$ac_exeext conftest.
$ac_ext
20939 LIBS
=$ac_check_lib_save_LIBS
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20942 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20943 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20948 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20949 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20952 ac_check_lib_save_LIBS
=$LIBS
20954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20957 /* Override any GCC internal prototype to avoid an error.
20958 Use char because int might match the return type of a GCC
20959 builtin and then its argument prototype would still apply. */
20967 return kvm_open ();
20972 if ac_fn_c_try_link
"$LINENO"; then :
20973 ac_cv_lib_kvm_kvm_open
=yes
20975 ac_cv_lib_kvm_kvm_open
=no
20977 rm -f core conftest.err conftest.
$ac_objext \
20978 conftest
$ac_exeext conftest.
$ac_ext
20979 LIBS
=$ac_check_lib_save_LIBS
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20982 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20983 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20987 # Check for the 4.4BSD definition of getloadavg.
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20989 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20990 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20993 ac_check_lib_save_LIBS
=$LIBS
20994 LIBS
="-lutil $LIBS"
20995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21004 char getloadavg ();
21008 return getloadavg ();
21013 if ac_fn_c_try_link
"$LINENO"; then :
21014 ac_cv_lib_util_getloadavg
=yes
21016 ac_cv_lib_util_getloadavg
=no
21018 rm -f core conftest.err conftest.
$ac_objext \
21019 conftest
$ac_exeext conftest.
$ac_ext
21020 LIBS
=$ac_check_lib_save_LIBS
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21024 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
21025 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
21030 if test $gl_func_getloadavg_done = no
; then
21031 # There is a commonly available library for RS/6000 AIX.
21032 # Since it is not a standard part of AIX, it might be installed locally.
21033 gl_getloadavg_LIBS
=$LIBS
21034 LIBS
="-L/usr/local/lib $LIBS"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21036 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21037 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21040 ac_check_lib_save_LIBS
=$LIBS
21041 LIBS
="-lgetloadavg $LIBS"
21042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21045 /* Override any GCC internal prototype to avoid an error.
21046 Use char because int might match the return type of a GCC
21047 builtin and then its argument prototype would still apply. */
21051 char getloadavg ();
21055 return getloadavg ();
21060 if ac_fn_c_try_link
"$LINENO"; then :
21061 ac_cv_lib_getloadavg_getloadavg
=yes
21063 ac_cv_lib_getloadavg_getloadavg
=no
21065 rm -f core conftest.err conftest.
$ac_objext \
21066 conftest
$ac_exeext conftest.
$ac_ext
21067 LIBS
=$ac_check_lib_save_LIBS
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21070 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21071 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
21072 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
21074 LIBS
=$gl_getloadavg_LIBS
21079 # Set up the replacement function if necessary.
21080 if test $gl_func_getloadavg_done = no
; then
21083 # Solaris has libkstat which does not require root.
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21085 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21086 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
21089 ac_check_lib_save_LIBS
=$LIBS
21090 LIBS
="-lkstat $LIBS"
21091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h. */
21094 /* Override any GCC internal prototype to avoid an error.
21095 Use char because int might match the return type of a GCC
21096 builtin and then its argument prototype would still apply. */
21100 char kstat_open ();
21104 return kstat_open ();
21109 if ac_fn_c_try_link
"$LINENO"; then :
21110 ac_cv_lib_kstat_kstat_open
=yes
21112 ac_cv_lib_kstat_kstat_open
=no
21114 rm -f core conftest.err conftest.
$ac_objext \
21115 conftest
$ac_exeext conftest.
$ac_ext
21116 LIBS
=$ac_check_lib_save_LIBS
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21119 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21120 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
21121 cat >>confdefs.h
<<_ACEOF
21122 #define HAVE_LIBKSTAT 1
21125 LIBS
="-lkstat $LIBS"
21129 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
21131 # AIX has libperfstat which does not require root
21132 if test $gl_func_getloadavg_done = no
; then
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21134 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21135 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21138 ac_check_lib_save_LIBS
=$LIBS
21139 LIBS
="-lperfstat $LIBS"
21140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21143 /* Override any GCC internal prototype to avoid an error.
21144 Use char because int might match the return type of a GCC
21145 builtin and then its argument prototype would still apply. */
21149 char perfstat_cpu_total ();
21153 return perfstat_cpu_total ();
21158 if ac_fn_c_try_link
"$LINENO"; then :
21159 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
21161 ac_cv_lib_perfstat_perfstat_cpu_total
=no
21163 rm -f core conftest.err conftest.
$ac_objext \
21164 conftest
$ac_exeext conftest.
$ac_ext
21165 LIBS
=$ac_check_lib_save_LIBS
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21168 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21169 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
21170 cat >>confdefs.h
<<_ACEOF
21171 #define HAVE_LIBPERFSTAT 1
21174 LIBS
="-lperfstat $LIBS"
21178 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
21181 if test $gl_func_getloadavg_done = no
; then
21182 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21183 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
21184 gl_func_getloadavg_done
=yes
21186 $as_echo "#define DGUX 1" >>confdefs.h
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21189 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21190 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21191 $as_echo_n "(cached) " >&6
21193 ac_check_lib_save_LIBS
=$LIBS
21195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21204 char dg_sys_info ();
21208 return dg_sys_info ();
21213 if ac_fn_c_try_link
"$LINENO"; then :
21214 ac_cv_lib_dgc_dg_sys_info
=yes
21216 ac_cv_lib_dgc_dg_sys_info
=no
21218 rm -f core conftest.err conftest.
$ac_objext \
21219 conftest
$ac_exeext conftest.
$ac_ext
21220 LIBS
=$ac_check_lib_save_LIBS
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21223 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21224 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21225 cat >>confdefs.h
<<_ACEOF
21226 #define HAVE_LIBDGC 1
21241 if test "x$gl_save_LIBS" = x
; then
21242 GETLOADAVG_LIBS
=$LIBS
21244 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21249 # Test whether the system declares getloadavg. Solaris has the function
21250 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21251 for ac_header
in sys
/loadavg.h
21253 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21254 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21255 cat >>confdefs.h
<<_ACEOF
21256 #define HAVE_SYS_LOADAVG_H 1
21263 if test $ac_cv_header_sys_loadavg_h = yes; then
21264 HAVE_SYS_LOADAVG_H
=1
21266 HAVE_SYS_LOADAVG_H
=0
21268 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21269 # include <sys/loadavg.h>
21271 #include <stdlib.h>
21273 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
21276 HAVE_DECL_GETLOADAVG
=0
21280 if test $HAVE_GETLOADAVG = 0; then
21289 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
21292 # Figure out what our getloadavg.c needs.
21296 # On HPUX9, an unprivileged user can get load averages this way.
21297 if test $gl_func_getloadavg_done = no
; then
21298 for ac_func
in pstat_getdynamic
21300 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21301 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
21302 cat >>confdefs.h
<<_ACEOF
21303 #define HAVE_PSTAT_GETDYNAMIC 1
21305 gl_func_getloadavg_done
=yes
21311 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21312 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21313 # Irix 4.0.5F has the header but not the library.
21314 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
21315 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21316 gl_func_getloadavg_done
=yes
21318 $as_echo "#define SVR4 1" >>confdefs.h
21322 if test $gl_func_getloadavg_done = no
; then
21323 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21324 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
21325 gl_func_getloadavg_done
=yes
21327 $as_echo "#define UMAX 1" >>confdefs.h
21330 $as_echo "#define UMAX4_3 1" >>confdefs.h
21337 if test $gl_func_getloadavg_done = no
; then
21338 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21339 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
21340 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
21347 if test $gl_func_getloadavg_done = no
; then
21348 for ac_header
in mach
/mach.h
21350 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21351 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
21352 cat >>confdefs.h
<<_ACEOF
21353 #define HAVE_MACH_MACH_H 1
21362 for ac_header
in nlist.h
21364 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21365 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
21366 cat >>confdefs.h
<<_ACEOF
21367 #define HAVE_NLIST_H 1
21369 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21371 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
21373 cat >>confdefs.h
<<_ACEOF
21374 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21387 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21388 x.n_un.n_name = "";
21396 if ac_fn_c_try_link
"$LINENO"; then :
21398 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21401 rm -f core conftest.err conftest.
$ac_objext \
21402 conftest
$ac_exeext conftest.
$ac_ext
21414 GNULIB_GETLOADAVG
=1
21425 if test $REPLACE_GETOPT = 1; then
21434 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21444 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21449 GNULIB_GL_UNISTD_H_GETOPT
=1
21459 if test -n "$gl_replace_getopt"; then
21463 if test $REPLACE_GETOPT = 1; then
21467 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21473 if test $REPLACE_GETOPT = 1; then
21482 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21492 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21497 GNULIB_GL_UNISTD_H_GETOPT
=1
21511 gl_gettimeofday_timezone
=void
21512 if test $ac_cv_func_gettimeofday != yes; then
21513 HAVE_GETTIMEOFDAY
=0
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21519 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21520 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21521 $as_echo_n "(cached) " >&6
21523 if test "$cross_compiling" = yes; then :
21524 # When cross-compiling:
21526 # Guess all is fine on glibc systems.
21527 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21528 # If we don't know, assume the worst.
21529 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h. */
21535 #include <string.h>
21536 #include <sys/time.h>
21538 #include <stdlib.h>
21546 struct tm saved_lt;
21548 lt = localtime (&t);
21550 gettimeofday (&tv, NULL);
21551 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21557 if ac_fn_c_try_run
"$LINENO"; then :
21558 gl_cv_func_gettimeofday_clobber
=no
21560 gl_cv_func_gettimeofday_clobber
=yes
21562 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21563 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21568 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21570 case "$gl_cv_func_gettimeofday_clobber" in
21572 REPLACE_GETTIMEOFDAY
=1
21575 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21578 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21582 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21588 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21589 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21590 $as_echo_n "(cached) " >&6
21592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21594 #include <sys/time.h>
21596 int gettimeofday (struct timeval *restrict, void *restrict);
21601 /* glibc uses struct timezone * rather than the POSIX void *
21602 if _GNU_SOURCE is defined. However, since the only portable
21603 use of gettimeofday uses NULL as the second parameter, and
21604 since the glibc definition is actually more typesafe, it is
21605 not worth wrapping this to get a compliant signature. */
21606 int (*f) (struct timeval *restrict, void *restrict)
21609 return !(x | c.tv_sec | c.tv_usec);
21615 if ac_fn_c_try_compile
"$LINENO"; then :
21616 gl_cv_func_gettimeofday_posix_signature
=yes
21618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h. */
21620 #include <sys/time.h>
21621 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21631 if ac_fn_c_try_compile
"$LINENO"; then :
21632 gl_cv_func_gettimeofday_posix_signature
=almost
21634 gl_cv_func_gettimeofday_posix_signature
=no
21636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21641 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21642 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21643 gl_gettimeofday_timezone
='struct timezone'
21644 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21645 REPLACE_GETTIMEOFDAY
=1
21647 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21648 REPLACE_GETTIMEOFDAY
=1
21653 cat >>confdefs.h
<<_ACEOF
21654 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21658 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21667 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21670 for ac_header
in sys
/timeb.h
21672 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21673 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21674 cat >>confdefs.h
<<_ACEOF
21675 #define HAVE_SYS_TIMEB_H 1
21682 for ac_func
in _ftime
21684 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21685 if test "x$ac_cv_func__ftime" = x
""yes; then :
21686 cat >>confdefs.h
<<_ACEOF
21687 #define HAVE__FTIME 1
21700 GNULIB_GETTIMEOFDAY
=1
21711 if test $ac_cv_func_lstat = yes; then
21713 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21722 if test $REPLACE_LSTAT = 1; then
21731 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21755 if test $APPLE_UNIVERSAL_BUILD = 1; then
21756 # A universal build on Apple Mac OS X platforms.
21757 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21758 # But we need a configuration result that is valid in both modes.
21759 gl_cv_func_working_mktime
=no
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21762 $as_echo_n "checking for working mktime... " >&6; }
21763 if test "${gl_cv_func_working_mktime+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 if test "$cross_compiling" = yes; then :
21767 gl_cv_func_working_mktime
=no
21769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21771 /* Test program from Paul Eggert and Tony Leneis. */
21772 #include <limits.h>
21773 #include <stdlib.h>
21776 #ifdef HAVE_UNISTD_H
21777 # include <unistd.h>
21781 # define alarm(X) /* empty */
21784 /* Work around redefinition to rpl_putenv by other config tests. */
21787 static time_t time_t_max;
21788 static time_t time_t_min;
21790 /* Values we'll use to set the TZ environment variable. */
21791 static char *tz_strings[] = {
21792 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21793 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21795 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21797 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21798 Based on a problem report from Andreas Jaeger. */
21800 spring_forward_gap ()
21802 /* glibc (up to about 1998-10-07) failed this test. */
21805 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21806 instead of "TZ=America/Vancouver" in order to detect the bug even
21807 on systems that don't support the Olson extension, or don't have the
21808 full zoneinfo tables installed. */
21809 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21818 return mktime (&tm) != (time_t) -1;
21822 mktime_test1 (time_t now)
21825 return ! (lt = localtime (&now)) || mktime (lt) == now;
21829 mktime_test (time_t now)
21831 return (mktime_test1 (now)
21832 && mktime_test1 ((time_t) (time_t_max - now))
21833 && mktime_test1 ((time_t) (time_t_min + now)));
21839 /* Based on code from Ariel Faigon. */
21849 return tm.tm_mon == 2 && tm.tm_mday == 31;
21853 bigtime_test (int j)
21857 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21858 now = mktime (&tm);
21859 if (now != (time_t) -1)
21861 struct tm *lt = localtime (&now);
21863 && lt->tm_year == tm.tm_year
21864 && lt->tm_mon == tm.tm_mon
21865 && lt->tm_mday == tm.tm_mday
21866 && lt->tm_hour == tm.tm_hour
21867 && lt->tm_min == tm.tm_min
21868 && lt->tm_sec == tm.tm_sec
21869 && lt->tm_yday == tm.tm_yday
21870 && lt->tm_wday == tm.tm_wday
21871 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21872 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21881 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21882 ignoring leap seconds. */
21883 unsigned long int answer = 2527315200UL;
21887 tm.tm_year = 2050 - 1900;
21890 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21893 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21894 instead of "TZ=America/Vancouver" in order to detect the bug even
21895 on systems that don't support the Olson extension, or don't have the
21896 full zoneinfo tables installed. */
21897 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21901 /* Check that the result is either a failure, or close enough
21902 to the correct answer that we can assume the discrepancy is
21903 due to leap seconds. */
21904 return (t == (time_t) -1
21905 || (0 < t && answer - 120 <= t && t <= answer + 120));
21914 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21915 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21917 /* This test makes some buggy mktime implementations loop.
21918 Give up after 60 seconds; a mktime slower than that
21919 isn't worth using anyway. */
21922 time_t_max = (! time_t_signed
21924 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21926 time_t_min = (! time_t_signed
21928 : time_t_signed_magnitude
21932 delta = time_t_max / 997; /* a suitable prime number */
21933 for (i = 0; i < N_STRINGS; i++)
21936 putenv (tz_strings[i]);
21938 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21939 if (! mktime_test (t))
21941 if ((result & 2) == 0
21942 && ! (mktime_test ((time_t) 1)
21943 && mktime_test ((time_t) (60 * 60))
21944 && mktime_test ((time_t) (60 * 60 * 24))))
21947 for (j = 1; (result & 4) == 0; j <<= 1)
21949 if (! bigtime_test (j))
21951 if (INT_MAX / 2 < j)
21954 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21957 if (! irix_6_4_bug ())
21959 if (! spring_forward_gap ())
21961 if (! year_2050_test ())
21966 if ac_fn_c_try_run
"$LINENO"; then :
21967 gl_cv_func_working_mktime
=yes
21969 gl_cv_func_working_mktime
=no
21971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21978 $as_echo "$gl_cv_func_working_mktime" >&6; }
21980 if test $gl_cv_func_working_mktime = no
; then
21986 if test $REPLACE_MKTIME = 1; then
21995 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
22016 if test $ac_cv_func_pselect = yes; then
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22018 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22019 if test "${gl_cv_sig_pselect+set}" = set; then :
22020 $as_echo_n "(cached) " >&6
22022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024 #include <sys/select.h>
22029 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22030 struct timespec const *restrict,
22031 sigset_t const *restrict) = pselect;
22037 if ac_fn_c_try_link
"$LINENO"; then :
22038 gl_cv_sig_pselect
=yes
22040 gl_cv_sig_pselect
=no
22042 rm -f core conftest.err conftest.
$ac_objext \
22043 conftest
$ac_exeext conftest.
$ac_ext
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22046 $as_echo "$gl_cv_sig_pselect" >&6; }
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22049 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22050 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22051 $as_echo_n "(cached) " >&6
22054 if test "$cross_compiling" = yes; then :
22057 # Guess yes on glibc systems.
22058 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
22059 # If we don't know, assume the worst.
22060 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
22064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22065 /* end confdefs.h. */
22067 #include <sys/types.h>
22068 #include <sys/time.h>
22069 #if HAVE_SYS_SELECT_H
22070 # include <sys/select.h>
22072 #include <unistd.h>
22084 struct timespec timeout;
22085 timeout.tv_sec = 0;
22086 timeout.tv_nsec = 5000;
22087 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22093 if ac_fn_c_try_run
"$LINENO"; then :
22094 gl_cv_func_pselect_detects_ebadf
=yes
22096 gl_cv_func_pselect_detects_ebadf
=no
22098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22105 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22106 case $gl_cv_func_pselect_detects_ebadf in
22108 *) REPLACE_PSELECT
=1 ;;
22112 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
22116 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
22125 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
22143 LIB_PTHREAD_SIGMASK
=
22148 if test "$gl_threads_api" = posix
; then
22149 if test $ac_cv_func_pthread_sigmask = yes; then
22152 if test -n "$LIBMULTITHREAD"; then
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22154 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22155 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22158 gl_save_LIBS
="$LIBS"
22159 LIBS
="$LIBS $LIBMULTITHREAD"
22160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <pthread.h>
22163 #include <signal.h>
22168 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22174 if ac_fn_c_try_link
"$LINENO"; then :
22175 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
22177 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
22179 rm -f core conftest.err conftest.
$ac_objext \
22180 conftest
$ac_exeext conftest.
$ac_ext
22181 LIBS
="$gl_save_LIBS"
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22185 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22186 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22187 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
22189 HAVE_PTHREAD_SIGMASK
=0
22192 HAVE_PTHREAD_SIGMASK
=0
22196 if test $ac_cv_func_pthread_sigmask = yes; then
22197 REPLACE_PTHREAD_SIGMASK
=1
22199 HAVE_PTHREAD_SIGMASK
=0
22206 if test $HAVE_PTHREAD_SIGMASK = 1; then
22209 if test -z "$LIB_PTHREAD_SIGMASK"; then
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22211 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22212 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22216 if test "$cross_compiling" = yes; then :
22219 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22220 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
22222 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
22226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22229 #include <pthread.h>
22230 #include <signal.h>
22231 #include <stddef.h>
22235 sigemptyset (&set);
22236 return pthread_sigmask (1729, &set, NULL) != 0;
22239 if ac_fn_c_try_run
"$LINENO"; then :
22240 gl_cv_func_pthread_sigmask_in_libc_works
=no
22242 gl_cv_func_pthread_sigmask_in_libc_works
=yes
22244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22251 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22252 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22254 REPLACE_PTHREAD_SIGMASK
=1
22256 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22263 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22264 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22268 gl_save_LIBS
="$LIBS"
22269 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
22270 if test "$cross_compiling" = yes; then :
22273 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
22275 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
22279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22280 /* end confdefs.h. */
22282 #include <pthread.h>
22283 #include <signal.h>
22284 #include <stddef.h>
22288 sigemptyset (&set);
22289 if (pthread_sigmask (1729, &set, NULL) == -1)
22294 if ac_fn_c_try_run
"$LINENO"; then :
22295 gl_cv_func_pthread_sigmask_return_works
=yes
22297 gl_cv_func_pthread_sigmask_return_works
=no
22299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22300 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22303 LIBS
="$gl_save_LIBS"
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22307 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22308 case "$gl_cv_func_pthread_sigmask_return_works" in
22310 REPLACE_PTHREAD_SIGMASK
=1
22312 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22318 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22319 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22325 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
22327 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
22329 gl_save_LIBS
="$LIBS"
22330 LIBS
="$LIBS $LIBMULTITHREAD"
22331 if test "$cross_compiling" = yes; then :
22334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22337 #include <pthread.h>
22338 #include <signal.h>
22340 #include <stdlib.h>
22341 #include <unistd.h>
22342 static volatile int sigint_occurred;
22344 sigint_handler (int sig)
22351 int pid = getpid ();
22353 signal (SIGINT, sigint_handler);
22354 sigemptyset (&set);
22355 sigaddset (&set, SIGINT);
22356 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22358 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22359 if (!(system (command) == 0))
22362 if (!(sigint_occurred == 0))
22364 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22366 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22371 if ac_fn_c_try_run
"$LINENO"; then :
22374 gl_cv_func_pthread_sigmask_unblock_works
=no
22376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22380 LIBS
="$gl_save_LIBS"
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22384 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22385 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22387 REPLACE_PTHREAD_SIGMASK
=1
22389 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22395 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22404 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22407 if test $HAVE_PTHREAD_SIGMASK = 1; then
22409 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22419 GNULIB_PTHREAD_SIGMASK
=1
22428 if test $ac_cv_func_readlink = no
; then
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22432 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22433 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22437 /* end confdefs.h. */
22438 #include <unistd.h>
22439 /* Cause compilation failure if original declaration has wrong type. */
22440 ssize_t readlink (const char *, char *, size_t);
22449 if ac_fn_c_try_compile
"$LINENO"; then :
22450 gl_cv_decl_readlink_works
=yes
22452 gl_cv_decl_readlink_works
=no
22454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22457 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22459 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22460 if test "${gl_cv_func_readlink_works+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22463 # We have readlink, so assume ln -s works.
22464 ln -s conftest.no-such conftest.link
22465 ln -s conftest.link conftest.lnk2
22466 if test "$cross_compiling" = yes; then :
22468 # Guess yes on glibc systems.
22469 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22470 # If we don't know, assume the worst.
22471 *) gl_cv_func_readlink_works
="guessing no" ;;
22475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477 #include <unistd.h>
22483 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22488 if ac_fn_c_try_run
"$LINENO"; then :
22489 gl_cv_func_readlink_works
=yes
22491 gl_cv_func_readlink_works
=no
22493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22497 rm -f conftest.link conftest.lnk2
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22500 $as_echo "$gl_cv_func_readlink_works" >&6; }
22501 case "$gl_cv_func_readlink_works" in
22503 if test "$gl_cv_decl_readlink_works" != yes; then
22509 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22516 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22525 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22553 if test $gl_cv_have_include_next = yes; then
22554 gl_cv_next_signal_h
='<'signal.h
'>'
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22557 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22558 if test "${gl_cv_next_signal_h+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22564 #include <signal.h>
22568 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22569 *) gl_absname_cpp
="$ac_cpp" ;;
22574 gl_dirsep_regex
='[/\\]'
22577 gl_dirsep_regex
='\/'
22580 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22582 gl_header_literal_regex
=`echo 'signal.h' \
22583 | sed -e "$gl_make_literal_regex_sed"`
22584 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22590 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22591 sed -n "$gl_absolute_header_sed"`'"'
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22596 $as_echo "$gl_cv_next_signal_h" >&6; }
22598 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22600 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22602 gl_next_as_first_directive
='<'signal.h
'>'
22604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22605 gl_next_as_first_directive
=$gl_cv_next_signal_h
22607 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22613 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22614 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22615 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22616 #include <signal.h>
22619 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22622 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22631 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22632 #include <signal.h>
22635 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22638 HAVE_SIGHANDLER_T
=0
22644 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22645 /* <sys/types.h> is not needed according to POSIX, but the
22646 <sys/socket.h> in i386-unknown-freebsd4.10 and
22647 powerpc-apple-darwin5.5 required it. */
22648 #include <sys/types.h>
22649 #if HAVE_SYS_SOCKET_H
22650 # include <sys/socket.h>
22651 #elif HAVE_WS2TCPIP_H
22652 # include <ws2tcpip.h>
22656 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22660 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22661 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22664 # Systems have either "struct sockaddr *" or
22665 # "void *" as the second argument to getpeername
22666 gl_cv_socklen_t_equiv
=
22667 for arg2
in "struct sockaddr" void
; do
22668 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h. */
22671 #include <sys/types.h>
22672 #include <sys/socket.h>
22674 int getpeername (int, $arg2 *, $t *);
22679 getpeername (0, 0, &len);
22684 if ac_fn_c_try_compile
"$LINENO"; then :
22685 gl_cv_socklen_t_equiv
="$t"
22687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22688 test "$gl_cv_socklen_t_equiv" != "" && break
22690 test "$gl_cv_socklen_t_equiv" != "" && break
22695 if test "$gl_cv_socklen_t_equiv" = ""; then
22696 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22699 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22701 cat >>confdefs.h
<<_ACEOF
22702 #define socklen_t $gl_cv_socklen_t_equiv
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22709 $as_echo_n "checking for ssize_t... " >&6; }
22710 if test "${gt_cv_ssize_t+set}" = set; then :
22711 $as_echo_n "(cached) " >&6
22713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715 #include <sys/types.h>
22719 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22725 if ac_fn_c_try_compile
"$LINENO"; then :
22730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22733 $as_echo "$gt_cv_ssize_t" >&6; }
22734 if test $gt_cv_ssize_t = no
; then
22736 $as_echo "#define ssize_t int" >>confdefs.h
22744 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>
22745 #include <sys/stat.h>
22747 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22749 cat >>confdefs.h
<<_ACEOF
22750 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22754 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22755 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22756 $as_echo_n "(cached) " >&6
22758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22761 #include <sys/types.h>
22762 #include <sys/stat.h>
22763 #if HAVE_SYS_TIME_H
22764 # include <sys/time.h>
22767 struct timespec ts;
22780 if ac_fn_c_try_compile
"$LINENO"; then :
22781 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22783 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22788 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22789 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22791 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22795 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>
22796 #include <sys/stat.h>
22798 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22800 cat >>confdefs.h
<<_ACEOF
22801 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22806 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22807 #include <sys/stat.h>
22809 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22811 cat >>confdefs.h
<<_ACEOF
22812 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22817 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>
22818 #include <sys/stat.h>
22820 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22822 cat >>confdefs.h
<<_ACEOF
22823 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22839 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>
22840 #include <sys/stat.h>
22842 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22844 cat >>confdefs.h
<<_ACEOF
22845 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22850 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22851 #include <sys/stat.h>
22853 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22855 cat >>confdefs.h
<<_ACEOF
22856 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22861 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>
22862 #include <sys/stat.h>
22864 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22866 cat >>confdefs.h
<<_ACEOF
22867 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22880 $as_echo_n "checking for working stdalign.h... " >&6; }
22881 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h. */
22886 #include <stdalign.h>
22887 #include <stddef.h>
22889 /* Test that alignof yields a result consistent with offsetof.
22890 This catches GCC bug 52023
22891 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22893 template <class t> struct alignof_helper { char a; t b; };
22894 # define ao(type) offsetof (alignof_helper<type>, b)
22896 # define ao(type) offsetof (struct { char a; type b; }, b)
22898 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22899 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22900 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22902 /* Test _Alignas only on platforms where gnulib can help. */
22904 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22905 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22906 int alignas (8) alignas_int = 1;
22907 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22918 if ac_fn_c_try_compile
"$LINENO"; then :
22919 gl_cv_header_working_stdalign_h
=yes
22921 gl_cv_header_working_stdalign_h
=no
22923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22926 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22928 if test $gl_cv_header_working_stdalign_h = yes; then
22931 STDALIGN_H
='stdalign.h'
22935 if test -n "$STDALIGN_H"; then
22936 GL_GENERATE_STDALIGN_H_TRUE
=
22937 GL_GENERATE_STDALIGN_H_FALSE
='#'
22939 GL_GENERATE_STDALIGN_H_TRUE
='#'
22940 GL_GENERATE_STDALIGN_H_FALSE
=
22946 NEXT_STDARG_H
='<stdarg.h>'
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22948 $as_echo_n "checking for va_copy... " >&6; }
22949 if test "${gl_cv_func_va_copy+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22955 #include <stdarg.h>
22961 void (*func) (va_list, va_list) = va_copy;
22968 if ac_fn_c_try_compile
"$LINENO"; then :
22969 gl_cv_func_va_copy
=yes
22971 gl_cv_func_va_copy
=no
22973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22977 $as_echo "$gl_cv_func_va_copy" >&6; }
22978 if test $gl_cv_func_va_copy = no
; then
22979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h. */
22981 #if defined _AIX && !defined __GNUC__
22986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "vaccine" >/dev
/null
2>&1; then :
22994 if test $gl_aixcc = yes; then
23004 if test $gl_cv_have_include_next = yes; then
23005 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23008 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23009 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23014 /* end confdefs.h. */
23015 #include <stdarg.h>
23019 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23020 *) gl_absname_cpp
="$ac_cpp" ;;
23025 gl_dirsep_regex
='[/\\]'
23028 gl_dirsep_regex
='\/'
23031 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23033 gl_header_literal_regex
=`echo 'stdarg.h' \
23034 | sed -e "$gl_make_literal_regex_sed"`
23035 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23041 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23042 sed -n "$gl_absolute_header_sed"`'"'
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23047 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23049 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
23051 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23053 gl_next_as_first_directive
='<'stdarg.h
'>'
23055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23056 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
23058 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
23063 if test "$gl_cv_next_stdarg_h" = '""'; then
23064 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
23065 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
23069 saved_as_echo_n
="$as_echo_n"
23071 if test "${gl_cv_func___va_copy+set}" = set; then :
23072 $as_echo_n "(cached) " >&6
23075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23077 #include <stdarg.h>
23090 if ac_fn_c_try_compile
"$LINENO"; then :
23091 gl_cv_func___va_copy
=yes
23093 gl_cv_func___va_copy
=no
23095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23098 as_echo_n
="$saved_as_echo_n"
23100 if test $gl_cv_func___va_copy = yes; then
23102 $as_echo "#define va_copy __va_copy" >>confdefs.h
23107 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23113 if test -n "$STDARG_H"; then
23114 GL_GENERATE_STDARG_H_TRUE
=
23115 GL_GENERATE_STDARG_H_FALSE
='#'
23117 GL_GENERATE_STDARG_H_TRUE
='#'
23118 GL_GENERATE_STDARG_H_FALSE
=
23126 # Define two additional variables used in the Makefile substitution.
23128 if test "$ac_cv_header_stdbool_h" = yes; then
23131 STDBOOL_H
='stdbool.h'
23134 if test -n "$STDBOOL_H"; then
23135 GL_GENERATE_STDBOOL_H_TRUE
=
23136 GL_GENERATE_STDBOOL_H_FALSE
='#'
23138 GL_GENERATE_STDBOOL_H_TRUE
='#'
23139 GL_GENERATE_STDBOOL_H_FALSE
=
23143 if test "$ac_cv_type__Bool" = yes; then
23154 if test $gt_cv_c_wchar_t = no
; then
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23159 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23160 if test "${gl_cv_decl_null_works+set}" = set; then :
23161 $as_echo_n "(cached) " >&6
23163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23164 /* end confdefs.h. */
23165 #include <stddef.h>
23166 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23176 if ac_fn_c_try_compile
"$LINENO"; then :
23177 gl_cv_decl_null_works
=yes
23179 gl_cv_decl_null_works
=no
23181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23184 $as_echo "$gl_cv_decl_null_works" >&6; }
23185 if test $gl_cv_decl_null_works = no
; then
23190 if test -n "$STDDEF_H"; then
23191 GL_GENERATE_STDDEF_H_TRUE
=
23192 GL_GENERATE_STDDEF_H_FALSE
='#'
23194 GL_GENERATE_STDDEF_H_TRUE
='#'
23195 GL_GENERATE_STDDEF_H_FALSE
=
23198 if test -n "$STDDEF_H"; then
23207 if test $gl_cv_have_include_next = yes; then
23208 gl_cv_next_stddef_h
='<'stddef.h
'>'
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23211 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23212 if test "${gl_cv_next_stddef_h+set}" = set; then :
23213 $as_echo_n "(cached) " >&6
23216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <stddef.h>
23222 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23223 *) gl_absname_cpp
="$ac_cpp" ;;
23228 gl_dirsep_regex
='[/\\]'
23231 gl_dirsep_regex
='\/'
23234 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23236 gl_header_literal_regex
=`echo 'stddef.h' \
23237 | sed -e "$gl_make_literal_regex_sed"`
23238 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23239 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23244 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23245 sed -n "$gl_absolute_header_sed"`'"'
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23250 $as_echo "$gl_cv_next_stddef_h" >&6; }
23252 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23254 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23256 gl_next_as_first_directive
='<'stddef.h
'>'
23258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23259 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23261 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23280 if test $gl_cv_have_include_next = yes; then
23281 gl_cv_next_stdio_h
='<'stdio.h
'>'
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23284 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23285 if test "${gl_cv_next_stdio_h+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23295 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23296 *) gl_absname_cpp
="$ac_cpp" ;;
23301 gl_dirsep_regex
='[/\\]'
23304 gl_dirsep_regex
='\/'
23307 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23309 gl_header_literal_regex
=`echo 'stdio.h' \
23310 | sed -e "$gl_make_literal_regex_sed"`
23311 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23312 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23317 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23318 sed -n "$gl_absolute_header_sed"`'"'
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23323 $as_echo "$gl_cv_next_stdio_h" >&6; }
23325 NEXT_STDIO_H
=$gl_cv_next_stdio_h
23327 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23329 gl_next_as_first_directive
='<'stdio.h
'>'
23331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23332 gl_next_as_first_directive
=$gl_cv_next_stdio_h
23334 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
23343 cat >>confdefs.h
<<_ACEOF
23344 #define GNULIB_FSCANF 1
23351 cat >>confdefs.h
<<_ACEOF
23352 #define GNULIB_SCANF 1
23388 if test $gl_cv_have_include_next = yes; then
23389 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23392 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23393 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23399 #include <stdlib.h>
23403 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23404 *) gl_absname_cpp
="$ac_cpp" ;;
23409 gl_dirsep_regex
='[/\\]'
23412 gl_dirsep_regex
='\/'
23415 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23417 gl_header_literal_regex
=`echo 'stdlib.h' \
23418 | sed -e "$gl_make_literal_regex_sed"`
23419 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23420 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23425 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23426 sed -n "$gl_absolute_header_sed"`'"'
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23431 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23433 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
23435 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23437 gl_next_as_first_directive
='<'stdlib.h
'>'
23439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23440 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
23442 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
23452 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23460 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23469 if test "$ac_cv_have_decl_strtoimax" != yes; then
23470 HAVE_DECL_STRTOIMAX
=0
23473 if test $ac_cv_func_strtoimax = yes; then
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23476 $as_echo_n "checking whether strtoimax works... " >&6; }
23477 if test "${gl_cv_func_strtoimax+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23480 if test "$cross_compiling" = yes; then :
23482 # Guess no on AIX 5.
23483 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
23484 # Guess yes otherwise.
23485 *) gl_cv_func_strtoimax
="guessing yes" ;;
23489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23490 /* end confdefs.h. */
23493 #include <string.h>
23494 #include <inttypes.h>
23497 if (sizeof (intmax_t) > sizeof (int))
23499 const char *s = "4294967295";
23503 res = strtoimax (s, &p, 10);
23504 if (p != s + strlen (s))
23508 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23513 const char *s = "2147483647";
23517 res = strtoimax (s, &p, 10);
23518 if (p != s + strlen (s))
23522 if (res != 2147483647)
23529 if ac_fn_c_try_run
"$LINENO"; then :
23530 gl_cv_func_strtoimax
=yes
23532 gl_cv_func_strtoimax
=no
23534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23541 $as_echo "$gl_cv_func_strtoimax" >&6; }
23542 case "$gl_cv_func_strtoimax" in
23543 *no
) REPLACE_STRTOIMAX
=1 ;;
23549 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23558 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23561 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23562 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23568 cat >>confdefs.h
<<_ACEOF
23569 #define HAVE_DECL_STRTOLL $ac_have_decl
23590 if test "$ac_cv_have_decl_strtoumax" != yes; then
23591 HAVE_DECL_STRTOUMAX
=0
23594 if test $ac_cv_func_strtoumax = no
; then
23603 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23606 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23607 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23613 cat >>confdefs.h
<<_ACEOF
23614 #define HAVE_DECL_STRTOULL $ac_have_decl
23633 if test $ac_cv_func_symlink = no
; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23637 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23638 if test "${gl_cv_func_symlink_works+set}" = set; then :
23639 $as_echo_n "(cached) " >&6
23641 if test "$cross_compiling" = yes; then :
23643 # Guess yes on glibc systems.
23644 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23645 # If we don't know, assume the worst.
23646 *) gl_cv_func_symlink_works
="guessing no" ;;
23650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23652 #include <unistd.h>
23658 if (!symlink ("a", "conftest.link/"))
23660 if (symlink ("conftest.f", "conftest.lnk2"))
23662 else if (!symlink ("a", "conftest.lnk2/"))
23670 if ac_fn_c_try_run
"$LINENO"; then :
23671 gl_cv_func_symlink_works
=yes
23673 gl_cv_func_symlink_works
=no
23675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23679 rm -f conftest.f conftest.link conftest.lnk2
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23682 $as_echo "$gl_cv_func_symlink_works" >&6; }
23683 case "$gl_cv_func_symlink_works" in
23691 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23700 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23718 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23719 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23720 $as_echo_n "(cached) " >&6
23723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 #include <sys/select.h>
23734 if ac_fn_c_try_compile
"$LINENO"; then :
23735 gl_cv_header_sys_select_h_selfcontained
=yes
23737 gl_cv_header_sys_select_h_selfcontained
=no
23739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23740 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h. */
23743 #include <sys/select.h>
23747 int memset; int bzero;
23753 if ac_fn_c_try_compile
"$LINENO"; then :
23754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756 #include <sys/select.h>
23762 #define memset nonexistent_memset
23767 void *memset (void *, int, unsigned long);
23769 #define bzero nonexistent_bzero
23774 void bzero (void *, unsigned long);
23783 if ac_fn_c_try_link
"$LINENO"; then :
23786 gl_cv_header_sys_select_h_selfcontained
=no
23788 rm -f core conftest.err conftest.
$ac_objext \
23789 conftest
$ac_exeext conftest.
$ac_ext
23792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23797 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23807 if test $gl_cv_have_include_next = yes; then
23808 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23811 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23812 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23816 if test $ac_cv_header_sys_select_h = yes; then
23819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 #include <sys/select.h>
23825 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23826 *) gl_absname_cpp
="$ac_cpp" ;;
23831 gl_dirsep_regex
='[/\\]'
23834 gl_dirsep_regex
='\/'
23837 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23839 gl_header_literal_regex
=`echo 'sys/select.h' \
23840 | sed -e "$gl_make_literal_regex_sed"`
23841 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23847 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23848 sed -n "$gl_absolute_header_sed"`'"'
23850 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23856 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23858 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23860 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23862 gl_next_as_first_directive
='<'sys
/select.h
'>'
23864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23865 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23867 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23872 if test $ac_cv_header_sys_select_h = yes; then
23873 HAVE_SYS_SELECT_H
=1
23875 HAVE_SYS_SELECT_H
=0
23882 if test $ac_cv_header_sys_socket_h != yes; then
23883 for ac_header
in winsock2.h
23885 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23886 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23887 cat >>confdefs.h
<<_ACEOF
23888 #define HAVE_WINSOCK2_H 1
23896 if test "$ac_cv_header_winsock2_h" = yes; then
23898 UNISTD_H_HAVE_WINSOCK2_H
=1
23899 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23925 if test $gl_cv_have_include_next = yes; then
23926 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23929 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23930 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23931 $as_echo_n "(cached) " >&6
23934 if test $ac_cv_header_sys_stat_h = yes; then
23937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23939 #include <sys/stat.h>
23943 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23944 *) gl_absname_cpp
="$ac_cpp" ;;
23949 gl_dirsep_regex
='[/\\]'
23952 gl_dirsep_regex
='\/'
23955 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23957 gl_header_literal_regex
=`echo 'sys/stat.h' \
23958 | sed -e "$gl_make_literal_regex_sed"`
23959 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23965 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23966 sed -n "$gl_absolute_header_sed"`'"'
23968 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23974 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23976 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23978 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23980 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23983 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23985 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23997 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23999 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24003 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24004 #include <sys/stat.h>
24006 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
24010 $as_echo "#define nlink_t int" >>confdefs.h
24031 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24033 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
24039 cat >>confdefs.h
<<_ACEOF
24040 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24043 if test $ac_cv_have_decl_localtime_r = no
; then
24044 HAVE_DECL_LOCALTIME_R
=0
24048 if test $ac_cv_func_localtime_r = yes; then
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24051 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24052 if test "${gl_cv_time_r_posix+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h. */
24061 /* We don't need to append 'restrict's to the argument types,
24062 even though the POSIX signature has the 'restrict's,
24063 since C99 says they can't affect type compatibility. */
24064 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24066 /* Check the return type is a pointer.
24067 On HP-UX 10 it is 'int'. */
24068 *localtime_r (0, 0);
24074 if ac_fn_c_try_compile
"$LINENO"; then :
24075 gl_cv_time_r_posix
=yes
24077 gl_cv_time_r_posix
=no
24079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24083 $as_echo "$gl_cv_time_r_posix" >&6; }
24084 if test $gl_cv_time_r_posix = yes; then
24085 REPLACE_LOCALTIME_R
=0
24087 REPLACE_LOCALTIME_R
=1
24093 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
24102 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
24126 gl_saved_libs
=$LIBS
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24128 $as_echo_n "checking for library containing timer_settime... " >&6; }
24129 if test "${ac_cv_search_timer_settime+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24132 ac_func_search_save_LIBS
=$LIBS
24133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24136 /* Override any GCC internal prototype to avoid an error.
24137 Use char because int might match the return type of a GCC
24138 builtin and then its argument prototype would still apply. */
24142 char timer_settime ();
24146 return timer_settime ();
24151 for ac_lib
in '' rt posix4
; do
24152 if test -z "$ac_lib"; then
24153 ac_res
="none required"
24156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24158 if ac_fn_c_try_link
"$LINENO"; then :
24159 ac_cv_search_timer_settime
=$ac_res
24161 rm -f core conftest.err conftest.
$ac_objext \
24163 if test "${ac_cv_search_timer_settime+set}" = set; then :
24167 if test "${ac_cv_search_timer_settime+set}" = set; then :
24170 ac_cv_search_timer_settime
=no
24172 rm conftest.
$ac_ext
24173 LIBS
=$ac_func_search_save_LIBS
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24176 $as_echo "$ac_cv_search_timer_settime" >&6; }
24177 ac_res
=$ac_cv_search_timer_settime
24178 if test "$ac_res" != no
; then :
24179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24180 test "$ac_cv_search_timer_settime" = "none required" ||
24181 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
24184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24187 #include <features.h>
24188 #ifdef __GNU_LIBRARY__
24189 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24190 && !defined __UCLIBC__
24191 Thread emulation available
24196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24197 $EGREP "Thread" >/dev
/null
2>&1; then :
24198 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
24202 for ac_func
in timer_settime
24204 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24205 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
24206 cat >>confdefs.h
<<_ACEOF
24207 #define HAVE_TIMER_SETTIME 1
24213 LIBS
=$gl_saved_libs
24229 if test $gl_cv_have_include_next = yes; then
24230 gl_cv_next_unistd_h
='<'unistd.h
'>'
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24233 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24234 if test "${gl_cv_next_unistd_h+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24238 if test $ac_cv_header_unistd_h = yes; then
24241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24242 /* end confdefs.h. */
24243 #include <unistd.h>
24247 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24248 *) gl_absname_cpp
="$ac_cpp" ;;
24253 gl_dirsep_regex
='[/\\]'
24256 gl_dirsep_regex
='\/'
24259 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24261 gl_header_literal_regex
=`echo 'unistd.h' \
24262 | sed -e "$gl_make_literal_regex_sed"`
24263 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24264 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24269 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24270 sed -n "$gl_absolute_header_sed"`'"'
24272 gl_cv_next_unistd_h
='<'unistd.h
'>'
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24278 $as_echo "$gl_cv_next_unistd_h" >&6; }
24280 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
24282 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24284 gl_next_as_first_directive
='<'unistd.h
'>'
24286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24287 gl_next_as_first_directive
=$gl_cv_next_unistd_h
24289 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
24294 if test $ac_cv_header_unistd_h = yes; then
24313 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24315 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24316 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24319 touch conftest.
file
24320 if test "$cross_compiling" = yes; then :
24322 # Guess yes on glibc systems.
24323 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
24324 # If we don't know, assume the worst.
24325 *) gl_cv_func_futimesat_works
="guessing no" ;;
24329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h. */
24332 #include <stddef.h>
24333 #include <sys/times.h>
24339 int fd = open ("conftest.file", O_RDWR);
24340 if (fd < 0) return 1;
24341 if (futimesat (fd, NULL, NULL)) return 2;
24347 if ac_fn_c_try_run
"$LINENO"; then :
24348 gl_cv_func_futimesat_works
=yes
24350 gl_cv_func_futimesat_works
=no
24352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24356 rm -f conftest.
file
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24359 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24360 case "$gl_cv_func_futimesat_works" in
24364 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24370 gl_gnulib_enabled_dosname
=false
24371 gl_gnulib_enabled_euidaccess
=false
24372 gl_gnulib_enabled_getgroups
=false
24373 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
24374 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
24375 gl_gnulib_enabled_pathmax
=false
24376 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
24377 gl_gnulib_enabled_stat
=false
24378 gl_gnulib_enabled_strtoll
=false
24379 gl_gnulib_enabled_strtoull
=false
24380 gl_gnulib_enabled_verify
=false
24381 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
24382 func_gl_gnulib_m4code_dosname
()
24384 if ! $gl_gnulib_enabled_dosname; then
24385 gl_gnulib_enabled_dosname
=true
24388 func_gl_gnulib_m4code_euidaccess
()
24390 if ! $gl_gnulib_enabled_euidaccess; then
24396 for ac_func
in euidaccess
24398 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24399 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
24400 cat >>confdefs.h
<<_ACEOF
24401 #define HAVE_EUIDACCESS 1
24407 if test $ac_cv_func_euidaccess = no
; then
24411 if test $HAVE_EUIDACCESS = 0; then
24420 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
24424 for ac_header
in libgen.h
24426 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24427 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
24428 cat >>confdefs.h
<<_ACEOF
24429 #define HAVE_LIBGEN_H 1
24437 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
24438 if test "x$ac_cv_func_getgroups" = x
""yes; then :
24443 # If we don't yet have getgroups, see if it's in -lbsd.
24444 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24446 if test $ac_cv_func_getgroups = no
; then
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24448 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24449 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24450 $as_echo_n "(cached) " >&6
24452 ac_check_lib_save_LIBS
=$LIBS
24454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24455 /* end confdefs.h. */
24457 /* Override any GCC internal prototype to avoid an error.
24458 Use char because int might match the return type of a GCC
24459 builtin and then its argument prototype would still apply. */
24467 return getgroups ();
24472 if ac_fn_c_try_link
"$LINENO"; then :
24473 ac_cv_lib_bsd_getgroups
=yes
24475 ac_cv_lib_bsd_getgroups
=no
24477 rm -f core conftest.err conftest.
$ac_objext \
24478 conftest
$ac_exeext conftest.
$ac_ext
24479 LIBS
=$ac_check_lib_save_LIBS
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24482 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24483 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
24484 GETGROUPS_LIB
=-lbsd
24489 # Run the program to test the functionality of the system-supplied
24490 # getgroups function only if there is such a function.
24491 if test $ac_cv_func_getgroups = yes; then
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24493 $as_echo_n "checking for working getgroups... " >&6; }
24494 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24495 $as_echo_n "(cached) " >&6
24497 if test "$cross_compiling" = yes; then :
24498 case "$host_os" in # ((
24499 # Guess yes on glibc systems.
24500 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
24501 # If we don't know, assume the worst.
24502 *) ac_cv_func_getgroups_works
="guessing no" ;;
24506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h. */
24508 $ac_includes_default
24512 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24513 return getgroups (0, 0) == -1;
24519 if ac_fn_c_try_run
"$LINENO"; then :
24520 ac_cv_func_getgroups_works
=yes
24522 ac_cv_func_getgroups_works
=no
24524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24531 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24533 ac_cv_func_getgroups_works
=no
24535 case "$ac_cv_func_getgroups_works" in
24538 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24545 # Solaris 9 and 10 need -lgen to get the eaccess function.
24546 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24547 # programs in the package would end up linked with that potentially-shared
24548 # library, inducing unnecessary run-time overhead.
24551 gl_saved_libs
=$LIBS
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24553 $as_echo_n "checking for library containing eaccess... " >&6; }
24554 if test "${ac_cv_search_eaccess+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24557 ac_func_search_save_LIBS
=$LIBS
24558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24561 /* Override any GCC internal prototype to avoid an error.
24562 Use char because int might match the return type of a GCC
24563 builtin and then its argument prototype would still apply. */
24576 for ac_lib
in '' gen
; do
24577 if test -z "$ac_lib"; then
24578 ac_res
="none required"
24581 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24583 if ac_fn_c_try_link
"$LINENO"; then :
24584 ac_cv_search_eaccess
=$ac_res
24586 rm -f core conftest.err conftest.
$ac_objext \
24588 if test "${ac_cv_search_eaccess+set}" = set; then :
24592 if test "${ac_cv_search_eaccess+set}" = set; then :
24595 ac_cv_search_eaccess
=no
24597 rm conftest.
$ac_ext
24598 LIBS
=$ac_func_search_save_LIBS
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24601 $as_echo "$ac_cv_search_eaccess" >&6; }
24602 ac_res
=$ac_cv_search_eaccess
24603 if test "$ac_res" != no
; then :
24604 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24605 test "$ac_cv_search_eaccess" = "none required" ||
24606 LIB_EACCESS
=$ac_cv_search_eaccess
24609 for ac_func
in eaccess
24611 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
24612 if test "x$ac_cv_func_eaccess" = x
""yes; then :
24613 cat >>confdefs.h
<<_ACEOF
24614 #define HAVE_EACCESS 1
24620 LIBS
=$gl_saved_libs
24628 GNULIB_EUIDACCESS
=1
24634 gl_gnulib_enabled_euidaccess
=true
24635 if test $HAVE_EUIDACCESS = 0; then
24636 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24638 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24639 if test $HAVE_EUIDACCESS = 0; then
24640 func_gl_gnulib_m4code_stat
24644 func_gl_gnulib_m4code_getgroups
()
24646 if ! $gl_gnulib_enabled_getgroups; then
24652 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
24653 if test "x$ac_cv_func_getgroups" = x
""yes; then :
24658 # If we don't yet have getgroups, see if it's in -lbsd.
24659 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24661 if test $ac_cv_func_getgroups = no
; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24663 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24664 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24667 ac_check_lib_save_LIBS
=$LIBS
24669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24672 /* Override any GCC internal prototype to avoid an error.
24673 Use char because int might match the return type of a GCC
24674 builtin and then its argument prototype would still apply. */
24682 return getgroups ();
24687 if ac_fn_c_try_link
"$LINENO"; then :
24688 ac_cv_lib_bsd_getgroups
=yes
24690 ac_cv_lib_bsd_getgroups
=no
24692 rm -f core conftest.err conftest.
$ac_objext \
24693 conftest
$ac_exeext conftest.
$ac_ext
24694 LIBS
=$ac_check_lib_save_LIBS
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24697 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24698 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
24699 GETGROUPS_LIB
=-lbsd
24704 # Run the program to test the functionality of the system-supplied
24705 # getgroups function only if there is such a function.
24706 if test $ac_cv_func_getgroups = yes; then
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24708 $as_echo_n "checking for working getgroups... " >&6; }
24709 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24712 if test "$cross_compiling" = yes; then :
24713 case "$host_os" in # ((
24714 # Guess yes on glibc systems.
24715 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
24716 # If we don't know, assume the worst.
24717 *) ac_cv_func_getgroups_works
="guessing no" ;;
24721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24722 /* end confdefs.h. */
24723 $ac_includes_default
24727 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24728 return getgroups (0, 0) == -1;
24734 if ac_fn_c_try_run
"$LINENO"; then :
24735 ac_cv_func_getgroups_works
=yes
24737 ac_cv_func_getgroups_works
=no
24739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24746 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24748 ac_cv_func_getgroups_works
=no
24750 case "$ac_cv_func_getgroups_works" in
24753 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24759 if test $ac_cv_func_getgroups != yes; then
24762 if test "$ac_cv_type_getgroups" != gid_t \
24763 ||
{ case "$ac_cv_func_getgroups_works" in
24768 REPLACE_GETGROUPS
=1
24770 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24774 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24775 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24778 if test "$cross_compiling" = yes; then :
24780 # Guess yes on glibc systems.
24781 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
24782 # If we don't know, assume the worst.
24783 *) gl_cv_func_getgroups_works
="guessing no" ;;
24787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h. */
24789 $ac_includes_default
24793 int size = getgroups (0, 0);
24794 gid_t *list = malloc (size * sizeof *list);
24795 return getgroups (-1, list) != -1;
24800 if ac_fn_c_try_run
"$LINENO"; then :
24801 gl_cv_func_getgroups_works
=yes
24803 gl_cv_func_getgroups_works
=no
24805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24811 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24812 case "$gl_cv_func_getgroups_works" in
24814 *) REPLACE_GETGROUPS
=1 ;;
24818 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
24820 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
24829 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
24843 gl_gnulib_enabled_getgroups
=true
24846 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
24848 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24851 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
24854 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
24856 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24862 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
24863 if test "x$ac_cv_func_group_member" = x
""yes; then :
24867 HAVE_GROUP_MEMBER
=0
24872 if test $HAVE_GROUP_MEMBER = 0; then
24881 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
24892 GNULIB_GROUP_MEMBER
=1
24898 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
24899 if test $HAVE_GROUP_MEMBER = 0; then
24900 func_gl_gnulib_m4code_getgroups
24902 if test $HAVE_GROUP_MEMBER = 0; then
24903 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24907 func_gl_gnulib_m4code_pathmax
()
24909 if ! $gl_gnulib_enabled_pathmax; then
24913 gl_gnulib_enabled_pathmax
=true
24916 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
24918 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24919 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
24922 func_gl_gnulib_m4code_stat
()
24924 if ! $gl_gnulib_enabled_stat; then
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24929 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24930 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24933 if test "$cross_compiling" = yes; then :
24935 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
24936 *) gl_cv_func_stat_dir_slash
="guessing yes";;
24939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24940 /* end confdefs.h. */
24941 #include <sys/stat.h>
24946 struct stat st; return stat (".", &st) != stat ("./", &st);
24951 if ac_fn_c_try_run
"$LINENO"; then :
24952 gl_cv_func_stat_dir_slash
=yes
24954 gl_cv_func_stat_dir_slash
=no
24956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24957 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24962 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24964 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24965 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24969 # Assume that if we have lstat, we can also check symlinks.
24970 if test $ac_cv_func_lstat = yes; then
24971 ln -s conftest.tmp conftest.lnk
24973 if test "$cross_compiling" = yes; then :
24975 # Guess yes on glibc systems.
24976 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
24977 # If we don't know, assume the worst.
24978 *) gl_cv_func_stat_file_slash
="guessing no" ;;
24982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24983 /* end confdefs.h. */
24984 #include <sys/stat.h>
24991 if (!stat ("conftest.tmp/", &st))
24994 if (!stat ("conftest.lnk/", &st))
25003 if ac_fn_c_try_run
"$LINENO"; then :
25004 gl_cv_func_stat_file_slash
=yes
25006 gl_cv_func_stat_file_slash
=no
25008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25012 rm -f conftest.tmp conftest.lnk
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25015 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25016 case $gl_cv_func_stat_dir_slash in
25017 *no
) REPLACE_STAT
=1
25019 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25022 case $gl_cv_func_stat_file_slash in
25023 *no
) REPLACE_STAT
=1
25025 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25029 if test $REPLACE_STAT = 1; then
25038 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25056 gl_gnulib_enabled_stat
=true
25057 if test $REPLACE_STAT = 1; then
25058 func_gl_gnulib_m4code_dosname
25060 if test $REPLACE_STAT = 1; then
25061 func_gl_gnulib_m4code_pathmax
25063 if test $REPLACE_STAT = 1; then
25064 func_gl_gnulib_m4code_verify
25068 func_gl_gnulib_m4code_strtoll
()
25070 if ! $gl_gnulib_enabled_strtoll; then
25074 if test "$ac_cv_type_long_long_int" = yes; then
25075 for ac_func
in strtoll
25077 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
25078 if test "x$ac_cv_func_strtoll" = x
""yes; then :
25079 cat >>confdefs.h
<<_ACEOF
25080 #define HAVE_STRTOLL 1
25086 if test $ac_cv_func_strtoll = no
; then
25091 if test $HAVE_STRTOLL = 0; then
25100 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
25117 gl_gnulib_enabled_strtoll
=true
25120 func_gl_gnulib_m4code_strtoull
()
25122 if ! $gl_gnulib_enabled_strtoull; then
25126 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25127 for ac_func
in strtoull
25129 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
25130 if test "x$ac_cv_func_strtoull" = x
""yes; then :
25131 cat >>confdefs.h
<<_ACEOF
25132 #define HAVE_STRTOULL 1
25138 if test $ac_cv_func_strtoull = no
; then
25143 if test $HAVE_STRTOULL = 0; then
25152 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
25169 gl_gnulib_enabled_strtoull
=true
25172 func_gl_gnulib_m4code_verify
()
25174 if ! $gl_gnulib_enabled_verify; then
25175 gl_gnulib_enabled_verify
=true
25178 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
25180 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25181 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
25184 if test $HAVE_FACCESSAT = 0; then
25185 func_gl_gnulib_m4code_dosname
25187 if test $HAVE_FACCESSAT = 0; then
25188 func_gl_gnulib_m4code_euidaccess
25190 if test $REPLACE_GETOPT = 1; then
25191 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25193 if test $REPLACE_LSTAT = 1; then
25194 func_gl_gnulib_m4code_dosname
25196 if test $REPLACE_LSTAT = 1; then
25197 func_gl_gnulib_m4code_stat
25199 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25200 func_gl_gnulib_m4code_stat
25202 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25203 func_gl_gnulib_m4code_strtoll
25205 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
25206 func_gl_gnulib_m4code_verify
25208 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
25209 func_gl_gnulib_m4code_strtoull
25211 if test $ac_cv_func_strtoumax = no
; then
25212 func_gl_gnulib_m4code_verify
25215 if $gl_gnulib_enabled_dosname; then
25216 gl_GNULIB_ENABLED_dosname_TRUE
=
25217 gl_GNULIB_ENABLED_dosname_FALSE
='#'
25219 gl_GNULIB_ENABLED_dosname_TRUE
='#'
25220 gl_GNULIB_ENABLED_dosname_FALSE
=
25223 if $gl_gnulib_enabled_euidaccess; then
25224 gl_GNULIB_ENABLED_euidaccess_TRUE
=
25225 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
25227 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
25228 gl_GNULIB_ENABLED_euidaccess_FALSE
=
25231 if $gl_gnulib_enabled_getgroups; then
25232 gl_GNULIB_ENABLED_getgroups_TRUE
=
25233 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
25235 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
25236 gl_GNULIB_ENABLED_getgroups_FALSE
=
25239 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25240 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
25241 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
25243 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
25244 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
25247 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25248 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
25249 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
25251 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
25252 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
25255 if $gl_gnulib_enabled_pathmax; then
25256 gl_GNULIB_ENABLED_pathmax_TRUE
=
25257 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
25259 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
25260 gl_GNULIB_ENABLED_pathmax_FALSE
=
25263 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25264 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
25265 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
25267 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
25268 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
25271 if $gl_gnulib_enabled_stat; then
25272 gl_GNULIB_ENABLED_stat_TRUE
=
25273 gl_GNULIB_ENABLED_stat_FALSE
='#'
25275 gl_GNULIB_ENABLED_stat_TRUE
='#'
25276 gl_GNULIB_ENABLED_stat_FALSE
=
25279 if $gl_gnulib_enabled_strtoll; then
25280 gl_GNULIB_ENABLED_strtoll_TRUE
=
25281 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
25283 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
25284 gl_GNULIB_ENABLED_strtoll_FALSE
=
25287 if $gl_gnulib_enabled_strtoull; then
25288 gl_GNULIB_ENABLED_strtoull_TRUE
=
25289 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
25291 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
25292 gl_GNULIB_ENABLED_strtoull_FALSE
=
25295 if $gl_gnulib_enabled_verify; then
25296 gl_GNULIB_ENABLED_verify_TRUE
=
25297 gl_GNULIB_ENABLED_verify_FALSE
='#'
25299 gl_GNULIB_ENABLED_verify_TRUE
='#'
25300 gl_GNULIB_ENABLED_verify_FALSE
=
25303 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25304 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
25305 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
25307 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
25308 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
25311 # End of code from modules
25332 gl_source_base
='tests'
25333 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
25335 gl_module_indicator_condition
=$gltests_WITNESS
25346 LIBGNU_LIBDEPS
="$gl_libdeps"
25348 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
25351 CFLAGS
=$SAVE_CFLAGS
25355 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
25358 ## The -headerpad option tells ld (see man page) to leave room at the
25359 ## end of the header for adding load commands. Needed for dumping.
25360 ## 0x690 is the total size of 30 segment load commands (at 56
25361 ## each); under Cocoa 31 commands are required.
25362 if test "$HAVE_NS" = "yes"; then
25363 libs_nsgui
="-framework AppKit"
25364 headerpad_extra
=6C8
25367 headerpad_extra
=690
25369 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25371 ## This is here because src/Makefile.in did some extra fiddling around
25372 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25373 ## #ifndef LD_SWITCH_SYSTEM
25374 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25375 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25376 ## not using gcc, darwin.
25377 ## Because this was done in src/Makefile.in, the resulting part of
25378 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25379 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25380 ## rather than LD_SWITCH_SYSTEM.
25381 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25382 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
25385 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25386 ## find X at run-time.
25387 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25388 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25389 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25390 ## had different values in configure (in ac_link) and src/Makefile.in.
25391 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25392 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25394 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
25397 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25398 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25407 ## gnu: GNU needs its own crt0.
25408 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
25410 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25411 ## library search parth, i.e. it won't search /usr/lib for libc and
25412 ## friends. Using -nostartfiles instead avoids this problem, and
25413 ## will also work on earlier NetBSD releases.
25414 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
25416 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25417 ## MkLinux/LinuxPPC needs this.
25418 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25420 case "$canonical" in
25421 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
25427 if test "x$ORDINARY_LINK" = "xyes"; then
25431 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25434 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25435 ## freebsd, gnu-* not on powerpc*|s390x*.
25436 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25438 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25439 ## places that are difficult to figure out at make time. Fortunately,
25440 ## these same versions allow you to pass arbitrary flags on to the
25441 ## linker, so there is no reason not to use it as a linker.
25443 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25444 ## searching for libraries in its internal directories, so we have to
25445 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25446 LD_FIRSTFLAG
="-nostdlib"
25449 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25450 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
25455 ## FIXME? The logic here is not precisely the same as that above.
25456 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25457 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25459 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25462 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
25465 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25466 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25472 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25473 ## immediately undefine it again and redefine it to empty.
25474 ## Was the C_SWITCH_X_SITE part really necessary?
25475 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25481 ## Ask GCC where to find libgcc.a.
25482 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25486 ## Common for all window systems
25487 if test "$window_system" != "none"; then
25489 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25492 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
25494 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
25501 #### Report on what we decided to do.
25502 #### Report GTK as a toolkit, even if it doesn't use Xt.
25503 #### It makes printing result more understandable as using GTK sets
25504 #### toolkit_scroll_bars to yes by default.
25505 if test "${HAVE_GTK}" = "yes"; then
25506 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
25510 Configured for \`${canonical}'.
25512 Where should the build process find the source code? ${srcdir}
25513 What compiler should emacs be built with? ${CC} ${CFLAGS}
25514 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25515 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25516 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25517 What window system should Emacs use? ${window_system}
25518 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25520 if test -n "${x_includes}"; then
25521 echo " Where do we find X Windows header files? ${x_includes}"
25523 echo " Where do we find X Windows header files? Standard dirs"
25525 if test -n "${x_libraries}"; then
25526 echo " Where do we find X Windows libraries? ${x_libraries}"
25528 echo " Where do we find X Windows libraries? Standard dirs"
25531 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25532 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25533 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25534 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25535 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25536 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25537 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25538 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25540 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25541 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25542 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25543 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25544 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25545 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25546 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25548 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25549 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25550 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25551 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25553 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25556 if test -n "${EMACSDATA}"; then
25557 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25559 if test -n "${EMACSDOC}"; then
25560 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25565 if test "$HAVE_NS" = "yes"; then
25567 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25568 The installed application will go to nextstep/Emacs.app and can be
25569 run or moved from there."
25570 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25571 echo "The application will be fully self-contained."
25573 echo "The lisp resources for the application will be installed under ${prefix}.
25574 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25575 to run if these resources are not installed."
25580 if test "${opsys}" = "cygwin"; then
25582 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25583 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25589 # Remove any trailing slashes in these variables.
25590 test "${prefix}" != NONE
&&
25591 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25592 test "${exec_prefix}" != NONE
&&
25593 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25595 if test "$HAVE_NS" = "yes"; then
25596 if test "$NS_IMPL_GNUSTEP" = yes; then
25597 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"
25600 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"
25605 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"
25607 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"
25610 opt_makefile
=test
/automated
/Makefile
25612 if test -f $srcdir/${opt_makefile}.
in; then
25613 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
25614 ac_config_files
="$ac_config_files test/automated/Makefile"
25619 opt_makefile
=admin
/unidata
/Makefile
25621 if test -f $srcdir/${opt_makefile}.
in; then
25622 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
25623 ac_config_files
="$ac_config_files admin/unidata/Makefile"
25628 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25632 ac_config_commands
="$ac_config_commands mkdirs"
25635 ac_config_commands
="$ac_config_commands epaths"
25638 ac_config_commands
="$ac_config_commands gdbinit"
25641 cat >confcache
<<\_ACEOF
25642 # This file is a shell script that caches the results of configure
25643 # tests run on this system so they can be shared between configure
25644 # scripts and configure runs, see configure's option --config-cache.
25645 # It is not useful on other systems. If it contains results you don't
25646 # want to keep, you may remove or edit it.
25648 # config.status only pays attention to the cache file if you give it
25649 # the --recheck option to rerun configure.
25651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25653 # following values.
25657 # The following way of writing the cache mishandles newlines in values,
25658 # but we know of no workaround that is simple, portable, and efficient.
25659 # So, we kill variables containing newlines.
25660 # Ultrix sh set writes to stderr and can't be redirected directly,
25661 # and sets the high bit in the cache file unless we assign to the vars.
25663 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25664 eval ac_val
=\$
$ac_var
25668 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25672 _ | IFS | as_nl
) ;; #(
25673 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25674 *) { eval $ac_var=; unset $ac_var;} ;;
25680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25681 *${as_nl}ac_space
=\
*)
25682 # `set' does not quote correctly, so add quotes: double-quote
25683 # substitution turns \\\\ into \\, and sed turns \\ into \.
25686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25689 # `set' quotes correctly as required by POSIX, so do not add quotes.
25690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25703 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25704 if test -w "$cache_file"; then
25705 test "x$cache_file" != "x/dev/null" &&
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25707 $as_echo "$as_me: updating cache $cache_file" >&6;}
25708 cat confcache
>$cache_file
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25716 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25717 # Let make expand exec_prefix.
25718 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25720 DEFS
=-DHAVE_CONFIG_H
25724 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25725 # 1. Remove the extension, and $U if already installed.
25726 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25727 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25729 # will be set to the directory where LIBOBJS objects are built.
25730 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25731 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25733 LIBOBJS
=$ac_libobjs
25735 LTLIBOBJS
=$ac_ltlibobjs
25738 if test -n "$EXEEXT"; then
25740 am__EXEEXT_FALSE
='#'
25742 am__EXEEXT_TRUE
='#'
25746 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25747 as_fn_error
"conditional \"AMDEP\" was never defined.
25748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25750 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25751 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
25752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25754 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25755 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
25756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25758 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25759 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25763 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25764 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25767 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25768 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
25769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25771 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25772 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25775 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25776 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
25777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25779 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25780 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25783 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25784 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25787 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25788 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25791 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25792 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25795 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25796 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25799 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25800 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25803 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25804 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25807 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25808 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25811 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25812 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25815 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25816 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25819 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25820 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25823 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25824 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25827 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25828 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25831 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25832 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25838 if test -n "$gl_LIBOBJS"; then
25839 # Remove the extension.
25840 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25841 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25842 gl_libobjs
="$gl_libobjs $i.$ac_objext"
25843 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
25846 gl_LIBOBJS
=$gl_libobjs
25848 gl_LTLIBOBJS
=$gl_ltlibobjs
25854 if test -n "$gltests_LIBOBJS"; then
25855 # Remove the extension.
25856 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25857 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25858 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
25859 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
25862 gltests_LIBOBJS
=$gltests_libobjs
25864 gltests_LTLIBOBJS
=$gltests_ltlibobjs
25868 : ${CONFIG_STATUS=./config.status}
25870 ac_clean_files_save
=$ac_clean_files
25871 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25877 # Generated by $as_me.
25878 # Run this file to recreate the current configuration.
25879 # Compiler output produced by configure, useful for debugging
25880 # configure, is in config.log if it exists.
25883 ac_cs_recheck=false
25886 SHELL=\${CONFIG_SHELL-$SHELL}
25889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25890 ## -------------------- ##
25891 ## M4sh Initialization. ##
25892 ## -------------------- ##
25894 # Be more Bourne compatible
25895 DUALCASE
=1; export DUALCASE
# for MKS sh
25896 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25900 # is contrary to our usage. Disable this feature.
25901 alias -g '${1+"$@"}'='"$@"'
25902 setopt NO_GLOB_SUBST
25904 case `(set -o) 2>/dev/null` in #(
25916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25917 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25920 # Prefer a ksh shell builtin over an external printf program on Solaris,
25921 # but without wasting forks for bash or zsh.
25922 if test -z "$BASH_VERSION$ZSH_VERSION" \
25923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25924 as_echo='print
-r --'
25925 as_echo_n='print
-rn --'
25926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25927 as_echo='printf %s
\n'
25928 as_echo_n='printf %s
'
25930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25931 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25932 as_echo_n='/usr
/ucb
/echo -n'
25934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25935 as_echo_n_body='eval
25939 expr "X$arg" : "X\\(.*\\)$as_nl";
25940 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25942 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25944 export as_echo_n_body
25945 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25947 export as_echo_body
25948 as_echo='sh
-c $as_echo_body as_echo
'
25951 # The user is always right.
25952 if test "${PATH_SEPARATOR+set}" != set; then
25954 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25955 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25962 # We need space, tab and new line, in precisely that order. Quoting is
25963 # there to prevent editors from complaining about space-tab.
25964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25965 # splitting by setting IFS to empty value.)
25968 # Find who we are. Look in the path if we contain no directory separator.
25970 *[\\/]* ) as_myself=$0 ;;
25971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25972 for as_dir in $PATH
25975 test -z "$as_dir" && as_dir=.
25976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25982 # We did not find ourselves, most probably we were run as `sh COMMAND'
25983 # in which case we are not to be found in the path.
25984 if test "x$as_myself" = x
; then
25987 if test ! -f "$as_myself"; then
25988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25992 # Unset variables that we do not need and which cause bugs (e.g. in
25993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25994 # suppresses any "Segmentation fault" message there. '((' could
25995 # trigger a bug in pdksh 5.2.14.
25996 for as_var
in BASH_ENV ENV MAIL MAILPATH
25997 do eval test x\
${$as_var+set} = xset \
25998 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26011 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26014 # as_fn_error ERROR [LINENO LOG_FD]
26015 # ---------------------------------
26016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26018 # script with status $?, using 1 if that was 0.
26021 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26023 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26026 $as_echo "$as_me: error: $1" >&2
26027 as_fn_exit
$as_status
26031 # as_fn_set_status STATUS
26032 # -----------------------
26033 # Set $? to STATUS, without forking.
26034 as_fn_set_status
()
26037 } # as_fn_set_status
26039 # as_fn_exit STATUS
26040 # -----------------
26041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26045 as_fn_set_status
$1
26051 # Portably unset VAR.
26054 { eval $1=; unset $1;}
26056 as_unset
=as_fn_unset
26057 # as_fn_append VAR VALUE
26058 # ----------------------
26059 # Append the text in VALUE to the end of the definition contained in VAR. Take
26060 # advantage of any shell optimizations that allow amortized linear growth over
26061 # repeated appends, instead of the typical quadratic growth present in naive
26063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26064 eval 'as_fn_append ()
26075 # as_fn_arith ARG...
26076 # ------------------
26077 # Perform arithmetic evaluation on the ARGs, and store the result in the
26078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26079 # must be portable across $(()) and expr.
26080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26081 eval 'as_fn_arith ()
26088 as_val
=`expr "$@" || test $? -eq 1`
26093 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26094 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26100 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26101 as_basename
=basename
26106 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26112 as_me
=`$as_basename -- "$0" ||
26113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26114 X"$0" : 'X\(//\)$' \| \
26115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26117 sed '/^.*\/\([^/][^/]*\)\/*$/{
26131 # Avoid depending upon Character Ranges.
26132 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26133 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26134 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26135 as_cr_digits
='0123456789'
26136 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26138 ECHO_C
= ECHO_N
= ECHO_T
=
26139 case `echo -n x` in #(((((
26141 case `echo 'xy\c'` in
26142 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26144 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26151 rm -f conf$$ conf$$.exe conf$$.
file
26152 if test -d conf$$.dir
; then
26153 rm -f conf$$.dir
/conf$$.
file
26156 mkdir conf$$.dir
2>/dev
/null
26158 if (echo >conf$$.
file) 2>/dev
/null
; then
26159 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26161 # ... but there are two gotchas:
26162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26164 # In both cases, we have to default to `cp -p'.
26165 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26167 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26175 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26176 rmdir conf$$.dir
2>/dev
/null
26181 # Create "$as_dir" as a directory, including parents if necessary.
26186 -*) as_dir
=.
/$as_dir;;
26188 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26192 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26193 *) as_qdir
=$as_dir;;
26195 as_dirs
="'$as_qdir' $as_dirs"
26196 as_dir
=`$as_dirname -- "$as_dir" ||
26197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26198 X"$as_dir" : 'X\(//\)[^/]' \| \
26199 X"$as_dir" : 'X\(//\)$' \| \
26200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26201 $as_echo X"$as_dir" |
26202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26206 /^X\(\/\/\)[^/].*/{
26219 test -d "$as_dir" && break
26221 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26222 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26226 if mkdir
-p .
2>/dev
/null
; then
26227 as_mkdir_p
='mkdir -p "$as_dir"'
26229 test -d .
/-p && rmdir .
/-p
26233 if test -x / >/dev
/null
2>&1; then
26234 as_test_x
='test -x'
26236 if ls -dL / >/dev
/null
2>&1; then
26243 if test -d "$1"; then
26249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26250 ???[sx]*):;;*)false;;esac;fi
26254 as_executable_p
=$as_test_x
26256 # Sed expression to map a string onto a valid CPP name.
26257 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26259 # Sed expression to map a string onto a valid variable name.
26260 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26264 ## ----------------------------------- ##
26265 ## Main body of $CONFIG_STATUS script. ##
26266 ## ----------------------------------- ##
26268 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26271 # Save the log message, to keep $0 and so on meaningful, and to
26272 # report actual input values of CONFIG_FILES etc. instead of their
26273 # values after options handling.
26275 This file was extended by emacs $as_me 24.3.50, which was
26276 generated by GNU Autoconf 2.65. Invocation command line was
26278 CONFIG_FILES = $CONFIG_FILES
26279 CONFIG_HEADERS = $CONFIG_HEADERS
26280 CONFIG_LINKS = $CONFIG_LINKS
26281 CONFIG_COMMANDS = $CONFIG_COMMANDS
26284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26289 case $ac_config_files in *"
26290 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26293 case $ac_config_headers in *"
26294 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26299 # Files that config.status was made for.
26300 config_files="$ac_config_files"
26301 config_headers="$ac_config_headers"
26302 config_commands="$ac_config_commands"
26306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26308 \`$as_me' instantiates files and other configuration actions
26309 from templates according to the current configuration. Unless the files
26310 and actions are specified as TAGs, all are instantiated by default.
26312 Usage: $0 [OPTION]... [TAG]...
26314 -h, --help print this help, then exit
26315 -V, --version print version number and configuration settings, then exit
26316 --config print configuration, then exit
26317 -q, --quiet, --silent
26318 do not print progress messages
26319 -d, --debug don't remove temporary files
26320 --recheck update $as_me by reconfiguring in the same conditions
26321 --file=FILE[:TEMPLATE]
26322 instantiate the configuration file FILE
26323 --header=FILE[:TEMPLATE]
26324 instantiate the configuration header FILE
26326 Configuration files:
26329 Configuration headers:
26332 Configuration commands:
26335 Report bugs to the package provider."
26338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26341 emacs config.status 24.3.50
26342 configured by $0, generated by GNU Autoconf 2.65,
26343 with options \\"\$ac_cs_config\\"
26345 Copyright (C) 2009 Free Software Foundation, Inc.
26346 This config.status script is free software; the Free Software Foundation
26347 gives unlimited permission to copy, distribute and modify it."
26354 test -n "\$AWK" || AWK=awk
26357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26358 # The default lists apply if the user does not specify any file.
26364 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26365 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26376 # Handling of the options.
26377 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26379 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26380 $as_echo "$ac_cs_version"; exit ;;
26381 --config |
--confi |
--conf |
--con |
--co |
--c )
26382 $as_echo "$ac_cs_config"; exit ;;
26383 --debug |
--debu |
--deb |
--de |
--d |
-d )
26385 --file |
--fil |
--fi |
--f )
26388 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26390 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26391 ac_need_defaults
=false
;;
26392 --header |
--heade |
--head |
--hea )
26395 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26397 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26398 ac_need_defaults
=false
;;
26400 # Conflict between --help and --header
26401 as_fn_error
"ambiguous option: \`$1'
26402 Try \`$0 --help' for more information.";;
26403 --help |
--hel |
-h )
26404 $as_echo "$ac_cs_usage"; exit ;;
26405 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26406 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26409 # This is an error.
26410 -*) as_fn_error
"unrecognized option: \`$1'
26411 Try \`$0 --help' for more information." ;;
26413 *) as_fn_append ac_config_targets
" $1"
26414 ac_need_defaults
=false
;;
26420 ac_configure_extra_args
=
26422 if $ac_cs_silent; then
26424 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26429 if \$ac_cs_recheck; then
26430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26433 CONFIG_SHELL='$SHELL'
26434 export CONFIG_SHELL
26439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26444 ## Running $as_me. ##
26450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26455 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26461 # Handling of arguments.
26462 for ac_config_target
in $ac_config_targets
26464 case $ac_config_target in
26465 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26466 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26467 "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" ;;
26468 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26469 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26470 "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" ;;
26471 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26472 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
26473 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
26474 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26475 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26476 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26477 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26478 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26479 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
26480 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26481 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26482 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26483 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
26484 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
26485 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
26486 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
26487 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
26488 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
26490 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26495 # If the user did not use the arguments to specify the items to instantiate,
26496 # then the envvar interface is used. Set only those that are not.
26497 # We use the long form for the default assignment because of an extremely
26498 # bizarre bug on SunOS 4.1.3.
26499 if $ac_need_defaults; then
26500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26505 # Have a temporary directory for convenience. Make it in the build tree
26506 # simply because there is no reason against having it here, and in addition,
26507 # creating and moving files from /tmp can sometimes cause problems.
26508 # Hook for its removal unless debugging.
26509 # Note that there is a small window in which the directory will not be cleaned:
26510 # after its creation but before its name has been assigned to `$tmp'.
26514 trap 'exit_status=$?
26515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26517 trap 'as_fn_exit 1' 1 2 13 15
26519 # Create a (secure) tmp directory for tmp files.
26522 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26523 test -n "$tmp" && test -d "$tmp"
26526 tmp
=.
/conf$$
-$RANDOM
26527 (umask 077 && mkdir
"$tmp")
26528 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26530 # Set up the scripts for CONFIG_FILES section.
26531 # No need to generate them if there are no CONFIG_FILES.
26532 # This happens for instance with `./config.status config.h'.
26533 if test -n "$CONFIG_FILES"; then
26535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26536 ac_cs_awk_getline
=:
26537 ac_cs_awk_pipe_init
=
26538 ac_cs_awk_read_file
='
26539 while ((getline aline < (F[key])) > 0)
26542 ac_cs_awk_pipe_fini
=
26544 ac_cs_awk_getline
=false
26545 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26546 ac_cs_awk_read_file
='
26548 print "cat " F[key] " &&"
26549 '$ac_cs_awk_pipe_init
26550 # The final `:' finishes the AND list.
26551 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26553 ac_cr
=`echo X | tr X '\015'`
26554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26555 # But we know of no other shell where ac_cr would be empty at this
26556 # point, so we can use a bashism as a fallback.
26557 if test "x$ac_cr" = x
; then
26558 eval ac_cr
=\$
\'\\r
\'
26560 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26564 ac_cs_awk_cr
=$ac_cr
26567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26570 # Create commands to substitute file output variables.
26572 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26573 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26574 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26577 } >conf$
$files.sh
&&
26578 . .
/conf$
$files.sh ||
26579 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26580 rm -f conf$
$files.sh
26583 echo "cat >conf$$subs.awk <<_ACEOF" &&
26584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26586 } >conf$$subs.sh ||
26587 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26590 for ac_last_try in false false false false false :; do
26591 . ./conf$$subs.sh ||
26592 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26594 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26595 if test $ac_delim_n = $ac_delim_num; then
26597 elif $ac_last_try; then
26598 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26600 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26603 rm -f conf$$subs.sh
26605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26606 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26610 s/^/S["/; s
/!.
*/"]=/
26620 s/\(.\{148\}\)..*/\1/
26622 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26627 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26634 s/\(.\{148\}\)..*/\1/
26636 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26640 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26645 ' <conf$$subs.awk | sed '
26650 ' >>$CONFIG_STATUS || ac_write_fail=1
26651 rm -f conf$$subs.awk
26652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26654 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26655 for (key in S) S_is_set[key] = 1
26657 \$ac_cs_awk_pipe_init
26661 nfields = split(line, field, "@
")
26663 len = length(field[1])
26664 for (i = 2; i < nfields; i++) {
26666 keylen = length(key)
26667 if (S_is_set[key]) {
26669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26670 len += length(value) + length(field[++i])
26675 if (nfields == 3 && !substed) {
26677 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26678 \$ac_cs_awk_read_file
26684 \$ac_cs_awk_pipe_fini
26687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26688 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26689 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26692 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26693 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26698 # trailing colons and then remove the whole line if VPATH becomes empty
26699 # (actually we leave an empty line to preserve line numbers).
26700 if test "x
$srcdir" = x.; then
26701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26702 s/:*\$(srcdir):*/:/
26703 s/:*\${srcdir}:*/:/
26705 s/^\([^=]*=[ ]*\):*/\1/
26711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26712 fi # test -n "$CONFIG_FILES"
26714 # Set up the scripts for CONFIG_HEADERS section.
26715 # No need to generate them if there are no CONFIG_HEADERS.
26716 # This happens for instance with `./config.status Makefile'.
26717 if test -n "$CONFIG_HEADERS"; then
26718 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26722 # Transform confdefs.h into an awk script `defines.awk', embedded as
26723 # here-document in config.status, that substitutes the proper values into
26724 # config.h.in to produce config.h.
26726 # Create a delimiter string that does not exist in confdefs.h, to ease
26727 # handling of long lines.
26729 for ac_last_try in false false :; do
26730 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26731 if test -z "$ac_t"; then
26733 elif $ac_last_try; then
26734 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26736 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26740 # For the awk script, D is an array of macro values keyed by name,
26741 # likewise P contains macro parameters if any. Preserve backslash
26742 # newline sequences.
26744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26746 s/.\{148\}/&'"$ac_delim"'/g
26749 s/^[ ]*#[ ]*define[ ][ ]*/ /
26756 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26758 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26763 D["\
1"]=" \
3\\\\\\n
"\\/p
26765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26770 s/.\{148\}/&'"$ac_delim"'/g
26775 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26778 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26780 ' <confdefs.h | sed '
26781 s/'"$ac_delim"'/"\\\
26782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26785 for (key in D) D_is_set[key] = 1
26788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26790 split(line, arg, " ")
26791 if (arg[1] == "#") {
26795 defundef
= substr
(arg
[1], 2)
26798 split(mac1
, mac2
, "(") #)
26800 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26801 if (D_is_set
[macro
]) {
26802 # Preserve the white space surrounding the "#".
26803 print prefix
"define", macro P
[macro
] D
[macro
]
26806 # Replace #undef with comments. This is necessary, for example,
26807 # in the case of _POSIX_SOURCE, which is predefined and required
26808 # on some systems where configure will not decide to define it.
26809 if (defundef
== "undef") {
26810 print
"/*", prefix defundef
, macro
, "*/"
26818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26819 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26820 fi # test -n "$CONFIG_HEADERS"
26823 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26828 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26830 case $ac_mode$ac_tag in
26832 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26833 :[FH
]-) ac_tag
=-:-;;
26834 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26851 -) ac_f
="$tmp/stdin";;
26852 *) # Look for the file first in the build tree, then in the source tree
26853 # (if the path is not absolute). The absolute path cannot be DOS-style,
26854 # because $ac_f cannot contain `:'.
26858 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26860 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26862 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26863 as_fn_append ac_file_inputs
" '$ac_f'"
26866 # Let's still pretend it is `configure' which instantiates (i.e., don't
26867 # use $as_me), people would be surprised to read:
26868 # /* config.h. Generated by config.status. */
26869 configure_input
='Generated from '`
26870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26872 if test x
"$ac_file" != x-
; then
26873 configure_input
="$ac_file. $configure_input"
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26875 $as_echo "$as_me: creating $ac_file" >&6;}
26877 # Neutralize special characters interpreted by sed in replacement strings.
26878 case $configure_input in #(
26879 *\
&* |
*\|
* |
*\\* )
26880 ac_sed_conf_input
=`$as_echo "$configure_input" |
26881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26882 *) ac_sed_conf_input
=$configure_input;;
26886 *:-:* |
*:-) cat >"$tmp/stdin" \
26887 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26892 ac_dir
=`$as_dirname -- "$ac_file" ||
26893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26894 X"$ac_file" : 'X\(//\)[^/]' \| \
26895 X"$ac_file" : 'X\(//\)$' \| \
26896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26897 $as_echo X"$ac_file" |
26898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26902 /^X\(\/\/\)[^/].*/{
26915 as_dir
="$ac_dir"; as_fn_mkdir_p
26919 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26921 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26922 # A ".." for each directory in $ac_dir_suffix.
26923 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26924 case $ac_top_builddir_sub in
26925 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26926 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26929 ac_abs_top_builddir
=$ac_pwd
26930 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26931 # for backward compatibility:
26932 ac_top_builddir
=$ac_top_build_prefix
26935 .
) # We are building in place.
26937 ac_top_srcdir
=$ac_top_builddir_sub
26938 ac_abs_top_srcdir
=$ac_pwd ;;
26939 [\\/]* | ?
:[\\/]* ) # Absolute name.
26940 ac_srcdir
=$srcdir$ac_dir_suffix;
26941 ac_top_srcdir
=$srcdir
26942 ac_abs_top_srcdir
=$srcdir ;;
26943 *) # Relative name.
26944 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26945 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26946 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26948 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26958 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26959 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26961 ac_MKDIR_P
=$MKDIR_P
26963 [\\/$
]* | ?
:[\\/]* ) ;;
26964 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26969 # If the template does not know about datarootdir, expand it.
26970 # FIXME: This hack should be removed a few years after 2.60.
26971 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26983 *datarootdir
*) ac_datarootdir_seen
=yes;;
26984 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26986 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26989 ac_datarootdir_hack='
26990 s&@datadir@&$datadir&g
26991 s&@docdir@&$docdir&g
26992 s&@infodir@&$infodir&g
26993 s&@localedir@&$localedir&g
26994 s&@mandir@&$mandir&g
26995 s&\\\${datarootdir}&$datarootdir&g' ;;
26999 # Neutralize VPATH when `$srcdir' = `.'.
27000 # Shell code in configure.ac might set extrasub.
27001 # FIXME: do we really want to maintain this feature?
27002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27003 ac_sed_extra="$ac_vpsub
27006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27008 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27009 s|@configure_input@|
$ac_sed_conf_input|
;t t
27010 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27011 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27012 s
&@srcdir@
&$ac_srcdir&;t t
27013 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27014 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27015 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27016 s
&@builddir@
&$ac_builddir&;t t
27017 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27018 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27019 s
&@INSTALL@
&$ac_INSTALL&;t t
27020 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27021 $ac_datarootdir_hack
27023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27024 if $ac_cs_awk_getline; then
27025 $AWK -f "$tmp/subs.
awk"
27027 $AWK -f "$tmp/subs.
awk" | $SHELL
27029 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27035 which seems to be undefined. Please make sure it is defined." >&5
27036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27037 which seems to be undefined. Please make sure it is defined." >&2;}
27041 -) cat "$tmp/out" && rm -f "$tmp/out";;
27042 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27044 || as_fn_error "could not create $ac_file" "$LINENO" 5
27050 if test x"$ac_file" != x-; then
27052 $as_echo "/* $configure_input */" \
27053 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27054 } >"$tmp/config.h" \
27055 || as_fn_error "could not create $ac_file" "$LINENO" 5
27056 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27058 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27061 mv "$tmp/config.h" "$ac_file" \
27062 || as_fn_error "could not create $ac_file" "$LINENO" 5
27065 $as_echo "/* $configure_input */" \
27066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27067 || as_fn_error "could not create -" "$LINENO" 5
27069 # Compute "$ac_file"'s index
in $config_headers.
27072 for _am_header
in $config_headers :; do
27073 case $_am_header in
27074 $_am_arg |
$_am_arg:* )
27077 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27080 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27081 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27082 X"$_am_arg" : 'X\(//\)[^/]' \| \
27083 X"$_am_arg" : 'X\(//\)$' \| \
27084 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27085 $as_echo X"$_am_arg" |
27086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27090 /^X\(\/\/\)[^/].*/{
27102 s/.*/./; q'`/stamp-h
$_am_stamp_count
27105 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27106 $as_echo "$as_me: executing $ac_file commands" >&6;}
27111 case $ac_file$ac_mode in
27112 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27113 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27114 # are listed without --file. Let's play safe and only enable the eval
27115 # if we detect the quoting.
27116 case $CONFIG_FILES in
27117 *\'*) eval set x
"$CONFIG_FILES" ;;
27118 *) set x
$CONFIG_FILES ;;
27123 # Strip MF so we end up with the name of the file.
27124 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27125 # Check whether this is an Automake generated Makefile or not.
27126 # We used to match only the files named `Makefile.in', but
27127 # some people rename them; so instead we look at the file content.
27128 # Grep'ing the first line is not enough: some people post-process
27129 # each Makefile.in and add a new line on top of each file to say so.
27130 # Grep'ing the whole file is not good either: AIX grep has a line
27131 # limit of 2048, but all sed's we know have understand at least 4000.
27132 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27133 dirpart
=`$as_dirname -- "$mf" ||
27134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27135 X"$mf" : 'X\(//\)[^/]' \| \
27136 X"$mf" : 'X\(//\)$' \| \
27137 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27143 /^X\(\/\/\)[^/].*/{
27159 # Extract the definition of DEPDIR, am__include, and am__quote
27160 # from the Makefile without running `make'.
27161 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27162 test -z "$DEPDIR" && continue
27163 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27164 test -z "am__include" && continue
27165 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27166 # When using ansi2knr, U may be empty or an underscore; expand it
27167 U
=`sed -n 's/^U = //p' < "$mf"`
27168 # Find all dependency output files, they are included files with
27169 # $(DEPDIR) in their names. We invoke sed twice because it is the
27170 # simplest approach to changing $(DEPDIR) to its actual value in the
27172 for file in `sed -n "
27173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27175 # Make sure the directory exists.
27176 test -f "$dirpart/$file" && continue
27177 fdir
=`$as_dirname -- "$file" ||
27178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27179 X"$file" : 'X\(//\)[^/]' \| \
27180 X"$file" : 'X\(//\)$' \| \
27181 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27182 $as_echo X"$file" |
27183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27187 /^X\(\/\/\)[^/].*/{
27200 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27201 # echo "creating $dirpart/$file"
27202 echo '# dummy' > "$dirpart/$file"
27208 for dir
in etc lisp
; do
27209 test -d ${dir} || mkdir
${dir}
27213 echo creating src
/epaths.h
27214 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
27217 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27218 echo creating src
/.gdbinit
27219 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27229 ac_clean_files
=$ac_clean_files_save
27231 test $ac_write_fail = 0 ||
27232 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27235 # configure is writing to config.log, and then calls config.status.
27236 # config.status does its own redirection, appending to config.log.
27237 # Unfortunately, on DOS this fails, as config.log is still kept open
27238 # by configure, so config.status won't be able to write to it; its
27239 # output is simply discarded. So we exec the FD to /dev/null,
27240 # effectively closing config.log, so it can be properly (re)opened and
27241 # appended to by config.status. When coming back to configure, we
27242 # need to make the FD available again.
27243 if test "$no_create" != yes; then
27245 ac_config_status_args
=
27246 test "$silent" = yes &&
27247 ac_config_status_args
="$ac_config_status_args --quiet"
27249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27252 # would make configure fail if this is the last instruction.
27253 $ac_cs_success || as_fn_exit $?
27255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}