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 low-level
, gprof profiling support.
2062 Mainly useful
for debugging Emacs itself. May not
2063 work on all platforms. Stops profiler.el working.
2064 --enable-autodepend automatically generate dependencies to .h-files.
2065 Requires GNU Make and Gcc. Enabled
if GNU Make and
2067 --disable-dependency-tracking speeds up one-time build
2068 --enable-dependency-tracking do not reject slow dependency extractors
2069 --disable-largefile omit support
for large files
2070 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2071 developers
, and may generate false alarms when used
2072 with older or non-GNU development tools.
2073 --enable-link-time-optimization
2074 build emacs with link-time optimization. This is
2075 supported only
for GCC since
4.5.0.
2078 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2079 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2080 --without-all omit almost all features and build small executable
2081 with minimal dependencies
2082 --without-pop don
't support POP mail retrieval with movemail
2083 --with-kerberos support Kerberos-authenticated POP
2084 --with-kerberos5 support Kerberos version 5 authenticated POP
2085 --with-hesiod support Hesiod to get the POP server host
2086 --with-mmdf support MMDF mailboxes
2087 --with-mail-unlink unlink, rather than empty, mail spool after reading
2088 --with-mailhost=HOSTNAME
2089 string giving default POP mail host
2090 --without-sound don't compile with sound support
2091 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2092 gtk3
, lucid or athena
, motif
, no
)
2093 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2094 --without-xpm don
't compile with XPM image support
2095 --without-jpeg don't compile with JPEG image support
2096 --without-tiff don
't compile with TIFF image support
2097 --without-gif don't compile with GIF image support
2098 --without-png don
't compile with PNG image support
2099 --without-rsvg don't compile with SVG image support
2100 --without-xml2 don
't compile with XML parsing support
2101 --without-imagemagick don't compile with ImageMagick image support
2102 --without-xft don
't use XFT for anti aliased fonts
2103 --without-libotf don't use libotf
for OpenType font support
2104 --without-m17n-flt don
't use m17n-flt for text shaping
2105 --without-toolkit-scroll-bars
2106 don't use Motif or Xaw3d scroll bars
2107 --without-xaw3d don
't use Xaw3d
2108 --without-xim don't use X11 XIM
2109 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2110 --with-w32 use native MS Windows GUI
2111 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2113 --without-dbus don't compile with D-Bus support
2114 --without-gconf don
't compile with GConf support
2115 --without-gsettings don't compile with GSettings support
2116 --without-selinux don
't compile with SELinux support
2117 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2118 --without-makeinfo don
't require makeinfo for building manuals
2119 --without-compress-info don't
compress the installed Info pages
2120 --with-pkg-config-prog=PATH
2121 path to pkg-config
for finding GTK and librsvg
2122 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2123 /usr
/lib
, or
/usr
/lib64 on some platforms.
2124 --with-gameuser=USER user
for shared game score files
2125 --with-gnustep-conf=PATH
2126 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2127 or
/etc
/GNUstep
/GNUstep.conf
2128 --with-x use the X Window System
2130 Some influential environment variables
:
2131 CC C compiler
command
2132 CFLAGS C compiler flags
2133 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2134 nonstandard directory
<lib dir
>
2135 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2136 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2137 you have headers
in a nonstandard directory
<include dir
>
2139 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2141 Use these variables to override the choices made by
`configure' or to help
2142 it to find libraries and programs with nonstandard names/locations.
2144 Report bugs to the package provider.
2149 if test "$ac_init_help" = "recursive"; then
2150 # If there are subdirs, report their specific --help.
2151 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2152 test -d "$ac_dir" ||
2153 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2160 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2161 # A ".." for each directory in $ac_dir_suffix.
2162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2163 case $ac_top_builddir_sub in
2164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2168 ac_abs_top_builddir=$ac_pwd
2169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2170 # for backward compatibility:
2171 ac_top_builddir=$ac_top_build_prefix
2174 .) # We are building in place.
2176 ac_top_srcdir=$ac_top_builddir_sub
2177 ac_abs_top_srcdir=$ac_pwd ;;
2178 [\\/]* | ?:[\\/]* ) # Absolute name.
2179 ac_srcdir=$srcdir$ac_dir_suffix;
2180 ac_top_srcdir=$srcdir
2181 ac_abs_top_srcdir=$srcdir ;;
2183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2184 ac_top_srcdir=$ac_top_build_prefix$srcdir
2185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2189 cd "$ac_dir" || { ac_status=$?; continue; }
2190 # Check for guested configure.
2191 if test -f "$ac_srcdir/configure.gnu"; then
2193 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2194 elif test -f "$ac_srcdir/configure"; then
2196 $SHELL "$ac_srcdir/configure" --help=recursive
2198 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2200 cd "$ac_pwd" || { ac_status=$?; break; }
2204 test -n "$ac_init_help" && exit $ac_status
2205 if $ac_init_version; then
2207 emacs configure 24.3.50
2208 generated by GNU Autoconf 2.65
2210 Copyright (C) 2009 Free Software Foundation, Inc.
2211 This configure script is free software; the Free Software Foundation
2212 gives unlimited permission to copy, distribute and modify it.
2217 ## ------------------------ ##
2218 ## Autoconf initialization. ##
2219 ## ------------------------ ##
2221 # ac_fn_c_try_compile LINENO
2222 # --------------------------
2223 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_compile ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext
2228 if { { ac_try="$ac_compile"
2230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2231 *) ac_try_echo
=$ac_try;;
2233 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_compile") 2>conftest.err
2237 if test -s conftest.err
; then
2238 grep -v '^ *+' conftest.err
>conftest.er1
2239 cat conftest.er1
>&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest.
$ac_objext; then :
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.
$ac_ext >&5
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2255 as_fn_set_status
$ac_retval
2257 } # ac_fn_c_try_compile
2259 # ac_fn_c_try_cpp LINENO
2260 # ----------------------
2261 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2265 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } >/dev/null && {
2281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2282 test ! -s conftest.err
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 as_fn_set_status $ac_retval
2296 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2297 # -------------------------------------------------------
2298 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2299 # the include files in INCLUDES and setting the cache variable VAR
2301 ac_fn_c_check_header_mongrel ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2314 # Is the header compilable?
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2316 $as_echo_n "checking $2 usability... " >&6; }
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_header_compiler=yes
2325 ac_header_compiler=no
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2329 $as_echo "$ac_header_compiler" >&6; }
2331 # Is the header present?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2333 $as_echo_n "checking $2 presence... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2338 if ac_fn_c_try_cpp "$LINENO"; then :
2339 ac_header_preproc=yes
2341 ac_header_preproc=no
2343 rm -f conftest.err conftest.$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2345 $as_echo "$ac_header_preproc" >&6; }
2347 # So? What about this header?
2348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2351 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2357 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2359 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2361 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2363 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2373 eval "$3=\$ac_header_compiler"
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2381 } # ac_fn_c_check_header_mongrel
2383 # ac_fn_c_try_run LINENO
2384 # ----------------------
2385 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2386 # that executables *can* be run.
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 if { { ac_try="$ac_link"
2392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2393 *) ac_try_echo
=$ac_try;;
2395 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link") 2>&5
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2401 { { case "(($ac_try" in
2402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_try") 2>&5
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; }; }; then :
2413 $as_echo "$as_me: program exited with status $ac_status" >&5
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 ac_retval=$ac_status
2419 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 as_fn_set_status $ac_retval
2425 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2426 # -------------------------------------------------------
2427 # Tests whether HEADER exists and can be compiled using the include files in
2428 # INCLUDES, setting the cache variable VAR accordingly.
2429 ac_fn_c_check_header_compile ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2442 if ac_fn_c_try_compile "$LINENO"; then :
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_check_header_compile
2456 # ac_fn_c_try_link LINENO
2457 # -----------------------
2458 # Try to link conftest.$ac_ext, and return whether this succeeded.
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { { ac_try="$ac_link"
2465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2466 *) ac_try_echo
=$ac_try;;
2468 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469 $as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_link") 2>conftest.err
2472 if test -s conftest.err
; then
2473 grep -v '^ *+' conftest.err
>conftest.er1
2474 cat conftest.er1
>&5
2475 mv -f conftest.er1 conftest.err
2477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2478 test $ac_status = 0; } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest
$ac_exeext && {
2482 test "$cross_compiling" = yes ||
2483 $as_test_x conftest
$ac_exeext
2487 $as_echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.
$ac_ext >&5
2492 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2493 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2494 # interfere with the next link command; also delete a directory that is
2495 # left behind by Apple's compiler. We do this before executing the actions.
2496 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2498 as_fn_set_status
$ac_retval
2500 } # ac_fn_c_try_link
2502 # ac_fn_c_check_decl LINENO SYMBOL VAR
2503 # ------------------------------------
2504 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2505 ac_fn_c_check_decl
()
2507 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2509 $as_echo_n "checking whether $2 is declared... " >&6; }
2510 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2527 if ac_fn_c_try_compile
"$LINENO"; then :
2532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2539 } # ac_fn_c_check_decl
2541 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2542 # ----------------------------------------------
2543 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2544 ac_fn_c_check_header_preproc
()
2546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2556 if ac_fn_c_try_cpp
"$LINENO"; then :
2561 rm -f conftest.err conftest.
$ac_ext
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2568 } # ac_fn_c_check_header_preproc
2570 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2571 # ----------------------------------------------------
2572 # Tries to find if the field MEMBER exists in type AGGR, after including
2573 # INCLUDES, setting cache variable VAR accordingly.
2574 ac_fn_c_check_member
()
2576 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2578 $as_echo_n "checking for $2.$3... " >&6; }
2579 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2595 if ac_fn_c_try_compile
"$LINENO"; then :
2598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2605 if (sizeof ac_aggr.$3)
2611 if ac_fn_c_try_compile
"$LINENO"; then :
2616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2625 } # ac_fn_c_check_member
2627 # ac_fn_c_check_func LINENO FUNC VAR
2628 # ----------------------------------
2629 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2630 ac_fn_c_check_func
()
2632 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2634 $as_echo_n "checking for $2... " >&6; }
2635 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2636 $as_echo_n "(cached) " >&6
2638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2640 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2642 #define $2 innocuous_$2
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $2 (); below.
2646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2647 <limits.h> exists even on freestanding compilers. */
2650 # include <limits.h>
2652 # include <assert.h>
2657 /* Override any GCC internal prototype to avoid an error.
2658 Use char because int might match the return type of a GCC
2659 builtin and then its argument prototype would still apply. */
2664 /* The GNU C library defines this for functions which it implements
2665 to always fail with ENOSYS. Some functions are actually named
2666 something starting with __ and the normal name is an alias. */
2667 #if defined __stub_$2 || defined __stub___$2
2679 if ac_fn_c_try_link
"$LINENO"; then :
2684 rm -f core conftest.err conftest.
$ac_objext \
2685 conftest
$ac_exeext conftest.
$ac_ext
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2692 } # ac_fn_c_check_func
2694 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2695 # -------------------------------------------
2696 # Tests whether TYPE exists after having included INCLUDES, setting cache
2697 # variable VAR accordingly.
2698 ac_fn_c_check_type
()
2700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2719 if ac_fn_c_try_compile
"$LINENO"; then :
2720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2732 if ac_fn_c_try_compile
"$LINENO"; then :
2737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2746 } # ac_fn_c_check_type
2748 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2749 # --------------------------------------------
2750 # Tries to find the compile-time value of EXPR in a program that includes
2751 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2753 ac_fn_c_compute_int
()
2755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2756 if test "$cross_compiling" = yes; then
2757 # Depending upon the size, compute the lo and hi bounds.
2758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2764 static int test_array [1 - 2 * !(($2) >= 0)];
2771 if ac_fn_c_try_compile
"$LINENO"; then :
2774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2787 if ac_fn_c_try_compile
"$LINENO"; then :
2788 ac_hi
=$ac_mid; break
2790 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2791 if test $ac_lo -le $ac_mid; then
2795 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) < 0)];
2813 if ac_fn_c_try_compile
"$LINENO"; then :
2816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2822 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2829 if ac_fn_c_try_compile
"$LINENO"; then :
2830 ac_lo
=$ac_mid; break
2832 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2833 if test $ac_mid -le $ac_hi; then
2837 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2847 # Binary search between lo and hi bounds.
2848 while test "x$ac_lo" != "x$ac_hi"; do
2849 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2856 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2863 if ac_fn_c_try_compile
"$LINENO"; then :
2866 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2871 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2878 static long int longval () { return $2; }
2879 static unsigned long int ulongval () { return $2; }
2886 FILE *f = fopen ("conftest.val", "w");
2891 long int i = longval ();
2894 fprintf (f, "%ld", i);
2898 unsigned long int i = ulongval ();
2901 fprintf (f, "%lu", i);
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2911 if ac_fn_c_try_run
"$LINENO"; then :
2912 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2921 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2922 as_fn_set_status
$ac_retval
2924 } # ac_fn_c_compute_int
2925 cat >config.log
<<_ACEOF
2926 This file contains any messages produced by compilers while
2927 running configure, to aid debugging if configure makes a mistake.
2929 It was created by emacs $as_me 24.3.50, which was
2930 generated by GNU Autoconf 2.65. Invocation command line was
2942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir
=.
2966 $as_echo "PATH: $as_dir"
2982 # Keep a trace of the command line.
2983 # Strip out --no-create and --no-recursion so they do not pile up.
2984 # Strip out --silent because we don't want to record it for future runs.
2985 # Also quote any args containing shell meta-characters.
2986 # Make two passes to allow for proper duplicate-argument suppression.
2990 ac_must_keep_next
=false
2996 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2997 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2998 |
-silent |
--silent |
--silen |
--sile |
--sil)
3001 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3006 as_fn_append ac_configure_args1
" '$ac_arg'"
3007 if test $ac_must_keep_next = true
; then
3008 ac_must_keep_next
=false
# Got value, back to normal.
3011 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3012 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3013 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3014 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3015 case "$ac_configure_args0 " in
3016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3019 -* ) ac_must_keep_next
=true
;;
3022 as_fn_append ac_configure_args
" '$ac_arg'"
3027 { ac_configure_args0
=; unset ac_configure_args0
;}
3028 { ac_configure_args1
=; unset ac_configure_args1
;}
3030 # When interrupted or exit'd, cleanup temporary files, and complete
3031 # config.log. We remove comments because anyway the quotes in there
3032 # would cause problems or look ugly.
3033 # WARNING: Use '\'' to represent an apostrophe within the trap.
3034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3035 trap 'exit_status=$?
3036 # Save into config.log some information that might help in debugging.
3041 ## ---------------- ##
3042 ## Cache variables. ##
3043 ## ---------------- ##
3046 # The following way of writing the cache mishandles newlines in values,
3048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3049 eval ac_val=\$$ac_var
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3067 "s/'\''/'\''\\\\'\'''\''/g;
3068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3079 ## ----------------- ##
3080 ## Output variables. ##
3081 ## ----------------- ##
3084 for ac_var in $ac_subst_vars
3086 eval ac_val=\$$ac_var
3088 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3090 $as_echo "$ac_var='\''$ac_val'\''"
3094 if test -n "$ac_subst_files"; then
3096 ## ------------------- ##
3097 ## File substitutions. ##
3098 ## ------------------- ##
3101 for ac_var
in $ac_subst_files
3103 eval ac_val
=\$
$ac_var
3105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3107 $as_echo "$ac_var='\''$ac_val'\''"
3112 if test -s confdefs.h; then
3122 test "$ac_signal" != 0 &&
3123 $as_echo "$as_me: caught signal $ac_signal"
3124 $as_echo "$as_me: exit $exit_status"
3126 rm -f core *.core core.conftest.* &&
3127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3130 for ac_signal
in 1 2 13 15; do
3131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3136 rm -f -r conftest
* confdefs.h
3138 $as_echo "/* confdefs.h */" > confdefs.h
3140 # Predefined preprocessor variables.
3142 cat >>confdefs.h
<<_ACEOF
3143 #define PACKAGE_NAME "$PACKAGE_NAME"
3146 cat >>confdefs.h
<<_ACEOF
3147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3150 cat >>confdefs.h
<<_ACEOF
3151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3154 cat >>confdefs.h
<<_ACEOF
3155 #define PACKAGE_STRING "$PACKAGE_STRING"
3158 cat >>confdefs.h
<<_ACEOF
3159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3162 cat >>confdefs.h
<<_ACEOF
3163 #define PACKAGE_URL "$PACKAGE_URL"
3167 # Let the site file select an alternate cache file if it wants to.
3168 # Prefer an explicitly selected file to automatically selected ones.
3171 if test -n "$CONFIG_SITE"; then
3172 ac_site_file1
=$CONFIG_SITE
3173 elif test "x$prefix" != xNONE
; then
3174 ac_site_file1
=$prefix/share
/config.site
3175 ac_site_file2
=$prefix/etc
/config.site
3177 ac_site_file1
=$ac_default_prefix/share
/config.site
3178 ac_site_file2
=$ac_default_prefix/etc
/config.site
3180 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3182 test "x$ac_site_file" = xNONE
&& continue
3183 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3186 sed 's/^/| /' "$ac_site_file" >&5
3191 if test -r "$cache_file"; then
3192 # Some versions of bash will fail to source /dev/null (special files
3193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3194 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3196 $as_echo "$as_me: loading cache $cache_file" >&6;}
3198 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3199 *) .
"./$cache_file";;
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3204 $as_echo "$as_me: creating cache $cache_file" >&6;}
3208 as_fn_append ac_header_list
" linux/version.h"
3209 as_fn_append ac_header_list
" sys/systeminfo.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 -Wstrict-overflow" # OK to optimize assuming that
7262 # signed overflow has undefined behavior
7263 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7264 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7266 # Emacs doesn't care about shadowing; see
7267 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7270 # The following line should be removable at some point.
7271 nw
="$nw -Wsuggest-attribute=pure"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -Wstack-protector" >&5
7274 $as_echo_n "checking whether to use -Wstack-protector... " >&6; }
7275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #if (1 <= __LONG_MAX__ >> 31 >> 31 \
7278 && 4 < __GNUC__ + (7 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__)))
7281 #error "Not GCC, or GCC before 4.7.2, or 'long int' has < 64 bits."
7292 if ac_fn_c_try_cpp
"$LINENO"; then :
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 nw
="$nw -Wstack-protector"
7300 rm -f conftest.err conftest.
$ac_ext
7304 if test -n "$GCC"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7307 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7308 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7312 gl_save_CFLAGS
="$CFLAGS"
7313 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7325 if ac_fn_c_try_compile
"$LINENO"; then :
7326 gl_cv_cc_nomfi_supported
=yes
7328 gl_cv_cc_nomfi_supported
=no
7330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7331 CFLAGS
="$gl_save_CFLAGS"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7335 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7337 if test "$gl_cv_cc_nomfi_supported" = yes; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7339 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7340 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7344 gl_save_CFLAGS
="$CFLAGS"
7345 CFLAGS
="$CFLAGS -W -Werror"
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 typedef struct { int a; int b; } s_t;
7362 if ac_fn_c_try_compile
"$LINENO"; then :
7363 gl_cv_cc_nomfi_needed
=no
7365 gl_cv_cc_nomfi_needed
=yes
7367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7368 CFLAGS
="$gl_save_CFLAGS"
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7373 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7377 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7378 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7382 gl_save_CFLAGS
="$CFLAGS"
7383 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7395 if ac_fn_c_try_compile
"$LINENO"; then :
7396 gl_cv_cc_uninitialized_supported
=yes
7398 gl_cv_cc_uninitialized_supported
=no
7400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7401 CFLAGS
="$gl_save_CFLAGS"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7405 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7409 # List all gcc warning categories.
7411 for gl_manywarn_item
in \
7418 -Wbad-function-cast \
7419 -Wbuiltin-macro-redefined \
7425 -Wcoverage-mismatch \
7428 -Wdeprecated-declarations \
7429 -Wdisabled-optimization \
7431 -Wdouble-promotion \
7436 -Wformat-contains-nul \
7437 -Wformat-extra-args \
7438 -Wformat-nonliteral \
7441 -Wformat-zero-length \
7443 -Wfree-nonheap-object \
7444 -Wignored-qualifiers \
7446 -Wimplicit-function-declaration \
7450 -Wint-to-pointer-cast \
7451 -Winvalid-memory-model \
7453 -Wjump-misses-init \
7456 -Wmaybe-uninitialized \
7458 -Wmissing-declarations \
7459 -Wmissing-field-initializers \
7460 -Wmissing-format-attribute \
7461 -Wmissing-include-dirs \
7462 -Wmissing-noreturn \
7463 -Wmissing-parameter-type \
7464 -Wmissing-prototypes \
7471 -Wold-style-declaration \
7472 -Wold-style-definition \
7474 -Woverlength-strings \
7477 -Wpacked-bitfield-compat \
7481 -Wpointer-to-int-cast \
7486 -Wsizeof-pointer-memaccess \
7490 -Wstrict-prototypes \
7491 -Wsuggest-attribute=const \
7492 -Wsuggest-attribute=format \
7493 -Wsuggest-attribute=noreturn \
7494 -Wsuggest-attribute=pure \
7504 -Wunreachable-code \
7505 -Wunsafe-loop-optimizations \
7507 -Wunused-but-set-parameter \
7508 -Wunused-but-set-variable \
7511 -Wunused-local-typedefs \
7513 -Wunused-parameter \
7519 -Wvector-operation-performance \
7521 -Wvolatile-register-var \
7525 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7528 # Disable specific options as needed.
7529 if test "$gl_cv_cc_nomfi_needed" = yes; then
7530 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7533 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7534 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7545 *" $gl_warn_item "*)
7548 gl_warn_set
="$gl_warn_set $gl_warn_item"
7555 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7557 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7558 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7559 $as_echo_n "(cached) " >&6
7562 gl_save_compiler_FLAGS
="$CFLAGS"
7563 as_fn_append CFLAGS
" $w"
7564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7575 if ac_fn_c_try_compile
"$LINENO"; then :
7576 eval "$as_gl_Warn=yes"
7578 eval "$as_gl_Warn=no"
7580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7581 CFLAGS
="$gl_save_compiler_FLAGS"
7584 eval ac_res
=\$
$as_gl_Warn
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7586 $as_echo "$ac_res" >&6; }
7587 eval as_val
=\$
$as_gl_Warn
7588 if test "x$as_val" = x
""yes; then :
7589 as_fn_append WARN_CFLAGS
" $w"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7595 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7596 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7600 gl_save_compiler_FLAGS
="$CFLAGS"
7601 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7616 gl_cv_warn_c__Wno_missing_field_initializers
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 CFLAGS
="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7623 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7624 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7625 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7630 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7631 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7635 gl_save_compiler_FLAGS
="$CFLAGS"
7636 as_fn_append CFLAGS
" -Wno-sign-compare"
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7648 if ac_fn_c_try_compile
"$LINENO"; then :
7649 gl_cv_warn_c__Wno_sign_compare
=yes
7651 gl_cv_warn_c__Wno_sign_compare
=no
7653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 CFLAGS
="$gl_save_compiler_FLAGS"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7658 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7659 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7660 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7663 # Too many warnings for now
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7665 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7666 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7670 gl_save_compiler_FLAGS
="$CFLAGS"
7671 as_fn_append CFLAGS
" -Wno-type-limits"
7672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7683 if ac_fn_c_try_compile
"$LINENO"; then :
7684 gl_cv_warn_c__Wno_type_limits
=yes
7686 gl_cv_warn_c__Wno_type_limits
=no
7688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 CFLAGS
="$gl_save_compiler_FLAGS"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7693 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7694 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7695 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7698 # Too many warnings for now
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7700 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7701 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7705 gl_save_compiler_FLAGS
="$CFLAGS"
7706 as_fn_append CFLAGS
" -Wno-switch"
7707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7718 if ac_fn_c_try_compile
"$LINENO"; then :
7719 gl_cv_warn_c__Wno_switch
=yes
7721 gl_cv_warn_c__Wno_switch
=no
7723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7724 CFLAGS
="$gl_save_compiler_FLAGS"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7728 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7729 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7730 as_fn_append WARN_CFLAGS
" -Wno-switch"
7733 # Too many warnings for now
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7735 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7736 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7740 gl_save_compiler_FLAGS
="$CFLAGS"
7741 as_fn_append CFLAGS
" -Wno-unused-parameter"
7742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7753 if ac_fn_c_try_compile
"$LINENO"; then :
7754 gl_cv_warn_c__Wno_unused_parameter
=yes
7756 gl_cv_warn_c__Wno_unused_parameter
=no
7758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 CFLAGS
="$gl_save_compiler_FLAGS"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7763 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7764 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7765 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7768 # Too many warnings for now
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7770 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7771 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7775 gl_save_compiler_FLAGS
="$CFLAGS"
7776 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7788 if ac_fn_c_try_compile
"$LINENO"; then :
7789 gl_cv_warn_c__Wno_format_nonliteral
=yes
7791 gl_cv_warn_c__Wno_format_nonliteral
=no
7793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 CFLAGS
="$gl_save_compiler_FLAGS"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7798 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7799 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7800 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7805 # In spite of excluding -Wlogical-op above, it is enabled, as of
7806 # gcc 4.5.0 20090517.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7808 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7809 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7813 gl_save_compiler_FLAGS
="$CFLAGS"
7814 as_fn_append CFLAGS
" -Wno-logical-op"
7815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7826 if ac_fn_c_try_compile
"$LINENO"; then :
7827 gl_cv_warn_c__Wno_logical_op
=yes
7829 gl_cv_warn_c__Wno_logical_op
=no
7831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7832 CFLAGS
="$gl_save_compiler_FLAGS"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7836 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7837 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7838 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7844 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7845 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7849 gl_save_compiler_FLAGS
="$CFLAGS"
7850 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7862 if ac_fn_c_try_compile
"$LINENO"; then :
7863 gl_cv_warn_c__fdiagnostics_show_option
=yes
7865 gl_cv_warn_c__fdiagnostics_show_option
=no
7867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 CFLAGS
="$gl_save_compiler_FLAGS"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7872 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7873 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7874 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7879 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7880 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7884 gl_save_compiler_FLAGS
="$CFLAGS"
7885 as_fn_append CFLAGS
" -funit-at-a-time"
7886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7897 if ac_fn_c_try_compile
"$LINENO"; then :
7898 gl_cv_warn_c__funit_at_a_time
=yes
7900 gl_cv_warn_c__funit_at_a_time
=no
7902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 CFLAGS
="$gl_save_compiler_FLAGS"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7907 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7908 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7909 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7915 $as_echo "#define lint 1" >>confdefs.h
7919 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7922 # We use a slightly smaller set of warning options for lib/.
7923 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7925 nw
="$nw -Wunused-macros"
7929 set x
$WARN_CFLAGS; shift
7933 *" $gl_warn_item "*)
7936 gl_warn_set
="$gl_warn_set $gl_warn_item"
7940 GNULIB_WARN_CFLAGS
=$gl_warn_set
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7948 $as_echo_n "checking whether ln -s works... " >&6; }
7950 if test "$LN_S" = "ln -s"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7952 $as_echo "yes" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7955 $as_echo "no, using $LN_S" >&6; }
7959 # Extract the first word of "install-info", so it can be a program name with args.
7960 set dummy install-info
; ac_word
=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7966 case $INSTALL_INFO in
7968 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7975 test -z "$as_dir" && as_dir
=.
7976 for ac_exec_ext
in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7990 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7991 if test -n "$INSTALL_INFO"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7993 $as_echo "$INSTALL_INFO" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 # Extract the first word of "gzip", so it can be a program name with args.
8001 set dummy
gzip; ac_word
=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8009 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir
=.
8017 for ac_exec_ext
in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8031 if test -n "$GZIP_PROG"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8033 $as_echo "$GZIP_PROG" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8041 if test $opsys = gnu-linux
; then
8042 # Extract the first word of "paxctl", so it can be a program name with args.
8043 set dummy paxctl
; ac_word
=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8051 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8055 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8058 test -z "$as_dir" && as_dir
=.
8059 for ac_exec_ext
in '' $ac_executable_extensions; do
8060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 PAXCTL
=$ac_cv_path_PAXCTL
8073 if test -n "$PAXCTL"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8075 $as_echo "$PAXCTL" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }
8082 if test "X$PAXCTL" != X
; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8084 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8096 if ac_fn_c_try_link
"$LINENO"; then :
8097 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098 $as_echo "yes" >&6; }
8099 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }; PAXCTL
=""; fi
8102 rm -f core conftest.err conftest.
$ac_objext \
8103 conftest
$ac_exeext conftest.
$ac_ext
8107 ## Need makeinfo >= 4.7 (?) to build the manuals.
8108 # Extract the first word of "makeinfo", so it can be a program name with args.
8109 set dummy makeinfo
; ac_word
=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8117 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir
=.
8125 for ac_exec_ext
in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8139 MAKEINFO
=$ac_cv_path_MAKEINFO
8140 if test -n "$MAKEINFO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8142 $as_echo "$MAKEINFO" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 if test "$MAKEINFO" != "no" && \
8150 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
8154 ## Makeinfo is unusual. For a released Emacs, the manuals are
8155 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8156 ## therefore in the category of "special tools" not normally required, which
8157 ## configure does not have to check for (eg autoconf itself).
8158 ## In a Bazaar checkout on the other hand, the manuals are not included.
8159 ## So makeinfo is a requirement to build from Bazaar, and configure
8160 ## should test for it as it does for any other build requirement.
8161 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8162 ## with pre-built manuals, from a Bazaar checkout.
8165 if test "$MAKEINFO" = "no"; then
8167 if test "x${with_makeinfo}" = "xno"; then
8169 elif test ! -e $srcdir/info
/emacs
; then
8170 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8171 source tree does not seem to have pre-built manuals in the \`info' directory.
8172 Either install a suitable version of makeinfo, or re-run configure
8173 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8179 INFO_OPTS
=--no-split
8184 if test x
$GCC = xyes
; then
8185 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8186 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8188 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8189 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8193 late_LDFLAGS
=$LDFLAGS
8194 if test x
$GCC = xyes
; then
8195 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8197 LDFLAGS
="$LDFLAGS -znocombreloc"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8201 $as_echo_n "checking for -znocombreloc... " >&6; }
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8213 if ac_fn_c_try_link
"$LINENO"; then :
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215 $as_echo "yes" >&6; }
8217 LDFLAGS
=$late_LDFLAGS
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8221 rm -f core conftest.err conftest.
$ac_objext \
8222 conftest
$ac_exeext conftest.
$ac_ext
8225 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8227 your-opsys-here
) CANNOT_DUMP
=yes ;;
8230 test "$CANNOT_DUMP" = "yes" && \
8232 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8238 UNEXEC_OBJ
=unexelf.o
8240 # MSDOS uses unexcoff.o
8241 # MSWindows uses unexw32.o
8243 UNEXEC_OBJ
=unexaix.o
8249 UNEXEC_OBJ
=unexmacosx.o
8252 UNEXEC_OBJ
=unexhp9k800.o
8255 # Use the Solaris dldump() function, called from unexsol.c, to dump
8256 # emacs, instead of the generic ELF dump code found in unexelf.c.
8257 # The resulting binary has a complete symbol table, and is better
8258 # for debugging and other observability tools (debuggers, pstack, etc).
8260 # If you encounter a problem using dldump(), please consider sending
8261 # a message to the OpenSolaris tools-linking mailing list:
8262 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8264 # It is likely that dldump() works with older Solaris too, but this has
8265 # not been tested, so for now this change is for Solaris 10 or newer.
8266 UNEXEC_OBJ
=unexsol.o
8273 ## Let `ld' find image libs and similar things in /usr/local/lib.
8274 ## The system compiler, GCC, has apparently been modified to not
8275 ## look there, contrary to what a stock GCC would do.
8276 ### It's not our place to do this. See bug#10313#17.
8277 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8282 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8283 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8287 ### It's not our place to do this. See bug#10313#17.
8288 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8293 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8294 ## otherwise Emacs dumps core on elf systems.
8295 LD_SWITCH_SYSTEM
="-Z"
8300 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8302 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8303 ## which has not been defined yet. When this was handled with cpp,
8304 ## it was expanded to null when configure sourced the s/*.h file.
8305 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8306 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8307 ## (or somesuch), but because it is supposed to go at the _front_
8308 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8309 ## Compare with the gnu-linux case below, which added to the end
8310 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8311 ## LD_SWITCH_SYSTEM_TEMACS.
8314 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8321 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8322 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8326 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8327 ## With ELF, make sure that all common symbols get allocated to in the
8328 ## data section. Otherwise, the dump of temacs may miss variables in
8329 ## the shared library that have been initialized. For example, with
8330 ## GNU libc, __malloc_initialized would normally be resolved to the
8331 ## shared library's .bss section, which is fatal.
8332 if test "x$GCC" = "xyes"; then
8333 C_SWITCH_MACHINE
="-fno-common"
8335 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8338 UNEXEC_OBJ
=unexalpha.o
8347 ## Some programs in src produce warnings saying certain subprograms
8348 ## are too complex and need a MAXMEM value greater than 2000 for
8349 ## additional optimization. --nils@exp-math.uni-essen.de
8350 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8351 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8352 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8353 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8359 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8360 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8362 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8364 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8366 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8368 ## Motif needs -lgen.
8369 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8374 ### Make sure subsequent tests use flags consistent with the build flags.
8376 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8377 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8379 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8382 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8384 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8391 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8396 START_FILES
='pre-crt0.o'
8399 ## Adding -lm confuses the dynamic linker, so omit it.
8401 START_FILES
='pre-crt0.o'
8404 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8405 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8406 SYSTEM_TYPE
=berkeley-unix
8408 gnu-linux | gnu-kfreebsd
)
8409 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8410 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8412 hpux10-20 | hpux11
)
8414 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8417 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8418 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8419 SYSTEM_TYPE
=berkeley-unix
8423 SYSTEM_TYPE
=usg-unix-v
8431 cat >>confdefs.h
<<_ACEOF
8432 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8438 for file in x
$LIB_STANDARD $START_FILES; do
8440 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8444 if test "x$crt_files" != x
; then
8446 ## If user specified a crt-dir, use that unconditionally.
8449 if test "X$CRT_DIR" = "X"; then
8451 CRT_DIR
=/usr
/lib
# default
8453 case "$canonical" in
8454 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8455 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8456 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8457 ## For anything else (eg /usr/lib32), it is up the user to specify
8458 ## the location (bug#5655).
8459 ## Test for crtn.o, not just the directory, because sometimes the
8460 ## directory exists but does not have the relevant files (bug#1287).
8461 ## FIXME better to test for binary compatibility somehow.
8462 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8465 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8469 hpux10-20
) CRT_DIR
=/lib
;;
8472 test "x${GCC}" = xyes
&& crt_gcc
=yes
8478 for file in $crt_files; do
8480 ## If we're using gcc, try to determine it automatically by asking
8481 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8482 ## system-dependent default from above.]
8483 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8485 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8488 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8489 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8490 X"$crt_file" : 'X\(//\)[^/]' \| \
8491 X"$crt_file" : 'X\(//\)$' \| \
8492 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8493 $as_echo X"$crt_file" |
8494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8517 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8520 test "x$crt_missing" = x || \
8521 as_fn_error
"Required file(s) not found:$crt_missing
8522 Try using the --with-crt-dir option." "$LINENO" 5
8524 fi # crt_files != ""
8530 if test -f $CRT_DIR/crti.o
; then
8532 test -f $CRT_DIR/crtn.o || \
8533 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8535 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8536 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8542 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8543 pre_PKG_CONFIG_LIBS
=$LIBS
8545 # Extract the first word of "pkg-config", so it can be a program name with args.
8546 set dummy pkg-config
; ac_word
=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8554 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir
=.
8562 for ac_exec_ext
in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8576 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8577 if test -n "$PKG_CONFIG"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8579 $as_echo "$PKG_CONFIG" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8590 if test "${with_sound}" != "no"; then
8591 # Sound support for GNU/Linux and the free BSDs.
8592 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8596 eval as_val
=\$
$as_ac_Header
8597 if test "x$as_val" = x
""yes; then :
8598 cat >>confdefs.h
<<_ACEOF
8599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 have_sound_header
=yes
8606 # Emulation library used on NetBSD.
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8608 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8609 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
8612 ac_check_lib_save_LIBS
=$LIBS
8613 LIBS
="-lossaudio $LIBS"
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8617 /* Override any GCC internal prototype to avoid an error.
8618 Use char because int might match the return type of a GCC
8619 builtin and then its argument prototype would still apply. */
8627 return _oss_ioctl ();
8632 if ac_fn_c_try_link
"$LINENO"; then :
8633 ac_cv_lib_ossaudio__oss_ioctl
=yes
8635 ac_cv_lib_ossaudio__oss_ioctl
=no
8637 rm -f core conftest.err conftest.
$ac_objext \
8638 conftest
$ac_exeext conftest.
$ac_ext
8639 LIBS
=$ac_check_lib_save_LIBS
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8642 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8643 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8652 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8656 if test "$PKG_CONFIG" = "no" ; then
8659 PKG_CONFIG_MIN_VERSION
=0.9.0
8660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8662 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8664 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8665 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8666 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8673 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8674 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8676 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8683 ## If we have a custom action on failure, don't print errors, but
8684 ## do set a variable so people can do so. Do it in a subshell
8685 ## to capture any diagnostics in invoking pkg-config.
8686 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8698 if test $succeeded = yes; then
8704 if test $HAVE_ALSA = yes; then
8705 SAVE_CFLAGS
="$CFLAGS"
8707 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8708 LIBS
="$ALSA_LIBS $LIBS"
8709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #include <asoundlib.h>
8715 snd_lib_error_set_handler (0);
8720 if ac_fn_c_try_compile
"$LINENO"; then :
8721 emacs_alsa_normal
=yes
8723 emacs_alsa_normal
=no
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 if test "$emacs_alsa_normal" != yes; then
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #include <alsa/asoundlib.h>
8733 snd_lib_error_set_handler (0);
8738 if ac_fn_c_try_compile
"$LINENO"; then :
8739 emacs_alsa_subdir
=yes
8741 emacs_alsa_subdir
=no
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 if test "$emacs_alsa_subdir" != yes; then
8745 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8747 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8750 CFLAGS
="$SAVE_CFLAGS"
8752 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8753 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8755 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8759 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8761 gnu-linux|freebsd|netbsd
)
8763 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8775 for ac_header
in $ac_header_list
8777 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8780 eval as_val
=\$
$as_ac_Header
8781 if test "x$as_val" = x
""yes; then :
8782 cat >>confdefs.h
<<_ACEOF
8783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8815 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <sys/personality.h>
8822 personality (PER_LINUX32)
8827 if ac_fn_c_try_compile
"$LINENO"; then :
8828 emacs_cv_personality_linux32
=yes
8830 emacs_cv_personality_linux32
=no
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8834 $as_echo "$emacs_cv_personality_linux32" >&6; }
8836 if test $emacs_cv_personality_linux32 = yes; then
8838 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8842 for ac_header
in term.h
8844 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8845 if test "x$ac_cv_header_term_h" = x
""yes; then :
8846 cat >>confdefs.h
<<_ACEOF
8847 #define HAVE_TERM_H 1
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8855 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8856 if test "${ac_cv_header_time+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/time.h>
8868 if ((struct tm *) 0)
8874 if ac_fn_c_try_compile
"$LINENO"; then :
8875 ac_cv_header_time
=yes
8877 ac_cv_header_time
=no
8879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8882 $as_echo "$ac_cv_header_time" >&6; }
8883 if test $ac_cv_header_time = yes; then
8885 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8889 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8892 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8898 cat >>confdefs.h
<<_ACEOF
8899 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8902 if test $ac_cv_have_decl_sys_siglist != yes; then
8903 # For Tru64, at least:
8904 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8907 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8913 cat >>confdefs.h
<<_ACEOF
8914 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8917 if test $ac_cv_have_decl___sys_siglist = yes; then
8919 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8924 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8925 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <sys/types.h>
8931 #include <sys/wait.h>
8933 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8936 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8949 if ac_fn_c_try_compile
"$LINENO"; then :
8950 ac_cv_header_sys_wait_h
=yes
8952 ac_cv_header_sys_wait_h
=no
8954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8957 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8958 if test $ac_cv_header_sys_wait_h = yes; then
8960 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8966 $as_echo_n "checking for speed_t... " >&6; }
8967 if test "${emacs_cv_speed_t+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <termios.h>
8981 if ac_fn_c_try_compile
"$LINENO"; then :
8982 emacs_cv_speed_t
=yes
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8989 $as_echo "$emacs_cv_speed_t" >&6; }
8990 if test $emacs_cv_speed_t = yes; then
8992 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8999 for ac_header
in net
/if.h
9001 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9002 #if HAVE_SYS_SOCKET_H
9003 #include <sys/socket.h>
9006 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9007 cat >>confdefs.h
<<_ACEOF
9008 #define HAVE_NET_IF_H 1
9015 for ac_header
in ifaddrs.h
9017 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9018 #if HAVE_SYS_SOCKET_H
9019 #include <sys/socket.h>
9022 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9023 cat >>confdefs.h
<<_ACEOF
9024 #define HAVE_IFADDRS_H 1
9031 for ac_header
in net
/if_dl.h
9033 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9034 #if HAVE_SYS_SOCKET_H
9035 #include <sys/socket.h>
9038 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9039 cat >>confdefs.h
<<_ACEOF
9040 #define HAVE_NET_IF_DL_H 1
9048 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9049 #if HAVE_SYS_SOCKET_H
9050 #include <sys/socket.h>
9056 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9058 cat >>confdefs.h
<<_ACEOF
9059 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9064 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9065 #if HAVE_SYS_SOCKET_H
9066 #include <sys/socket.h>
9072 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9074 cat >>confdefs.h
<<_ACEOF
9075 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9080 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9081 #if HAVE_SYS_SOCKET_H
9082 #include <sys/socket.h>
9088 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9090 cat >>confdefs.h
<<_ACEOF
9091 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9096 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9097 #if HAVE_SYS_SOCKET_H
9098 #include <sys/socket.h>
9104 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9106 cat >>confdefs.h
<<_ACEOF
9107 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9112 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9113 #if HAVE_SYS_SOCKET_H
9114 #include <sys/socket.h>
9120 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9122 cat >>confdefs.h
<<_ACEOF
9123 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9128 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9129 #if HAVE_SYS_SOCKET_H
9130 #include <sys/socket.h>
9136 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9138 cat >>confdefs.h
<<_ACEOF
9139 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9151 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9153 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9155 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9156 if test "x$testval" != x
; then
9159 ac_enable_autodepend
=no
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9162 $as_echo "$HAVE_GNU_MAKE" >&6; }
9163 if test $HAVE_GNU_MAKE = yes; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9165 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9166 SAVE_CFLAGS
="$CFLAGS"
9167 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9179 if ac_fn_c_try_compile
"$LINENO"; then :
9182 ac_enable_autodepend
=no
9184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9185 CFLAGS
="$SAVE_CFLAGS"
9186 test -f deps.d || ac_enable_autodepend
=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9189 $as_echo "$ac_enable_autodepend" >&6; }
9191 if test $ac_enable_autodepend = yes; then
9192 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9193 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9194 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9195 deps_frag
=autodeps.mk
9198 deps_frag
=$srcdir/src
/$deps_frag
9204 lisp_frag
=$srcdir/src
/lisp.mk
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9209 $as_echo_n "checking for long file names... " >&6; }
9210 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9213 ac_cv_sys_long_file_names
=yes
9214 # Test for long file names in all the places we know might matter:
9215 # . the current directory, where building will happen
9216 # $prefix/lib where we will be installing things
9217 # $exec_prefix/lib likewise
9218 # $TMPDIR if set, where it might want to write temporary files
9219 # /tmp where it might want to write temporary files
9222 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9223 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9224 # in the usual case where exec_prefix is '${prefix}'.
9226 . |
/* | ?
:[\\/]*) ;; #(
9229 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9230 ac_xdir
=$ac_dir/cf$$
9231 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9232 ac_tf1
=$ac_xdir/conftest9012345
9233 ac_tf2
=$ac_xdir/conftest9012346
9234 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9235 ac_cv_sys_long_file_names
=no
9236 rm -f -r "$ac_xdir" 2>/dev
/null
9237 test $ac_cv_sys_long_file_names = no
&& break
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9241 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9242 if test $ac_cv_sys_long_file_names = yes; then
9244 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9249 #### Choose a window system.
9251 ## We leave window_system equal to none if
9252 ## we end up building without one. Any new window system should
9253 ## set window_system to an appropriate value and add objects to
9254 ## window-system-specific substs.
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9258 $as_echo_n "checking for X... " >&6; }
9261 # Check whether --with-x was given.
9262 if test "${with_x+set}" = set; then :
9266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9267 if test "x$with_x" = xno
; then
9268 # The user explicitly disabled X.
9271 case $x_includes,$x_libraries in #(
9272 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9273 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9276 # One or both of the vars are not set, and there is no cached value.
9277 ac_x_includes
=no ac_x_libraries
=no
9278 rm -f -r conftest.dir
9279 if mkdir conftest.dir
; then
9281 cat >Imakefile
<<'_ACEOF'
9283 @echo incroot='${INCROOT}'
9285 @echo usrlibdir='${USRLIBDIR}'
9287 @echo libdir='${LIBDIR}'
9289 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9291 for ac_var
in incroot usrlibdir libdir
; do
9292 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9294 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9295 for ac_extension
in a so sl dylib la dll
; do
9296 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9297 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9298 ac_im_usrlibdir
=$ac_im_libdir; break
9301 # Screen out bogus values from the imake configuration. They are
9302 # bogus both because they are the default anyway, and because
9303 # using them would break gcc on systems where it needs fixed includes.
9304 case $ac_im_incroot in
9305 /usr
/include
) ac_x_includes
= ;;
9306 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9308 case $ac_im_usrlibdir in
9309 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9310 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9314 rm -f -r conftest.dir
9317 # Standard set of common directories for X headers.
9318 # Check X11 before X11Rn because it is often a symlink to the current release.
9332 /usr/local/X11/include
9333 /usr/local/X11R7/include
9334 /usr/local/X11R6/include
9335 /usr/local/X11R5/include
9336 /usr/local/X11R4/include
9338 /usr/local/include/X11
9339 /usr/local/include/X11R7
9340 /usr/local/include/X11R6
9341 /usr/local/include/X11R5
9342 /usr/local/include/X11R4
9346 /usr/XFree86/include/X11
9350 /usr/unsupported/include
9352 /usr/local/x11r5/include
9353 /usr/lpp/Xamples/include
9355 /usr/openwin/include
9356 /usr/openwin/share/include'
9358 if test "$ac_x_includes" = no
; then
9359 # Guess where to find include files, by looking for Xlib.h.
9360 # First, try using that file with no special directory specified.
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 #include <X11/Xlib.h>
9365 if ac_fn_c_try_cpp
"$LINENO"; then :
9366 # We can compile using X headers with no special include directory.
9369 for ac_dir
in $ac_x_header_dirs; do
9370 if test -r "$ac_dir/X11/Xlib.h"; then
9371 ac_x_includes
=$ac_dir
9376 rm -f conftest.err conftest.
$ac_ext
9377 fi # $ac_x_includes = no
9379 if test "$ac_x_libraries" = no
; then
9380 # Check for the libraries.
9381 # See if we find them without any special options.
9382 # Don't add to $LIBS permanently.
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9396 if ac_fn_c_try_link
"$LINENO"; then :
9398 # We can link X programs with no special library path.
9402 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9404 # Don't even attempt the hair of trying to link an X program!
9405 for ac_extension
in a so sl dylib la dll
; do
9406 if test -r "$ac_dir/libX11.$ac_extension"; then
9407 ac_x_libraries
=$ac_dir
9413 rm -f core conftest.err conftest.
$ac_objext \
9414 conftest
$ac_exeext conftest.
$ac_ext
9415 fi # $ac_x_libraries = no
9417 case $ac_x_includes,$ac_x_libraries in #(
9419 # Didn't find X, or a directory has "'" in its name.
9420 ac_cv_have_x
="have_x=no";; #(
9422 # Record where we found X for the cache.
9423 ac_cv_have_x
="have_x=yes\
9424 ac_x_includes='$ac_x_includes'\
9425 ac_x_libraries='$ac_x_libraries'"
9431 eval "$ac_cv_have_x"
9434 if test "$have_x" != yes; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9436 $as_echo "$have_x" >&6; }
9439 # If each of the values was on the command line, it overrides each guess.
9440 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9441 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9442 # Update the cache value to reflect the command line values.
9443 ac_cv_have_x
="have_x=yes\
9444 ac_x_includes='$x_includes'\
9445 ac_x_libraries='$x_libraries'"
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9447 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9450 if test "$no_x" != yes; then
9454 LD_SWITCH_X_SITE_RPATH
=
9455 if test "${x_libraries}" != NONE
; then
9456 if test -n "${x_libraries}"; then
9457 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9458 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9460 x_default_search_path
=""
9461 x_search_path
=${x_libraries}
9462 if test -z "${x_search_path}"; then
9463 x_search_path
=/usr
/lib
9465 for x_library
in `echo ${x_search_path}: | \
9466 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9468 ${x_library}/X11/%L/%T/%N%C%S:\
9469 ${x_library}/X11/%l/%T/%N%C%S:\
9470 ${x_library}/X11/%T/%N%C%S:\
9471 ${x_library}/X11/%L/%T/%N%S:\
9472 ${x_library}/X11/%l/%T/%N%S:\
9473 ${x_library}/X11/%T/%N%S"
9474 if test x
"${x_default_search_path}" = x
; then
9475 x_default_search_path
=${x_search_path}
9477 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9483 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9484 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9487 if test x
"${x_includes}" = x
; then
9488 bitmapdir
=/usr
/include
/X11
/bitmaps
9490 # accumulate include directories that have X11 bitmap subdirectories
9492 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9493 if test -d "${bmd}/X11/bitmaps"; then
9494 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9496 if test -d "${bmd}/bitmaps"; then
9497 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9500 if test ${bmd_acc} != "dummyval"; then
9501 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9508 tmp_CPPFLAGS
="$CPPFLAGS"
9509 tmp_CFLAGS
="$CFLAGS"
9510 CPPFLAGS
="$CPPFLAGS -x objective-c"
9511 CFLAGS
="$CFLAGS -x objective-c"
9512 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9514 if test "${with_ns}" != no
; then
9515 if test "${opsys}" = darwin
; then
9517 ns_appdir
=`pwd`/nextstep
/Emacs.app
9518 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9519 ns_appresdir
=${ns_appdir}/Contents
/Resources
9520 ns_appsrc
=Cocoa
/Emacs.base
9521 elif test -f $GNUSTEP_CONFIG_FILE; then
9523 ns_appdir
=`pwd`/nextstep
/Emacs.app
9524 ns_appbindir
=${ns_appdir}
9525 ns_appresdir
=${ns_appdir}/Resources
9526 ns_appsrc
=GNUstep
/Emacs.base
9527 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9528 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9529 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9530 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9531 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9532 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9533 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9534 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9535 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9536 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9537 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9542 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9543 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 #include <GNUstepBase/GSConfig.h>
9552 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9561 if ac_fn_c_try_compile
"$LINENO"; then :
9562 emacs_cv_objc_exceptions
=yes
9564 emacs_cv_objc_exceptions
=no
9566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9569 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9570 if test $emacs_cv_objc_exceptions = yes; then
9572 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9574 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9578 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9580 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9581 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9584 as_fn_error
"\`--with-ns' was specified, but the include
9585 files are missing or cannot be compiled." "$LINENO" 5
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 #include <AppKit/AppKit.h>
9597 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9598 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9601 #error "OSX 10.4 or newer required"
9609 if ac_fn_c_try_compile
"$LINENO"; then :
9614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #include <Foundation/NSObjCRuntime.h>
9626 if ac_fn_c_try_compile
"$LINENO"; then :
9627 ns_have_nsinteger
=yes
9629 ns_have_nsinteger
=no
9631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9632 if test $ns_osx_have_104 = no
; then
9633 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9635 if test $ns_have_nsinteger = yes; then
9637 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9644 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9645 ns_self_contained
=no
9648 if test "${HAVE_NS}" = yes; then
9649 if test "$with_toolkit_scroll_bars" = "no"; then
9650 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9653 window_system
=nextstep
9654 # set up packaging dirs
9655 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9656 ns_self_contained
=yes
9657 prefix
=${ns_appresdir}
9658 exec_prefix
=${ns_appbindir}
9659 libexecdir
="\${ns_appbindir}/libexec"
9660 archlibdir
="\${ns_appbindir}/libexec"
9661 docdir
="\${ns_appresdir}/etc"
9662 etcdir
="\${ns_appresdir}/etc"
9663 infodir
="\${ns_appresdir}/info"
9664 mandir
="\${ns_appresdir}/man"
9665 lispdir
="\${ns_appresdir}/lisp"
9666 leimdir
="\${ns_appresdir}/leim"
9667 INSTALL_ARCH_INDEP_EXTRA
=
9669 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9671 CFLAGS
="$tmp_CFLAGS"
9672 CPPFLAGS
="$tmp_CPPFLAGS"
9682 if test "${with_w32}" != no
; then
9683 if test "${opsys}" != "cygwin"; then
9684 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9686 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9690 as_fn_error
"\`--with-w32' was specified, but windows.h
9691 cannot be found." "$LINENO" 5
9696 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9698 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9699 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9700 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9701 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9706 if test "${HAVE_W32}" = "yes"; then
9711 ## $window_system is now set to the window system we will
9719 case "${window_system}" in
9724 case "${with_x_toolkit}" in
9725 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9726 motif
) USE_X_TOOLKIT
=MOTIF
;;
9728 term_header
=gtkutil.h
9729 USE_X_TOOLKIT
=none
;;
9730 gtk2
) with_gtk2
=yes
9731 term_header
=gtkutil.h
9732 USE_X_TOOLKIT
=none
;;
9733 gtk3
) with_gtk3
=yes
9734 term_header
=gtkutil.h
9735 USE_X_TOOLKIT
=none
;;
9736 no
) USE_X_TOOLKIT
=none
;;
9737 * ) USE_X_TOOLKIT
=maybe
;;
9741 term_header
=nsterm.h
9744 term_header
=w32term.h
9748 if test -n "${term_header}"; then
9750 cat >>confdefs.h
<<_ACEOF
9751 #define TERM_HEADER "${term_header}"
9756 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9757 # Extract the first word of "X", so it can be a program name with args.
9758 set dummy X
; ac_word
=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9764 if test -n "$HAVE_XSERVER"; then
9765 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9771 test -z "$as_dir" && as_dir
=.
9772 for ac_exec_ext
in '' $ac_executable_extensions; do
9773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9774 ac_cv_prog_HAVE_XSERVER
="true"
9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9785 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9786 if test -n "$HAVE_XSERVER"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9788 $as_echo "$HAVE_XSERVER" >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9795 if test "$HAVE_XSERVER" = true ||
9796 test -n "$DISPLAY" ||
9797 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9798 as_fn_error
"You seem to be running X, but no X development libraries
9799 were found. You should install the relevant development files for X
9800 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9801 sure you have development files for image handling, i.e.
9802 tiff, gif, jpeg, png and xpm.
9803 If you are sure you want Emacs compiled without X window support, pass
9805 to configure." "$LINENO" 5
9809 ### If we're using X11, we should use the X menu package.
9812 yes ) HAVE_MENUS
=yes ;;
9815 # Does the opsystem file prohibit the use of the GNU malloc?
9816 # Assume not, until told otherwise.
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9820 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9821 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9827 static void hook (void) {}
9831 malloc_set_state (malloc_get_state ());
9832 __after_morecore_hook = hook;
9833 __malloc_initialize_hook = hook;
9838 if ac_fn_c_try_link
"$LINENO"; then :
9839 emacs_cv_var_doug_lea_malloc
=yes
9841 emacs_cv_var_doug_lea_malloc
=no
9843 rm -f core conftest.err conftest.
$ac_objext \
9844 conftest
$ac_exeext conftest.
$ac_ext
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9847 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9848 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9853 ## darwin ld insists on the use of malloc routines in the System framework.
9854 darwin|sol2-10
) system_malloc
=yes ;;
9857 if test "${system_malloc}" = "yes"; then
9859 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9863 (The GNU allocators don't work with this system configuration.)"
9867 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9868 VMLIMIT_OBJ
=vm-limit.o
9873 if test "$doug_lea_malloc" = "yes" ; then
9874 if test "$GNU_MALLOC" = yes ; then
9876 (Using Doug Lea's new malloc from the GNU C Library.)"
9879 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9882 ## Use mmap directly for allocating larger buffers.
9883 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9884 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9885 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9887 gnu
*) REL_ALLOC
=no
;;
9891 if test x
"${REL_ALLOC}" = x
; then
9892 REL_ALLOC
=${GNU_MALLOC}
9895 use_mmap_for_buffers
=no
9897 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9907 for ac_func
in getpagesize
9909 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9910 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9911 cat >>confdefs.h
<<_ACEOF
9912 #define HAVE_GETPAGESIZE 1
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9919 $as_echo_n "checking for working mmap... " >&6; }
9920 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9923 if test "$cross_compiling" = yes; then :
9924 ac_cv_func_mmap_fixed_mapped
=no
9926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 /* malloc might have been renamed as rpl_malloc. */
9932 /* Thanks to Mike Haertel and Jim Avera for this test.
9933 Here is a matrix of mmap possibilities:
9934 mmap private not fixed
9935 mmap private fixed at somewhere currently unmapped
9936 mmap private fixed at somewhere already mapped
9937 mmap shared not fixed
9938 mmap shared fixed at somewhere currently unmapped
9939 mmap shared fixed at somewhere already mapped
9940 For private mappings, we should verify that changes cannot be read()
9941 back from the file, nor mmap's back from the file at a different
9942 address. (There have been systems where private was not correctly
9943 implemented like the infamous i386 svr4.0, and systems where the
9944 VM page cache was not coherent with the file system buffer cache
9945 like early versions of FreeBSD and possibly contemporary NetBSD.)
9946 For shared mappings, we should conversely verify that changes get
9947 propagated back to all the places they're supposed to be.
9949 Grep wants private fixed already mapped.
9950 The main things grep needs to know about mmap are:
9951 * does it exist and is it safe to write into the mmap'd area
9952 * how to use it (BSD variants) */
9955 #include <sys/mman.h>
9957 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9961 /* This mess was copied from the GNU getpagesize.h. */
9962 #ifndef HAVE_GETPAGESIZE
9963 # ifdef _SC_PAGESIZE
9964 # define getpagesize() sysconf(_SC_PAGESIZE)
9965 # else /* no _SC_PAGESIZE */
9966 # ifdef HAVE_SYS_PARAM_H
9967 # include <sys/param.h>
9968 # ifdef EXEC_PAGESIZE
9969 # define getpagesize() EXEC_PAGESIZE
9970 # else /* no EXEC_PAGESIZE */
9972 # define getpagesize() NBPG * CLSIZE
9975 # endif /* no CLSIZE */
9976 # else /* no NBPG */
9978 # define getpagesize() NBPC
9979 # else /* no NBPC */
9981 # define getpagesize() PAGESIZE
9982 # endif /* PAGESIZE */
9983 # endif /* no NBPC */
9984 # endif /* no NBPG */
9985 # endif /* no EXEC_PAGESIZE */
9986 # else /* no HAVE_SYS_PARAM_H */
9987 # define getpagesize() 8192 /* punt totally */
9988 # endif /* no HAVE_SYS_PARAM_H */
9989 # endif /* no _SC_PAGESIZE */
9991 #endif /* no HAVE_GETPAGESIZE */
9996 char *data, *data2, *data3;
10001 pagesize = getpagesize ();
10003 /* First, make a file with some known garbage in it. */
10004 data = (char *) malloc (pagesize);
10007 for (i = 0; i < pagesize; ++i)
10008 *(data + i) = rand ();
10010 fd = creat ("conftest.mmap", 0600);
10013 if (write (fd, data, pagesize) != pagesize)
10017 /* Next, check that the tail of a page is zero-filled. File must have
10018 non-zero length, otherwise we risk SIGBUS for entire page. */
10019 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10023 if (write (fd2, cdata2, 1) != 1)
10025 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10026 if (data2 == MAP_FAILED)
10028 for (i = 0; i < pagesize; ++i)
10032 if (munmap (data2, pagesize))
10035 /* Next, try to mmap the file at a fixed address which already has
10036 something else allocated at it. If we can, also make sure that
10037 we see the same garbage. */
10038 fd = open ("conftest.mmap", O_RDWR);
10041 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10042 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10044 for (i = 0; i < pagesize; ++i)
10045 if (*(data + i) != *(data2 + i))
10048 /* Finally, make sure that changes to the mapped area do not
10049 percolate back to the file as seen by read(). (This is a bug on
10050 some variants of i386 svr4.0.) */
10051 for (i = 0; i < pagesize; ++i)
10052 *(data2 + i) = *(data2 + i) + 1;
10053 data3 = (char *) malloc (pagesize);
10056 if (read (fd, data3, pagesize) != pagesize)
10058 for (i = 0; i < pagesize; ++i)
10059 if (*(data + i) != *(data3 + i))
10065 if ac_fn_c_try_run
"$LINENO"; then :
10066 ac_cv_func_mmap_fixed_mapped
=yes
10068 ac_cv_func_mmap_fixed_mapped
=no
10070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10076 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10077 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10079 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10082 rm -f conftest.mmap conftest.txt
10084 if test $use_mmap_for_buffers = yes; then
10086 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10091 LIBS
="$LIBS_SYSTEM $LIBS"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10094 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10095 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 ac_check_lib_save_LIBS
=$LIBS
10099 LIBS
="-ldnet $LIBS"
10100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10113 return dnet_ntoa ();
10118 if ac_fn_c_try_link
"$LINENO"; then :
10119 ac_cv_lib_dnet_dnet_ntoa
=yes
10121 ac_cv_lib_dnet_dnet_ntoa
=no
10123 rm -f core conftest.err conftest.
$ac_objext \
10124 conftest
$ac_exeext conftest.
$ac_ext
10125 LIBS
=$ac_check_lib_save_LIBS
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10128 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10129 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10130 cat >>confdefs.h
<<_ACEOF
10131 #define HAVE_LIBDNET 1
10134 LIBS
="-ldnet $LIBS"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10140 $as_echo_n "checking for main in -lXbsd... " >&6; }
10141 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10144 ac_check_lib_save_LIBS
=$LIBS
10145 LIBS
="-lXbsd $LIBS"
10146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10158 if ac_fn_c_try_link
"$LINENO"; then :
10159 ac_cv_lib_Xbsd_main
=yes
10161 ac_cv_lib_Xbsd_main
=no
10163 rm -f core conftest.err conftest.
$ac_objext \
10164 conftest
$ac_exeext conftest.
$ac_ext
10165 LIBS
=$ac_check_lib_save_LIBS
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10168 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10169 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10170 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10178 if test "$ac_cv_header_pthread_h"; then
10179 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10180 emacs_pthread_function
=pthread_atfork
10182 emacs_pthread_function
=pthread_self
10184 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10186 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10187 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10188 $as_echo_n "(cached) " >&6
10190 ac_check_lib_save_LIBS
=$LIBS
10191 LIBS
="-lpthread $LIBS"
10192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10201 char $emacs_pthread_function ();
10205 return $emacs_pthread_function ();
10210 if ac_fn_c_try_link
"$LINENO"; then :
10211 eval "$as_ac_Lib=yes"
10213 eval "$as_ac_Lib=no"
10215 rm -f core conftest.err conftest.
$ac_objext \
10216 conftest
$ac_exeext conftest.
$ac_ext
10217 LIBS
=$ac_check_lib_save_LIBS
10219 eval ac_res
=\$
$as_ac_Lib
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10221 $as_echo "$ac_res" >&6; }
10222 eval as_val
=\$
$as_ac_Lib
10223 if test "x$as_val" = x
""yes; then :
10228 if test "$HAVE_PTHREAD" = yes; then
10229 case "${canonical}" in
10231 *) LIB_PTHREAD
="-lpthread"
10232 LIBS
="$LIB_PTHREAD $LIBS" ;;
10235 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10241 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10242 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 ac_check_lib_save_LIBS
=$LIBS
10246 LIBS
="-lpthreads $LIBS"
10247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10260 return cma_open ();
10265 if ac_fn_c_try_link
"$LINENO"; then :
10266 ac_cv_lib_pthreads_cma_open
=yes
10268 ac_cv_lib_pthreads_cma_open
=no
10270 rm -f core conftest.err conftest.
$ac_objext \
10271 conftest
$ac_exeext conftest.
$ac_ext
10272 LIBS
=$ac_check_lib_save_LIBS
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10275 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10276 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10277 cat >>confdefs.h
<<_ACEOF
10278 #define HAVE_LIBPTHREADS 1
10281 LIBS
="-lpthreads $LIBS"
10286 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10287 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10288 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10289 ## added to LIBS in configure would never contain the pthreads part,
10290 ## but the value used in Makefiles might. FIXME?
10292 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10293 ## be harmless on older versions of X where it happens to exist.
10294 test "$opsys" = "aix4-2" && \
10295 test $ac_cv_lib_pthreads_cma_open = yes && \
10296 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10302 $as_echo_n "checking for -bbigtoc option... " >&6; }
10303 if test "${gdb_cv_bigtoc+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10308 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10309 *) gdb_cv_bigtoc
=-bbigtoc ;;
10312 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10324 if ac_fn_c_try_link
"$LINENO"; then :
10329 rm -f core conftest.err conftest.
$ac_objext \
10330 conftest
$ac_exeext conftest.
$ac_ext
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10334 $as_echo "$gdb_cv_bigtoc" >&6; }
10338 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10339 # used for the tests that follow. We set them back to REAL_CFLAGS and
10340 # REAL_CPPFLAGS later on.
10342 REAL_CFLAGS
="$CFLAGS"
10343 REAL_CPPFLAGS
="$CPPFLAGS"
10345 if test "${HAVE_X11}" = "yes"; then
10346 DEFS
="$C_SWITCH_X_SITE $DEFS"
10347 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10349 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10350 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10352 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10353 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10354 # but it's more convenient here to set LD_RUN_PATH since this
10355 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10356 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10357 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10361 if test "${opsys}" = "gnu-linux"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10363 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
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_first_failure
=no
10378 xgnu_linux_first_failure
=yes
10380 rm -f core conftest.err conftest.
$ac_objext \
10381 conftest
$ac_exeext conftest.
$ac_ext
10382 if test "${xgnu_linux_first_failure}" = "yes"; then
10383 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10384 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10385 OLD_CPPFLAGS
="$CPPFLAGS"
10387 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10388 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10389 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10390 LIBS
="$LIBS -b i486-linuxaout"
10391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10397 XOpenDisplay ("foo");
10402 if ac_fn_c_try_link
"$LINENO"; then :
10403 xgnu_linux_second_failure
=no
10405 xgnu_linux_second_failure
=yes
10407 rm -f core conftest.err conftest.
$ac_objext \
10408 conftest
$ac_exeext conftest.
$ac_ext
10409 if test "${xgnu_linux_second_failure}" = "yes"; then
10410 # If we get the same failure with -b, there is no use adding -b.
10411 # So take it out. This plays safe.
10412 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10413 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10414 CPPFLAGS
="$OLD_CPPFLAGS"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10420 $as_echo "yes" >&6; }
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10429 # header files included from there.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10431 $as_echo_n "checking for Xkb... " >&6; }
10432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 #include <X11/Xlib.h>
10435 #include <X11/XKBlib.h>
10439 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10444 if ac_fn_c_try_link
"$LINENO"; then :
10449 rm -f core conftest.err conftest.
$ac_objext \
10450 conftest
$ac_exeext conftest.
$ac_ext
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10452 $as_echo "$emacs_xkb" >&6; }
10453 if test $emacs_xkb = yes; then
10455 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10459 for ac_func
in XrmSetDatabase XScreenResourceString \
10460 XScreenNumberOfScreen
10462 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10464 eval as_val
=\$
$as_ac_var
10465 if test "x$as_val" = x
""yes; then :
10466 cat >>confdefs.h
<<_ACEOF
10467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10475 if test "${window_system}" = "x11"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10477 $as_echo_n "checking X11 version 6... " >&6; }
10478 if test "${emacs_cv_x11_version_6+set}" = set; then :
10479 $as_echo_n "(cached) " >&6
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include <X11/Xlib.h>
10487 #if XlibSpecificationRelease < 6
10495 if ac_fn_c_try_link
"$LINENO"; then :
10496 emacs_cv_x11_version_6
=yes
10498 emacs_cv_x11_version_6
=no
10500 rm -f core conftest.err conftest.
$ac_objext \
10501 conftest
$ac_exeext conftest.
$ac_ext
10504 if test $emacs_cv_x11_version_6 = yes; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10506 $as_echo "6 or newer" >&6; }
10508 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10511 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10513 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10518 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10524 $as_echo "before 6" >&6; }
10529 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10531 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10532 if test "${with_rsvg}" != "no"; then
10533 RSVG_REQUIRED
=2.11.0
10534 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10539 if test "$PKG_CONFIG" = "no" ; then
10542 PKG_CONFIG_MIN_VERSION
=0.9.0
10543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10545 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10547 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10548 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10549 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10556 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10557 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10559 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10566 ## If we have a custom action on failure, don't print errors, but
10567 ## do set a variable so people can do so. Do it in a subshell
10568 ## to capture any diagnostics in invoking pkg-config.
10569 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10581 if test $succeeded = yes; then
10590 if test $HAVE_RSVG = yes; then
10592 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10594 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10595 LIBS
="$RSVG_LIBS $LIBS"
10600 HAVE_IMAGEMAGICK
=no
10601 if test "${HAVE_X11}" = "yes"; then
10602 if test "${with_imagemagick}" != "no"; then
10603 ## 6.2.8 is the earliest version known to work, but earlier versions
10604 ## might work - let us know if you find one.
10605 ## 6.0.7 does not work. See bug#7955.
10606 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10610 if test "$PKG_CONFIG" = "no" ; then
10613 PKG_CONFIG_MIN_VERSION
=0.9.0
10614 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10616 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10618 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10619 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10620 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10627 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10628 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10630 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 IMAGEMAGICK_CFLAGS
=""
10636 IMAGEMAGICK_LIBS
=""
10637 ## If we have a custom action on failure, don't print errors, but
10638 ## do set a variable so people can do so. Do it in a subshell
10639 ## to capture any diagnostics in invoking pkg-config.
10640 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10652 if test $succeeded = yes; then
10653 HAVE_IMAGEMAGICK
=yes
10661 if test $HAVE_IMAGEMAGICK = yes; then
10663 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10665 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10666 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10667 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10669 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10671 eval as_val
=\$
$as_ac_var
10672 if test "x$as_val" = x
""yes; then :
10673 cat >>confdefs.h
<<_ACEOF
10674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10689 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10692 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10697 if test "$PKG_CONFIG" = "no" ; then
10700 PKG_CONFIG_MIN_VERSION
=0.9.0
10701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10703 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10705 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10706 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10707 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10714 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10715 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10717 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10724 ## If we have a custom action on failure, don't print errors, but
10725 ## do set a variable so people can do so. Do it in a subshell
10726 ## to capture any diagnostics in invoking pkg-config.
10727 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10739 if test $succeeded = yes; then
10745 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10746 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10748 if test "$pkg_check_gtk" = "yes"; then
10750 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10752 GTK_OBJ
=emacsgtkfixed.o
10753 term_header
=gtkutil.h
10754 USE_GTK_TOOLKIT
="GTK3"
10757 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10761 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10764 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10769 if test "$PKG_CONFIG" = "no" ; then
10772 PKG_CONFIG_MIN_VERSION
=0.9.0
10773 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10775 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10777 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10778 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10779 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10786 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10787 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10789 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10796 ## If we have a custom action on failure, don't print errors, but
10797 ## do set a variable so people can do so. Do it in a subshell
10798 ## to capture any diagnostics in invoking pkg-config.
10799 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10811 if test $succeeded = yes; then
10817 if test "$pkg_check_gtk" = "no" &&
10818 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10820 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10822 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10825 if test x
"$pkg_check_gtk" = xyes
; then
10829 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10830 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10831 LIBS
="$GTK_LIBS $LIBS"
10833 for ac_func
in gtk_main
10835 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10836 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10837 cat >>confdefs.h
<<_ACEOF
10838 #define HAVE_GTK_MAIN 1
10844 if test "${GTK_COMPILES}" != "yes"; then
10845 if test "$USE_X_TOOLKIT" != "maybe"; then
10846 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10851 $as_echo "#define USE_GTK 1" >>confdefs.h
10853 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10855 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10859 closing open displays. This is no problem if you just use
10860 one display, but if you use more than one and close one of them
10861 Emacs may crash." >&5
10862 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10863 closing open displays. This is no problem if you just use
10864 one display, but if you use more than one and close one of them
10865 Emacs may crash." >&2;}
10874 if test "${HAVE_GTK}" = "yes"; then
10876 if test "$with_toolkit_scroll_bars" != no
; then
10877 with_toolkit_scroll_bars
=yes
10880 HAVE_GTK_FILE_SELECTION
=no
10881 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10882 #include <gtk/gtk.h>
10884 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10885 HAVE_GTK_FILE_SELECTION
=yes
10887 HAVE_GTK_FILE_SELECTION
=no
10890 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10891 for ac_func
in gtk_file_selection_new
10893 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10894 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10895 cat >>confdefs.h
<<_ACEOF
10896 #define HAVE_GTK_FILE_SELECTION_NEW 1
10905 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10906 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10907 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10908 gtk_orientable_set_orientation \
10909 gtk_window_set_has_resize_grip
10911 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10913 eval as_val
=\$
$as_ac_var
10914 if test "x$as_val" = x
""yes; then :
10915 cat >>confdefs.h
<<_ACEOF
10916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10923 term_header
=gtkutil.h
10928 if test "${with_dbus}" = "yes"; then
10932 if test "$PKG_CONFIG" = "no" ; then
10935 PKG_CONFIG_MIN_VERSION
=0.9.0
10936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10938 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10940 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10941 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10942 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10949 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10950 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10952 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10959 ## If we have a custom action on failure, don't print errors, but
10960 ## do set a variable so people can do so. Do it in a subshell
10961 ## to capture any diagnostics in invoking pkg-config.
10962 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10974 if test $succeeded = yes; then
10980 if test "$HAVE_DBUS" = yes; then
10981 LIBS
="$LIBS $DBUS_LIBS"
10983 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10985 for ac_func
in dbus_watch_get_unix_fd \
10986 dbus_type_is_valid \
10987 dbus_validate_bus_name \
10988 dbus_validate_path \
10989 dbus_validate_interface \
10990 dbus_validate_member
10992 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10994 eval as_val
=\$
$as_ac_var
10995 if test "x$as_val" = x
""yes; then :
10996 cat >>confdefs.h
<<_ACEOF
10997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11003 DBUS_OBJ
=dbusbind.o
11009 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11013 if test "$PKG_CONFIG" = "no" ; then
11016 PKG_CONFIG_MIN_VERSION
=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11019 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11021 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11022 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11023 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11030 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11031 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11033 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 GSETTINGS_CFLAGS
=""
11040 ## If we have a custom action on failure, don't print errors, but
11041 ## do set a variable so people can do so. Do it in a subshell
11042 ## to capture any diagnostics in invoking pkg-config.
11043 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11055 if test $succeeded = yes; then
11061 if test "$HAVE_GSETTINGS" = "yes"; then
11063 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11065 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11066 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11071 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11075 if test "$PKG_CONFIG" = "no" ; then
11078 PKG_CONFIG_MIN_VERSION
=0.9.0
11079 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11081 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11083 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11084 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11085 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11092 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11093 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11095 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11102 ## If we have a custom action on failure, don't print errors, but
11103 ## do set a variable so people can do so. Do it in a subshell
11104 ## to capture any diagnostics in invoking pkg-config.
11105 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11117 if test $succeeded = yes; then
11123 if test "$HAVE_GCONF" = yes; then
11125 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11127 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11128 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11132 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11136 if test "$PKG_CONFIG" = "no" ; then
11139 PKG_CONFIG_MIN_VERSION
=0.9.0
11140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11142 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11144 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11145 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11146 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11153 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11154 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11156 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11163 ## If we have a custom action on failure, don't print errors, but
11164 ## do set a variable so people can do so. Do it in a subshell
11165 ## to capture any diagnostics in invoking pkg-config.
11166 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11173 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11174 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11178 if test $succeeded = yes; then
11184 if test "$HAVE_GOBJECT" = "yes"; then
11185 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11186 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11188 SAVE_CFLAGS
="$CFLAGS"
11190 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11191 LIBS
="$SETTINGS_LIBS $LIBS"
11192 for ac_func
in g_type_init
11194 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11195 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11196 cat >>confdefs.h
<<_ACEOF
11197 #define HAVE_G_TYPE_INIT 1
11203 CFLAGS
="$SAVE_CFLAGS"
11212 if test "${with_selinux}" = "yes"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11214 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11215 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11218 ac_check_lib_save_LIBS
=$LIBS
11219 LIBS
="-lselinux $LIBS"
11220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11229 char lgetfilecon ();
11233 return lgetfilecon ();
11238 if ac_fn_c_try_link
"$LINENO"; then :
11239 ac_cv_lib_selinux_lgetfilecon
=yes
11241 ac_cv_lib_selinux_lgetfilecon
=no
11243 rm -f core conftest.err conftest.
$ac_objext \
11244 conftest
$ac_exeext conftest.
$ac_ext
11245 LIBS
=$ac_check_lib_save_LIBS
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11248 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11249 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11250 HAVE_LIBSELINUX
=yes
11255 if test "$HAVE_LIBSELINUX" = yes; then
11257 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11259 LIBSELINUX_LIBS
=-lselinux
11265 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11266 if test "${with_gnutls}" = "yes" ; then
11270 if test "$PKG_CONFIG" = "no" ; then
11273 PKG_CONFIG_MIN_VERSION
=0.9.0
11274 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11276 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11278 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11279 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11280 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11287 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11288 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11290 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 LIBGNUTLS_CFLAGS
=""
11297 ## If we have a custom action on failure, don't print errors, but
11298 ## do set a variable so people can do so. Do it in a subshell
11299 ## to capture any diagnostics in invoking pkg-config.
11300 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11307 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11308 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11312 if test $succeeded = yes; then
11318 if test "${HAVE_GNUTLS}" = "yes"; then
11320 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11324 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11325 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11326 for ac_func
in gnutls_certificate_set_verify_function
11328 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11329 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11330 cat >>confdefs.h
<<_ACEOF
11331 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11333 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11338 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11340 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11350 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11351 if test "$with_xaw3d" != no
; then
11352 if test "${emacs_cv_xaw3d+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 #include <X11/Intrinsic.h>
11359 #include <X11/Xaw3d/Simple.h>
11368 if ac_fn_c_try_link
"$LINENO"; then :
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11370 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11371 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
11374 ac_check_lib_save_LIBS
=$LIBS
11375 LIBS
="-lXaw3d $LIBS"
11376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11385 char XawScrollbarSetThumb ();
11389 return XawScrollbarSetThumb ();
11394 if ac_fn_c_try_link
"$LINENO"; then :
11395 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11397 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11399 rm -f core conftest.err conftest.
$ac_objext \
11400 conftest
$ac_exeext conftest.
$ac_ext
11401 LIBS
=$ac_check_lib_save_LIBS
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11404 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11405 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11414 rm -f core conftest.err conftest.
$ac_objext \
11415 conftest
$ac_exeext conftest.
$ac_ext
11421 if test $emacs_cv_xaw3d = yes; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11423 $as_echo_n "checking for xaw3d... " >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11425 $as_echo "yes; using Lucid toolkit" >&6; }
11426 USE_X_TOOLKIT
=LUCID
11430 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11434 $as_echo_n "checking for xaw3d... " >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11438 $as_echo_n "checking for libXaw... " >&6; }
11439 if test "${emacs_cv_xaw+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 #include <X11/Intrinsic.h>
11446 #include <X11/Xaw/Simple.h>
11455 if ac_fn_c_try_link
"$LINENO"; then :
11460 rm -f core conftest.err conftest.
$ac_objext \
11461 conftest
$ac_exeext conftest.
$ac_ext
11464 if test $emacs_cv_xaw = yes; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11466 $as_echo "yes; using Lucid toolkit" >&6; }
11467 USE_X_TOOLKIT
=LUCID
11469 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11470 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11472 as_fn_error
"No X toolkit could be found.
11473 If you are sure you want Emacs compiled without an X toolkit, pass
11474 --with-x-toolkit=no
11475 to configure. Otherwise, install the development libraries for the toolkit
11476 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11481 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11484 if test "${USE_X_TOOLKIT}" != "none"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11486 $as_echo_n "checking X11 toolkit version... " >&6; }
11487 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492 #include <X11/Intrinsic.h>
11496 #if XtSpecificationRelease < 6
11504 if ac_fn_c_try_link
"$LINENO"; then :
11505 emacs_cv_x11_toolkit_version_6
=yes
11507 emacs_cv_x11_toolkit_version_6
=no
11509 rm -f core conftest.err conftest.
$ac_objext \
11510 conftest
$ac_exeext conftest.
$ac_ext
11513 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11514 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11516 $as_echo "6 or newer" >&6; }
11518 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11520 LIBXTR6
="-lSM -lICE"
11522 ## Use libw.a along with X11R6 Xt.
11523 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11527 $as_echo "before 6" >&6; }
11531 if test x
$HAVE_X11XTR6 = xyes
; then
11532 LIBS
="-lXt -lSM -lICE $LIBS"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11537 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11538 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11541 ac_check_lib_save_LIBS
=$LIBS
11543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11552 char XmuConvertStandardSelection ();
11556 return XmuConvertStandardSelection ();
11561 if ac_fn_c_try_link
"$LINENO"; then :
11562 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11564 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11566 rm -f core conftest.err conftest.
$ac_objext \
11567 conftest
$ac_exeext conftest.
$ac_ext
11568 LIBS
=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11571 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11572 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11573 cat >>confdefs.h
<<_ACEOF
11574 #define HAVE_LIBXMU 1
11581 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11587 ## These systems don't supply Xmu.
11589 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11594 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11595 if test "${HAVE_X11}" = "yes"; then
11596 if test "${USE_X_TOOLKIT}" != "none"; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11598 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11599 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
11602 ac_check_lib_save_LIBS
=$LIBS
11603 LIBS
="-lXext $LIBS"
11604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11613 char XShapeQueryExtension ();
11617 return XShapeQueryExtension ();
11622 if ac_fn_c_try_link
"$LINENO"; then :
11623 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11625 ac_cv_lib_Xext_XShapeQueryExtension
=no
11627 rm -f core conftest.err conftest.
$ac_objext \
11628 conftest
$ac_exeext conftest.
$ac_ext
11629 LIBS
=$ac_check_lib_save_LIBS
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11632 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11633 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11634 cat >>confdefs.h
<<_ACEOF
11635 #define HAVE_LIBXEXT 1
11638 LIBS
="-lXext $LIBS"
11646 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11647 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11648 if test -d /usr
/include
/openmotif
; then
11649 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11650 emacs_cv_openmotif
=yes
11651 case "$canonical" in
11652 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11653 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11656 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11659 emacs_cv_openmotif
=no
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11662 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11663 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11672 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11675 Motif version prior to 2.1.
11681 if ac_fn_c_try_compile
"$LINENO"; then :
11682 emacs_cv_motif_version_2_1
=yes
11684 emacs_cv_motif_version_2_1
=no
11686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11689 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11690 if test $emacs_cv_motif_version_2_1 = yes; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11692 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11693 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11696 ac_check_lib_save_LIBS
=$LIBS
11698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11707 char XpCreateContext ();
11711 return XpCreateContext ();
11716 if ac_fn_c_try_link
"$LINENO"; then :
11717 ac_cv_lib_Xp_XpCreateContext
=yes
11719 ac_cv_lib_Xp_XpCreateContext
=no
11721 rm -f core conftest.err conftest.
$ac_objext \
11722 conftest
$ac_exeext conftest.
$ac_ext
11723 LIBS
=$ac_check_lib_save_LIBS
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11726 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11727 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11731 if test x
$emacs_cv_openmotif = xyes
; then
11732 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11736 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11737 if test "${emacs_cv_lesstif+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 # We put this in CFLAGS temporarily to precede other -I options
11741 # that might be in CFLAGS temporarily.
11742 # We put this in CPPFLAGS where it precedes the other -I options.
11743 OLD_CPPFLAGS
=$CPPFLAGS
11745 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11746 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11749 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11758 if ac_fn_c_try_compile
"$LINENO"; then :
11759 emacs_cv_lesstif
=yes
11761 emacs_cv_lesstif
=no
11763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11766 $as_echo "$emacs_cv_lesstif" >&6; }
11767 if test $emacs_cv_lesstif = yes; then
11768 # Make sure this -I option remains in CPPFLAGS after it is set
11769 # back to REAL_CPPFLAGS.
11770 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11771 # have those other -I options anyway. Ultimately, having this
11772 # directory ultimately in CPPFLAGS will be enough.
11773 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11774 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11777 CPPFLAGS
=$OLD_CPPFLAGS
11780 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11781 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11784 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11791 USE_TOOLKIT_SCROLL_BARS
=no
11792 if test "${with_toolkit_scroll_bars}" != "no"; then
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11795 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11798 USE_TOOLKIT_SCROLL_BARS
=yes
11799 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11800 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11802 USE_TOOLKIT_SCROLL_BARS
=yes
11804 elif test "${HAVE_GTK}" = "yes"; then
11805 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11807 USE_TOOLKIT_SCROLL_BARS
=yes
11808 elif test "${HAVE_NS}" = "yes"; then
11809 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11811 USE_TOOLKIT_SCROLL_BARS
=yes
11812 elif test "${HAVE_W32}" = "yes"; then
11813 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11815 USE_TOOLKIT_SCROLL_BARS
=yes
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11822 #include <X11/Xlib.h>
11823 #include <X11/Xresource.h>
11832 if ac_fn_c_try_compile
"$LINENO"; then :
11835 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11843 if test "${with_xim}" != "no"; then
11845 $as_echo "#define USE_XIM 1" >>confdefs.h
11850 if test "${HAVE_XIM}" != "no"; then
11851 late_CFLAGS
=$CFLAGS
11852 if test "$GCC" = yes; then
11853 CFLAGS
="$CFLAGS --pedantic-errors"
11855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11858 #include <X11/Xlib.h>
11859 #include <X11/Xresource.h>
11868 XPointer *client_data;
11870 /* If we're not using GCC, it's probably not XFree86, and this is
11871 probably right, but we can't use something like --pedantic-errors. */
11872 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11873 char*, XIMProc, XPointer*);
11875 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11881 if ac_fn_c_try_compile
"$LINENO"; then :
11882 emacs_cv_arg6_star
=yes
11884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11885 if test "$emacs_cv_arg6_star" = yes; then
11886 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11889 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11892 CFLAGS
=$late_CFLAGS
11895 ### Start of font-backend (under any platform) section.
11896 # (nothing here yet -- this is a placeholder)
11897 ### End of font-backend (under any platform) section.
11899 ### Start of font-backend (under X11) section.
11900 if test "${HAVE_X11}" = "yes"; then
11904 if test "$PKG_CONFIG" = "no" ; then
11907 PKG_CONFIG_MIN_VERSION
=0.9.0
11908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11910 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11912 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11913 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11914 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11921 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11922 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11924 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 FONTCONFIG_CFLAGS
=""
11931 ## If we have a custom action on failure, don't print errors, but
11932 ## do set a variable so people can do so. Do it in a subshell
11933 ## to capture any diagnostics in invoking pkg-config.
11934 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11946 if test $succeeded = yes; then
11953 ## Use -lXft if available, unless `--with-xft=no'.
11955 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11958 if test "x${with_xft}" != "xno"; then
11963 if test "$PKG_CONFIG" = "no" ; then
11966 PKG_CONFIG_MIN_VERSION
=0.9.0
11967 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11969 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11971 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11972 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11973 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11980 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11981 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11983 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11990 ## If we have a custom action on failure, don't print errors, but
11991 ## do set a variable so people can do so. Do it in a subshell
11992 ## to capture any diagnostics in invoking pkg-config.
11993 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
12000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12005 if test $succeeded = yes; then
12011 ## Because xftfont.c uses XRenderQueryExtension, we also
12012 ## need to link to -lXrender.
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12015 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12016 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_check_lib_save_LIBS
=$LIBS
12020 LIBS
="-lXrender $LIBS"
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12030 char XRenderQueryExtension ();
12034 return XRenderQueryExtension ();
12039 if ac_fn_c_try_link
"$LINENO"; then :
12040 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12042 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12044 rm -f core conftest.err conftest.
$ac_objext \
12045 conftest
$ac_exeext conftest.
$ac_ext
12046 LIBS
=$ac_check_lib_save_LIBS
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12049 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12050 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12054 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12055 OLD_CPPFLAGS
="$CPPFLAGS"
12056 OLD_CFLAGS
="$CFLAGS"
12058 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12059 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12060 XFT_LIBS
="-lXrender $XFT_LIBS"
12061 LIBS
="$XFT_LIBS $LIBS"
12062 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12063 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12065 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12066 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 ac_check_lib_save_LIBS
=$LIBS
12070 LIBS
="-lXft $XFT_LIBS $LIBS"
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12080 char XftFontOpen ();
12084 return XftFontOpen ();
12089 if ac_fn_c_try_link
"$LINENO"; then :
12090 ac_cv_lib_Xft_XftFontOpen
=yes
12092 ac_cv_lib_Xft_XftFontOpen
=no
12094 rm -f core conftest.err conftest.
$ac_objext \
12095 conftest
$ac_exeext conftest.
$ac_ext
12096 LIBS
=$ac_check_lib_save_LIBS
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12099 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12100 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12108 if test "${HAVE_XFT}" = "yes"; then
12110 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12113 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12115 CPPFLAGS
="$OLD_CPPFLAGS"
12116 CFLAGS
="$OLD_CFLAGS"
12118 fi # "${HAVE_XFT}" = "yes"
12119 fi # "$HAVE_XFT" != no
12120 fi # "x${with_xft}" != "xno"
12122 ## We used to allow building with FreeType and without Xft.
12123 ## However, the ftx font backend driver is not in good shape.
12124 if test "$HAVE_XFT" != "yes"; then
12131 if test "$PKG_CONFIG" = "no" ; then
12134 PKG_CONFIG_MIN_VERSION
=0.9.0
12135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12137 $as_echo_n "checking for freetype2... " >&6; }
12139 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12140 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12141 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12148 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12149 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12151 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12158 ## If we have a custom action on failure, don't print errors, but
12159 ## do set a variable so people can do so. Do it in a subshell
12160 ## to capture any diagnostics in invoking pkg-config.
12161 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12173 if test $succeeded = yes; then
12180 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12184 if test "${HAVE_FREETYPE}" = "yes"; then
12186 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12188 if test "${with_libotf}" != "no"; then
12192 if test "$PKG_CONFIG" = "no" ; then
12195 PKG_CONFIG_MIN_VERSION
=0.9.0
12196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12198 $as_echo_n "checking for libotf... " >&6; }
12200 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12201 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12202 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12209 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12210 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12212 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12219 ## If we have a custom action on failure, don't print errors, but
12220 ## do set a variable so people can do so. Do it in a subshell
12221 ## to capture any diagnostics in invoking pkg-config.
12222 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12234 if test $succeeded = yes; then
12240 if test "$HAVE_LIBOTF" = "yes"; then
12242 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12245 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12246 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12249 ac_check_lib_save_LIBS
=$LIBS
12251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12260 char OTF_get_variation_glyphs ();
12264 return OTF_get_variation_glyphs ();
12269 if ac_fn_c_try_link
"$LINENO"; then :
12270 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12272 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12274 rm -f core conftest.err conftest.
$ac_objext \
12275 conftest
$ac_exeext conftest.
$ac_ext
12276 LIBS
=$ac_check_lib_save_LIBS
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12279 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12280 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12281 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12283 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12286 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12288 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12296 if test "${HAVE_LIBOTF}" = yes; then
12297 if test "${with_m17n_flt}" != "no"; then
12301 if test "$PKG_CONFIG" = "no" ; then
12304 PKG_CONFIG_MIN_VERSION
=0.9.0
12305 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12307 $as_echo_n "checking for m17n-flt... " >&6; }
12309 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12310 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12311 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12318 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12319 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12321 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12328 ## If we have a custom action on failure, don't print errors, but
12329 ## do set a variable so people can do so. Do it in a subshell
12330 ## to capture any diagnostics in invoking pkg-config.
12331 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12343 if test $succeeded = yes; then
12349 if test "$HAVE_M17N_FLT" = "yes"; then
12351 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12363 ### End of font-backend (under X11) section.
12374 ### Use -lXpm if available, unless `--with-xpm=no'.
12378 if test "${HAVE_W32}" = "yes"; then
12379 if test "${with_xpm}" != "no"; then
12380 SAVE_CPPFLAGS
="$CPPFLAGS"
12381 SAVE_LDFLAGS
="$LDFLAGS"
12382 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12383 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12384 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12385 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12387 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12388 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12391 ac_check_lib_save_LIBS
=$LIBS
12393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12402 char XpmReadFileToImage ();
12406 return XpmReadFileToImage ();
12411 if ac_fn_c_try_link
"$LINENO"; then :
12412 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12414 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12416 rm -f core conftest.err conftest.
$ac_objext \
12417 conftest
$ac_exeext conftest.
$ac_ext
12418 LIBS
=$ac_check_lib_save_LIBS
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12421 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12422 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12429 if test "${HAVE_XPM}" = "yes"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12431 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #include "X11/xpm.h"
12435 #ifndef XpmReturnAllocPixels
12436 no_return_alloc_pixels
12440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12441 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12449 if test "${HAVE_XPM}" = "yes"; then
12450 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12456 CPPFLAGS
="$SAVE_CPPFLAGS"
12457 LDFLAGS
="$SAVE_LDFLAGS"
12462 if test "${HAVE_XPM}" = "yes"; then
12464 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12470 if test "${HAVE_X11}" = "yes"; then
12471 if test "${with_xpm}" != "no"; then
12472 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12473 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12475 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12476 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12479 ac_check_lib_save_LIBS
=$LIBS
12480 LIBS
="-lXpm -lX11 $LIBS"
12481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12490 char XpmReadFileToPixmap ();
12494 return XpmReadFileToPixmap ();
12499 if ac_fn_c_try_link
"$LINENO"; then :
12500 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12502 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12504 rm -f core conftest.err conftest.
$ac_objext \
12505 conftest
$ac_exeext conftest.
$ac_ext
12506 LIBS
=$ac_check_lib_save_LIBS
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12509 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12510 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12517 if test "${HAVE_XPM}" = "yes"; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12519 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522 #include "X11/xpm.h"
12523 #ifndef XpmReturnAllocPixels
12524 no_return_alloc_pixels
12528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12537 if test "${HAVE_XPM}" = "yes"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12547 if test "${HAVE_XPM}" = "yes"; then
12549 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12557 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12560 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12561 if test "${with_jpeg}" != "no"; then
12562 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12563 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12565 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12566 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
12569 ac_check_lib_save_LIBS
=$LIBS
12570 LIBS
="-ljpeg $LIBS"
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12580 char jpeg_destroy_compress ();
12584 return jpeg_destroy_compress ();
12589 if ac_fn_c_try_link
"$LINENO"; then :
12590 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12592 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12594 rm -f core conftest.err conftest.
$ac_objext \
12595 conftest
$ac_exeext conftest.
$ac_ext
12596 LIBS
=$ac_check_lib_save_LIBS
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12599 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12600 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12609 if test "${HAVE_JPEG}" = "yes"; then
12610 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #include <jpeglib.h>
12615 version=JPEG_LIB_VERSION
12618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12619 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12620 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12624 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12630 if test "${HAVE_JPEG}" = "yes"; then
12636 ### Use -lpng if available, unless `--with-png=no'.
12639 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12640 if test "${with_png}" != "no"; then
12641 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12642 # in /usr/include/libpng.
12643 for ac_header
in png.h libpng
/png.h
12645 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12646 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12647 eval as_val
=\$
$as_ac_Header
12648 if test "x$as_val" = x
""yes; then :
12649 cat >>confdefs.h
<<_ACEOF
12650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12657 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12659 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12660 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12663 ac_check_lib_save_LIBS
=$LIBS
12664 LIBS
="-lpng -lz -lm $LIBS"
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12674 char png_get_channels ();
12678 return png_get_channels ();
12683 if ac_fn_c_try_link
"$LINENO"; then :
12684 ac_cv_lib_png_png_get_channels
=yes
12686 ac_cv_lib_png_png_get_channels
=no
12688 rm -f core conftest.err conftest.
$ac_objext \
12689 conftest
$ac_exeext conftest.
$ac_ext
12690 LIBS
=$ac_check_lib_save_LIBS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12693 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12694 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12701 if test "${HAVE_PNG}" = "yes"; then
12703 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12705 LIBPNG
="-lpng -lz -lm"
12707 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12708 # include <libpng/png.h>
12714 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12718 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12726 ### Use -ltiff if available, unless `--with-tiff=no'.
12729 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12730 if test "${with_tiff}" != "no"; then
12731 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12734 # At least one tiff package requires the jpeg library.
12735 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12737 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12741 ac_check_lib_save_LIBS
=$LIBS
12742 LIBS
="-ltiff $tifflibs $LIBS"
12743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12752 char TIFFGetVersion ();
12756 return TIFFGetVersion ();
12761 if ac_fn_c_try_link
"$LINENO"; then :
12762 ac_cv_lib_tiff_TIFFGetVersion
=yes
12764 ac_cv_lib_tiff_TIFFGetVersion
=no
12766 rm -f core conftest.err conftest.
$ac_objext \
12767 conftest
$ac_exeext conftest.
$ac_ext
12768 LIBS
=$ac_check_lib_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12771 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12772 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12781 if test "${HAVE_TIFF}" = "yes"; then
12783 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12790 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12793 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12794 ||
test "${HAVE_W32}" = "yes"; then
12795 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12796 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12797 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12798 # Earlier versions can crash Emacs.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12800 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12801 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12804 ac_check_lib_save_LIBS
=$LIBS
12806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12815 char EGifPutExtensionLast ();
12819 return EGifPutExtensionLast ();
12824 if ac_fn_c_try_link
"$LINENO"; then :
12825 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12827 ac_cv_lib_gif_EGifPutExtensionLast
=no
12829 rm -f core conftest.err conftest.
$ac_objext \
12830 conftest
$ac_exeext conftest.
$ac_ext
12831 LIBS
=$ac_check_lib_save_LIBS
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12834 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12835 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12845 if test "$HAVE_GIF" = yes; then
12847 elif test "$HAVE_GIF" = maybe
; then
12848 # If gif_lib.h but no libgif, try libungif.
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12850 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12851 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12854 ac_check_lib_save_LIBS
=$LIBS
12855 LIBS
="-lungif $LIBS"
12856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12865 char EGifPutExtensionLast ();
12869 return EGifPutExtensionLast ();
12874 if ac_fn_c_try_link
"$LINENO"; then :
12875 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12877 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12879 rm -f core conftest.err conftest.
$ac_objext \
12880 conftest
$ac_exeext conftest.
$ac_ext
12881 LIBS
=$ac_check_lib_save_LIBS
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12884 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12885 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12891 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12894 if test "${HAVE_GIF}" = "yes"; then
12896 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12902 if test "${HAVE_X11}" = "yes"; then
12905 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12906 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12907 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12908 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12909 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12910 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12911 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12912 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12913 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12914 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12916 if test "X${MISSING}" != X
; then
12917 as_fn_error
"The following required libraries were not found:
12919 Maybe some development libraries/packages are missing?
12920 If you don't want to link with them give
12922 as options to configure" "$LINENO" 5
12926 ### Use -lgpm if available, unless `--with-gpm=no'.
12929 if test "${with_gpm}" != "no"; then
12930 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12931 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12933 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12934 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12937 ac_check_lib_save_LIBS
=$LIBS
12939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12942 /* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
12952 return Gpm_Open ();
12957 if ac_fn_c_try_link
"$LINENO"; then :
12958 ac_cv_lib_gpm_Gpm_Open
=yes
12960 ac_cv_lib_gpm_Gpm_Open
=no
12962 rm -f core conftest.err conftest.
$ac_objext \
12963 conftest
$ac_exeext conftest.
$ac_ext
12964 LIBS
=$ac_check_lib_save_LIBS
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12967 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12968 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12976 if test "${HAVE_GPM}" = "yes"; then
12978 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12990 ### Use NeXTstep API to implement GUI.
12991 if test "${HAVE_NS}" = "yes"; then
12993 $as_echo "#define HAVE_NS 1" >>confdefs.h
12995 if test "${NS_IMPL_COCOA}" = "yes"; then
12997 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13000 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13002 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13004 # See also .m.o rule in Makefile.in */
13005 # FIXME: are all these flags really needed? Document here why. */
13006 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13007 ## Extra CFLAGS applied to src/*.m files.
13008 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"
13010 # We also have mouse menus.
13015 if test "${HAVE_W32}" = "yes"; then
13019 ### Use session management (-lSM -lICE) if available
13022 if test "${HAVE_X11}" = "yes"; then
13023 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13024 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13026 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13027 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13030 ac_check_lib_save_LIBS
=$LIBS
13031 LIBS
="-lSM -lICE $LIBS"
13032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13041 char SmcOpenConnection ();
13045 return SmcOpenConnection ();
13050 if ac_fn_c_try_link
"$LINENO"; then :
13051 ac_cv_lib_SM_SmcOpenConnection
=yes
13053 ac_cv_lib_SM_SmcOpenConnection
=no
13055 rm -f core conftest.err conftest.
$ac_objext \
13056 conftest
$ac_exeext conftest.
$ac_ext
13057 LIBS
=$ac_check_lib_save_LIBS
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13060 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13061 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13069 if test "${HAVE_X_SM}" = "yes"; then
13071 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13073 LIBXSM
="-lSM -lICE"
13076 *) LIBS
="$LIBXSM $LIBS" ;;
13082 ### Use libxml (-lxml2) if available
13084 if test "${with_xml2}" != "no"; then
13085 ### I'm not sure what the version number should be, so I just guessed.
13089 if test "$PKG_CONFIG" = "no" ; then
13092 PKG_CONFIG_MIN_VERSION
=0.9.0
13093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13095 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13097 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13098 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13099 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13106 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13107 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13109 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13116 ## If we have a custom action on failure, don't print errors, but
13117 ## do set a variable so people can do so. Do it in a subshell
13118 ## to capture any diagnostics in invoking pkg-config.
13119 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13126 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13127 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13131 if test $succeeded = yes; then
13137 if test "${HAVE_LIBXML2}" = "yes"; then
13138 LIBS
="$LIBXML2_LIBS $LIBS"
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13140 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13141 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 ac_check_lib_save_LIBS
=$LIBS
13145 LIBS
="-lxml2 $LIBS"
13146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13155 char htmlReadMemory ();
13159 return htmlReadMemory ();
13164 if ac_fn_c_try_link
"$LINENO"; then :
13165 ac_cv_lib_xml2_htmlReadMemory
=yes
13167 ac_cv_lib_xml2_htmlReadMemory
=no
13169 rm -f core conftest.err conftest.
$ac_objext \
13170 conftest
$ac_exeext conftest.
$ac_ext
13171 LIBS
=$ac_check_lib_save_LIBS
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13174 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13175 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13181 if test "${HAVE_LIBXML2}" = "yes"; then
13183 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13194 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13196 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13197 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13211 if ac_fn_c_try_link
"$LINENO"; then :
13212 emacs_cv_netdb_declares_h_errno
=yes
13214 emacs_cv_netdb_declares_h_errno
=no
13216 rm -f core conftest.err conftest.
$ac_objext \
13217 conftest
$ac_exeext conftest.
$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13220 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13221 if test $emacs_cv_netdb_declares_h_errno = yes; then
13223 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13227 # sqrt and other floating-point functions such as fmod and frexp
13228 # are found in -lm on most systems.
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13230 $as_echo_n "checking for sqrt in -lm... " >&6; }
13231 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13234 ac_check_lib_save_LIBS
=$LIBS
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13254 if ac_fn_c_try_link
"$LINENO"; then :
13255 ac_cv_lib_m_sqrt
=yes
13257 ac_cv_lib_m_sqrt
=no
13259 rm -f core conftest.err conftest.
$ac_objext \
13260 conftest
$ac_exeext conftest.
$ac_ext
13261 LIBS
=$ac_check_lib_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13264 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13265 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13266 cat >>confdefs.h
<<_ACEOF
13267 #define HAVE_LIBM 1
13275 # Check for mail-locking functions in a "mail" library. Probably this should
13276 # have the same check as for liblockfile below.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13278 $as_echo_n "checking for maillock in -lmail... " >&6; }
13279 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS
=$LIBS
13283 LIBS
="-lmail $LIBS"
13284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13297 return maillock ();
13302 if ac_fn_c_try_link
"$LINENO"; then :
13303 ac_cv_lib_mail_maillock
=yes
13305 ac_cv_lib_mail_maillock
=no
13307 rm -f core conftest.err conftest.
$ac_objext \
13308 conftest
$ac_exeext conftest.
$ac_ext
13309 LIBS
=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13312 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13313 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13319 if test $have_mail = yes; then
13321 LIBS
="$LIBS_MAIL $LIBS"
13323 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13329 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13330 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13333 ac_check_lib_save_LIBS
=$LIBS
13334 LIBS
="-llockfile $LIBS"
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13348 return maillock ();
13353 if ac_fn_c_try_link
"$LINENO"; then :
13354 ac_cv_lib_lockfile_maillock
=yes
13356 ac_cv_lib_lockfile_maillock
=no
13358 rm -f core conftest.err conftest.
$ac_objext \
13359 conftest
$ac_exeext conftest.
$ac_ext
13360 LIBS
=$ac_check_lib_save_LIBS
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13363 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13364 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13370 if test $have_lockfile = yes; then
13371 LIBS_MAIL
=-llockfile
13372 LIBS
="$LIBS_MAIL $LIBS"
13374 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13377 # If we have the shared liblockfile, assume we must use it for mail
13378 # locking (e.g. Debian). If we couldn't link against liblockfile
13379 # (no liblockfile.a installed), ensure that we don't need to.
13380 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13381 set dummy liblockfile.so
; ac_word
=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 if test -n "$liblockfile"; then
13388 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13391 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13392 for as_dir
in $as_dummy
13395 test -z "$as_dir" && as_dir
=.
13396 for ac_exec_ext
in '' $ac_executable_extensions; do
13397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13398 ac_cv_prog_liblockfile
="yes"
13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13409 liblockfile
=$ac_cv_prog_liblockfile
13410 if test -n "$liblockfile"; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13412 $as_echo "$liblockfile" >&6; }
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13419 if test $ac_cv_prog_liblockfile = yes; then
13420 as_fn_error
"Shared liblockfile found but can't link against it.
13421 This probably means that movemail could lose mail.
13422 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13430 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13431 ## interlock access to the mail spool. The alternative is a lock file named
13432 ## /usr/spool/mail/$USER.lock.
13435 aix4-2
) mail_lock
="lockf" ;;
13437 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13439 ## On GNU/Linux systems, both methods are used by various mail programs.
13440 ## I assume most people are using newer mailers that have heard of flock.
13441 ## Change this if you need to.
13442 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13443 ## configure gets the right answers, and that means *NOT* using flock.
13444 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13445 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13446 ## Debian maintainer hasn't provided a clean fix for Emacs.
13447 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13448 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13449 ## correct logic. -- fx
13450 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13451 ## liblockfile is a Free Software replacement for libmail, used on
13452 ## Debian systems and elsewhere. -rfr.
13455 if test $have_mail = yes ||
test $have_lockfile = yes; then
13456 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13462 case "$mail_lock" in
13464 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13468 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13471 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13476 for ac_func
in gethostname \
13477 closedir getrusage get_current_dir_name \
13479 select getpagesize setlocale \
13480 utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
13481 strsignal setitimer \
13482 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13483 gai_strerror mkstemp getline getdelim fsync sync \
13484 difftime posix_memalign \
13485 getpwent endpwent getgrent endgrent \
13487 cfmakeraw cfsetspeed copysign __executable_start
13489 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13490 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13491 eval as_val
=\$
$as_ac_var
13492 if test "x$as_val" = x
""yes; then :
13493 cat >>confdefs.h
<<_ACEOF
13494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13501 if test $opsys = unixware
; then
13503 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13506 for ac_func
in getwd
13508 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13509 if test "x$ac_cv_func_getwd" = x
""yes; then :
13510 cat >>confdefs.h
<<_ACEOF
13511 #define HAVE_GETWD 1
13519 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13520 ## has a broken `rint' in some library versions including math library
13521 ## version number A.09.05.
13522 ## You can fix the math library by installing patch number PHSS_4630.
13523 ## But we can fix it more reliably for Emacs by just not using rint.
13524 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13527 *) for ac_func
in random rint
13529 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13530 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13531 eval as_val
=\$
$as_ac_var
13532 if test "x$as_val" = x
""yes; then :
13533 cat >>confdefs.h
<<_ACEOF
13534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13543 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13544 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13553 __builtin_unwind_init ();
13558 if ac_fn_c_try_link
"$LINENO"; then :
13559 emacs_cv_func___builtin_unwind_init
=yes
13561 emacs_cv_func___builtin_unwind_init
=no
13563 rm -f core conftest.err conftest.
$ac_objext \
13564 conftest
$ac_exeext conftest.
$ac_ext
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13567 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13568 if test $emacs_cv_func___builtin_unwind_init = yes; then
13570 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13579 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13580 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <sys/types.h> /* for off_t */
13591 int (*fp) (FILE *, off_t, int) = fseeko;
13592 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13597 if ac_fn_c_try_link
"$LINENO"; then :
13598 ac_cv_sys_largefile_source
=no
; break
13600 rm -f core conftest.err conftest.
$ac_objext \
13601 conftest
$ac_exeext conftest.
$ac_ext
13602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 #define _LARGEFILE_SOURCE 1
13605 #include <sys/types.h> /* for off_t */
13610 int (*fp) (FILE *, off_t, int) = fseeko;
13611 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13616 if ac_fn_c_try_link
"$LINENO"; then :
13617 ac_cv_sys_largefile_source
=1; break
13619 rm -f core conftest.err conftest.
$ac_objext \
13620 conftest
$ac_exeext conftest.
$ac_ext
13621 ac_cv_sys_largefile_source
=unknown
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13626 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13627 case $ac_cv_sys_largefile_source in #(
13630 cat >>confdefs.h
<<_ACEOF
13631 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13637 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13638 # in glibc 2.1.3, but that breaks too many other things.
13639 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13640 if test $ac_cv_sys_largefile_source != unknown
; then
13642 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13648 for ac_func
in grantpt
13650 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13651 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13652 cat >>confdefs.h
<<_ACEOF
13653 #define HAVE_GRANTPT 1
13660 # PTY-related GNU extensions.
13661 for ac_func
in getpt posix_openpt
13663 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13665 eval as_val
=\$
$as_ac_var
13666 if test "x$as_val" = x
""yes; then :
13667 cat >>confdefs.h
<<_ACEOF
13668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13675 # Check this now, so that we will NOT find the above functions in ncurses.
13676 # That is because we have not set up to link ncurses in lib-src.
13677 # It's better to believe a function is not available
13678 # than to expect to find it in ncurses.
13679 # Also we need tputs and friends to be able to build at all.
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13681 $as_echo_n "checking for library containing tputs... " >&6; }
13682 # Run a test program that contains a call to tputs, a call that is
13683 # never executed. This tests whether a pre-'main' dynamic linker
13684 # works with the library. It's too much trouble to actually call
13685 # tputs in the test program, due to portability hassles. When
13686 # cross-compiling, assume the test program will run if it links.
13688 # Maybe curses should be tried earlier?
13689 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13690 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13692 if test -z "$tputs_library"; then
13694 msg
='none required'
13696 LIBS_TERMCAP
=-l$tputs_library
13698 LIBS
="$LIBS_TERMCAP $LIBS"
13700 if test "$cross_compiling" = yes; then :
13701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 extern void tputs (const char *, int, int (*)(int));
13705 int main (int argc, char **argv)
13708 tputs (argv[0], 0, 0);
13713 if ac_fn_c_try_link
"$LINENO"; then :
13718 rm -f core conftest.err conftest.
$ac_objext \
13719 conftest
$ac_exeext conftest.
$ac_ext
13721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 extern void tputs (const char *, int, int (*)(int));
13725 int main (int argc, char **argv)
13728 tputs (argv[0], 0, 0);
13733 if ac_fn_c_try_run
"$LINENO"; then :
13738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13743 if test "X$msg" != Xno
; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13748 $as_echo "$msg" >&6; }
13749 if test "X$msg" = Xno
; then
13750 as_fn_error
"The required function \`tputs' was not found in any library.
13751 The following libraries were tried (in order):
13752 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13753 Please try installing whichever of these libraries is most appropriate
13754 for your system, together with its header files.
13755 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13758 ## Use termcap instead of terminfo?
13759 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13761 ## FIXME? In the cases below where we unconditionally set
13762 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13763 ## if that was found above to have tputs.
13764 ## Should we use the gnu* logic everywhere?
13766 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13767 ## The ncurses library has been moved out of the System framework in
13768 ## Mac OS X 10.2. So if configure detects it, set the command-line
13769 ## option to use it.
13770 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13772 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13776 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13777 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #include <osreldate.h>
13786 #if __FreeBSD_version < 400000
13794 if ac_fn_c_try_link
"$LINENO"; then :
13795 emacs_cv_freebsd_terminfo
=yes
13797 emacs_cv_freebsd_terminfo
=no
13799 rm -f core conftest.err conftest.
$ac_objext \
13800 conftest
$ac_exeext conftest.
$ac_ext
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13805 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13807 if test $emacs_cv_freebsd_terminfo = yes; then
13808 LIBS_TERMCAP
="-lncurses"
13811 LIBS_TERMCAP
="-ltermcap"
13816 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13818 LIBS_TERMCAP
="-ltermcap"
13822 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13824 ## hpux: Make sure we get select from libc rather than from libcurses
13825 ## because libcurses on HPUX 10.10 has a broken version of select.
13826 ## We used to use -lc -lcurses, but this may be cleaner.
13827 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13828 # set that way, now it uses the default). Isn't this a contradiction?
13829 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13833 TERMCAP_OBJ
=tparam.o
13834 if test $TERMINFO = yes; then
13836 $as_echo "#define TERMINFO 1" >>confdefs.h
13838 TERMCAP_OBJ
=terminfo.o
13844 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13845 # On Darwin, res_init appears not to be useful: see bug#562 and
13846 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13849 if test $opsys != darwin
; then
13851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <netinet/in.h>
13854 #include <arpa/nameser.h>
13855 #include <resolv.h>
13864 if ac_fn_c_try_link
"$LINENO"; then :
13869 rm -f core conftest.err conftest.
$ac_objext \
13870 conftest
$ac_exeext conftest.
$ac_ext
13871 if test "$have_res_init" = no
; then
13873 LIBS
="$LIBS -lresolv"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13875 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <netinet/in.h>
13879 #include <arpa/nameser.h>
13880 #include <resolv.h>
13889 if ac_fn_c_try_link
"$LINENO"; then :
13894 rm -f core conftest.err conftest.
$ac_objext \
13895 conftest
$ac_exeext conftest.
$ac_ext
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13897 $as_echo "$have_res_init" >&6; }
13898 if test "$have_res_init" = yes ; then
13904 if test "$have_res_init" = yes; then
13906 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13910 # Do we need the Hesiod library to provide the support routines?
13912 if test "$with_hesiod" != no
; then
13913 # Don't set $LIBS here -- see comments above. FIXME which comments?
13914 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13915 if test "x$ac_cv_func_res_send" = x
""yes; then :
13918 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13919 if test "x$ac_cv_func___res_send" = x
""yes; then :
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13923 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13924 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13927 ac_check_lib_save_LIBS
=$LIBS
13928 LIBS
="-lresolv $LIBS"
13929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13932 /* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13942 return res_send ();
13947 if ac_fn_c_try_link
"$LINENO"; then :
13948 ac_cv_lib_resolv_res_send
=yes
13950 ac_cv_lib_resolv_res_send
=no
13952 rm -f core conftest.err conftest.
$ac_objext \
13953 conftest
$ac_exeext conftest.
$ac_ext
13954 LIBS
=$ac_check_lib_save_LIBS
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13957 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13958 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13962 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13963 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 ac_check_lib_save_LIBS
=$LIBS
13967 LIBS
="-lresolv $LIBS"
13968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13977 char __res_send ();
13981 return __res_send ();
13986 if ac_fn_c_try_link
"$LINENO"; then :
13987 ac_cv_lib_resolv___res_send
=yes
13989 ac_cv_lib_resolv___res_send
=no
13991 rm -f core conftest.err conftest.
$ac_objext \
13992 conftest
$ac_exeext conftest.
$ac_ext
13993 LIBS
=$ac_check_lib_save_LIBS
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13996 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13997 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14007 if test "$resolv" = yes ; then
14012 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14013 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14017 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14018 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14021 ac_check_lib_save_LIBS
=$LIBS
14022 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14032 char hes_getmailhost ();
14036 return hes_getmailhost ();
14041 if ac_fn_c_try_link
"$LINENO"; then :
14042 ac_cv_lib_hesiod_hes_getmailhost
=yes
14044 ac_cv_lib_hesiod_hes_getmailhost
=no
14046 rm -f core conftest.err conftest.
$ac_objext \
14047 conftest
$ac_exeext conftest.
$ac_ext
14048 LIBS
=$ac_check_lib_save_LIBS
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14051 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14052 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14061 if test x
"$hesiod" = xyes
; then
14063 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14070 # Do we need libresolv (due to res_init or Hesiod)?
14071 if test "$resolv" = yes && test $opsys != darwin
; then
14073 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14081 # These tell us which Kerberos-related libraries to use.
14088 if test "${with_kerberos}" != no
; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14090 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14091 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14094 ac_check_lib_save_LIBS
=$LIBS
14095 LIBS
="-lcom_err $LIBS"
14096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14114 if ac_fn_c_try_link
"$LINENO"; then :
14115 ac_cv_lib_com_err_com_err
=yes
14117 ac_cv_lib_com_err_com_err
=no
14119 rm -f core conftest.err conftest.
$ac_objext \
14120 conftest
$ac_exeext conftest.
$ac_ext
14121 LIBS
=$ac_check_lib_save_LIBS
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14124 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14125 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14131 if test $have_com_err = yes; then
14132 COM_ERRLIB
=-lcom_err
14133 LIBS
="$COM_ERRLIB $LIBS"
14135 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14139 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14140 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14143 ac_check_lib_save_LIBS
=$LIBS
14144 LIBS
="-lcrypto $LIBS"
14145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14154 char mit_des_cbc_encrypt ();
14158 return mit_des_cbc_encrypt ();
14163 if ac_fn_c_try_link
"$LINENO"; then :
14164 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14166 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14168 rm -f core conftest.err conftest.
$ac_objext \
14169 conftest
$ac_exeext conftest.
$ac_ext
14170 LIBS
=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14173 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14174 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14180 if test $have_crypto = yes; then
14182 LIBS
="$CRYPTOLIB $LIBS"
14184 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14188 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14189 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14192 ac_check_lib_save_LIBS
=$LIBS
14193 LIBS
="-lk5crypto $LIBS"
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14203 char mit_des_cbc_encrypt ();
14207 return mit_des_cbc_encrypt ();
14212 if ac_fn_c_try_link
"$LINENO"; then :
14213 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14215 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14217 rm -f core conftest.err conftest.
$ac_objext \
14218 conftest
$ac_exeext conftest.
$ac_ext
14219 LIBS
=$ac_check_lib_save_LIBS
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14222 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14223 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14229 if test $have_k5crypto = yes; then
14230 CRYPTOLIB
=-lk5crypto
14231 LIBS
="$CRYPTOLIB $LIBS"
14233 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14237 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14238 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14241 ac_check_lib_save_LIBS
=$LIBS
14242 LIBS
="-lkrb5 $LIBS"
14243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14252 char krb5_init_context ();
14256 return krb5_init_context ();
14261 if ac_fn_c_try_link
"$LINENO"; then :
14262 ac_cv_lib_krb5_krb5_init_context
=yes
14264 ac_cv_lib_krb5_krb5_init_context
=no
14266 rm -f core conftest.err conftest.
$ac_objext \
14267 conftest
$ac_exeext conftest.
$ac_ext
14268 LIBS
=$ac_check_lib_save_LIBS
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14271 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14272 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14278 if test $have_krb5=yes; then
14280 LIBS
="$KRB5LIB $LIBS"
14282 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14285 if test "${with_kerberos5}" = no
; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14287 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14288 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14291 ac_check_lib_save_LIBS
=$LIBS
14292 LIBS
="-ldes425 $LIBS"
14293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14302 char des_cbc_encrypt ();
14306 return des_cbc_encrypt ();
14311 if ac_fn_c_try_link
"$LINENO"; then :
14312 ac_cv_lib_des425_des_cbc_encrypt
=yes
14314 ac_cv_lib_des425_des_cbc_encrypt
=no
14316 rm -f core conftest.err conftest.
$ac_objext \
14317 conftest
$ac_exeext conftest.
$ac_ext
14318 LIBS
=$ac_check_lib_save_LIBS
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14321 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14322 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14328 if test $have_des425 = yes; then
14330 LIBS
="$DESLIB $LIBS"
14332 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14336 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14337 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14338 $as_echo_n "(cached) " >&6
14340 ac_check_lib_save_LIBS
=$LIBS
14342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14345 /* Override any GCC internal prototype to avoid an error.
14346 Use char because int might match the return type of a GCC
14347 builtin and then its argument prototype would still apply. */
14351 char des_cbc_encrypt ();
14355 return des_cbc_encrypt ();
14360 if ac_fn_c_try_link
"$LINENO"; then :
14361 ac_cv_lib_des_des_cbc_encrypt
=yes
14363 ac_cv_lib_des_des_cbc_encrypt
=no
14365 rm -f core conftest.err conftest.
$ac_objext \
14366 conftest
$ac_exeext conftest.
$ac_ext
14367 LIBS
=$ac_check_lib_save_LIBS
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14370 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14371 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14377 if test $have_des = yes; then
14379 LIBS
="$DESLIB $LIBS"
14381 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14386 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14387 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14390 ac_check_lib_save_LIBS
=$LIBS
14391 LIBS
="-lkrb4 $LIBS"
14392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14401 char krb_get_cred ();
14405 return krb_get_cred ();
14410 if ac_fn_c_try_link
"$LINENO"; then :
14411 ac_cv_lib_krb4_krb_get_cred
=yes
14413 ac_cv_lib_krb4_krb_get_cred
=no
14415 rm -f core conftest.err conftest.
$ac_objext \
14416 conftest
$ac_exeext conftest.
$ac_ext
14417 LIBS
=$ac_check_lib_save_LIBS
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14421 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14427 if test $have_krb4 = yes; then
14429 LIBS
="$KRB4LIB $LIBS"
14431 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14435 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14436 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14439 ac_check_lib_save_LIBS
=$LIBS
14441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply. */
14450 char krb_get_cred ();
14454 return krb_get_cred ();
14459 if ac_fn_c_try_link
"$LINENO"; then :
14460 ac_cv_lib_krb_krb_get_cred
=yes
14462 ac_cv_lib_krb_krb_get_cred
=no
14464 rm -f core conftest.err conftest.
$ac_objext \
14465 conftest
$ac_exeext conftest.
$ac_ext
14466 LIBS
=$ac_check_lib_save_LIBS
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14469 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14470 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14476 if test $have_krb = yes; then
14478 LIBS
="$KRB4LIB $LIBS"
14480 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14486 if test "${with_kerberos5}" != no
; then
14487 for ac_header
in krb5.h
14489 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14490 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14491 cat >>confdefs.h
<<_ACEOF
14492 #define HAVE_KRB5_H 1
14494 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14496 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14498 cat >>confdefs.h
<<_ACEOF
14499 #define HAVE_KRB5_ERROR_TEXT 1
14504 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14506 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14508 cat >>confdefs.h
<<_ACEOF
14509 #define HAVE_KRB5_ERROR_E_TEXT 1
14520 for ac_header
in des.h
14522 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14523 if test "x$ac_cv_header_des_h" = x
""yes; then :
14524 cat >>confdefs.h
<<_ACEOF
14525 #define HAVE_DES_H 1
14529 for ac_header
in kerberosIV
/des.h
14531 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14532 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14533 cat >>confdefs.h
<<_ACEOF
14534 #define HAVE_KERBEROSIV_DES_H 1
14538 for ac_header
in kerberos
/des.h
14540 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14541 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14542 cat >>confdefs.h
<<_ACEOF
14543 #define HAVE_KERBEROS_DES_H 1
14558 for ac_header
in krb.h
14560 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14561 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14562 cat >>confdefs.h
<<_ACEOF
14563 #define HAVE_KRB_H 1
14567 for ac_header
in kerberosIV
/krb.h
14569 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14570 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14571 cat >>confdefs.h
<<_ACEOF
14572 #define HAVE_KERBEROSIV_KRB_H 1
14576 for ac_header
in kerberos
/krb.h
14578 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14580 cat >>confdefs.h
<<_ACEOF
14581 #define HAVE_KERBEROS_KRB_H 1
14597 for ac_header
in com_err.h
14599 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14600 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14601 cat >>confdefs.h
<<_ACEOF
14602 #define HAVE_COM_ERR_H 1
14620 for ac_func
in $ac_func_list
14622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14624 eval as_val
=\$
$as_ac_var
14625 if test "x$as_val" = x
""yes; then :
14626 cat >>confdefs.h
<<_ACEOF
14627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14637 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14638 if test "${emacs_cv_localtime_cache+set}" = set; then :
14639 $as_echo_n "(cached) " >&6
14641 if test x
$ac_cv_func_tzset = xyes
; then
14642 if test "$cross_compiling" = yes; then :
14643 # If we have tzset, assume the worst when cross-compiling.
14644 emacs_cv_localtime_cache
=yes
14646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14649 char TZ_GMT0[] = "TZ=GMT0";
14650 char TZ_PST8[] = "TZ=PST8";
14653 time_t now = time ((time_t *) 0);
14654 int hour_GMT0, hour_unset;
14655 if (putenv (TZ_GMT0) != 0)
14657 hour_GMT0 = localtime (&now)->tm_hour;
14659 hour_unset = localtime (&now)->tm_hour;
14660 if (putenv (TZ_PST8) != 0)
14662 if (localtime (&now)->tm_hour == hour_GMT0)
14665 if (localtime (&now)->tm_hour != hour_unset)
14670 if ac_fn_c_try_run
"$LINENO"; then :
14671 emacs_cv_localtime_cache
=no
14673 emacs_cv_localtime_cache
=yes
14675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14680 # If we lack tzset, report that localtime does not cache TZ,
14681 # since we can't invalidate the cache if we don't have tzset.
14682 emacs_cv_localtime_cache
=no
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14686 $as_echo "$emacs_cv_localtime_cache" >&6; }
14687 if test $emacs_cv_localtime_cache = yes; then
14689 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14694 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14695 if test "x$ac_cv_func_socket" = x
""yes; then :
14701 if test $ok_so_far = yes; then
14702 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14703 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14711 if test $ok_so_far = yes; then
14712 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14713 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14721 if test $ok_so_far = yes; then
14723 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14727 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14729 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14734 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14735 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14737 $as_echo "yes" >&6; }
14739 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14747 *-solaris2.4 |
*-solaris2.4.
*)
14748 : ${ac_cv_func_vfork_works=no};;
14751 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14752 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14756 cat >>confdefs.h
<<_ACEOF
14762 for ac_header
in vfork.h
14764 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14765 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14766 cat >>confdefs.h
<<_ACEOF
14767 #define HAVE_VFORK_H 1
14774 for ac_func
in fork vfork
14776 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14778 eval as_val
=\$
$as_ac_var
14779 if test "x$as_val" = x
""yes; then :
14780 cat >>confdefs.h
<<_ACEOF
14781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 if test "x$ac_cv_func_fork" = xyes
; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14789 $as_echo_n "checking for working fork... " >&6; }
14790 if test "${ac_cv_func_fork_works+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14793 if test "$cross_compiling" = yes; then :
14794 ac_cv_func_fork_works
=cross
14796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 $ac_includes_default
14803 /* By Ruediger Kuhlmann. */
14804 return fork () < 0;
14810 if ac_fn_c_try_run
"$LINENO"; then :
14811 ac_cv_func_fork_works
=yes
14813 ac_cv_func_fork_works
=no
14815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14821 $as_echo "$ac_cv_func_fork_works" >&6; }
14824 ac_cv_func_fork_works
=$ac_cv_func_fork
14826 if test "x$ac_cv_func_fork_works" = xcross
; then
14828 *-*-amigaos* |
*-*-msdosdjgpp*)
14829 # Override, as these systems have only a dummy fork() stub
14830 ac_cv_func_fork_works
=no
14833 ac_cv_func_fork_works
=yes
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14837 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14839 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14840 if test "x$ac_cv_func_vfork" = xyes
; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14842 $as_echo_n "checking for working vfork... " >&6; }
14843 if test "${ac_cv_func_vfork_works+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14846 if test "$cross_compiling" = yes; then :
14847 ac_cv_func_vfork_works
=cross
14849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 /* Thanks to Paul Eggert for this test. */
14852 $ac_includes_default
14853 #include <sys/wait.h>
14854 #ifdef HAVE_VFORK_H
14855 # include <vfork.h>
14857 /* On some sparc systems, changes by the child to local and incoming
14858 argument registers are propagated back to the parent. The compiler
14859 is told about this with #include <vfork.h>, but some compilers
14860 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14861 static variable whose address is put into a register that is
14862 clobbered by the vfork. */
14865 sparc_address_test (int arg)
14867 sparc_address_test (arg) int arg;
14870 static pid_t child;
14888 pid_t parent = getpid ();
14891 sparc_address_test (0);
14896 /* Here is another test for sparc vfork register problems. This
14897 test uses lots of local variables, at least as many local
14898 variables as main has allocated so far including compiler
14899 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14900 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14901 reuse the register of parent for one of the local variables,
14902 since it will think that parent can't possibly be used any more
14903 in this routine. Assigning to the local variable will thus
14904 munge parent in the parent process. */
14906 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14907 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14908 /* Convince the compiler that p..p7 are live; otherwise, it might
14909 use the same hardware register for all 8 local variables. */
14910 if (p != p1 || p != p2 || p != p3 || p != p4
14911 || p != p5 || p != p6 || p != p7)
14914 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14915 from child file descriptors. If the child closes a descriptor
14916 before it execs or exits, this munges the parent's descriptor
14917 as well. Test for this by closing stdout in the child. */
14918 _exit(close(fileno(stdout)) != 0);
14923 while (wait(&status) != child)
14926 /* Was there some problem with vforking? */
14929 /* Did the child fail? (This shouldn't happen.) */
14932 /* Did the vfork/compiler bug occur? */
14933 || parent != getpid()
14935 /* Did the file descriptor bug occur? */
14936 || fstat(fileno(stdout), &st) != 0
14941 if ac_fn_c_try_run
"$LINENO"; then :
14942 ac_cv_func_vfork_works
=yes
14944 ac_cv_func_vfork_works
=no
14946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14952 $as_echo "$ac_cv_func_vfork_works" >&6; }
14955 if test "x$ac_cv_func_fork_works" = xcross
; then
14956 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14958 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14961 if test "x$ac_cv_func_vfork_works" = xyes
; then
14963 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14967 $as_echo "#define vfork fork" >>confdefs.h
14970 if test "x$ac_cv_func_fork_works" = xyes
; then
14972 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14977 for ac_func
in snprintf
14979 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14980 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14981 cat >>confdefs.h
<<_ACEOF
14982 #define HAVE_SNPRINTF 1
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14990 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14991 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14992 $as_echo_n "(cached) " >&6
14994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 #include <langinfo.h>
15000 char* cs = nl_langinfo(CODESET);
15005 if ac_fn_c_try_link
"$LINENO"; then :
15006 emacs_cv_langinfo_codeset
=yes
15008 emacs_cv_langinfo_codeset
=no
15010 rm -f core conftest.err conftest.
$ac_objext \
15011 conftest
$ac_exeext conftest.
$ac_ext
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15015 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15016 if test $emacs_cv_langinfo_codeset = yes; then
15018 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15023 $as_echo_n "checking for mbstate_t... " >&6; }
15024 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 # include <wchar.h>
15034 mbstate_t x; return sizeof x;
15039 if ac_fn_c_try_compile
"$LINENO"; then :
15040 ac_cv_type_mbstate_t
=yes
15042 ac_cv_type_mbstate_t
=no
15044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15047 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15048 if test $ac_cv_type_mbstate_t = yes; then
15050 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15054 $as_echo "#define mbstate_t int" >>confdefs.h
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15059 $as_echo_n "checking for C restricted array declarations... " >&6; }
15060 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15061 $as_echo_n "(cached) " >&6
15063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 void fred (int x[__restrict]);
15074 if ac_fn_c_try_compile
"$LINENO"; then :
15075 emacs_cv_c_restrict_arr
=yes
15077 emacs_cv_c_restrict_arr
=no
15079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15082 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15083 if test "$emacs_cv_c_restrict_arr" = yes; then
15085 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15091 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15095 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15098 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15100 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15104 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15110 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15114 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15118 $as_echo "#define subprocesses 1" >>confdefs.h
15122 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15127 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15133 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15137 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15141 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15149 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15150 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15156 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15163 irix6-5 | sol2
* | unixware
)
15165 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15170 emacs_broken_SIGIO
=no
15173 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15174 emacs_broken_SIGIO
=yes
15179 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15185 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15193 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15199 darwin | freebsd | netbsd | openbsd
)
15201 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15207 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15208 *) sound_device
="/dev/dsp" ;;
15212 cat >>confdefs.h
<<_ACEOF
15213 #define DEFAULT_SOUND_DEVICE "$sound_device"
15219 darwin | gnu-linux | gnu-kfreebsd
)
15221 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15228 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15230 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15244 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15246 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15248 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15253 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15255 $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
15257 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15259 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15264 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15266 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15268 $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
15270 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15272 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15277 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15281 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15282 if test "x$ac_cv_func_grantpt" = xyes
; then
15284 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15286 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15288 $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
15290 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15291 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15293 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15295 elif test "x$ac_cv_func_getpt" = xyes
; then
15296 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15298 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15301 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15305 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15311 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15313 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15315 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15320 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15322 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15324 $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
15326 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15328 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15333 $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
15338 $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
15346 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15348 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15351 $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
15360 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15361 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15365 gnu-linux | gnu-kfreebsd
)
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15368 $as_echo_n "checking for signals via characters... " >&6; }
15369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15372 #include <linux/version.h>
15373 #if LINUX_VERSION_CODE < 0x20400
15374 # error "Linux version too old"
15385 if ac_fn_c_try_cpp
"$LINENO"; then :
15386 emacs_signals_via_chars
=yes
15388 emacs_signals_via_chars
=no
15390 rm -f conftest.err conftest.
$ac_ext
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15393 $as_echo "$emacs_signals_via_chars" >&6; }
15394 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15405 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15410 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15412 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15416 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15418 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15428 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15431 gnu | freebsd | netbsd | openbsd
)
15433 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15435 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15439 gnu-linux | gnu-kfreebsd
)
15440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15441 /* end confdefs.h. */
15455 if ac_fn_c_try_cpp
"$LINENO"; then :
15456 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15459 rm -f conftest.err conftest.
$ac_ext
15461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15476 if ac_fn_c_try_cpp
"$LINENO"; then :
15478 $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
15481 rm -f conftest.err conftest.
$ac_ext
15486 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15491 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15503 aix4-2 | hpux
* | unixware
)
15504 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15508 gnu-linux | gnu-kfreebsd
)
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15512 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15513 || defined __alpha__ || defined __mips__ || defined __s390__ \
15514 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15515 || defined __ia64__ || defined __sh__
15518 # error "setjmp not known to work on this arch"
15529 if ac_fn_c_try_cpp
"$LINENO"; then :
15530 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15533 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15536 rm -f conftest.err conftest.
$ac_ext
15541 if test x
$GCC = xyes
; then
15542 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15546 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15547 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15553 $as_echo_n "checking for _setjmp... " >&6; }
15554 if test "${emacs_cv_func__setjmp+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15559 #include <setjmp.h>
15571 if ac_fn_c_try_link
"$LINENO"; then :
15572 emacs_cv_func__setjmp
=yes
15574 emacs_cv_func__setjmp
=no
15576 rm -f core conftest.err conftest.
$ac_objext \
15577 conftest
$ac_exeext conftest.
$ac_ext
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15580 $as_echo "$emacs_cv_func__setjmp" >&6; }
15581 if test $emacs_cv_func__setjmp = yes; then
15583 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15587 $as_echo_n "checking for sigsetjmp... " >&6; }
15588 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 #include <setjmp.h>
15599 if (! sigsetjmp (j, 1))
15605 if ac_fn_c_try_link
"$LINENO"; then :
15606 emacs_cv_func_sigsetjmp
=yes
15608 emacs_cv_func_sigsetjmp
=no
15610 rm -f core conftest.err conftest.
$ac_objext \
15611 conftest
$ac_exeext conftest.
$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15614 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15615 if test $emacs_cv_func_sigsetjmp = yes; then
15617 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15625 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15634 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15650 $as_echo "#define USG /**/" >>confdefs.h
15652 $as_echo "#define USG5 /**/" >>confdefs.h
15654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15658 # error "_AIX not defined"
15669 if ac_fn_c_try_cpp
"$LINENO"; then :
15673 $as_echo "#define _AIX /**/" >>confdefs.h
15676 rm -f conftest.err conftest.
$ac_ext
15681 $as_echo "#define CYGWIN 1" >>confdefs.h
15686 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15688 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15691 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15696 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15699 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15703 gnu | netbsd | openbsd
)
15704 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15710 # error "BSD_SYSTEM not defined"
15721 if ac_fn_c_try_cpp
"$LINENO"; then :
15724 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15727 rm -f conftest.err conftest.
$ac_ext
15730 gnu-linux | gnu-kfreebsd
)
15731 $as_echo "#define USG /**/" >>confdefs.h
15734 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15739 $as_echo "#define USG /**/" >>confdefs.h
15741 $as_echo "#define USG5 /**/" >>confdefs.h
15744 $as_echo "#define HPUX /**/" >>confdefs.h
15749 $as_echo "#define USG /**/" >>confdefs.h
15751 $as_echo "#define USG5 /**/" >>confdefs.h
15753 $as_echo "#define USG5_4 /**/" >>confdefs.h
15756 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15761 $as_echo "#define USG /**/" >>confdefs.h
15763 $as_echo "#define USG5 /**/" >>confdefs.h
15765 $as_echo "#define USG5_4 /**/" >>confdefs.h
15768 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15773 $as_echo "#define USG /**/" >>confdefs.h
15775 $as_echo "#define USG5 /**/" >>confdefs.h
15777 $as_echo "#define USG5_4 /**/" >>confdefs.h
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15783 $as_echo_n "checking for usable FIONREAD... " >&6; }
15784 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15785 $as_echo_n "(cached) " >&6
15789 emacs_cv_usable_FIONREAD
=no
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <sys/types.h>
15796 #include <sys/ioctl.h>
15798 # include <sys/filio.h>
15804 int foo = ioctl (0, FIONREAD, &foo);
15809 if ac_fn_c_try_compile
"$LINENO"; then :
15810 emacs_cv_usable_FIONREAD
=yes
15812 emacs_cv_usable_FIONREAD
=no
15814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15819 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15820 if test $emacs_cv_usable_FIONREAD = yes; then
15822 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15825 if test $emacs_broken_SIGIO = no
; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15827 $as_echo_n "checking for usable SIGIO... " >&6; }
15828 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15834 #include <signal.h>
15839 int foo = SIGIO | F_SETFL | FASYNC;
15844 if ac_fn_c_try_compile
"$LINENO"; then :
15845 emacs_cv_usable_SIGIO
=yes
15847 emacs_cv_usable_SIGIO
=no
15849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15852 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15853 if test $emacs_cv_usable_SIGIO = yes; then
15855 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15865 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15871 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15877 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15883 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15888 # Set up the CFLAGS for real compilation, so we can substitute it.
15889 CFLAGS
="$REAL_CFLAGS"
15890 CPPFLAGS
="$REAL_CPPFLAGS"
15892 ## Hack to detect a buggy GCC version.
15893 if test "x$GCC" = xyes \
15894 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15895 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15896 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15897 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15900 version
=$PACKAGE_VERSION
15902 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15904 cat >>confdefs.h
<<_ACEOF
15905 #define COPYRIGHT "$copyright"
15910 ### Specify what sort of things we'll be editing into Makefile and config.h.
15911 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15937 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15938 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15939 ## end of LIBX_BASE, but nothing ever set it.
15944 ## Used in lwlib/Makefile.in.
15953 if test -n "${term_header}"; then
15955 cat >>confdefs.h
<<_ACEOF
15956 #define TERM_HEADER "${term_header}"
15962 cat >>confdefs.h
<<_ACEOF
15963 #define EMACS_CONFIGURATION "${canonical}"
15967 cat >>confdefs.h
<<_ACEOF
15968 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15976 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15978 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15981 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15983 if test "$HAVE_XFT" = "yes"; then
15984 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15985 elif test "$HAVE_FREETYPE" = "yes"; then
15986 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15996 if test "${USE_X_TOOLKIT}" != "none" ; then
15997 WIDGET_OBJ
=widget.o
15999 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16001 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16003 $as_echo "#define USE_LUCID 1" >>confdefs.h
16005 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16007 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16012 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16013 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16017 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16018 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16019 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16023 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16024 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16027 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16033 case "$USE_X_TOOLKIT" in
16034 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16035 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16036 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16040 if test "$USE_X_TOOLKIT" = "none"; then
16041 LIBXT_OTHER
="\$(LIBXSM)"
16042 OLDXMENU_TARGET
="really-oldXMenu"
16044 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16045 OLDXMENU_TARGET
="really-lwlib"
16049 ## The X Menu stuff is present in the X10 distribution, but missing
16050 ## from X11. If we have X10, just use the installed library;
16051 ## otherwise, use our own copy.
16052 if test "${HAVE_X11}" = "yes" ; then
16054 $as_echo "#define HAVE_X11 1" >>confdefs.h
16057 if test "$USE_X_TOOLKIT" = "none"; then
16058 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16060 OLDXMENU
="\${lwlibdir}/liblw.a"
16062 LIBXMENU
="\$(OLDXMENU)"
16063 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16064 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16066 ## For a syntactically valid Makefile; not actually used for anything.
16067 ## See comments in src/Makefile.in.
16069 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16070 if test "${HAVE_X_WINDOWS}" = "yes"; then
16079 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16092 if test "${HAVE_MENUS}" = "yes" ; then
16094 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16098 if test "${GNU_MALLOC}" = "yes" ; then
16100 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16105 if test "${REL_ALLOC}" = "yes" ; then
16107 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16110 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16114 if test "$opsys" = "cygwin"; then
16115 CYGWIN_OBJ
="sheap.o cygw32.o"
16116 ## Cygwin differs because of its unexec().
16118 POST_ALLOC_OBJ
=lastfile.o
16121 PRE_ALLOC_OBJ
=lastfile.o
16128 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16129 # it temporarily reverts them to their pre-pkg-config values,
16130 # because gnulib needs to work with both src (which uses the
16131 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16132 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16133 # and it therefore needs to run in an environment where LIBS does not
16134 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16135 # for some package unrelated to lib-src.
16136 SAVE_CFLAGS
=$CFLAGS
16138 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16139 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16151 LIBC_FATAL_STDERR_
=1
16152 export LIBC_FATAL_STDERR_
16154 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16155 # for constant arguments. Useless!
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16157 $as_echo_n "checking for working alloca.h... " >&6; }
16158 if test "${ac_cv_working_alloca_h+set}" = set; then :
16159 $as_echo_n "(cached) " >&6
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #include <alloca.h>
16167 char *p = (char *) alloca (2 * sizeof (int));
16173 if ac_fn_c_try_link
"$LINENO"; then :
16174 ac_cv_working_alloca_h
=yes
16176 ac_cv_working_alloca_h
=no
16178 rm -f core conftest.err conftest.
$ac_objext \
16179 conftest
$ac_exeext conftest.
$ac_ext
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16182 $as_echo "$ac_cv_working_alloca_h" >&6; }
16183 if test $ac_cv_working_alloca_h = yes; then
16185 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16190 $as_echo_n "checking for alloca... " >&6; }
16191 if test "${ac_cv_func_alloca_works+set}" = set; then :
16192 $as_echo_n "(cached) " >&6
16194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16197 # define alloca __builtin_alloca
16200 # include <malloc.h>
16201 # define alloca _alloca
16203 # ifdef HAVE_ALLOCA_H
16204 # include <alloca.h>
16209 # ifndef alloca /* predefined by HP cc +Olibcalls */
16220 char *p = (char *) alloca (1);
16226 if ac_fn_c_try_link
"$LINENO"; then :
16227 ac_cv_func_alloca_works
=yes
16229 ac_cv_func_alloca_works
=no
16231 rm -f core conftest.err conftest.
$ac_objext \
16232 conftest
$ac_exeext conftest.
$ac_ext
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16235 $as_echo "$ac_cv_func_alloca_works" >&6; }
16237 if test $ac_cv_func_alloca_works = yes; then
16239 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16242 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16243 # that cause trouble. Some versions do not even contain alloca or
16244 # contain a buggy version. If you still want to use their alloca,
16245 # use ar to extract alloca.o from them instead of compiling alloca.c.
16251 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16253 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16257 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16258 if test "${ac_cv_os_cray+set}" = set; then :
16259 $as_echo_n "(cached) " >&6
16261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 #if defined CRAY && ! defined CRAY2
16270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16271 $EGREP "webecray" >/dev
/null
2>&1; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16280 $as_echo "$ac_cv_os_cray" >&6; }
16281 if test $ac_cv_os_cray = yes; then
16282 for ac_func
in _getb67 GETB67 getb67
; do
16283 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16284 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16285 eval as_val
=\$
$as_ac_var
16286 if test "x$as_val" = x
""yes; then :
16288 cat >>confdefs.h
<<_ACEOF
16289 #define CRAY_STACKSEG_END $ac_func
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16299 $as_echo_n "checking stack direction for C alloca... " >&6; }
16300 if test "${ac_cv_c_stack_direction+set}" = set; then :
16301 $as_echo_n "(cached) " >&6
16303 if test "$cross_compiling" = yes; then :
16304 ac_cv_c_stack_direction
=0
16306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 $ac_includes_default
16310 find_stack_direction (int *addr, int depth)
16312 int dir, dummy = 0;
16315 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16316 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16317 return dir + dummy;
16321 main (int argc, char **argv)
16323 return find_stack_direction (0, argc + !argv + 20) < 0;
16326 if ac_fn_c_try_run
"$LINENO"; then :
16327 ac_cv_c_stack_direction
=1
16329 ac_cv_c_stack_direction
=-1
16331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16337 $as_echo "$ac_cv_c_stack_direction" >&6; }
16338 cat >>confdefs.h
<<_ACEOF
16339 #define STACK_DIRECTION $ac_cv_c_stack_direction
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16349 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16350 if test "${ac_cv_c_bigendian+set}" = set; then :
16351 $as_echo_n "(cached) " >&6
16353 ac_cv_c_bigendian
=unknown
16354 # See if we're dealing with a universal compiler.
16355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16357 #ifndef __APPLE_CC__
16358 not a universal capable compiler
16363 if ac_fn_c_try_compile
"$LINENO"; then :
16365 # Check for potential -arch flags. It is not universal unless
16366 # there are at least two -arch flags with different values.
16369 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16370 if test -n "$ac_prev"; then
16372 i?
86 | x86_64 | ppc | ppc64
)
16373 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16376 ac_cv_c_bigendian
=universal
16382 elif test "x$ac_word" = "x-arch"; then
16387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16388 if test $ac_cv_c_bigendian = unknown
; then
16389 # See if sys/param.h defines the BYTE_ORDER macro.
16390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <sys/types.h>
16393 #include <sys/param.h>
16398 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16399 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16401 bogus endian macros
16408 if ac_fn_c_try_compile
"$LINENO"; then :
16409 # It does; now see whether it defined to BIG_ENDIAN or not.
16410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <sys/types.h>
16413 #include <sys/param.h>
16418 #if BYTE_ORDER != BIG_ENDIAN
16426 if ac_fn_c_try_compile
"$LINENO"; then :
16427 ac_cv_c_bigendian
=yes
16429 ac_cv_c_bigendian
=no
16431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16435 if test $ac_cv_c_bigendian = unknown
; then
16436 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 #include <limits.h>
16444 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16445 bogus endian macros
16452 if ac_fn_c_try_compile
"$LINENO"; then :
16453 # It does; now see whether it defined to _BIG_ENDIAN or not.
16454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #include <limits.h>
16461 #ifndef _BIG_ENDIAN
16469 if ac_fn_c_try_compile
"$LINENO"; then :
16470 ac_cv_c_bigendian
=yes
16472 ac_cv_c_bigendian
=no
16474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16478 if test $ac_cv_c_bigendian = unknown
; then
16479 # Compile a test program.
16480 if test "$cross_compiling" = yes; then :
16481 # Try to guess by grepping values from an object file.
16482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 short int ascii_mm[] =
16485 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16486 short int ascii_ii[] =
16487 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16488 int use_ascii (int i) {
16489 return ascii_mm[i] + ascii_ii[i];
16491 short int ebcdic_ii[] =
16492 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16493 short int ebcdic_mm[] =
16494 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16495 int use_ebcdic (int i) {
16496 return ebcdic_mm[i] + ebcdic_ii[i];
16503 return use_ascii (foo) == use_ebcdic (foo);
16508 if ac_fn_c_try_compile
"$LINENO"; then :
16509 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16510 ac_cv_c_bigendian
=yes
16512 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16513 if test "$ac_cv_c_bigendian" = unknown
; then
16514 ac_cv_c_bigendian
=no
16516 # finding both strings is unlikely to happen, but who knows?
16517 ac_cv_c_bigendian
=unknown
16521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 $ac_includes_default
16530 /* Are we little or big endian? From Harbison&Steele. */
16534 char c[sizeof (long int)];
16537 return u.c[sizeof (long int) - 1] == 1;
16543 if ac_fn_c_try_run
"$LINENO"; then :
16544 ac_cv_c_bigendian
=no
16546 ac_cv_c_bigendian
=yes
16548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16555 $as_echo "$ac_cv_c_bigendian" >&6; }
16556 case $ac_cv_c_bigendian in #(
16558 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16564 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16568 as_fn_error
"unknown endianness
16569 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16574 $as_echo_n "checking for inline... " >&6; }
16575 if test "${ac_cv_c_inline+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16579 for ac_kw
in inline __inline__ __inline
; do
16580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #ifndef __cplusplus
16584 static $ac_kw foo_t static_foo () {return 0; }
16585 $ac_kw foo_t foo () {return 0; }
16589 if ac_fn_c_try_compile
"$LINENO"; then :
16590 ac_cv_c_inline
=$ac_kw
16592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 test "$ac_cv_c_inline" != no
&& break
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16598 $as_echo "$ac_cv_c_inline" >&6; }
16600 case $ac_cv_c_inline in
16603 case $ac_cv_c_inline in
16605 *) ac_val
=$ac_cv_c_inline;;
16607 cat >>confdefs.h
<<_ACEOF
16608 #ifndef __cplusplus
16609 #define inline $ac_val
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16617 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16618 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16619 $as_echo_n "(cached) " >&6
16621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 /* On HP-UX before 11.23, strtold returns a struct instead of
16624 long double. Reject implementations like that, by requiring
16625 compatibility with the C99 prototype. */
16626 #include <stdlib.h>
16627 static long double (*p) (char const *, char **) = strtold;
16629 test (char const *nptr, char **endptr)
16632 r = strtold (nptr, endptr);
16638 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16643 if ac_fn_c_try_link
"$LINENO"; then :
16644 gl_cv_func_c99_strtold
=yes
16646 gl_cv_func_c99_strtold
=no
16648 rm -f core conftest.err conftest.
$ac_objext \
16649 conftest
$ac_exeext conftest.
$ac_ext
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16652 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16653 if test $gl_cv_func_c99_strtold = yes; then
16655 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16667 GNULIB_EUIDACCESS
=0;
16668 GNULIB_FACCESSAT
=0;
16671 GNULIB_FDATASYNC
=0;
16673 GNULIB_FTRUNCATE
=0;
16675 GNULIB_GETDOMAINNAME
=0;
16676 GNULIB_GETDTABLESIZE
=0;
16677 GNULIB_GETGROUPS
=0;
16678 GNULIB_GETHOSTNAME
=0;
16680 GNULIB_GETLOGIN_R
=0;
16681 GNULIB_GETPAGESIZE
=0;
16682 GNULIB_GETUSERSHELL
=0;
16683 GNULIB_GROUP_MEMBER
=0;
16695 GNULIB_READLINKAT
=0;
16697 GNULIB_SETHOSTNAME
=0;
16700 GNULIB_SYMLINKAT
=0;
16701 GNULIB_TTYNAME_R
=0;
16702 GNULIB_UNISTD_H_NONBLOCKING
=0;
16703 GNULIB_UNISTD_H_SIGPIPE
=0;
16718 HAVE_GETDTABLESIZE
=1;
16720 HAVE_GETHOSTNAME
=1;
16722 HAVE_GETPAGESIZE
=1;
16723 HAVE_GROUP_MEMBER
=1;
16733 HAVE_SETHOSTNAME
=1;
16739 HAVE_DECL_ENVIRON
=1;
16740 HAVE_DECL_FCHDIR
=1;
16741 HAVE_DECL_FDATASYNC
=1;
16742 HAVE_DECL_GETDOMAINNAME
=1;
16743 HAVE_DECL_GETLOGIN_R
=1;
16744 HAVE_DECL_GETPAGESIZE
=1;
16745 HAVE_DECL_GETUSERSHELL
=1;
16746 HAVE_DECL_SETHOSTNAME
=1;
16747 HAVE_DECL_TTYNAME_R
=1;
16749 HAVE_SYS_PARAM_H
=0;
16754 REPLACE_FCHOWNAT
=0;
16755 REPLACE_FTRUNCATE
=0;
16757 REPLACE_GETDOMAINNAME
=0;
16758 REPLACE_GETLOGIN_R
=0;
16759 REPLACE_GETGROUPS
=0;
16760 REPLACE_GETPAGESIZE
=0;
16769 REPLACE_READLINK
=0;
16773 REPLACE_TTYNAME_R
=0;
16775 REPLACE_UNLINKAT
=0;
16778 UNISTD_H_HAVE_WINSOCK2_H
=0;
16779 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16790 $as_echo_n "checking if environ is properly declared... " >&6; }
16791 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16798 #include <unistd.h>
16800 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16801 #include <stdlib.h>
16803 extern struct { int foo; } environ;
16812 if ac_fn_c_try_compile
"$LINENO"; then :
16813 gt_cv_var_environ_declaration
=no
16815 gt_cv_var_environ_declaration
=yes
16817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16821 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16822 if test $gt_cv_var_environ_declaration = yes; then
16824 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16829 if test $gt_cv_var_environ_declaration != yes; then
16830 HAVE_DECL_ENVIRON
=0
16843 GNULIB_NONBLOCKING
=0;
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16856 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16857 if test "${gl_cv_have_include_next+set}" = set; then :
16858 $as_echo_n "(cached) " >&6
16860 rm -rf conftestd1a conftestd1b conftestd2
16861 mkdir conftestd1a conftestd1b conftestd2
16862 cat <<EOF > conftestd1a/conftest.h
16863 #define DEFINED_IN_CONFTESTD1
16864 #include_next <conftest.h>
16865 #ifdef DEFINED_IN_CONFTESTD2
16868 #error "include_next doesn't work"
16871 cat <<EOF > conftestd1b/conftest.h
16872 #define DEFINED_IN_CONFTESTD1
16874 #include_next <conftest.h>
16875 #ifdef DEFINED_IN_CONFTESTD2
16878 #error "include_next doesn't work"
16881 cat <<EOF > conftestd2/conftest.h
16882 #ifndef DEFINED_IN_CONFTESTD1
16883 #error "include_next test doesn't work"
16885 #define DEFINED_IN_CONFTESTD2
16887 gl_save_CPPFLAGS
="$CPPFLAGS"
16888 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 #include <conftest.h>
16893 if ac_fn_c_try_compile
"$LINENO"; then :
16894 gl_cv_have_include_next
=yes
16896 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16899 #include <conftest.h>
16901 if ac_fn_c_try_compile
"$LINENO"; then :
16902 gl_cv_have_include_next
=buggy
16904 gl_cv_have_include_next
=no
16906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16910 CPPFLAGS
="$gl_save_CPPFLAGS"
16911 rm -rf conftestd1a conftestd1b conftestd2
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16915 $as_echo "$gl_cv_have_include_next" >&6; }
16916 PRAGMA_SYSTEM_HEADER
=
16917 if test $gl_cv_have_include_next = yes; then
16918 INCLUDE_NEXT
=include_next
16919 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16920 if test -n "$GCC"; then
16921 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16924 if test $gl_cv_have_include_next = buggy
; then
16925 INCLUDE_NEXT
=include
16926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16928 INCLUDE_NEXT
=include
16929 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16936 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16937 if test "${gl_cv_pragma_columns+set}" = set; then :
16938 $as_echo_n "(cached) " >&6
16940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16949 $EGREP "choke me" >/dev
/null
2>&1; then :
16950 gl_cv_pragma_columns
=yes
16952 gl_cv_pragma_columns
=no
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16959 $as_echo "$gl_cv_pragma_columns" >&6; }
16960 if test $gl_cv_pragma_columns = yes; then
16961 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16967 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16968 if test "x$ac_cv_type_mode_t" = x
""yes; then :
16972 cat >>confdefs.h
<<_ACEOF
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16979 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16980 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16986 #include <sys/types.h>
16987 #include <sys/stat.h>
16991 struct stat s; s.st_dm_mode;
16996 if ac_fn_c_try_compile
"$LINENO"; then :
16997 ac_cv_struct_st_dm_mode
=yes
16999 ac_cv_struct_st_dm_mode
=no
17001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17004 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17006 if test $ac_cv_struct_st_dm_mode = yes; then
17008 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17013 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17014 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17020 cat >>confdefs.h
<<_ACEOF
17021 #define HAVE_DECL_STRMODE $ac_have_decl
17031 GNULIB_CALLOC_POSIX
=0;
17032 GNULIB_CANONICALIZE_FILE_NAME
=0;
17033 GNULIB_GETLOADAVG
=0;
17034 GNULIB_GETSUBOPT
=0;
17036 GNULIB_MALLOC_POSIX
=0;
17040 GNULIB_MKOSTEMPS
=0;
17043 GNULIB_POSIX_OPENPT
=0;
17045 GNULIB_PTSNAME_R
=0;
17049 GNULIB_REALLOC_POSIX
=0;
17056 GNULIB_SYSTEM_POSIX
=0;
17062 HAVE_CANONICALIZE_FILE_NAME
=1;
17063 HAVE_DECL_GETLOADAVG
=1;
17071 HAVE_POSIX_OPENPT
=1;
17080 HAVE_DECL_SETENV
=1;
17084 HAVE_STRUCT_RANDOM_DATA
=1;
17085 HAVE_SYS_LOADAVG_H
=0;
17087 HAVE_DECL_UNSETENV
=1;
17089 REPLACE_CANONICALIZE_FILE_NAME
=0;
17094 REPLACE_PTSNAME_R
=0;
17096 REPLACE_RANDOM_R
=0;
17098 REPLACE_REALPATH
=0;
17101 REPLACE_UNSETENV
=0;
17119 if test $gl_cv_have_include_next = yes; then
17120 gl_cv_next_getopt_h
='<'getopt.h
'>'
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17123 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17124 if test "${gl_cv_next_getopt_h+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17128 if test $ac_cv_header_getopt_h = yes; then
17131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 #include <getopt.h>
17137 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17138 *) gl_absname_cpp
="$ac_cpp" ;;
17143 gl_dirsep_regex
='[/\\]'
17146 gl_dirsep_regex
='\/'
17149 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17151 gl_header_literal_regex
=`echo 'getopt.h' \
17152 | sed -e "$gl_make_literal_regex_sed"`
17153 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17154 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17159 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17160 sed -n "$gl_absolute_header_sed"`'"'
17162 gl_cv_next_getopt_h
='<'getopt.h
'>'
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17168 $as_echo "$gl_cv_next_getopt_h" >&6; }
17170 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17172 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17174 gl_next_as_first_directive
='<'getopt.h
'>'
17176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17177 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17179 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17184 if test $ac_cv_header_getopt_h = yes; then
17193 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17194 for ac_header
in getopt.h
17196 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17197 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17198 cat >>confdefs.h
<<_ACEOF
17199 #define HAVE_GETOPT_H 1
17203 gl_replace_getopt
=yes
17210 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17211 for ac_func
in getopt_long_only
17213 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17214 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17215 cat >>confdefs.h
<<_ACEOF
17216 #define HAVE_GETOPT_LONG_ONLY 1
17220 gl_replace_getopt
=yes
17226 if test -z "$gl_replace_getopt"; then
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17228 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17229 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17230 $as_echo_n "(cached) " >&6
17233 if test $cross_compiling = no
; then
17234 if test "$cross_compiling" = yes; then :
17235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17237 as_fn_error
"cannot run test program while cross compiling
17238 See \`config.log' for more details." "$LINENO" 5; }
17240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17243 #include <unistd.h>
17244 #include <stdlib.h>
17245 #include <string.h>
17250 static char program[] = "program";
17251 static char a[] = "-a";
17252 static char foo[] = "foo";
17253 static char bar[] = "bar";
17254 char *argv[] = { program, a, foo, bar, NULL };
17257 c = getopt (4, argv, "ab");
17260 c = getopt (4, argv, "ab");
17263 if (!(optind == 2))
17269 if ac_fn_c_try_run
"$LINENO"; then :
17270 gl_cv_func_getopt_posix
=maybe
17272 gl_cv_func_getopt_posix
=no
17274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17278 if test $gl_cv_func_getopt_posix = maybe
; then
17279 if test "$cross_compiling" = yes; then :
17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17282 as_fn_error
"cannot run test program while cross compiling
17283 See \`config.log' for more details." "$LINENO" 5; }
17285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17288 #include <unistd.h>
17289 #include <stdlib.h>
17290 #include <string.h>
17295 static char program[] = "program";
17296 static char donald[] = "donald";
17297 static char p[] = "-p";
17298 static char billy[] = "billy";
17299 static char duck[] = "duck";
17300 static char a[] = "-a";
17301 static char bar[] = "bar";
17302 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17305 c = getopt (7, argv, "+abp:q:");
17308 if (!(strcmp (argv[0], "program") == 0))
17310 if (!(strcmp (argv[1], "donald") == 0))
17312 if (!(strcmp (argv[2], "-p") == 0))
17314 if (!(strcmp (argv[3], "billy") == 0))
17316 if (!(strcmp (argv[4], "duck") == 0))
17318 if (!(strcmp (argv[5], "-a") == 0))
17320 if (!(strcmp (argv[6], "bar") == 0))
17322 if (!(optind == 1))
17328 if ac_fn_c_try_run
"$LINENO"; then :
17329 gl_cv_func_getopt_posix
=maybe
17331 gl_cv_func_getopt_posix
=no
17333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17338 if test $gl_cv_func_getopt_posix = maybe
; then
17339 if test "$cross_compiling" = yes; then :
17340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17342 as_fn_error
"cannot run test program while cross compiling
17343 See \`config.log' for more details." "$LINENO" 5; }
17345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17348 #include <unistd.h>
17349 #include <stdlib.h>
17350 #include <string.h>
17355 static char program[] = "program";
17356 static char ab[] = "-ab";
17357 char *argv[3] = { program, ab, NULL };
17358 if (getopt (2, argv, "ab:") != 'a')
17360 if (getopt (2, argv, "ab:") != '?')
17370 if ac_fn_c_try_run
"$LINENO"; then :
17371 gl_cv_func_getopt_posix
=yes
17373 gl_cv_func_getopt_posix
=no
17375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17382 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17383 *) gl_cv_func_getopt_posix
="guessing yes";;
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17389 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17390 case "$gl_cv_func_getopt_posix" in
17391 *no
) gl_replace_getopt
=yes ;;
17395 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17397 $as_echo_n "checking for working GNU getopt function... " >&6; }
17398 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17399 $as_echo_n "(cached) " >&6
17401 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17402 # optstring is necessary for programs like m4 that have POSIX-mandated
17403 # semantics for supporting options interspersed with files.
17404 # Also, since getopt_long is a GNU extension, we require optind=0.
17405 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17406 # so take care to revert to the correct (non-)export state.
17407 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17408 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17409 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17410 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17411 *) gl_had_POSIXLY_CORRECT
= ;;
17414 export POSIXLY_CORRECT
17415 if test "$cross_compiling" = yes; then :
17416 gl_cv_func_getopt_gnu
="guessing no"
17419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 #include <getopt.h>
17422 #include <stddef.h>
17423 #include <string.h>
17425 #include <stdlib.h>
17426 #if defined __MACH__ && defined __APPLE__
17427 /* Avoid a crash on Mac OS X. */
17428 #include <mach/mach.h>
17429 #include <mach/mach_error.h>
17430 #include <mach/thread_status.h>
17431 #include <mach/exception.h>
17432 #include <mach/task.h>
17433 #include <pthread.h>
17434 /* The exception port on which our thread listens. */
17435 static mach_port_t our_exception_port;
17436 /* The main function of the thread listening for exceptions of type
17439 mach_exception_thread (void *arg)
17441 /* Buffer for a message to be received. */
17443 mach_msg_header_t head;
17444 mach_msg_body_t msgh_body;
17447 mach_msg_return_t retval;
17448 /* Wait for a message on the exception port. */
17449 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17450 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17451 if (retval != MACH_MSG_SUCCESS)
17456 nocrash_init (void)
17458 mach_port_t self = mach_task_self ();
17459 /* Allocate a port on which the thread shall listen for exceptions. */
17460 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17462 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17463 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17464 MACH_MSG_TYPE_MAKE_SEND)
17466 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17468 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17469 /* Create the thread listening on the exception port. */
17470 pthread_attr_t attr;
17472 if (pthread_attr_init (&attr) == 0
17473 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17474 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17475 pthread_attr_destroy (&attr);
17476 /* Replace the exception port info for these exceptions with our own.
17477 Note that we replace the exception port for the entire task, not only
17478 for a particular thread. This has the effect that when our exception
17479 port gets the message, the thread specific exception port has already
17480 been asked, and we don't need to bother about it.
17481 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17482 task_set_exception_ports (self, mask, our_exception_port,
17483 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17488 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17489 /* Avoid a crash on native Windows. */
17490 #define WIN32_LEAN_AND_MEAN
17491 #include <windows.h>
17492 #include <winerror.h>
17494 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17496 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17498 case EXCEPTION_ACCESS_VIOLATION:
17499 case EXCEPTION_IN_PAGE_ERROR:
17500 case EXCEPTION_STACK_OVERFLOW:
17501 case EXCEPTION_GUARD_PAGE:
17502 case EXCEPTION_PRIV_INSTRUCTION:
17503 case EXCEPTION_ILLEGAL_INSTRUCTION:
17504 case EXCEPTION_DATATYPE_MISALIGNMENT:
17505 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17506 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17509 return EXCEPTION_CONTINUE_SEARCH;
17512 nocrash_init (void)
17514 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17517 /* Avoid a crash on POSIX systems. */
17518 #include <signal.h>
17519 /* A POSIX signal handler. */
17521 exception_handler (int sig)
17526 nocrash_init (void)
17529 signal (SIGSEGV, exception_handler);
17532 signal (SIGBUS, exception_handler);
17546 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17547 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17548 OSF/1 5.1, Solaris 10. */
17550 static char conftest[] = "conftest";
17551 static char plus[] = "-+";
17552 char *argv[3] = { conftest, plus, NULL };
17554 if (getopt (2, argv, "+a") != '?')
17557 /* This code succeeds on glibc 2.8, mingw,
17558 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17559 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17561 static char program[] = "program";
17562 static char p[] = "-p";
17563 static char foo[] = "foo";
17564 static char bar[] = "bar";
17565 char *argv[] = { program, p, foo, bar, NULL };
17568 if (getopt (4, argv, "p::") != 'p')
17570 else if (optarg != NULL)
17572 else if (getopt (4, argv, "p::") != -1)
17574 else if (optind != 2)
17577 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17579 static char program[] = "program";
17580 static char foo[] = "foo";
17581 static char p[] = "-p";
17582 char *argv[] = { program, foo, p, NULL };
17584 if (getopt (3, argv, "-p") != 1)
17586 else if (getopt (3, argv, "-p") != 'p')
17589 /* This code fails on glibc 2.11. */
17591 static char program[] = "program";
17592 static char b[] = "-b";
17593 static char a[] = "-a";
17594 char *argv[] = { program, b, a, NULL };
17595 optind = opterr = 0;
17596 if (getopt (3, argv, "+:a:b") != 'b')
17598 else if (getopt (3, argv, "+:a:b") != ':')
17601 /* This code dumps core on glibc 2.14. */
17603 static char program[] = "program";
17604 static char w[] = "-W";
17605 static char dummy[] = "dummy";
17606 char *argv[] = { program, w, dummy, NULL };
17607 optind = opterr = 1;
17608 if (getopt (3, argv, "W;") != 'W')
17617 if ac_fn_c_try_run
"$LINENO"; then :
17618 gl_cv_func_getopt_gnu
=yes
17620 gl_cv_func_getopt_gnu
=no
17622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17626 case $gl_had_POSIXLY_CORRECT in
17628 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17629 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17634 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17635 if test "$gl_cv_func_getopt_gnu" != yes; then
17636 gl_replace_getopt
=yes
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17639 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17640 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17643 if test "$cross_compiling" = yes; then :
17645 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17646 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17652 #include <getopt.h>
17653 #include <stddef.h>
17654 #include <string.h>
17659 static const struct option long_options[] =
17661 { "xtremely-",no_argument, NULL, 1003 },
17662 { "xtra", no_argument, NULL, 1001 },
17663 { "xtreme", no_argument, NULL, 1002 },
17664 { "xtremely", no_argument, NULL, 1003 },
17665 { NULL, 0, NULL, 0 }
17667 /* This code fails on OpenBSD 5.0. */
17669 static char program[] = "program";
17670 static char xtremel[] = "--xtremel";
17671 char *argv[] = { program, xtremel, NULL };
17673 optind = 1; opterr = 0;
17674 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17683 if ac_fn_c_try_run
"$LINENO"; then :
17684 gl_cv_func_getopt_long_gnu
=yes
17686 gl_cv_func_getopt_long_gnu
=no
17688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17695 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17696 case "$gl_cv_func_getopt_long_gnu" in
17698 *) gl_replace_getopt
=yes ;;
17709 if test -n "$gl_replace_getopt"; then
17713 if test $REPLACE_GETOPT = 1; then
17717 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17723 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17724 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17730 cat >>confdefs.h
<<_ACEOF
17731 #define HAVE_DECL_GETENV $ac_have_decl
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17740 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17741 if test "${ac_cv_c_restrict+set}" = set; then :
17742 $as_echo_n "(cached) " >&6
17744 ac_cv_c_restrict
=no
17745 # The order here caters to the fact that C++ does not require restrict.
17746 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17749 typedef int * int_ptr;
17750 int foo (int_ptr $ac_kw ip) {
17757 int * $ac_kw t = s;
17764 if ac_fn_c_try_compile
"$LINENO"; then :
17765 ac_cv_c_restrict
=$ac_kw
17767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17768 test "$ac_cv_c_restrict" != no
&& break
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17773 $as_echo "$ac_cv_c_restrict" >&6; }
17775 case $ac_cv_c_restrict in
17777 no
) $as_echo "#define restrict /**/" >>confdefs.h
17779 *) cat >>confdefs.h
<<_ACEOF
17780 #define restrict $ac_cv_c_restrict
17786 GNULIB_GETTIMEOFDAY
=0;
17787 HAVE_GETTIMEOFDAY
=1;
17788 HAVE_STRUCT_TIMEVAL
=1;
17790 REPLACE_GETTIMEOFDAY
=0;
17791 REPLACE_STRUCT_TIMEVAL
=0;
17808 if test $gl_cv_have_include_next = yes; then
17809 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17812 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17813 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17817 if test $ac_cv_header_sys_time_h = yes; then
17820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822 #include <sys/time.h>
17826 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17827 *) gl_absname_cpp
="$ac_cpp" ;;
17832 gl_dirsep_regex
='[/\\]'
17835 gl_dirsep_regex
='\/'
17838 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17840 gl_header_literal_regex
=`echo 'sys/time.h' \
17841 | sed -e "$gl_make_literal_regex_sed"`
17842 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17843 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17848 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17849 sed -n "$gl_absolute_header_sed"`'"'
17851 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17857 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17859 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17861 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17863 gl_next_as_first_directive
='<'sys
/time.h
'>'
17865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17866 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17868 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17874 if test $ac_cv_header_sys_time_h != yes; then
17882 if test $ac_cv_header_sys_socket_h != yes; then
17883 for ac_header
in winsock2.h
17885 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17886 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17887 cat >>confdefs.h
<<_ACEOF
17888 #define HAVE_WINSOCK2_H 1
17896 if test "$ac_cv_header_winsock2_h" = yes; then
17898 UNISTD_H_HAVE_WINSOCK2_H
=1
17899 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17906 $as_echo_n "checking for struct timeval... " >&6; }
17907 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912 #if HAVE_SYS_TIME_H
17913 #include <sys/time.h>
17916 #if HAVE_WINSOCK2_H
17917 # include <winsock2.h>
17923 static struct timeval x; x.tv_sec = x.tv_usec;
17928 if ac_fn_c_try_compile
"$LINENO"; then :
17929 gl_cv_sys_struct_timeval
=yes
17931 gl_cv_sys_struct_timeval
=no
17933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17937 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17938 if test $gl_cv_sys_struct_timeval != yes; then
17939 HAVE_STRUCT_TIMEVAL
=0
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17942 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17943 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17944 $as_echo_n "(cached) " >&6
17946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17948 #if HAVE_SYS_TIME_H
17949 #include <sys/time.h>
17952 #if HAVE_WINSOCK2_H
17953 # include <winsock2.h>
17959 static struct timeval x;
17960 typedef int verify_tv_sec_type[
17961 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17968 if ac_fn_c_try_compile
"$LINENO"; then :
17969 gl_cv_sys_struct_timeval_tv_sec
=yes
17971 gl_cv_sys_struct_timeval_tv_sec
=no
17973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17977 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17978 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17979 REPLACE_STRUCT_TIMEVAL
=1
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17990 $as_echo_n "checking for unsigned long long int... " >&6; }
17991 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17992 $as_echo_n "(cached) " >&6
17994 ac_cv_type_unsigned_long_long_int
=yes
17995 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17999 /* For now, do not test the preprocessor; as of 2007 there are too many
18000 implementations with broken preprocessors. Perhaps this can
18001 be revisited in 2012. In the meantime, code should not expect
18002 #if to work with literals wider than 32 bits. */
18003 /* Test literals. */
18004 long long int ll = 9223372036854775807ll;
18005 long long int nll = -9223372036854775807LL;
18006 unsigned long long int ull = 18446744073709551615ULL;
18007 /* Test constant expressions. */
18008 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18010 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18016 /* Test availability of runtime routines for shift and division. */
18017 long long int llmax = 9223372036854775807ll;
18018 unsigned long long int ullmax = 18446744073709551615ull;
18019 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18020 | (llmax / ll) | (llmax % ll)
18021 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18022 | (ullmax / ull) | (ullmax % ull));
18028 if ac_fn_c_try_link
"$LINENO"; then :
18031 ac_cv_type_unsigned_long_long_int
=no
18033 rm -f core conftest.err conftest.
$ac_objext \
18034 conftest
$ac_exeext conftest.
$ac_ext
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18038 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18039 if test $ac_cv_type_unsigned_long_long_int = yes; then
18041 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18048 $as_echo_n "checking for long long int... " >&6; }
18049 if test "${ac_cv_type_long_long_int+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18052 ac_cv_type_long_long_int
=yes
18053 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18054 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18055 if test $ac_cv_type_long_long_int = yes; then
18056 if test "$cross_compiling" = yes; then :
18059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 #include <limits.h>
18064 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18065 # define LLONG_MAX (HALF - 1 + HALF)
18070 long long int n = 1;
18074 long long int m = n << i;
18077 if (LLONG_MAX / 2 < m)
18085 if ac_fn_c_try_run
"$LINENO"; then :
18088 ac_cv_type_long_long_int
=no
18090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18098 $as_echo "$ac_cv_type_long_long_int" >&6; }
18099 if test $ac_cv_type_long_long_int = yes; then
18101 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18110 gl_cv_c_multiarch
=no
18111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113 #ifndef __APPLE_CC__
18114 not a universal capable compiler
18119 if ac_fn_c_try_compile
"$LINENO"; then :
18123 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18124 if test -n "$prev"; then
18126 i?
86 | x86_64 | ppc | ppc64
)
18127 if test -z "$arch" ||
test "$arch" = "$word"; then
18130 gl_cv_c_multiarch
=yes
18136 if test "x$word" = "x-arch"; then
18143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18144 if test $gl_cv_c_multiarch = yes; then
18145 APPLE_UNIVERSAL_BUILD
=1
18147 APPLE_UNIVERSAL_BUILD
=0
18154 if test $ac_cv_type_long_long_int = yes; then
18155 HAVE_LONG_LONG_INT
=1
18157 HAVE_LONG_LONG_INT
=0
18161 if test $ac_cv_type_unsigned_long_long_int = yes; then
18162 HAVE_UNSIGNED_LONG_LONG_INT
=1
18164 HAVE_UNSIGNED_LONG_LONG_INT
=0
18169 if test $ac_cv_header_wchar_h = yes; then
18176 if test $ac_cv_header_inttypes_h = yes; then
18183 if test $ac_cv_header_sys_types_h = yes; then
18199 if test $gl_cv_have_include_next = yes; then
18200 gl_cv_next_stdint_h
='<'stdint.h
'>'
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18203 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18204 if test "${gl_cv_next_stdint_h+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18208 if test $ac_cv_header_stdint_h = yes; then
18211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213 #include <stdint.h>
18217 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18218 *) gl_absname_cpp
="$ac_cpp" ;;
18223 gl_dirsep_regex
='[/\\]'
18226 gl_dirsep_regex
='\/'
18229 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18231 gl_header_literal_regex
=`echo 'stdint.h' \
18232 | sed -e "$gl_make_literal_regex_sed"`
18233 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18234 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18239 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18240 sed -n "$gl_absolute_header_sed"`'"'
18242 gl_cv_next_stdint_h
='<'stdint.h
'>'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18248 $as_echo "$gl_cv_next_stdint_h" >&6; }
18250 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18252 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18254 gl_next_as_first_directive
='<'stdint.h
'>'
18256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18257 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18259 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18264 if test $ac_cv_header_stdint_h = yes; then
18271 if test $ac_cv_header_stdint_h = yes; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18273 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18274 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18277 gl_cv_header_working_stdint_h
=no
18278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18282 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18283 #include <stdint.h>
18284 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18285 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18286 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18290 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18291 included before <wchar.h>. */
18292 #include <stddef.h>
18293 #include <signal.h>
18295 # include <stdio.h>
18297 # include <wchar.h>
18302 int8_t a1 = INT8_MAX;
18303 int8_t a1min = INT8_MIN;
18306 int16_t a2 = INT16_MAX;
18307 int16_t a2min = INT16_MIN;
18310 int32_t a3 = INT32_MAX;
18311 int32_t a3min = INT32_MIN;
18314 int64_t a4 = INT64_MAX;
18315 int64_t a4min = INT64_MIN;
18318 uint8_t b1 = UINT8_MAX;
18320 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18323 uint16_t b2 = UINT16_MAX;
18326 uint32_t b3 = UINT32_MAX;
18329 uint64_t b4 = UINT64_MAX;
18331 int_least8_t c1 = INT8_C (0x7f);
18332 int_least8_t c1max = INT_LEAST8_MAX;
18333 int_least8_t c1min = INT_LEAST8_MIN;
18334 int_least16_t c2 = INT16_C (0x7fff);
18335 int_least16_t c2max = INT_LEAST16_MAX;
18336 int_least16_t c2min = INT_LEAST16_MIN;
18337 int_least32_t c3 = INT32_C (0x7fffffff);
18338 int_least32_t c3max = INT_LEAST32_MAX;
18339 int_least32_t c3min = INT_LEAST32_MIN;
18340 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18341 int_least64_t c4max = INT_LEAST64_MAX;
18342 int_least64_t c4min = INT_LEAST64_MIN;
18343 uint_least8_t d1 = UINT8_C (0xff);
18344 uint_least8_t d1max = UINT_LEAST8_MAX;
18345 uint_least16_t d2 = UINT16_C (0xffff);
18346 uint_least16_t d2max = UINT_LEAST16_MAX;
18347 uint_least32_t d3 = UINT32_C (0xffffffff);
18348 uint_least32_t d3max = UINT_LEAST32_MAX;
18349 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18350 uint_least64_t d4max = UINT_LEAST64_MAX;
18351 int_fast8_t e1 = INT_FAST8_MAX;
18352 int_fast8_t e1min = INT_FAST8_MIN;
18353 int_fast16_t e2 = INT_FAST16_MAX;
18354 int_fast16_t e2min = INT_FAST16_MIN;
18355 int_fast32_t e3 = INT_FAST32_MAX;
18356 int_fast32_t e3min = INT_FAST32_MIN;
18357 int_fast64_t e4 = INT_FAST64_MAX;
18358 int_fast64_t e4min = INT_FAST64_MIN;
18359 uint_fast8_t f1 = UINT_FAST8_MAX;
18360 uint_fast16_t f2 = UINT_FAST16_MAX;
18361 uint_fast32_t f3 = UINT_FAST32_MAX;
18362 uint_fast64_t f4 = UINT_FAST64_MAX;
18364 intptr_t g = INTPTR_MAX;
18365 intptr_t gmin = INTPTR_MIN;
18368 uintptr_t h = UINTPTR_MAX;
18370 intmax_t i = INTMAX_MAX;
18371 uintmax_t j = UINTMAX_MAX;
18373 #include <limits.h> /* for CHAR_BIT */
18374 #define TYPE_MINIMUM(t) \
18375 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18376 #define TYPE_MAXIMUM(t) \
18377 ((t) ((t) 0 < (t) -1 \
18379 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18382 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18383 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18385 /* Detect bug in FreeBSD 6.0 / ia64. */
18386 int check_SIG_ATOMIC:
18387 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18388 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18390 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18392 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18393 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18395 /* Detect bug in mingw. */
18397 WINT_MIN == TYPE_MINIMUM (wint_t)
18398 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18401 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18403 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18404 int check_UINT16_C:
18405 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18407 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18409 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18412 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18415 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18418 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18420 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18421 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18422 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18423 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18424 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18425 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18426 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18427 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18428 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18429 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18430 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18441 if ac_fn_c_try_compile
"$LINENO"; then :
18442 if test "$cross_compiling" = yes; then :
18443 gl_cv_header_working_stdint_h
=yes
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18450 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18451 #include <stdint.h>
18454 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18455 included before <wchar.h>. */
18456 #include <stddef.h>
18457 #include <signal.h>
18459 # include <stdio.h>
18461 # include <wchar.h>
18466 #include <string.h>
18467 #define MVAL(macro) MVAL1(macro)
18468 #define MVAL1(expression) #expression
18469 static const char *macro_values[] =
18503 for (mv = macro_values; *mv != NULL; mv++)
18505 const char *value = *mv;
18506 /* Test whether it looks like a cast expression. */
18507 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18508 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18509 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18510 || strncmp (value, "((int)"/*)*/, 6) == 0
18511 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18512 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18513 return mv - macro_values + 1;
18521 if ac_fn_c_try_run
"$LINENO"; then :
18522 gl_cv_header_working_stdint_h
=yes
18524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18534 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18536 if test "$gl_cv_header_working_stdint_h" = yes; then
18539 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18541 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18542 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18543 eval as_val
=\$
$as_ac_Header
18544 if test "x$as_val" = x
""yes; then :
18545 cat >>confdefs.h
<<_ACEOF
18546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18553 if test $ac_cv_header_sys_inttypes_h = yes; then
18554 HAVE_SYS_INTTYPES_H
=1
18556 HAVE_SYS_INTTYPES_H
=0
18559 if test $ac_cv_header_sys_bitypes_h = yes; then
18560 HAVE_SYS_BITYPES_H
=1
18562 HAVE_SYS_BITYPES_H
=0
18568 if test $APPLE_UNIVERSAL_BUILD = 0; then
18571 for gltype
in ptrdiff_t size_t
; do
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18573 $as_echo_n "checking for bit size of $gltype... " >&6; }
18574 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18575 $as_echo_n "(cached) " >&6
18577 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18578 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18579 included before <wchar.h>. */
18580 #include <stddef.h>
18581 #include <signal.h>
18583 # include <stdio.h>
18585 # include <wchar.h>
18588 #include <limits.h>"; then :
18594 eval gl_cv_bitsizeof_
${gltype}=\
$result
18597 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18599 $as_echo "$ac_res" >&6; }
18600 eval result
=\
$gl_cv_bitsizeof_${gltype}
18601 if test $result = unknown
; then
18604 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18605 cat >>confdefs.h
<<_ACEOF
18606 #define BITSIZEOF_${GLTYPE} $result
18609 eval BITSIZEOF_
${GLTYPE}=\
$result
18616 for gltype
in sig_atomic_t wchar_t wint_t
; do
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18618 $as_echo_n "checking for bit size of $gltype... " >&6; }
18619 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18620 $as_echo_n "(cached) " >&6
18622 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18624 included before <wchar.h>. */
18625 #include <stddef.h>
18626 #include <signal.h>
18628 # include <stdio.h>
18630 # include <wchar.h>
18633 #include <limits.h>"; then :
18639 eval gl_cv_bitsizeof_
${gltype}=\
$result
18642 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18644 $as_echo "$ac_res" >&6; }
18645 eval result
=\
$gl_cv_bitsizeof_${gltype}
18646 if test $result = unknown
; then
18649 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18650 cat >>confdefs.h
<<_ACEOF
18651 #define BITSIZEOF_${GLTYPE} $result
18654 eval BITSIZEOF_
${GLTYPE}=\
$result
18660 for gltype
in sig_atomic_t wchar_t wint_t
; do
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18662 $as_echo_n "checking whether $gltype is signed... " >&6; }
18663 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18664 $as_echo_n "(cached) " >&6
18666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18669 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18670 included before <wchar.h>. */
18671 #include <stddef.h>
18672 #include <signal.h>
18674 # include <stdio.h>
18676 # include <wchar.h>
18679 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18688 if ac_fn_c_try_compile
"$LINENO"; then :
18693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18694 eval gl_cv_type_
${gltype}_signed
=\
$result
18697 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18699 $as_echo "$ac_res" >&6; }
18700 eval result
=\
$gl_cv_type_${gltype}_signed
18701 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18702 if test "$result" = yes; then
18703 cat >>confdefs.h
<<_ACEOF
18704 #define HAVE_SIGNED_${GLTYPE} 1
18707 eval HAVE_SIGNED_
${GLTYPE}=1
18709 eval HAVE_SIGNED_
${GLTYPE}=0
18714 gl_cv_type_ptrdiff_t_signed
=yes
18715 gl_cv_type_size_t_signed
=no
18716 if test $APPLE_UNIVERSAL_BUILD = 0; then
18719 for gltype
in ptrdiff_t size_t
; do
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18721 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18722 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18723 $as_echo_n "(cached) " >&6
18725 eval gl_cv_type_
${gltype}_suffix
=no
18726 eval result
=\
$gl_cv_type_${gltype}_signed
18727 if test "$result" = yes; then
18732 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18734 '') gltype1
='int';;
18735 l
) gltype1
='long int';;
18736 ll
) gltype1
='long long int';;
18737 i64
) gltype1
='__int64';;
18738 u
) gltype1
='unsigned int';;
18739 ul
) gltype1
='unsigned long int';;
18740 ull
) gltype1
='unsigned long long int';;
18741 ui64
)gltype1
='unsigned __int64';;
18743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h. */
18746 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18747 included before <wchar.h>. */
18748 #include <stddef.h>
18749 #include <signal.h>
18751 # include <stdio.h>
18753 # include <wchar.h>
18756 extern $gltype foo;
18757 extern $gltype1 foo;
18766 if ac_fn_c_try_compile
"$LINENO"; then :
18767 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18770 eval result
=\
$gl_cv_type_${gltype}_suffix
18771 test "$result" != no
&& break
18774 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18776 $as_echo "$ac_res" >&6; }
18777 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18778 eval result
=\
$gl_cv_type_${gltype}_suffix
18779 test "$result" = no
&& result
=
18780 eval ${GLTYPE}_SUFFIX
=\
$result
18781 cat >>confdefs.h
<<_ACEOF
18782 #define ${GLTYPE}_SUFFIX $result
18791 for gltype
in sig_atomic_t wchar_t wint_t
; do
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18793 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18794 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18795 $as_echo_n "(cached) " >&6
18797 eval gl_cv_type_
${gltype}_suffix
=no
18798 eval result
=\
$gl_cv_type_${gltype}_signed
18799 if test "$result" = yes; then
18804 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18806 '') gltype1
='int';;
18807 l
) gltype1
='long int';;
18808 ll
) gltype1
='long long int';;
18809 i64
) gltype1
='__int64';;
18810 u
) gltype1
='unsigned int';;
18811 ul
) gltype1
='unsigned long int';;
18812 ull
) gltype1
='unsigned long long int';;
18813 ui64
)gltype1
='unsigned __int64';;
18815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18818 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18819 included before <wchar.h>. */
18820 #include <stddef.h>
18821 #include <signal.h>
18823 # include <stdio.h>
18825 # include <wchar.h>
18828 extern $gltype foo;
18829 extern $gltype1 foo;
18838 if ac_fn_c_try_compile
"$LINENO"; then :
18839 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18842 eval result
=\
$gl_cv_type_${gltype}_suffix
18843 test "$result" != no
&& break
18846 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18848 $as_echo "$ac_res" >&6; }
18849 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18850 eval result
=\
$gl_cv_type_${gltype}_suffix
18851 test "$result" = no
&& result
=
18852 eval ${GLTYPE}_SUFFIX
=\
$result
18853 cat >>confdefs.h
<<_ACEOF
18854 #define ${GLTYPE}_SUFFIX $result
18861 if test $BITSIZEOF_WINT_T -lt 32; then
18862 BITSIZEOF_WINT_T
=32
18868 if test -n "$STDINT_H"; then
18869 GL_GENERATE_STDINT_H_TRUE
=
18870 GL_GENERATE_STDINT_H_FALSE
='#'
18872 GL_GENERATE_STDINT_H_TRUE
='#'
18873 GL_GENERATE_STDINT_H_FALSE
=
18882 GNULIB_STRTOIMAX
=0;
18883 GNULIB_STRTOUMAX
=0;
18884 HAVE_DECL_IMAXABS
=1;
18885 HAVE_DECL_IMAXDIV
=1;
18886 HAVE_DECL_STRTOIMAX
=1;
18887 HAVE_DECL_STRTOUMAX
=1;
18888 REPLACE_STRTOIMAX
=0;
18889 INT32_MAX_LT_INTMAX_MAX
=1;
18890 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18891 PRI_MACROS_BROKEN
=0;
18892 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18893 UINT32_MAX_LT_UINTMAX_MAX
=1;
18894 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18910 if test $gl_cv_have_include_next = yes; then
18911 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18914 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18915 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18916 $as_echo_n "(cached) " >&6
18919 if test $ac_cv_header_inttypes_h = yes; then
18922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924 #include <inttypes.h>
18928 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18929 *) gl_absname_cpp
="$ac_cpp" ;;
18934 gl_dirsep_regex
='[/\\]'
18937 gl_dirsep_regex
='\/'
18940 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18942 gl_header_literal_regex
=`echo 'inttypes.h' \
18943 | sed -e "$gl_make_literal_regex_sed"`
18944 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18950 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18951 sed -n "$gl_absolute_header_sed"`'"'
18953 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18959 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18961 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18963 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18965 gl_next_as_first_directive
='<'inttypes.h
'>'
18967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18968 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18970 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18985 $as_echo_n "checking for 64-bit off_t... " >&6; }
18986 if test "${gl_cv_type_off_t_64+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
18989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991 #include <sys/types.h>
18992 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19002 if ac_fn_c_try_compile
"$LINENO"; then :
19003 gl_cv_type_off_t_64
=yes
19005 gl_cv_type_off_t_64
=no
19007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19011 $as_echo "$gl_cv_type_off_t_64" >&6; }
19012 if test $gl_cv_type_off_t_64 = no
; then
19013 WINDOWS_64_BIT_OFF_T
=1
19015 WINDOWS_64_BIT_OFF_T
=0
19017 WINDOWS_64_BIT_ST_SIZE
=1
19020 WINDOWS_64_BIT_OFF_T
=0
19021 WINDOWS_64_BIT_ST_SIZE
=0
19038 GNULIB_UTIMENSAT
=0;
19052 REPLACE_FUTIMENS
=0;
19058 REPLACE_UTIMENSAT
=0;
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19064 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19065 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19066 $as_echo_n "(cached) " >&6
19068 rm -f conftest.sym conftest.
file
19069 echo >conftest.
file
19070 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
19071 if test "$cross_compiling" = yes; then :
19073 # Guess yes on glibc systems.
19074 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
19075 # If we don't know, assume the worst.
19076 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
19080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h. */
19082 $ac_includes_default
19087 /* Linux will dereference the symlink and fail, as required by
19088 POSIX. That is better in the sense that it means we will not
19089 have to compile and use the lstat wrapper. */
19090 return lstat ("conftest.sym/", &sbuf) == 0;
19096 if ac_fn_c_try_run
"$LINENO"; then :
19097 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19099 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19106 # If the 'ln -s' command failed, then we probably don't even
19107 # have an lstat function.
19108 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19110 rm -f conftest.sym conftest.
file
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19114 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19115 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19118 cat >>confdefs.h
<<_ACEOF
19119 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19127 GNULIB_NANOSLEEP
=0;
19131 HAVE_DECL_LOCALTIME_R
=1;
19135 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19136 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19137 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19138 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19155 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19156 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19157 $as_echo_n "(cached) " >&6
19160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <sys/select.h>
19171 if ac_fn_c_try_compile
"$LINENO"; then :
19172 gl_cv_header_sys_select_h_selfcontained
=yes
19174 gl_cv_header_sys_select_h_selfcontained
=no
19176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19177 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <sys/select.h>
19184 int memset; int bzero;
19190 if ac_fn_c_try_compile
"$LINENO"; then :
19191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193 #include <sys/select.h>
19199 #define memset nonexistent_memset
19204 void *memset (void *, int, unsigned long);
19206 #define bzero nonexistent_bzero
19211 void bzero (void *, unsigned long);
19220 if ac_fn_c_try_link
"$LINENO"; then :
19223 gl_cv_header_sys_select_h_selfcontained
=no
19225 rm -f core conftest.err conftest.
$ac_objext \
19226 conftest
$ac_exeext conftest.
$ac_ext
19229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19234 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19244 if test $gl_cv_have_include_next = yes; then
19245 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19248 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19249 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19250 $as_echo_n "(cached) " >&6
19253 if test $ac_cv_header_sys_select_h = yes; then
19256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 #include <sys/select.h>
19262 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19263 *) gl_absname_cpp
="$ac_cpp" ;;
19268 gl_dirsep_regex
='[/\\]'
19271 gl_dirsep_regex
='\/'
19274 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19276 gl_header_literal_regex
=`echo 'sys/select.h' \
19277 | sed -e "$gl_make_literal_regex_sed"`
19278 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19284 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19285 sed -n "$gl_absolute_header_sed"`'"'
19287 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19293 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19295 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19297 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19299 gl_next_as_first_directive
='<'sys
/select.h
'>'
19301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19302 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19304 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19309 if test $ac_cv_header_sys_select_h = yes; then
19310 HAVE_SYS_SELECT_H
=1
19312 HAVE_SYS_SELECT_H
=0
19319 if test $ac_cv_header_sys_socket_h != yes; then
19320 for ac_header
in winsock2.h
19322 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19323 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19324 cat >>confdefs.h
<<_ACEOF
19325 #define HAVE_WINSOCK2_H 1
19333 if test "$ac_cv_header_winsock2_h" = yes; then
19335 UNISTD_H_HAVE_WINSOCK2_H
=1
19336 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19348 GNULIB_PTHREAD_SIGMASK
=0;
19350 GNULIB_SIGNAL_H_SIGPIPE
=0;
19351 GNULIB_SIGPROCMASK
=0;
19352 GNULIB_SIGACTION
=0;
19353 HAVE_POSIX_SIGNALBLOCKING
=1;
19354 HAVE_PTHREAD_SIGMASK
=1;
19359 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19361 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19363 HAVE_SIGHANDLER_T
=1;
19364 REPLACE_PTHREAD_SIGMASK
=0;
19373 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19374 #include <signal.h>
19375 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19376 #include <sys/types.h>
19379 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19381 cat >>confdefs.h
<<_ACEOF
19382 #define HAVE_SIGSET_T 1
19385 gl_cv_type_sigset_t
=yes
19387 gl_cv_type_sigset_t
=no
19390 if test $gl_cv_type_sigset_t != yes; then
19396 if test $ac_cv_header_sys_socket_h = no
; then
19397 for ac_header
in ws2tcpip.h
19399 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19400 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19401 cat >>confdefs.h
<<_ACEOF
19402 #define HAVE_WS2TCPIP_H 1
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19412 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19413 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19419 #include <stdbool.h>
19421 "error: bool is not defined"
19424 "error: false is not defined"
19427 "error: false is not 0"
19430 "error: true is not defined"
19433 "error: true is not 1"
19435 #ifndef __bool_true_false_are_defined
19436 "error: __bool_true_false_are_defined is not defined"
19439 struct s { _Bool s: 1; _Bool t; } s;
19441 char a[true == 1 ? 1 : -1];
19442 char b[false == 0 ? 1 : -1];
19443 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19444 char d[(bool) 0.5 == true ? 1 : -1];
19445 /* See body of main program for 'e'. */
19446 char f[(_Bool) 0.0 == false ? 1 : -1];
19448 char h[sizeof (_Bool)];
19449 char i[sizeof s.t];
19450 enum { j = false, k = true, l = false * true, m = true * 256 };
19451 /* The following fails for
19452 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19454 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19455 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19456 /* Catch a bug in an HP-UX C compiler. See
19457 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19458 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19470 /* Refer to every declared value, to avoid compiler optimizations. */
19471 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19472 + !m + !n + !o + !p + !q + !pq);
19478 if ac_fn_c_try_compile
"$LINENO"; then :
19479 ac_cv_header_stdbool_h
=yes
19481 ac_cv_header_stdbool_h
=no
19483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19486 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19487 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19488 if test "x$ac_cv_type__Bool" = x
""yes; then :
19490 cat >>confdefs.h
<<_ACEOF
19491 #define HAVE__BOOL 1
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19504 $as_echo_n "checking for wchar_t... " >&6; }
19505 if test "${gt_cv_c_wchar_t+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 #include <stddef.h>
19511 wchar_t foo = (wchar_t)'\0';
19520 if ac_fn_c_try_compile
"$LINENO"; then :
19521 gt_cv_c_wchar_t
=yes
19525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19528 $as_echo "$gt_cv_c_wchar_t" >&6; }
19529 if test $gt_cv_c_wchar_t = yes; then
19531 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19544 GNULIB_FPRINTF_POSIX
=0;
19560 GNULIB_OBSTACK_PRINTF
=0;
19561 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19566 GNULIB_PRINTF_POSIX
=0;
19575 GNULIB_SPRINTF_POSIX
=0;
19576 GNULIB_STDIO_H_NONBLOCKING
=0;
19577 GNULIB_STDIO_H_SIGPIPE
=0;
19579 GNULIB_VASPRINTF
=0;
19584 GNULIB_VFPRINTF_POSIX
=0;
19586 GNULIB_VPRINTF_POSIX
=0;
19587 GNULIB_VSNPRINTF
=0;
19588 GNULIB_VSPRINTF_POSIX
=0;
19589 HAVE_DECL_FPURGE
=1;
19590 HAVE_DECL_FSEEKO
=1;
19591 HAVE_DECL_FTELLO
=1;
19592 HAVE_DECL_GETDELIM
=1;
19593 HAVE_DECL_GETLINE
=1;
19594 HAVE_DECL_OBSTACK_PRINTF
=1;
19595 HAVE_DECL_SNPRINTF
=1;
19596 HAVE_DECL_VSNPRINTF
=1;
19617 REPLACE_GETDELIM
=0;
19619 REPLACE_OBSTACK_PRINTF
=0;
19625 REPLACE_RENAMEAT
=0;
19626 REPLACE_SNPRINTF
=0;
19628 REPLACE_STDIO_READ_FUNCS
=0;
19629 REPLACE_STDIO_WRITE_FUNCS
=0;
19631 REPLACE_VASPRINTF
=0;
19632 REPLACE_VDPRINTF
=0;
19633 REPLACE_VFPRINTF
=0;
19635 REPLACE_VSNPRINTF
=0;
19636 REPLACE_VSPRINTF
=0;
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19639 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19640 if test "${ac_cv_struct_tm+set}" = set; then :
19641 $as_echo_n "(cached) " >&6
19643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #include <sys/types.h>
19652 int *p = &tm.tm_sec;
19658 if ac_fn_c_try_compile
"$LINENO"; then :
19659 ac_cv_struct_tm
=time.h
19661 ac_cv_struct_tm
=sys
/time.h
19663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19666 $as_echo "$ac_cv_struct_tm" >&6; }
19667 if test $ac_cv_struct_tm = sys
/time.h
; then
19669 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19673 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19674 #include <$ac_cv_struct_tm>
19677 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19679 cat >>confdefs.h
<<_ACEOF
19680 #define HAVE_STRUCT_TM_TM_ZONE 1
19686 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19688 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19691 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19693 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19699 cat >>confdefs.h
<<_ACEOF
19700 #define HAVE_DECL_TZNAME $ac_have_decl
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19704 $as_echo_n "checking for tzname... " >&6; }
19705 if test "${ac_cv_var_tzname+set}" = set; then :
19706 $as_echo_n "(cached) " >&6
19708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19711 #if !HAVE_DECL_TZNAME
19712 extern char *tzname[];
19718 return tzname[0][0];
19723 if ac_fn_c_try_link
"$LINENO"; then :
19724 ac_cv_var_tzname
=yes
19726 ac_cv_var_tzname
=no
19728 rm -f core conftest.err conftest.
$ac_objext \
19729 conftest
$ac_exeext conftest.
$ac_ext
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19732 $as_echo "$ac_cv_var_tzname" >&6; }
19733 if test $ac_cv_var_tzname = yes; then
19735 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19741 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19743 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19745 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19752 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19753 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19759 cat >>confdefs.h
<<_ACEOF
19760 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19765 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19766 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19772 cat >>confdefs.h
<<_ACEOF
19773 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19779 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19780 if test "${ac_cv_header_stat_broken+set}" = set; then :
19781 $as_echo_n "(cached) " >&6
19783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19785 #include <sys/types.h>
19786 #include <sys/stat.h>
19788 #if defined S_ISBLK && defined S_IFDIR
19789 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19792 #if defined S_ISBLK && defined S_IFCHR
19793 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19796 #if defined S_ISLNK && defined S_IFREG
19797 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19800 #if defined S_ISSOCK && defined S_IFREG
19801 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19805 if ac_fn_c_try_compile
"$LINENO"; then :
19806 ac_cv_header_stat_broken
=no
19808 ac_cv_header_stat_broken
=yes
19810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19813 $as_echo "$ac_cv_header_stat_broken" >&6; }
19814 if test $ac_cv_header_stat_broken = yes; then
19816 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19825 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19826 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19836 static struct timespec x; x.tv_sec = x.tv_nsec;
19841 if ac_fn_c_try_compile
"$LINENO"; then :
19842 gl_cv_sys_struct_timespec_in_time_h
=yes
19844 gl_cv_sys_struct_timespec_in_time_h
=no
19846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19849 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19851 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19852 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19853 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19854 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19855 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19858 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19859 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864 #include <sys/time.h>
19869 static struct timespec x; x.tv_sec = x.tv_nsec;
19874 if ac_fn_c_try_compile
"$LINENO"; then :
19875 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19877 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19882 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19883 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19884 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19887 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19888 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19889 $as_echo_n "(cached) " >&6
19891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <pthread.h>
19898 static struct timespec x; x.tv_sec = x.tv_nsec;
19903 if ac_fn_c_try_compile
"$LINENO"; then :
19904 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19906 gl_cv_sys_struct_timespec_in_pthread_h
=no
19908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19911 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19912 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19913 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19932 if test $gl_cv_have_include_next = yes; then
19933 gl_cv_next_time_h
='<'time.h
'>'
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19936 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19937 if test "${gl_cv_next_time_h+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19947 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19948 *) gl_absname_cpp
="$ac_cpp" ;;
19953 gl_dirsep_regex
='[/\\]'
19956 gl_dirsep_regex
='\/'
19959 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19961 gl_header_literal_regex
=`echo 'time.h' \
19962 | sed -e "$gl_make_literal_regex_sed"`
19963 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19964 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19969 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19970 sed -n "$gl_absolute_header_sed"`'"'
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19975 $as_echo "$gl_cv_next_time_h" >&6; }
19977 NEXT_TIME_H
=$gl_cv_next_time_h
19979 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19981 gl_next_as_first_directive
='<'time.h
'>'
19983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19984 gl_next_as_first_directive
=$gl_cv_next_time_h
19986 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20003 $as_echo_n "checking whether the utimes function works... " >&6; }
20004 if test "${gl_cv_func_working_utimes+set}" = set; then :
20005 $as_echo_n "(cached) " >&6
20008 if test "$cross_compiling" = yes; then :
20009 gl_cv_func_working_utimes
=no
20011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h. */
20014 #include <sys/types.h>
20015 #include <sys/stat.h>
20017 #include <sys/time.h>
20019 #include <unistd.h>
20020 #include <stdlib.h>
20025 inorder (time_t a, time_t b, time_t c)
20027 return a <= b && b <= c;
20034 char const *file = "conftest.utimes";
20035 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20037 /* Test whether utimes() essentially works. */
20040 FILE *f = fopen (file, "w");
20043 else if (fclose (f) != 0)
20045 else if (utimes (file, timeval) != 0)
20047 else if (lstat (file, &sbuf) != 0)
20049 else if (!(sbuf.st_atime == timeval[0].tv_sec
20050 && sbuf.st_mtime == timeval[1].tv_sec))
20052 if (unlink (file) != 0)
20056 /* Test whether utimes() with a NULL argument sets the file's timestamp
20057 to the current time. Use 'fstat' as well as 'time' to
20058 determine the "current" time, to accommodate NFS file systems
20059 if there is a time skew between the host and the NFS server. */
20061 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20067 struct stat st0, st1, st2;
20068 if (time (&t0) == (time_t) -1)
20070 else if (fstat (fd, &st0) != 0)
20072 else if (utimes (file, timeval) != 0)
20074 else if (utimes (file, NULL) != 0)
20076 else if (fstat (fd, &st1) != 0)
20078 else if (write (fd, "\n", 1) != 1)
20080 else if (fstat (fd, &st2) != 0)
20082 else if (time (&t2) == (time_t) -1)
20086 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20087 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20088 if (! (st1.st_atime == st1.st_mtime))
20090 if (! (m_ok_POSIX || m_ok_NFS))
20093 if (close (fd) != 0)
20096 if (unlink (file) != 0)
20100 /* Test whether utimes() with a NULL argument works on read-only files. */
20102 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20105 else if (close (fd) != 0)
20107 else if (utimes (file, NULL) != 0)
20109 if (unlink (file) != 0)
20117 if ac_fn_c_try_run
"$LINENO"; then :
20118 gl_cv_func_working_utimes
=yes
20120 gl_cv_func_working_utimes
=no
20122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20128 $as_echo "$gl_cv_func_working_utimes" >&6; }
20130 if test $gl_cv_func_working_utimes = yes; then
20132 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20141 $as_echo_n "checking for struct utimbuf... " >&6; }
20142 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20143 $as_echo_n "(cached) " >&6
20145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20147 #if HAVE_SYS_TIME_H
20148 #include <sys/time.h>
20151 #ifdef HAVE_UTIME_H
20158 static struct utimbuf x; x.actime = x.modtime;
20163 if ac_fn_c_try_compile
"$LINENO"; then :
20164 gl_cv_sys_struct_utimbuf
=yes
20166 gl_cv_sys_struct_utimbuf
=no
20168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20171 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20173 if test $gl_cv_sys_struct_utimbuf = yes; then
20175 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20190 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20191 if test "${ac_cv_type_getgroups+set}" = set; then :
20192 $as_echo_n "(cached) " >&6
20194 if test "$cross_compiling" = yes; then :
20195 ac_cv_type_getgroups
=cross
20197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20199 /* Thanks to Mike Rendell for this test. */
20200 $ac_includes_default
20203 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20208 gid_t gidset[NGID];
20210 union { gid_t gval; long int lval; } val;
20213 for (i = 0; i < NGID; i++)
20214 gidset[i] = val.gval;
20215 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20217 /* Exit non-zero if getgroups seems to require an array of ints. This
20218 happens when gid_t is short int but getgroups modifies an array
20220 return n > 0 && gidset[n] != val.gval;
20223 if ac_fn_c_try_run
"$LINENO"; then :
20224 ac_cv_type_getgroups
=gid_t
20226 ac_cv_type_getgroups
=int
20228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20232 if test $ac_cv_type_getgroups = cross
; then
20233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h. */
20235 #include <unistd.h>
20238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20239 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20240 ac_cv_type_getgroups
=gid_t
20242 ac_cv_type_getgroups
=int
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20249 $as_echo "$ac_cv_type_getgroups" >&6; }
20251 cat >>confdefs.h
<<_ACEOF
20252 #define GETGROUPS_T $ac_cv_type_getgroups
20259 GL_COND_LIBTOOL_TRUE
=
20260 GL_COND_LIBTOOL_FALSE
='#'
20262 GL_COND_LIBTOOL_TRUE
='#'
20263 GL_COND_LIBTOOL_FALSE
=
20266 gl_cond_libtool
=false
20279 gl_source_base
='lib'
20282 if test $ac_cv_func_alloca_works = no
; then
20286 # Define an additional variable used in the Makefile substitution.
20287 if test $ac_cv_working_alloca_h = yes; then
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20289 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20290 if test "${gl_cv_rpl_alloca+set}" = set; then :
20291 $as_echo_n "(cached) " >&6
20294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20297 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20303 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20304 gl_cv_rpl_alloca
=yes
20306 gl_cv_rpl_alloca
=no
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20313 $as_echo "$gl_cv_rpl_alloca" >&6; }
20314 if test $gl_cv_rpl_alloca = yes; then
20316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20326 if test -n "$ALLOCA_H"; then
20327 GL_GENERATE_ALLOCA_H_TRUE
=
20328 GL_GENERATE_ALLOCA_H_FALSE
='#'
20330 GL_GENERATE_ALLOCA_H_TRUE
='#'
20331 GL_GENERATE_ALLOCA_H_FALSE
=
20339 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20340 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20342 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20343 # programs in the package would end up linked with that potentially-shared
20344 # library, inducing unnecessary run-time overhead.
20347 gl_saved_libs
=$LIBS
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20349 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20350 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20353 ac_func_search_save_LIBS
=$LIBS
20354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20363 char clock_gettime ();
20367 return clock_gettime ();
20372 for ac_lib
in '' rt posix4
; do
20373 if test -z "$ac_lib"; then
20374 ac_res
="none required"
20377 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20379 if ac_fn_c_try_link
"$LINENO"; then :
20380 ac_cv_search_clock_gettime
=$ac_res
20382 rm -f core conftest.err conftest.
$ac_objext \
20384 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20388 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20391 ac_cv_search_clock_gettime
=no
20393 rm conftest.
$ac_ext
20394 LIBS
=$ac_func_search_save_LIBS
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20397 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20398 ac_res
=$ac_cv_search_clock_gettime
20399 if test "$ac_res" != no
; then :
20400 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20401 test "$ac_cv_search_clock_gettime" = "none required" ||
20402 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20405 for ac_func
in clock_gettime clock_settime
20407 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20409 eval as_val
=\$
$as_ac_var
20410 if test "x$as_val" = x
""yes; then :
20411 cat >>confdefs.h
<<_ACEOF
20412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20418 LIBS
=$gl_saved_libs
20425 cat >>confdefs.h
<<_ACEOF
20426 #define GNULIB_CLOSE_STREAM 1
20454 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20457 if test $HAVE_DUP2 = 1; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20459 $as_echo_n "checking whether dup2 works... " >&6; }
20460 if test "${gl_cv_func_dup2_works+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20463 if test "$cross_compiling" = yes; then :
20465 mingw
*) # on this platform, dup2 always returns 0 for success
20466 gl_cv_func_dup2_works
="guessing no" ;;
20467 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20468 gl_cv_func_dup2_works
="guessing no" ;;
20469 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20470 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20471 gl_cv_func_dup2_works
="guessing no" ;;
20472 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20473 gl_cv_func_dup2_works
="guessing no" ;;
20474 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20475 gl_cv_func_dup2_works
="guessing no" ;;
20476 *) gl_cv_func_dup2_works
="guessing yes" ;;
20479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20482 #include <unistd.h>
20490 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20493 if (dup2 (1, 1) == 0)
20496 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20500 if (dup2 (0, 0) != -1)
20502 /* Many gnulib modules require POSIX conformance of EBADF. */
20503 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20512 if ac_fn_c_try_run
"$LINENO"; then :
20513 gl_cv_func_dup2_works
=yes
20515 gl_cv_func_dup2_works
=no
20517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20524 $as_echo "$gl_cv_func_dup2_works" >&6; }
20525 case "$gl_cv_func_dup2_works" in
20534 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20543 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20574 EXECINFO_H
='execinfo.h'
20576 if test $ac_cv_header_execinfo_h = yes; then
20577 gl_saved_libs
=$LIBS
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20579 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20580 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20581 $as_echo_n "(cached) " >&6
20583 ac_func_search_save_LIBS
=$LIBS
20584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20593 char backtrace_symbols_fd ();
20597 return backtrace_symbols_fd ();
20602 for ac_lib
in '' execinfo
; do
20603 if test -z "$ac_lib"; then
20604 ac_res
="none required"
20607 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20609 if ac_fn_c_try_link
"$LINENO"; then :
20610 ac_cv_search_backtrace_symbols_fd
=$ac_res
20612 rm -f core conftest.err conftest.
$ac_objext \
20614 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20618 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20621 ac_cv_search_backtrace_symbols_fd
=no
20623 rm conftest.
$ac_ext
20624 LIBS
=$ac_func_search_save_LIBS
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20627 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20628 ac_res
=$ac_cv_search_backtrace_symbols_fd
20629 if test "$ac_res" != no
; then :
20630 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20631 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20632 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20635 LIBS
=$gl_saved_libs
20636 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20639 if test -n "$EXECINFO_H"; then
20648 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20654 if test -n "$EXECINFO_H"; then
20655 GL_GENERATE_EXECINFO_H_TRUE
=
20656 GL_GENERATE_EXECINFO_H_FALSE
='#'
20658 GL_GENERATE_EXECINFO_H_TRUE
='#'
20659 GL_GENERATE_EXECINFO_H_FALSE
=
20670 if test $ac_cv_func_faccessat = no
; then
20674 if test $HAVE_FACCESSAT = 0; then
20683 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
20686 for ac_func
in access
20688 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
20689 if test "x$ac_cv_func_access" = x
""yes; then :
20690 cat >>confdefs.h
<<_ACEOF
20691 #define HAVE_ACCESS 1
20701 cat >>confdefs.h
<<_ACEOF
20702 #define GNULIB_FACCESSAT 1
20728 if test $gl_cv_have_include_next = yes; then
20729 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20732 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20733 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20734 $as_echo_n "(cached) " >&6
20737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20743 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20744 *) gl_absname_cpp
="$ac_cpp" ;;
20749 gl_dirsep_regex
='[/\\]'
20752 gl_dirsep_regex
='\/'
20755 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20757 gl_header_literal_regex
=`echo 'fcntl.h' \
20758 | sed -e "$gl_make_literal_regex_sed"`
20759 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20760 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20765 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20766 sed -n "$gl_absolute_header_sed"`'"'
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20771 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20773 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
20775 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20777 gl_next_as_first_directive
='<'fcntl.h
'>'
20779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20780 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
20782 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
20802 # include <stdio.h>
20803 # if HAVE_STDIO_EXT_H
20804 # include <stdio_ext.h>
20807 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20809 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
20815 cat >>confdefs.h
<<_ACEOF
20816 #define HAVE_DECL___FPENDING $ac_have_decl
20820 if test $ac_cv_func___fpending = no
; then
20829 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20833 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20834 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20841 'fp->_IO_write_ptr - fp->_IO_write_base' \
20843 '# traditional Unix' \
20844 'fp->_ptr - fp->_base' \
20847 'fp->_p - fp->_bf._base' \
20849 '# SCO, Unixware' \
20850 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20853 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20856 'fp->__bufp - fp->__buffer' \
20858 '# old glibc iostream?' \
20859 'fp->_pptr - fp->_pbase' \
20862 'fp->_ptr - fp->_buffer' \
20865 'fp->_ptr - fp->_buf' \
20868 'fp->wp - fp->buf' \
20871 '(*fp)->_ptr - (*fp)->_base' \
20873 '# e.g., DGUX R4.11; the info is not available' \
20877 # Skip each embedded comment.
20878 case "$ac_expr" in '#'*) continue;; esac
20880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20886 FILE *fp = stdin; (void) ($ac_expr);
20891 if ac_fn_c_try_compile
"$LINENO"; then :
20895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20896 test "$fp_done" = yes && break
20899 ac_cv_sys_pending_output_n_bytes
=$ac_expr
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20904 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20906 cat >>confdefs.h
<<_ACEOF
20907 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20914 # Persuade glibc <stdlib.h> to declare getloadavg().
20919 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20920 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20922 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20923 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20926 gl_func_getloadavg_done
=no
20928 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20929 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20930 # to get the right answer into the cache.
20931 # For kstat on solaris, we need to test for libelf and libkvm to force the
20932 # definition of SVR4 below.
20933 if test $gl_func_getloadavg_done = no
; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20935 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20936 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20937 $as_echo_n "(cached) " >&6
20939 ac_check_lib_save_LIBS
=$LIBS
20941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20944 /* Override any GCC internal prototype to avoid an error.
20945 Use char because int might match the return type of a GCC
20946 builtin and then its argument prototype would still apply. */
20954 return elf_begin ();
20959 if ac_fn_c_try_link
"$LINENO"; then :
20960 ac_cv_lib_elf_elf_begin
=yes
20962 ac_cv_lib_elf_elf_begin
=no
20964 rm -f core conftest.err conftest.
$ac_objext \
20965 conftest
$ac_exeext conftest.
$ac_ext
20966 LIBS
=$ac_check_lib_save_LIBS
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20969 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20970 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20975 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20976 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20979 ac_check_lib_save_LIBS
=$LIBS
20981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20984 /* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20994 return kvm_open ();
20999 if ac_fn_c_try_link
"$LINENO"; then :
21000 ac_cv_lib_kvm_kvm_open
=yes
21002 ac_cv_lib_kvm_kvm_open
=no
21004 rm -f core conftest.err conftest.
$ac_objext \
21005 conftest
$ac_exeext conftest.
$ac_ext
21006 LIBS
=$ac_check_lib_save_LIBS
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21009 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21010 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
21014 # Check for the 4.4BSD definition of getloadavg.
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21016 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21017 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21018 $as_echo_n "(cached) " >&6
21020 ac_check_lib_save_LIBS
=$LIBS
21021 LIBS
="-lutil $LIBS"
21022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21025 /* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21031 char getloadavg ();
21035 return getloadavg ();
21040 if ac_fn_c_try_link
"$LINENO"; then :
21041 ac_cv_lib_util_getloadavg
=yes
21043 ac_cv_lib_util_getloadavg
=no
21045 rm -f core conftest.err conftest.
$ac_objext \
21046 conftest
$ac_exeext conftest.
$ac_ext
21047 LIBS
=$ac_check_lib_save_LIBS
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21050 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21051 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
21052 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
21057 if test $gl_func_getloadavg_done = no
; then
21058 # There is a commonly available library for RS/6000 AIX.
21059 # Since it is not a standard part of AIX, it might be installed locally.
21060 gl_getloadavg_LIBS
=$LIBS
21061 LIBS
="-L/usr/local/lib $LIBS"
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21063 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21064 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21065 $as_echo_n "(cached) " >&6
21067 ac_check_lib_save_LIBS
=$LIBS
21068 LIBS
="-lgetloadavg $LIBS"
21069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21072 /* Override any GCC internal prototype to avoid an error.
21073 Use char because int might match the return type of a GCC
21074 builtin and then its argument prototype would still apply. */
21078 char getloadavg ();
21082 return getloadavg ();
21087 if ac_fn_c_try_link
"$LINENO"; then :
21088 ac_cv_lib_getloadavg_getloadavg
=yes
21090 ac_cv_lib_getloadavg_getloadavg
=no
21092 rm -f core conftest.err conftest.
$ac_objext \
21093 conftest
$ac_exeext conftest.
$ac_ext
21094 LIBS
=$ac_check_lib_save_LIBS
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21097 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21098 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
21099 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
21101 LIBS
=$gl_getloadavg_LIBS
21106 # Set up the replacement function if necessary.
21107 if test $gl_func_getloadavg_done = no
; then
21110 # Solaris has libkstat which does not require root.
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21112 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21113 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21116 ac_check_lib_save_LIBS
=$LIBS
21117 LIBS
="-lkstat $LIBS"
21118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21127 char kstat_open ();
21131 return kstat_open ();
21136 if ac_fn_c_try_link
"$LINENO"; then :
21137 ac_cv_lib_kstat_kstat_open
=yes
21139 ac_cv_lib_kstat_kstat_open
=no
21141 rm -f core conftest.err conftest.
$ac_objext \
21142 conftest
$ac_exeext conftest.
$ac_ext
21143 LIBS
=$ac_check_lib_save_LIBS
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21146 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21147 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
21148 cat >>confdefs.h
<<_ACEOF
21149 #define HAVE_LIBKSTAT 1
21152 LIBS
="-lkstat $LIBS"
21156 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
21158 # AIX has libperfstat which does not require root
21159 if test $gl_func_getloadavg_done = no
; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21161 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21162 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21165 ac_check_lib_save_LIBS
=$LIBS
21166 LIBS
="-lperfstat $LIBS"
21167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21170 /* Override any GCC internal prototype to avoid an error.
21171 Use char because int might match the return type of a GCC
21172 builtin and then its argument prototype would still apply. */
21176 char perfstat_cpu_total ();
21180 return perfstat_cpu_total ();
21185 if ac_fn_c_try_link
"$LINENO"; then :
21186 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
21188 ac_cv_lib_perfstat_perfstat_cpu_total
=no
21190 rm -f core conftest.err conftest.
$ac_objext \
21191 conftest
$ac_exeext conftest.
$ac_ext
21192 LIBS
=$ac_check_lib_save_LIBS
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21195 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21196 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
21197 cat >>confdefs.h
<<_ACEOF
21198 #define HAVE_LIBPERFSTAT 1
21201 LIBS
="-lperfstat $LIBS"
21205 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
21208 if test $gl_func_getloadavg_done = no
; then
21209 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21210 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
21211 gl_func_getloadavg_done
=yes
21213 $as_echo "#define DGUX 1" >>confdefs.h
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21216 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21217 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21218 $as_echo_n "(cached) " >&6
21220 ac_check_lib_save_LIBS
=$LIBS
21222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21225 /* Override any GCC internal prototype to avoid an error.
21226 Use char because int might match the return type of a GCC
21227 builtin and then its argument prototype would still apply. */
21231 char dg_sys_info ();
21235 return dg_sys_info ();
21240 if ac_fn_c_try_link
"$LINENO"; then :
21241 ac_cv_lib_dgc_dg_sys_info
=yes
21243 ac_cv_lib_dgc_dg_sys_info
=no
21245 rm -f core conftest.err conftest.
$ac_objext \
21246 conftest
$ac_exeext conftest.
$ac_ext
21247 LIBS
=$ac_check_lib_save_LIBS
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21250 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21251 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21252 cat >>confdefs.h
<<_ACEOF
21253 #define HAVE_LIBDGC 1
21268 if test "x$gl_save_LIBS" = x
; then
21269 GETLOADAVG_LIBS
=$LIBS
21271 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21276 # Test whether the system declares getloadavg. Solaris has the function
21277 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21278 for ac_header
in sys
/loadavg.h
21280 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21281 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21282 cat >>confdefs.h
<<_ACEOF
21283 #define HAVE_SYS_LOADAVG_H 1
21290 if test $ac_cv_header_sys_loadavg_h = yes; then
21291 HAVE_SYS_LOADAVG_H
=1
21293 HAVE_SYS_LOADAVG_H
=0
21295 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21296 # include <sys/loadavg.h>
21298 #include <stdlib.h>
21300 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
21303 HAVE_DECL_GETLOADAVG
=0
21307 if test $HAVE_GETLOADAVG = 0; then
21316 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
21319 # Figure out what our getloadavg.c needs.
21323 # On HPUX9, an unprivileged user can get load averages this way.
21324 if test $gl_func_getloadavg_done = no
; then
21325 for ac_func
in pstat_getdynamic
21327 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21328 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
21329 cat >>confdefs.h
<<_ACEOF
21330 #define HAVE_PSTAT_GETDYNAMIC 1
21332 gl_func_getloadavg_done
=yes
21338 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21339 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21340 # Irix 4.0.5F has the header but not the library.
21341 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
21342 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21343 gl_func_getloadavg_done
=yes
21345 $as_echo "#define SVR4 1" >>confdefs.h
21349 if test $gl_func_getloadavg_done = no
; then
21350 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21351 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
21352 gl_func_getloadavg_done
=yes
21354 $as_echo "#define UMAX 1" >>confdefs.h
21357 $as_echo "#define UMAX4_3 1" >>confdefs.h
21364 if test $gl_func_getloadavg_done = no
; then
21365 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21366 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
21367 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
21374 if test $gl_func_getloadavg_done = no
; then
21375 for ac_header
in mach
/mach.h
21377 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21378 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
21379 cat >>confdefs.h
<<_ACEOF
21380 #define HAVE_MACH_MACH_H 1
21389 for ac_header
in nlist.h
21391 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21392 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
21393 cat >>confdefs.h
<<_ACEOF
21394 #define HAVE_NLIST_H 1
21396 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21398 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
21400 cat >>confdefs.h
<<_ACEOF
21401 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21414 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21415 x.n_un.n_name = "";
21423 if ac_fn_c_try_link
"$LINENO"; then :
21425 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21428 rm -f core conftest.err conftest.
$ac_objext \
21429 conftest
$ac_exeext conftest.
$ac_ext
21441 GNULIB_GETLOADAVG
=1
21452 if test $REPLACE_GETOPT = 1; then
21461 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21471 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21476 GNULIB_GL_UNISTD_H_GETOPT
=1
21486 if test -n "$gl_replace_getopt"; then
21490 if test $REPLACE_GETOPT = 1; then
21494 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21500 if test $REPLACE_GETOPT = 1; then
21509 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21519 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21524 GNULIB_GL_UNISTD_H_GETOPT
=1
21538 gl_gettimeofday_timezone
=void
21539 if test $ac_cv_func_gettimeofday != yes; then
21540 HAVE_GETTIMEOFDAY
=0
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21546 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21547 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21548 $as_echo_n "(cached) " >&6
21550 if test "$cross_compiling" = yes; then :
21551 # When cross-compiling:
21553 # Guess all is fine on glibc systems.
21554 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21555 # If we don't know, assume the worst.
21556 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21562 #include <string.h>
21563 #include <sys/time.h>
21565 #include <stdlib.h>
21573 struct tm saved_lt;
21575 lt = localtime (&t);
21577 gettimeofday (&tv, NULL);
21578 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21584 if ac_fn_c_try_run
"$LINENO"; then :
21585 gl_cv_func_gettimeofday_clobber
=no
21587 gl_cv_func_gettimeofday_clobber
=yes
21589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21595 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21597 case "$gl_cv_func_gettimeofday_clobber" in
21599 REPLACE_GETTIMEOFDAY
=1
21602 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21605 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21609 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21615 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21616 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21621 #include <sys/time.h>
21623 int gettimeofday (struct timeval *restrict, void *restrict);
21628 /* glibc uses struct timezone * rather than the POSIX void *
21629 if _GNU_SOURCE is defined. However, since the only portable
21630 use of gettimeofday uses NULL as the second parameter, and
21631 since the glibc definition is actually more typesafe, it is
21632 not worth wrapping this to get a compliant signature. */
21633 int (*f) (struct timeval *restrict, void *restrict)
21636 return !(x | c.tv_sec | c.tv_usec);
21642 if ac_fn_c_try_compile
"$LINENO"; then :
21643 gl_cv_func_gettimeofday_posix_signature
=yes
21645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21647 #include <sys/time.h>
21648 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21658 if ac_fn_c_try_compile
"$LINENO"; then :
21659 gl_cv_func_gettimeofday_posix_signature
=almost
21661 gl_cv_func_gettimeofday_posix_signature
=no
21663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21668 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21669 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21670 gl_gettimeofday_timezone
='struct timezone'
21671 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21672 REPLACE_GETTIMEOFDAY
=1
21674 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21675 REPLACE_GETTIMEOFDAY
=1
21680 cat >>confdefs.h
<<_ACEOF
21681 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21685 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21694 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21697 for ac_header
in sys
/timeb.h
21699 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21700 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21701 cat >>confdefs.h
<<_ACEOF
21702 #define HAVE_SYS_TIMEB_H 1
21709 for ac_func
in _ftime
21711 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21712 if test "x$ac_cv_func__ftime" = x
""yes; then :
21713 cat >>confdefs.h
<<_ACEOF
21714 #define HAVE__FTIME 1
21727 GNULIB_GETTIMEOFDAY
=1
21738 if test $ac_cv_func_lstat = yes; then
21740 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21749 if test $REPLACE_LSTAT = 1; then
21758 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21782 if test $APPLE_UNIVERSAL_BUILD = 1; then
21783 # A universal build on Apple Mac OS X platforms.
21784 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21785 # But we need a configuration result that is valid in both modes.
21786 gl_cv_func_working_mktime
=no
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21789 $as_echo_n "checking for working mktime... " >&6; }
21790 if test "${gl_cv_func_working_mktime+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21793 if test "$cross_compiling" = yes; then :
21794 gl_cv_func_working_mktime
=no
21796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21798 /* Test program from Paul Eggert and Tony Leneis. */
21799 #include <limits.h>
21800 #include <stdlib.h>
21803 #ifdef HAVE_UNISTD_H
21804 # include <unistd.h>
21808 # define alarm(X) /* empty */
21811 /* Work around redefinition to rpl_putenv by other config tests. */
21814 static time_t time_t_max;
21815 static time_t time_t_min;
21817 /* Values we'll use to set the TZ environment variable. */
21818 static char *tz_strings[] = {
21819 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21820 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21822 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21824 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21825 Based on a problem report from Andreas Jaeger. */
21827 spring_forward_gap ()
21829 /* glibc (up to about 1998-10-07) failed this test. */
21832 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21833 instead of "TZ=America/Vancouver" in order to detect the bug even
21834 on systems that don't support the Olson extension, or don't have the
21835 full zoneinfo tables installed. */
21836 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21845 return mktime (&tm) != (time_t) -1;
21849 mktime_test1 (time_t now)
21852 return ! (lt = localtime (&now)) || mktime (lt) == now;
21856 mktime_test (time_t now)
21858 return (mktime_test1 (now)
21859 && mktime_test1 ((time_t) (time_t_max - now))
21860 && mktime_test1 ((time_t) (time_t_min + now)));
21866 /* Based on code from Ariel Faigon. */
21876 return tm.tm_mon == 2 && tm.tm_mday == 31;
21880 bigtime_test (int j)
21884 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21885 now = mktime (&tm);
21886 if (now != (time_t) -1)
21888 struct tm *lt = localtime (&now);
21890 && lt->tm_year == tm.tm_year
21891 && lt->tm_mon == tm.tm_mon
21892 && lt->tm_mday == tm.tm_mday
21893 && lt->tm_hour == tm.tm_hour
21894 && lt->tm_min == tm.tm_min
21895 && lt->tm_sec == tm.tm_sec
21896 && lt->tm_yday == tm.tm_yday
21897 && lt->tm_wday == tm.tm_wday
21898 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21899 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21908 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21909 ignoring leap seconds. */
21910 unsigned long int answer = 2527315200UL;
21914 tm.tm_year = 2050 - 1900;
21917 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21920 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21921 instead of "TZ=America/Vancouver" in order to detect the bug even
21922 on systems that don't support the Olson extension, or don't have the
21923 full zoneinfo tables installed. */
21924 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21928 /* Check that the result is either a failure, or close enough
21929 to the correct answer that we can assume the discrepancy is
21930 due to leap seconds. */
21931 return (t == (time_t) -1
21932 || (0 < t && answer - 120 <= t && t <= answer + 120));
21941 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21942 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21944 /* This test makes some buggy mktime implementations loop.
21945 Give up after 60 seconds; a mktime slower than that
21946 isn't worth using anyway. */
21949 time_t_max = (! time_t_signed
21951 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21953 time_t_min = (! time_t_signed
21955 : time_t_signed_magnitude
21959 delta = time_t_max / 997; /* a suitable prime number */
21960 for (i = 0; i < N_STRINGS; i++)
21963 putenv (tz_strings[i]);
21965 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21966 if (! mktime_test (t))
21968 if ((result & 2) == 0
21969 && ! (mktime_test ((time_t) 1)
21970 && mktime_test ((time_t) (60 * 60))
21971 && mktime_test ((time_t) (60 * 60 * 24))))
21974 for (j = 1; (result & 4) == 0; j <<= 1)
21976 if (! bigtime_test (j))
21978 if (INT_MAX / 2 < j)
21981 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21984 if (! irix_6_4_bug ())
21986 if (! spring_forward_gap ())
21988 if (! year_2050_test ())
21993 if ac_fn_c_try_run
"$LINENO"; then :
21994 gl_cv_func_working_mktime
=yes
21996 gl_cv_func_working_mktime
=no
21998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22005 $as_echo "$gl_cv_func_working_mktime" >&6; }
22007 if test $gl_cv_func_working_mktime = no
; then
22013 if test $REPLACE_MKTIME = 1; then
22022 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
22043 if test $ac_cv_func_pselect = yes; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22045 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22046 if test "${gl_cv_sig_pselect+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22050 /* end confdefs.h. */
22051 #include <sys/select.h>
22056 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22057 struct timespec const *restrict,
22058 sigset_t const *restrict) = pselect;
22064 if ac_fn_c_try_link
"$LINENO"; then :
22065 gl_cv_sig_pselect
=yes
22067 gl_cv_sig_pselect
=no
22069 rm -f core conftest.err conftest.
$ac_objext \
22070 conftest
$ac_exeext conftest.
$ac_ext
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22073 $as_echo "$gl_cv_sig_pselect" >&6; }
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22076 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22077 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22078 $as_echo_n "(cached) " >&6
22081 if test "$cross_compiling" = yes; then :
22084 # Guess yes on glibc systems.
22085 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
22086 # If we don't know, assume the worst.
22087 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
22091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22094 #include <sys/types.h>
22095 #include <sys/time.h>
22096 #if HAVE_SYS_SELECT_H
22097 # include <sys/select.h>
22099 #include <unistd.h>
22111 struct timespec timeout;
22112 timeout.tv_sec = 0;
22113 timeout.tv_nsec = 5000;
22114 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22120 if ac_fn_c_try_run
"$LINENO"; then :
22121 gl_cv_func_pselect_detects_ebadf
=yes
22123 gl_cv_func_pselect_detects_ebadf
=no
22125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22132 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22133 case $gl_cv_func_pselect_detects_ebadf in
22135 *) REPLACE_PSELECT
=1 ;;
22139 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
22143 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
22152 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
22170 LIB_PTHREAD_SIGMASK
=
22175 if test "$gl_threads_api" = posix
; then
22176 if test $ac_cv_func_pthread_sigmask = yes; then
22179 if test -n "$LIBMULTITHREAD"; then
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22181 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22182 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22183 $as_echo_n "(cached) " >&6
22185 gl_save_LIBS
="$LIBS"
22186 LIBS
="$LIBS $LIBMULTITHREAD"
22187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189 #include <pthread.h>
22190 #include <signal.h>
22195 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22201 if ac_fn_c_try_link
"$LINENO"; then :
22202 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
22204 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
22206 rm -f core conftest.err conftest.
$ac_objext \
22207 conftest
$ac_exeext conftest.
$ac_ext
22208 LIBS
="$gl_save_LIBS"
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22212 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22213 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22214 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
22216 HAVE_PTHREAD_SIGMASK
=0
22219 HAVE_PTHREAD_SIGMASK
=0
22223 if test $ac_cv_func_pthread_sigmask = yes; then
22224 REPLACE_PTHREAD_SIGMASK
=1
22226 HAVE_PTHREAD_SIGMASK
=0
22233 if test $HAVE_PTHREAD_SIGMASK = 1; then
22236 if test -z "$LIB_PTHREAD_SIGMASK"; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22238 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22239 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22240 $as_echo_n "(cached) " >&6
22243 if test "$cross_compiling" = yes; then :
22246 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22247 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
22249 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
22253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22256 #include <pthread.h>
22257 #include <signal.h>
22258 #include <stddef.h>
22262 sigemptyset (&set);
22263 return pthread_sigmask (1729, &set, NULL) != 0;
22266 if ac_fn_c_try_run
"$LINENO"; then :
22267 gl_cv_func_pthread_sigmask_in_libc_works
=no
22269 gl_cv_func_pthread_sigmask_in_libc_works
=yes
22271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22278 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22279 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22281 REPLACE_PTHREAD_SIGMASK
=1
22283 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22290 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22291 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22292 $as_echo_n "(cached) " >&6
22295 gl_save_LIBS
="$LIBS"
22296 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
22297 if test "$cross_compiling" = yes; then :
22300 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
22302 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
22306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22309 #include <pthread.h>
22310 #include <signal.h>
22311 #include <stddef.h>
22315 sigemptyset (&set);
22316 if (pthread_sigmask (1729, &set, NULL) == -1)
22321 if ac_fn_c_try_run
"$LINENO"; then :
22322 gl_cv_func_pthread_sigmask_return_works
=yes
22324 gl_cv_func_pthread_sigmask_return_works
=no
22326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22330 LIBS
="$gl_save_LIBS"
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22334 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22335 case "$gl_cv_func_pthread_sigmask_return_works" in
22337 REPLACE_PTHREAD_SIGMASK
=1
22339 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22345 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22346 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22352 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
22354 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
22356 gl_save_LIBS
="$LIBS"
22357 LIBS
="$LIBS $LIBMULTITHREAD"
22358 if test "$cross_compiling" = yes; then :
22361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22362 /* end confdefs.h. */
22364 #include <pthread.h>
22365 #include <signal.h>
22367 #include <stdlib.h>
22368 #include <unistd.h>
22369 static volatile int sigint_occurred;
22371 sigint_handler (int sig)
22378 int pid = getpid ();
22380 signal (SIGINT, sigint_handler);
22381 sigemptyset (&set);
22382 sigaddset (&set, SIGINT);
22383 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22385 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22386 if (!(system (command) == 0))
22389 if (!(sigint_occurred == 0))
22391 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22393 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22398 if ac_fn_c_try_run
"$LINENO"; then :
22401 gl_cv_func_pthread_sigmask_unblock_works
=no
22403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22407 LIBS
="$gl_save_LIBS"
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22411 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22412 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22414 REPLACE_PTHREAD_SIGMASK
=1
22416 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22422 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22431 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22434 if test $HAVE_PTHREAD_SIGMASK = 1; then
22436 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22446 GNULIB_PTHREAD_SIGMASK
=1
22455 if test $ac_cv_func_readlink = no
; then
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22459 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22460 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22465 #include <unistd.h>
22466 /* Cause compilation failure if original declaration has wrong type. */
22467 ssize_t readlink (const char *, char *, size_t);
22476 if ac_fn_c_try_compile
"$LINENO"; then :
22477 gl_cv_decl_readlink_works
=yes
22479 gl_cv_decl_readlink_works
=no
22481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22484 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22486 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22487 if test "${gl_cv_func_readlink_works+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22490 # We have readlink, so assume ln -s works.
22491 ln -s conftest.no-such conftest.link
22492 ln -s conftest.link conftest.lnk2
22493 if test "$cross_compiling" = yes; then :
22495 # Guess yes on glibc systems.
22496 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22497 # If we don't know, assume the worst.
22498 *) gl_cv_func_readlink_works
="guessing no" ;;
22502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22504 #include <unistd.h>
22510 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22515 if ac_fn_c_try_run
"$LINENO"; then :
22516 gl_cv_func_readlink_works
=yes
22518 gl_cv_func_readlink_works
=no
22520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22524 rm -f conftest.link conftest.lnk2
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22527 $as_echo "$gl_cv_func_readlink_works" >&6; }
22528 case "$gl_cv_func_readlink_works" in
22530 if test "$gl_cv_decl_readlink_works" != yes; then
22536 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22543 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22552 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22580 if test $gl_cv_have_include_next = yes; then
22581 gl_cv_next_signal_h
='<'signal.h
'>'
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22584 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22585 if test "${gl_cv_next_signal_h+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22591 #include <signal.h>
22595 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22596 *) gl_absname_cpp
="$ac_cpp" ;;
22601 gl_dirsep_regex
='[/\\]'
22604 gl_dirsep_regex
='\/'
22607 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22609 gl_header_literal_regex
=`echo 'signal.h' \
22610 | sed -e "$gl_make_literal_regex_sed"`
22611 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22617 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22618 sed -n "$gl_absolute_header_sed"`'"'
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22623 $as_echo "$gl_cv_next_signal_h" >&6; }
22625 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22627 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22629 gl_next_as_first_directive
='<'signal.h
'>'
22631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22632 gl_next_as_first_directive
=$gl_cv_next_signal_h
22634 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22640 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22641 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22642 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22643 #include <signal.h>
22646 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22649 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22658 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22659 #include <signal.h>
22662 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22665 HAVE_SIGHANDLER_T
=0
22671 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22672 /* <sys/types.h> is not needed according to POSIX, but the
22673 <sys/socket.h> in i386-unknown-freebsd4.10 and
22674 powerpc-apple-darwin5.5 required it. */
22675 #include <sys/types.h>
22676 #if HAVE_SYS_SOCKET_H
22677 # include <sys/socket.h>
22678 #elif HAVE_WS2TCPIP_H
22679 # include <ws2tcpip.h>
22683 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22687 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22688 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22689 $as_echo_n "(cached) " >&6
22691 # Systems have either "struct sockaddr *" or
22692 # "void *" as the second argument to getpeername
22693 gl_cv_socklen_t_equiv
=
22694 for arg2
in "struct sockaddr" void
; do
22695 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22697 /* end confdefs.h. */
22698 #include <sys/types.h>
22699 #include <sys/socket.h>
22701 int getpeername (int, $arg2 *, $t *);
22706 getpeername (0, 0, &len);
22711 if ac_fn_c_try_compile
"$LINENO"; then :
22712 gl_cv_socklen_t_equiv
="$t"
22714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22715 test "$gl_cv_socklen_t_equiv" != "" && break
22717 test "$gl_cv_socklen_t_equiv" != "" && break
22722 if test "$gl_cv_socklen_t_equiv" = ""; then
22723 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22726 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22728 cat >>confdefs.h
<<_ACEOF
22729 #define socklen_t $gl_cv_socklen_t_equiv
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22736 $as_echo_n "checking for ssize_t... " >&6; }
22737 if test "${gt_cv_ssize_t+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22741 /* end confdefs.h. */
22742 #include <sys/types.h>
22746 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22752 if ac_fn_c_try_compile
"$LINENO"; then :
22757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22760 $as_echo "$gt_cv_ssize_t" >&6; }
22761 if test $gt_cv_ssize_t = no
; then
22763 $as_echo "#define ssize_t int" >>confdefs.h
22771 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>
22772 #include <sys/stat.h>
22774 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22776 cat >>confdefs.h
<<_ACEOF
22777 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22781 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22782 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22788 #include <sys/types.h>
22789 #include <sys/stat.h>
22790 #if HAVE_SYS_TIME_H
22791 # include <sys/time.h>
22794 struct timespec ts;
22807 if ac_fn_c_try_compile
"$LINENO"; then :
22808 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22810 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22815 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22816 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22818 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22822 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>
22823 #include <sys/stat.h>
22825 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22827 cat >>confdefs.h
<<_ACEOF
22828 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22833 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22834 #include <sys/stat.h>
22836 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22838 cat >>confdefs.h
<<_ACEOF
22839 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22844 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>
22845 #include <sys/stat.h>
22847 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22849 cat >>confdefs.h
<<_ACEOF
22850 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22866 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>
22867 #include <sys/stat.h>
22869 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22871 cat >>confdefs.h
<<_ACEOF
22872 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22877 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22878 #include <sys/stat.h>
22880 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22882 cat >>confdefs.h
<<_ACEOF
22883 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22888 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>
22889 #include <sys/stat.h>
22891 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22893 cat >>confdefs.h
<<_ACEOF
22894 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22907 $as_echo_n "checking for working stdalign.h... " >&6; }
22908 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22913 #include <stdalign.h>
22914 #include <stddef.h>
22916 /* Test that alignof yields a result consistent with offsetof.
22917 This catches GCC bug 52023
22918 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22920 template <class t> struct alignof_helper { char a; t b; };
22921 # define ao(type) offsetof (alignof_helper<type>, b)
22923 # define ao(type) offsetof (struct { char a; type b; }, b)
22925 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22926 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22927 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22929 /* Test _Alignas only on platforms where gnulib can help. */
22931 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22932 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22933 int alignas (8) alignas_int = 1;
22934 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22945 if ac_fn_c_try_compile
"$LINENO"; then :
22946 gl_cv_header_working_stdalign_h
=yes
22948 gl_cv_header_working_stdalign_h
=no
22950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22953 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22955 if test $gl_cv_header_working_stdalign_h = yes; then
22958 STDALIGN_H
='stdalign.h'
22962 if test -n "$STDALIGN_H"; then
22963 GL_GENERATE_STDALIGN_H_TRUE
=
22964 GL_GENERATE_STDALIGN_H_FALSE
='#'
22966 GL_GENERATE_STDALIGN_H_TRUE
='#'
22967 GL_GENERATE_STDALIGN_H_FALSE
=
22973 NEXT_STDARG_H
='<stdarg.h>'
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22975 $as_echo_n "checking for va_copy... " >&6; }
22976 if test "${gl_cv_func_va_copy+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22982 #include <stdarg.h>
22988 void (*func) (va_list, va_list) = va_copy;
22995 if ac_fn_c_try_compile
"$LINENO"; then :
22996 gl_cv_func_va_copy
=yes
22998 gl_cv_func_va_copy
=no
23000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23004 $as_echo "$gl_cv_func_va_copy" >&6; }
23005 if test $gl_cv_func_va_copy = no
; then
23006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h. */
23008 #if defined _AIX && !defined __GNUC__
23013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23014 $EGREP "vaccine" >/dev
/null
2>&1; then :
23021 if test $gl_aixcc = yes; then
23031 if test $gl_cv_have_include_next = yes; then
23032 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23035 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23036 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23037 $as_echo_n "(cached) " >&6
23040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23042 #include <stdarg.h>
23046 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23047 *) gl_absname_cpp
="$ac_cpp" ;;
23052 gl_dirsep_regex
='[/\\]'
23055 gl_dirsep_regex
='\/'
23058 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23060 gl_header_literal_regex
=`echo 'stdarg.h' \
23061 | sed -e "$gl_make_literal_regex_sed"`
23062 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23068 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23069 sed -n "$gl_absolute_header_sed"`'"'
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23074 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23076 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
23078 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23080 gl_next_as_first_directive
='<'stdarg.h
'>'
23082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23083 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
23085 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
23090 if test "$gl_cv_next_stdarg_h" = '""'; then
23091 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
23092 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
23096 saved_as_echo_n
="$as_echo_n"
23098 if test "${gl_cv_func___va_copy+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23104 #include <stdarg.h>
23117 if ac_fn_c_try_compile
"$LINENO"; then :
23118 gl_cv_func___va_copy
=yes
23120 gl_cv_func___va_copy
=no
23122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23125 as_echo_n
="$saved_as_echo_n"
23127 if test $gl_cv_func___va_copy = yes; then
23129 $as_echo "#define va_copy __va_copy" >>confdefs.h
23134 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23140 if test -n "$STDARG_H"; then
23141 GL_GENERATE_STDARG_H_TRUE
=
23142 GL_GENERATE_STDARG_H_FALSE
='#'
23144 GL_GENERATE_STDARG_H_TRUE
='#'
23145 GL_GENERATE_STDARG_H_FALSE
=
23153 # Define two additional variables used in the Makefile substitution.
23155 if test "$ac_cv_header_stdbool_h" = yes; then
23158 STDBOOL_H
='stdbool.h'
23161 if test -n "$STDBOOL_H"; then
23162 GL_GENERATE_STDBOOL_H_TRUE
=
23163 GL_GENERATE_STDBOOL_H_FALSE
='#'
23165 GL_GENERATE_STDBOOL_H_TRUE
='#'
23166 GL_GENERATE_STDBOOL_H_FALSE
=
23170 if test "$ac_cv_type__Bool" = yes; then
23181 if test $gt_cv_c_wchar_t = no
; then
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23186 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23187 if test "${gl_cv_decl_null_works+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 #include <stddef.h>
23193 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23203 if ac_fn_c_try_compile
"$LINENO"; then :
23204 gl_cv_decl_null_works
=yes
23206 gl_cv_decl_null_works
=no
23208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23211 $as_echo "$gl_cv_decl_null_works" >&6; }
23212 if test $gl_cv_decl_null_works = no
; then
23217 if test -n "$STDDEF_H"; then
23218 GL_GENERATE_STDDEF_H_TRUE
=
23219 GL_GENERATE_STDDEF_H_FALSE
='#'
23221 GL_GENERATE_STDDEF_H_TRUE
='#'
23222 GL_GENERATE_STDDEF_H_FALSE
=
23225 if test -n "$STDDEF_H"; then
23234 if test $gl_cv_have_include_next = yes; then
23235 gl_cv_next_stddef_h
='<'stddef.h
'>'
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23238 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23239 if test "${gl_cv_next_stddef_h+set}" = set; then :
23240 $as_echo_n "(cached) " >&6
23243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23245 #include <stddef.h>
23249 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23250 *) gl_absname_cpp
="$ac_cpp" ;;
23255 gl_dirsep_regex
='[/\\]'
23258 gl_dirsep_regex
='\/'
23261 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23263 gl_header_literal_regex
=`echo 'stddef.h' \
23264 | sed -e "$gl_make_literal_regex_sed"`
23265 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23271 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23272 sed -n "$gl_absolute_header_sed"`'"'
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23277 $as_echo "$gl_cv_next_stddef_h" >&6; }
23279 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23281 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23282 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23283 gl_next_as_first_directive
='<'stddef.h
'>'
23285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23286 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23288 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23307 if test $gl_cv_have_include_next = yes; then
23308 gl_cv_next_stdio_h
='<'stdio.h
'>'
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23311 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23312 if test "${gl_cv_next_stdio_h+set}" = set; then :
23313 $as_echo_n "(cached) " >&6
23316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23322 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23323 *) gl_absname_cpp
="$ac_cpp" ;;
23328 gl_dirsep_regex
='[/\\]'
23331 gl_dirsep_regex
='\/'
23334 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23336 gl_header_literal_regex
=`echo 'stdio.h' \
23337 | sed -e "$gl_make_literal_regex_sed"`
23338 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23339 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23344 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23345 sed -n "$gl_absolute_header_sed"`'"'
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23350 $as_echo "$gl_cv_next_stdio_h" >&6; }
23352 NEXT_STDIO_H
=$gl_cv_next_stdio_h
23354 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23356 gl_next_as_first_directive
='<'stdio.h
'>'
23358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23359 gl_next_as_first_directive
=$gl_cv_next_stdio_h
23361 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
23370 cat >>confdefs.h
<<_ACEOF
23371 #define GNULIB_FSCANF 1
23378 cat >>confdefs.h
<<_ACEOF
23379 #define GNULIB_SCANF 1
23415 if test $gl_cv_have_include_next = yes; then
23416 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23419 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23420 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23421 $as_echo_n "(cached) " >&6
23424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23425 /* end confdefs.h. */
23426 #include <stdlib.h>
23430 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23431 *) gl_absname_cpp
="$ac_cpp" ;;
23436 gl_dirsep_regex
='[/\\]'
23439 gl_dirsep_regex
='\/'
23442 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23444 gl_header_literal_regex
=`echo 'stdlib.h' \
23445 | sed -e "$gl_make_literal_regex_sed"`
23446 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23452 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23453 sed -n "$gl_absolute_header_sed"`'"'
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23458 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23460 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
23462 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23464 gl_next_as_first_directive
='<'stdlib.h
'>'
23466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23467 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
23469 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
23479 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23487 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23496 if test "$ac_cv_have_decl_strtoimax" != yes; then
23497 HAVE_DECL_STRTOIMAX
=0
23500 if test $ac_cv_func_strtoimax = yes; then
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23503 $as_echo_n "checking whether strtoimax works... " >&6; }
23504 if test "${gl_cv_func_strtoimax+set}" = set; then :
23505 $as_echo_n "(cached) " >&6
23507 if test "$cross_compiling" = yes; then :
23509 # Guess no on AIX 5.
23510 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
23511 # Guess yes otherwise.
23512 *) gl_cv_func_strtoimax
="guessing yes" ;;
23516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23520 #include <string.h>
23521 #include <inttypes.h>
23524 if (sizeof (intmax_t) > sizeof (int))
23526 const char *s = "4294967295";
23530 res = strtoimax (s, &p, 10);
23531 if (p != s + strlen (s))
23535 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23540 const char *s = "2147483647";
23544 res = strtoimax (s, &p, 10);
23545 if (p != s + strlen (s))
23549 if (res != 2147483647)
23556 if ac_fn_c_try_run
"$LINENO"; then :
23557 gl_cv_func_strtoimax
=yes
23559 gl_cv_func_strtoimax
=no
23561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23568 $as_echo "$gl_cv_func_strtoimax" >&6; }
23569 case "$gl_cv_func_strtoimax" in
23570 *no
) REPLACE_STRTOIMAX
=1 ;;
23576 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23585 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23588 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23589 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23595 cat >>confdefs.h
<<_ACEOF
23596 #define HAVE_DECL_STRTOLL $ac_have_decl
23617 if test "$ac_cv_have_decl_strtoumax" != yes; then
23618 HAVE_DECL_STRTOUMAX
=0
23621 if test $ac_cv_func_strtoumax = no
; then
23630 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23633 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23634 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23640 cat >>confdefs.h
<<_ACEOF
23641 #define HAVE_DECL_STRTOULL $ac_have_decl
23660 if test $ac_cv_func_symlink = no
; then
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23664 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23665 if test "${gl_cv_func_symlink_works+set}" = set; then :
23666 $as_echo_n "(cached) " >&6
23668 if test "$cross_compiling" = yes; then :
23670 # Guess yes on glibc systems.
23671 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23672 # If we don't know, assume the worst.
23673 *) gl_cv_func_symlink_works
="guessing no" ;;
23677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23678 /* end confdefs.h. */
23679 #include <unistd.h>
23685 if (!symlink ("a", "conftest.link/"))
23687 if (symlink ("conftest.f", "conftest.lnk2"))
23689 else if (!symlink ("a", "conftest.lnk2/"))
23697 if ac_fn_c_try_run
"$LINENO"; then :
23698 gl_cv_func_symlink_works
=yes
23700 gl_cv_func_symlink_works
=no
23702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23706 rm -f conftest.f conftest.link conftest.lnk2
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23709 $as_echo "$gl_cv_func_symlink_works" >&6; }
23710 case "$gl_cv_func_symlink_works" in
23718 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23727 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23745 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23746 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23752 #include <sys/select.h>
23761 if ac_fn_c_try_compile
"$LINENO"; then :
23762 gl_cv_header_sys_select_h_selfcontained
=yes
23764 gl_cv_header_sys_select_h_selfcontained
=no
23766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23767 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770 #include <sys/select.h>
23774 int memset; int bzero;
23780 if ac_fn_c_try_compile
"$LINENO"; then :
23781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783 #include <sys/select.h>
23789 #define memset nonexistent_memset
23794 void *memset (void *, int, unsigned long);
23796 #define bzero nonexistent_bzero
23801 void bzero (void *, unsigned long);
23810 if ac_fn_c_try_link
"$LINENO"; then :
23813 gl_cv_header_sys_select_h_selfcontained
=no
23815 rm -f core conftest.err conftest.
$ac_objext \
23816 conftest
$ac_exeext conftest.
$ac_ext
23819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23824 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23834 if test $gl_cv_have_include_next = yes; then
23835 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23838 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23839 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23843 if test $ac_cv_header_sys_select_h = yes; then
23846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848 #include <sys/select.h>
23852 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23853 *) gl_absname_cpp
="$ac_cpp" ;;
23858 gl_dirsep_regex
='[/\\]'
23861 gl_dirsep_regex
='\/'
23864 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23866 gl_header_literal_regex
=`echo 'sys/select.h' \
23867 | sed -e "$gl_make_literal_regex_sed"`
23868 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23869 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23874 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23875 sed -n "$gl_absolute_header_sed"`'"'
23877 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23883 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23885 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23887 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23889 gl_next_as_first_directive
='<'sys
/select.h
'>'
23891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23892 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23894 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23899 if test $ac_cv_header_sys_select_h = yes; then
23900 HAVE_SYS_SELECT_H
=1
23902 HAVE_SYS_SELECT_H
=0
23909 if test $ac_cv_header_sys_socket_h != yes; then
23910 for ac_header
in winsock2.h
23912 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23913 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23914 cat >>confdefs.h
<<_ACEOF
23915 #define HAVE_WINSOCK2_H 1
23923 if test "$ac_cv_header_winsock2_h" = yes; then
23925 UNISTD_H_HAVE_WINSOCK2_H
=1
23926 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23952 if test $gl_cv_have_include_next = yes; then
23953 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23956 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23957 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23961 if test $ac_cv_header_sys_stat_h = yes; then
23964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h. */
23966 #include <sys/stat.h>
23970 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23971 *) gl_absname_cpp
="$ac_cpp" ;;
23976 gl_dirsep_regex
='[/\\]'
23979 gl_dirsep_regex
='\/'
23982 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23984 gl_header_literal_regex
=`echo 'sys/stat.h' \
23985 | sed -e "$gl_make_literal_regex_sed"`
23986 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23992 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23993 sed -n "$gl_absolute_header_sed"`'"'
23995 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24001 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24003 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24005 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24007 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24010 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24012 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24024 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24026 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24030 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24031 #include <sys/stat.h>
24033 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
24037 $as_echo "#define nlink_t int" >>confdefs.h
24058 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24060 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
24066 cat >>confdefs.h
<<_ACEOF
24067 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24070 if test $ac_cv_have_decl_localtime_r = no
; then
24071 HAVE_DECL_LOCALTIME_R
=0
24075 if test $ac_cv_func_localtime_r = yes; then
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24078 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24079 if test "${gl_cv_time_r_posix+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h. */
24088 /* We don't need to append 'restrict's to the argument types,
24089 even though the POSIX signature has the 'restrict's,
24090 since C99 says they can't affect type compatibility. */
24091 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24093 /* Check the return type is a pointer.
24094 On HP-UX 10 it is 'int'. */
24095 *localtime_r (0, 0);
24101 if ac_fn_c_try_compile
"$LINENO"; then :
24102 gl_cv_time_r_posix
=yes
24104 gl_cv_time_r_posix
=no
24106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24110 $as_echo "$gl_cv_time_r_posix" >&6; }
24111 if test $gl_cv_time_r_posix = yes; then
24112 REPLACE_LOCALTIME_R
=0
24114 REPLACE_LOCALTIME_R
=1
24120 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
24129 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
24153 gl_saved_libs
=$LIBS
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24155 $as_echo_n "checking for library containing timer_settime... " >&6; }
24156 if test "${ac_cv_search_timer_settime+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24159 ac_func_search_save_LIBS
=$LIBS
24160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24161 /* end confdefs.h. */
24163 /* Override any GCC internal prototype to avoid an error.
24164 Use char because int might match the return type of a GCC
24165 builtin and then its argument prototype would still apply. */
24169 char timer_settime ();
24173 return timer_settime ();
24178 for ac_lib
in '' rt posix4
; do
24179 if test -z "$ac_lib"; then
24180 ac_res
="none required"
24183 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24185 if ac_fn_c_try_link
"$LINENO"; then :
24186 ac_cv_search_timer_settime
=$ac_res
24188 rm -f core conftest.err conftest.
$ac_objext \
24190 if test "${ac_cv_search_timer_settime+set}" = set; then :
24194 if test "${ac_cv_search_timer_settime+set}" = set; then :
24197 ac_cv_search_timer_settime
=no
24199 rm conftest.
$ac_ext
24200 LIBS
=$ac_func_search_save_LIBS
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24203 $as_echo "$ac_cv_search_timer_settime" >&6; }
24204 ac_res
=$ac_cv_search_timer_settime
24205 if test "$ac_res" != no
; then :
24206 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24207 test "$ac_cv_search_timer_settime" = "none required" ||
24208 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
24211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24212 /* end confdefs.h. */
24214 #include <features.h>
24215 #ifdef __GNU_LIBRARY__
24216 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24217 && !defined __UCLIBC__
24218 Thread emulation available
24223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24224 $EGREP "Thread" >/dev
/null
2>&1; then :
24225 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
24229 for ac_func
in timer_settime
24231 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24232 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
24233 cat >>confdefs.h
<<_ACEOF
24234 #define HAVE_TIMER_SETTIME 1
24240 LIBS
=$gl_saved_libs
24256 if test $gl_cv_have_include_next = yes; then
24257 gl_cv_next_unistd_h
='<'unistd.h
'>'
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24260 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24261 if test "${gl_cv_next_unistd_h+set}" = set; then :
24262 $as_echo_n "(cached) " >&6
24265 if test $ac_cv_header_unistd_h = yes; then
24268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24270 #include <unistd.h>
24274 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24275 *) gl_absname_cpp
="$ac_cpp" ;;
24280 gl_dirsep_regex
='[/\\]'
24283 gl_dirsep_regex
='\/'
24286 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24288 gl_header_literal_regex
=`echo 'unistd.h' \
24289 | sed -e "$gl_make_literal_regex_sed"`
24290 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24296 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24297 sed -n "$gl_absolute_header_sed"`'"'
24299 gl_cv_next_unistd_h
='<'unistd.h
'>'
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24305 $as_echo "$gl_cv_next_unistd_h" >&6; }
24307 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
24309 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24311 gl_next_as_first_directive
='<'unistd.h
'>'
24313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24314 gl_next_as_first_directive
=$gl_cv_next_unistd_h
24316 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
24321 if test $ac_cv_header_unistd_h = yes; then
24340 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24342 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24343 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24346 touch conftest.
file
24347 if test "$cross_compiling" = yes; then :
24349 # Guess yes on glibc systems.
24350 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
24351 # If we don't know, assume the worst.
24352 *) gl_cv_func_futimesat_works
="guessing no" ;;
24356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24357 /* end confdefs.h. */
24359 #include <stddef.h>
24360 #include <sys/times.h>
24366 int fd = open ("conftest.file", O_RDWR);
24367 if (fd < 0) return 1;
24368 if (futimesat (fd, NULL, NULL)) return 2;
24374 if ac_fn_c_try_run
"$LINENO"; then :
24375 gl_cv_func_futimesat_works
=yes
24377 gl_cv_func_futimesat_works
=no
24379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24383 rm -f conftest.
file
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24386 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24387 case "$gl_cv_func_futimesat_works" in
24391 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24397 gl_gnulib_enabled_dosname
=false
24398 gl_gnulib_enabled_euidaccess
=false
24399 gl_gnulib_enabled_getgroups
=false
24400 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
24401 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
24402 gl_gnulib_enabled_pathmax
=false
24403 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
24404 gl_gnulib_enabled_stat
=false
24405 gl_gnulib_enabled_strtoll
=false
24406 gl_gnulib_enabled_strtoull
=false
24407 gl_gnulib_enabled_verify
=false
24408 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
24409 func_gl_gnulib_m4code_dosname
()
24411 if ! $gl_gnulib_enabled_dosname; then
24412 gl_gnulib_enabled_dosname
=true
24415 func_gl_gnulib_m4code_euidaccess
()
24417 if ! $gl_gnulib_enabled_euidaccess; then
24423 for ac_func
in euidaccess
24425 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24426 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
24427 cat >>confdefs.h
<<_ACEOF
24428 #define HAVE_EUIDACCESS 1
24434 if test $ac_cv_func_euidaccess = no
; then
24438 if test $HAVE_EUIDACCESS = 0; then
24447 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
24451 for ac_header
in libgen.h
24453 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24454 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
24455 cat >>confdefs.h
<<_ACEOF
24456 #define HAVE_LIBGEN_H 1
24464 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
24465 if test "x$ac_cv_func_getgroups" = x
""yes; then :
24470 # If we don't yet have getgroups, see if it's in -lbsd.
24471 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24473 if test $ac_cv_func_getgroups = no
; then
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24475 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24476 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24477 $as_echo_n "(cached) " >&6
24479 ac_check_lib_save_LIBS
=$LIBS
24481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24482 /* end confdefs.h. */
24484 /* Override any GCC internal prototype to avoid an error.
24485 Use char because int might match the return type of a GCC
24486 builtin and then its argument prototype would still apply. */
24494 return getgroups ();
24499 if ac_fn_c_try_link
"$LINENO"; then :
24500 ac_cv_lib_bsd_getgroups
=yes
24502 ac_cv_lib_bsd_getgroups
=no
24504 rm -f core conftest.err conftest.
$ac_objext \
24505 conftest
$ac_exeext conftest.
$ac_ext
24506 LIBS
=$ac_check_lib_save_LIBS
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24509 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24510 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
24511 GETGROUPS_LIB
=-lbsd
24516 # Run the program to test the functionality of the system-supplied
24517 # getgroups function only if there is such a function.
24518 if test $ac_cv_func_getgroups = yes; then
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24520 $as_echo_n "checking for working getgroups... " >&6; }
24521 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24522 $as_echo_n "(cached) " >&6
24524 if test "$cross_compiling" = yes; then :
24525 case "$host_os" in # ((
24526 # Guess yes on glibc systems.
24527 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
24528 # If we don't know, assume the worst.
24529 *) ac_cv_func_getgroups_works
="guessing no" ;;
24533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24534 /* end confdefs.h. */
24535 $ac_includes_default
24539 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24540 return getgroups (0, 0) == -1;
24546 if ac_fn_c_try_run
"$LINENO"; then :
24547 ac_cv_func_getgroups_works
=yes
24549 ac_cv_func_getgroups_works
=no
24551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24558 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24560 ac_cv_func_getgroups_works
=no
24562 case "$ac_cv_func_getgroups_works" in
24565 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24572 # Solaris 9 and 10 need -lgen to get the eaccess function.
24573 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24574 # programs in the package would end up linked with that potentially-shared
24575 # library, inducing unnecessary run-time overhead.
24578 gl_saved_libs
=$LIBS
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24580 $as_echo_n "checking for library containing eaccess... " >&6; }
24581 if test "${ac_cv_search_eaccess+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24584 ac_func_search_save_LIBS
=$LIBS
24585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24586 /* end confdefs.h. */
24588 /* Override any GCC internal prototype to avoid an error.
24589 Use char because int might match the return type of a GCC
24590 builtin and then its argument prototype would still apply. */
24603 for ac_lib
in '' gen
; do
24604 if test -z "$ac_lib"; then
24605 ac_res
="none required"
24608 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24610 if ac_fn_c_try_link
"$LINENO"; then :
24611 ac_cv_search_eaccess
=$ac_res
24613 rm -f core conftest.err conftest.
$ac_objext \
24615 if test "${ac_cv_search_eaccess+set}" = set; then :
24619 if test "${ac_cv_search_eaccess+set}" = set; then :
24622 ac_cv_search_eaccess
=no
24624 rm conftest.
$ac_ext
24625 LIBS
=$ac_func_search_save_LIBS
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24628 $as_echo "$ac_cv_search_eaccess" >&6; }
24629 ac_res
=$ac_cv_search_eaccess
24630 if test "$ac_res" != no
; then :
24631 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24632 test "$ac_cv_search_eaccess" = "none required" ||
24633 LIB_EACCESS
=$ac_cv_search_eaccess
24636 for ac_func
in eaccess
24638 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
24639 if test "x$ac_cv_func_eaccess" = x
""yes; then :
24640 cat >>confdefs.h
<<_ACEOF
24641 #define HAVE_EACCESS 1
24647 LIBS
=$gl_saved_libs
24655 GNULIB_EUIDACCESS
=1
24661 gl_gnulib_enabled_euidaccess
=true
24662 if test $HAVE_EUIDACCESS = 0; then
24663 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24665 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24666 if test $HAVE_EUIDACCESS = 0; then
24667 func_gl_gnulib_m4code_stat
24671 func_gl_gnulib_m4code_getgroups
()
24673 if ! $gl_gnulib_enabled_getgroups; then
24679 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
24680 if test "x$ac_cv_func_getgroups" = x
""yes; then :
24685 # If we don't yet have getgroups, see if it's in -lbsd.
24686 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24688 if test $ac_cv_func_getgroups = no
; then
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24690 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24691 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24694 ac_check_lib_save_LIBS
=$LIBS
24696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24697 /* end confdefs.h. */
24699 /* Override any GCC internal prototype to avoid an error.
24700 Use char because int might match the return type of a GCC
24701 builtin and then its argument prototype would still apply. */
24709 return getgroups ();
24714 if ac_fn_c_try_link
"$LINENO"; then :
24715 ac_cv_lib_bsd_getgroups
=yes
24717 ac_cv_lib_bsd_getgroups
=no
24719 rm -f core conftest.err conftest.
$ac_objext \
24720 conftest
$ac_exeext conftest.
$ac_ext
24721 LIBS
=$ac_check_lib_save_LIBS
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24724 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24725 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
24726 GETGROUPS_LIB
=-lbsd
24731 # Run the program to test the functionality of the system-supplied
24732 # getgroups function only if there is such a function.
24733 if test $ac_cv_func_getgroups = yes; then
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24735 $as_echo_n "checking for working getgroups... " >&6; }
24736 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24739 if test "$cross_compiling" = yes; then :
24740 case "$host_os" in # ((
24741 # Guess yes on glibc systems.
24742 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
24743 # If we don't know, assume the worst.
24744 *) ac_cv_func_getgroups_works
="guessing no" ;;
24748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24749 /* end confdefs.h. */
24750 $ac_includes_default
24754 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24755 return getgroups (0, 0) == -1;
24761 if ac_fn_c_try_run
"$LINENO"; then :
24762 ac_cv_func_getgroups_works
=yes
24764 ac_cv_func_getgroups_works
=no
24766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24773 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24775 ac_cv_func_getgroups_works
=no
24777 case "$ac_cv_func_getgroups_works" in
24780 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24786 if test $ac_cv_func_getgroups != yes; then
24789 if test "$ac_cv_type_getgroups" != gid_t \
24790 ||
{ case "$ac_cv_func_getgroups_works" in
24795 REPLACE_GETGROUPS
=1
24797 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24801 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24802 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24805 if test "$cross_compiling" = yes; then :
24807 # Guess yes on glibc systems.
24808 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
24809 # If we don't know, assume the worst.
24810 *) gl_cv_func_getgroups_works
="guessing no" ;;
24814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24816 $ac_includes_default
24820 int size = getgroups (0, 0);
24821 gid_t *list = malloc (size * sizeof *list);
24822 return getgroups (-1, list) != -1;
24827 if ac_fn_c_try_run
"$LINENO"; then :
24828 gl_cv_func_getgroups_works
=yes
24830 gl_cv_func_getgroups_works
=no
24832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24838 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24839 case "$gl_cv_func_getgroups_works" in
24841 *) REPLACE_GETGROUPS
=1 ;;
24845 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
24847 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
24856 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
24870 gl_gnulib_enabled_getgroups
=true
24873 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
24875 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24878 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
24881 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
24883 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24889 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
24890 if test "x$ac_cv_func_group_member" = x
""yes; then :
24894 HAVE_GROUP_MEMBER
=0
24899 if test $HAVE_GROUP_MEMBER = 0; then
24908 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
24919 GNULIB_GROUP_MEMBER
=1
24925 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
24926 if test $HAVE_GROUP_MEMBER = 0; then
24927 func_gl_gnulib_m4code_getgroups
24929 if test $HAVE_GROUP_MEMBER = 0; then
24930 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24934 func_gl_gnulib_m4code_pathmax
()
24936 if ! $gl_gnulib_enabled_pathmax; then
24940 gl_gnulib_enabled_pathmax
=true
24943 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
24945 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24946 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
24949 func_gl_gnulib_m4code_stat
()
24951 if ! $gl_gnulib_enabled_stat; then
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24956 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24957 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24960 if test "$cross_compiling" = yes; then :
24962 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
24963 *) gl_cv_func_stat_dir_slash
="guessing yes";;
24966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24967 /* end confdefs.h. */
24968 #include <sys/stat.h>
24973 struct stat st; return stat (".", &st) != stat ("./", &st);
24978 if ac_fn_c_try_run
"$LINENO"; then :
24979 gl_cv_func_stat_dir_slash
=yes
24981 gl_cv_func_stat_dir_slash
=no
24983 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24984 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24989 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24991 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24992 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24993 $as_echo_n "(cached) " >&6
24996 # Assume that if we have lstat, we can also check symlinks.
24997 if test $ac_cv_func_lstat = yes; then
24998 ln -s conftest.tmp conftest.lnk
25000 if test "$cross_compiling" = yes; then :
25002 # Guess yes on glibc systems.
25003 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25004 # If we don't know, assume the worst.
25005 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25011 #include <sys/stat.h>
25018 if (!stat ("conftest.tmp/", &st))
25021 if (!stat ("conftest.lnk/", &st))
25030 if ac_fn_c_try_run
"$LINENO"; then :
25031 gl_cv_func_stat_file_slash
=yes
25033 gl_cv_func_stat_file_slash
=no
25035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25036 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25039 rm -f conftest.tmp conftest.lnk
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25042 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25043 case $gl_cv_func_stat_dir_slash in
25044 *no
) REPLACE_STAT
=1
25046 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25049 case $gl_cv_func_stat_file_slash in
25050 *no
) REPLACE_STAT
=1
25052 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25056 if test $REPLACE_STAT = 1; then
25065 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25083 gl_gnulib_enabled_stat
=true
25084 if test $REPLACE_STAT = 1; then
25085 func_gl_gnulib_m4code_dosname
25087 if test $REPLACE_STAT = 1; then
25088 func_gl_gnulib_m4code_pathmax
25090 if test $REPLACE_STAT = 1; then
25091 func_gl_gnulib_m4code_verify
25095 func_gl_gnulib_m4code_strtoll
()
25097 if ! $gl_gnulib_enabled_strtoll; then
25101 if test "$ac_cv_type_long_long_int" = yes; then
25102 for ac_func
in strtoll
25104 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
25105 if test "x$ac_cv_func_strtoll" = x
""yes; then :
25106 cat >>confdefs.h
<<_ACEOF
25107 #define HAVE_STRTOLL 1
25113 if test $ac_cv_func_strtoll = no
; then
25118 if test $HAVE_STRTOLL = 0; then
25127 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
25144 gl_gnulib_enabled_strtoll
=true
25147 func_gl_gnulib_m4code_strtoull
()
25149 if ! $gl_gnulib_enabled_strtoull; then
25153 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25154 for ac_func
in strtoull
25156 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
25157 if test "x$ac_cv_func_strtoull" = x
""yes; then :
25158 cat >>confdefs.h
<<_ACEOF
25159 #define HAVE_STRTOULL 1
25165 if test $ac_cv_func_strtoull = no
; then
25170 if test $HAVE_STRTOULL = 0; then
25179 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
25196 gl_gnulib_enabled_strtoull
=true
25199 func_gl_gnulib_m4code_verify
()
25201 if ! $gl_gnulib_enabled_verify; then
25202 gl_gnulib_enabled_verify
=true
25205 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
25207 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25208 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
25211 if test $HAVE_FACCESSAT = 0; then
25212 func_gl_gnulib_m4code_dosname
25214 if test $HAVE_FACCESSAT = 0; then
25215 func_gl_gnulib_m4code_euidaccess
25217 if test $REPLACE_GETOPT = 1; then
25218 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25220 if test $REPLACE_LSTAT = 1; then
25221 func_gl_gnulib_m4code_dosname
25223 if test $REPLACE_LSTAT = 1; then
25224 func_gl_gnulib_m4code_stat
25226 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25227 func_gl_gnulib_m4code_stat
25229 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25230 func_gl_gnulib_m4code_strtoll
25232 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
25233 func_gl_gnulib_m4code_verify
25235 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
25236 func_gl_gnulib_m4code_strtoull
25238 if test $ac_cv_func_strtoumax = no
; then
25239 func_gl_gnulib_m4code_verify
25242 if $gl_gnulib_enabled_dosname; then
25243 gl_GNULIB_ENABLED_dosname_TRUE
=
25244 gl_GNULIB_ENABLED_dosname_FALSE
='#'
25246 gl_GNULIB_ENABLED_dosname_TRUE
='#'
25247 gl_GNULIB_ENABLED_dosname_FALSE
=
25250 if $gl_gnulib_enabled_euidaccess; then
25251 gl_GNULIB_ENABLED_euidaccess_TRUE
=
25252 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
25254 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
25255 gl_GNULIB_ENABLED_euidaccess_FALSE
=
25258 if $gl_gnulib_enabled_getgroups; then
25259 gl_GNULIB_ENABLED_getgroups_TRUE
=
25260 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
25262 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
25263 gl_GNULIB_ENABLED_getgroups_FALSE
=
25266 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25267 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
25268 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
25270 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
25271 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
25274 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25275 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
25276 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
25278 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
25279 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
25282 if $gl_gnulib_enabled_pathmax; then
25283 gl_GNULIB_ENABLED_pathmax_TRUE
=
25284 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
25286 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
25287 gl_GNULIB_ENABLED_pathmax_FALSE
=
25290 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25291 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
25292 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
25294 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
25295 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
25298 if $gl_gnulib_enabled_stat; then
25299 gl_GNULIB_ENABLED_stat_TRUE
=
25300 gl_GNULIB_ENABLED_stat_FALSE
='#'
25302 gl_GNULIB_ENABLED_stat_TRUE
='#'
25303 gl_GNULIB_ENABLED_stat_FALSE
=
25306 if $gl_gnulib_enabled_strtoll; then
25307 gl_GNULIB_ENABLED_strtoll_TRUE
=
25308 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
25310 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
25311 gl_GNULIB_ENABLED_strtoll_FALSE
=
25314 if $gl_gnulib_enabled_strtoull; then
25315 gl_GNULIB_ENABLED_strtoull_TRUE
=
25316 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
25318 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
25319 gl_GNULIB_ENABLED_strtoull_FALSE
=
25322 if $gl_gnulib_enabled_verify; then
25323 gl_GNULIB_ENABLED_verify_TRUE
=
25324 gl_GNULIB_ENABLED_verify_FALSE
='#'
25326 gl_GNULIB_ENABLED_verify_TRUE
='#'
25327 gl_GNULIB_ENABLED_verify_FALSE
=
25330 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25331 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
25332 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
25334 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
25335 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
25338 # End of code from modules
25359 gl_source_base
='tests'
25360 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
25362 gl_module_indicator_condition
=$gltests_WITNESS
25373 LIBGNU_LIBDEPS
="$gl_libdeps"
25375 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
25378 CFLAGS
=$SAVE_CFLAGS
25382 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
25385 ## The -headerpad option tells ld (see man page) to leave room at the
25386 ## end of the header for adding load commands. Needed for dumping.
25387 ## 0x690 is the total size of 30 segment load commands (at 56
25388 ## each); under Cocoa 31 commands are required.
25389 if test "$HAVE_NS" = "yes"; then
25390 libs_nsgui
="-framework AppKit"
25391 headerpad_extra
=6C8
25394 headerpad_extra
=690
25396 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25398 ## This is here because src/Makefile.in did some extra fiddling around
25399 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25400 ## #ifndef LD_SWITCH_SYSTEM
25401 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25402 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25403 ## not using gcc, darwin.
25404 ## Because this was done in src/Makefile.in, the resulting part of
25405 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25406 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25407 ## rather than LD_SWITCH_SYSTEM.
25408 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25409 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
25412 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25413 ## find X at run-time.
25414 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25415 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25416 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25417 ## had different values in configure (in ac_link) and src/Makefile.in.
25418 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25419 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25421 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
25424 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25425 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25434 ## gnu: GNU needs its own crt0.
25435 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
25437 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25438 ## library search parth, i.e. it won't search /usr/lib for libc and
25439 ## friends. Using -nostartfiles instead avoids this problem, and
25440 ## will also work on earlier NetBSD releases.
25441 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
25443 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25444 ## MkLinux/LinuxPPC needs this.
25445 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25447 case "$canonical" in
25448 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
25454 if test "x$ORDINARY_LINK" = "xyes"; then
25458 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25461 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25462 ## freebsd, gnu-* not on powerpc*|s390x*.
25463 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25465 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25466 ## places that are difficult to figure out at make time. Fortunately,
25467 ## these same versions allow you to pass arbitrary flags on to the
25468 ## linker, so there is no reason not to use it as a linker.
25470 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25471 ## searching for libraries in its internal directories, so we have to
25472 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25473 LD_FIRSTFLAG
="-nostdlib"
25476 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25477 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
25482 ## FIXME? The logic here is not precisely the same as that above.
25483 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25484 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25486 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25489 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
25492 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25493 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25499 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25500 ## immediately undefine it again and redefine it to empty.
25501 ## Was the C_SWITCH_X_SITE part really necessary?
25502 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25508 ## Ask GCC where to find libgcc.a.
25509 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25513 ## Common for all window systems
25514 if test "$window_system" != "none"; then
25516 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25519 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
25521 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
25528 #### Report on what we decided to do.
25529 #### Report GTK as a toolkit, even if it doesn't use Xt.
25530 #### It makes printing result more understandable as using GTK sets
25531 #### toolkit_scroll_bars to yes by default.
25532 if test "${HAVE_GTK}" = "yes"; then
25533 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
25537 Configured for \`${canonical}'.
25539 Where should the build process find the source code? ${srcdir}
25540 What compiler should emacs be built with? ${CC} ${CFLAGS}
25541 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25542 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25543 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25544 What window system should Emacs use? ${window_system}
25545 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25547 if test -n "${x_includes}"; then
25548 echo " Where do we find X Windows header files? ${x_includes}"
25550 echo " Where do we find X Windows header files? Standard dirs"
25552 if test -n "${x_libraries}"; then
25553 echo " Where do we find X Windows libraries? ${x_libraries}"
25555 echo " Where do we find X Windows libraries? Standard dirs"
25558 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25559 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25560 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25561 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25562 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25563 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25564 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25565 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25567 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25568 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25569 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25570 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25571 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25572 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25573 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25575 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25576 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25577 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25578 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25580 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25583 if test -n "${EMACSDATA}"; then
25584 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25586 if test -n "${EMACSDOC}"; then
25587 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25592 if test "$HAVE_NS" = "yes"; then
25594 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25595 The installed application will go to nextstep/Emacs.app and can be
25596 run or moved from there."
25597 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25598 echo "The application will be fully self-contained."
25600 echo "The lisp resources for the application will be installed under ${prefix}.
25601 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25602 to run if these resources are not installed."
25607 if test "${opsys}" = "cygwin"; then
25609 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25610 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25616 # Remove any trailing slashes in these variables.
25617 test "${prefix}" != NONE
&&
25618 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25619 test "${exec_prefix}" != NONE
&&
25620 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25622 if test "$HAVE_NS" = "yes"; then
25623 if test "$NS_IMPL_GNUSTEP" = yes; then
25624 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"
25627 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"
25632 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"
25634 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"
25637 opt_makefile
=test
/automated
/Makefile
25639 if test -f $srcdir/${opt_makefile}.
in; then
25640 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
25641 ac_config_files
="$ac_config_files test/automated/Makefile"
25646 opt_makefile
=admin
/unidata
/Makefile
25648 if test -f $srcdir/${opt_makefile}.
in; then
25649 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
25650 ac_config_files
="$ac_config_files admin/unidata/Makefile"
25655 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25659 ac_config_commands
="$ac_config_commands mkdirs"
25662 ac_config_commands
="$ac_config_commands epaths"
25665 ac_config_commands
="$ac_config_commands gdbinit"
25668 cat >confcache
<<\_ACEOF
25669 # This file is a shell script that caches the results of configure
25670 # tests run on this system so they can be shared between configure
25671 # scripts and configure runs, see configure's option --config-cache.
25672 # It is not useful on other systems. If it contains results you don't
25673 # want to keep, you may remove or edit it.
25675 # config.status only pays attention to the cache file if you give it
25676 # the --recheck option to rerun configure.
25678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25680 # following values.
25684 # The following way of writing the cache mishandles newlines in values,
25685 # but we know of no workaround that is simple, portable, and efficient.
25686 # So, we kill variables containing newlines.
25687 # Ultrix sh set writes to stderr and can't be redirected directly,
25688 # and sets the high bit in the cache file unless we assign to the vars.
25690 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25691 eval ac_val
=\$
$ac_var
25695 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25699 _ | IFS | as_nl
) ;; #(
25700 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25701 *) { eval $ac_var=; unset $ac_var;} ;;
25707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25708 *${as_nl}ac_space
=\
*)
25709 # `set' does not quote correctly, so add quotes: double-quote
25710 # substitution turns \\\\ into \\, and sed turns \\ into \.
25713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25716 # `set' quotes correctly as required by POSIX, so do not add quotes.
25717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25730 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25731 if test -w "$cache_file"; then
25732 test "x$cache_file" != "x/dev/null" &&
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25734 $as_echo "$as_me: updating cache $cache_file" >&6;}
25735 cat confcache
>$cache_file
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25743 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25744 # Let make expand exec_prefix.
25745 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25747 DEFS
=-DHAVE_CONFIG_H
25751 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25752 # 1. Remove the extension, and $U if already installed.
25753 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25754 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25756 # will be set to the directory where LIBOBJS objects are built.
25757 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25758 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25760 LIBOBJS
=$ac_libobjs
25762 LTLIBOBJS
=$ac_ltlibobjs
25765 if test -n "$EXEEXT"; then
25767 am__EXEEXT_FALSE
='#'
25769 am__EXEEXT_TRUE
='#'
25773 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25774 as_fn_error
"conditional \"AMDEP\" was never defined.
25775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25777 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25778 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
25779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25781 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25782 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
25783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25785 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25786 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25790 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25791 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25794 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25795 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
25796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25798 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25799 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25802 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25803 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
25804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25806 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25807 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25810 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25811 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25814 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25815 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25818 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25819 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25822 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25823 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25826 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25827 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25830 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25831 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25834 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25835 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25838 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25839 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25842 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25843 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25846 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25847 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25850 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25851 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25854 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25855 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25858 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25859 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25865 if test -n "$gl_LIBOBJS"; then
25866 # Remove the extension.
25867 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25868 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25869 gl_libobjs
="$gl_libobjs $i.$ac_objext"
25870 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
25873 gl_LIBOBJS
=$gl_libobjs
25875 gl_LTLIBOBJS
=$gl_ltlibobjs
25881 if test -n "$gltests_LIBOBJS"; then
25882 # Remove the extension.
25883 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25884 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25885 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
25886 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
25889 gltests_LIBOBJS
=$gltests_libobjs
25891 gltests_LTLIBOBJS
=$gltests_ltlibobjs
25895 : ${CONFIG_STATUS=./config.status}
25897 ac_clean_files_save
=$ac_clean_files
25898 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25904 # Generated by $as_me.
25905 # Run this file to recreate the current configuration.
25906 # Compiler output produced by configure, useful for debugging
25907 # configure, is in config.log if it exists.
25910 ac_cs_recheck=false
25913 SHELL=\${CONFIG_SHELL-$SHELL}
25916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25917 ## -------------------- ##
25918 ## M4sh Initialization. ##
25919 ## -------------------- ##
25921 # Be more Bourne compatible
25922 DUALCASE
=1; export DUALCASE
# for MKS sh
25923 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25927 # is contrary to our usage. Disable this feature.
25928 alias -g '${1+"$@"}'='"$@"'
25929 setopt NO_GLOB_SUBST
25931 case `(set -o) 2>/dev/null` in #(
25943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25944 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25947 # Prefer a ksh shell builtin over an external printf program on Solaris,
25948 # but without wasting forks for bash or zsh.
25949 if test -z "$BASH_VERSION$ZSH_VERSION" \
25950 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25951 as_echo='print
-r --'
25952 as_echo_n='print
-rn --'
25953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25954 as_echo='printf %s
\n'
25955 as_echo_n='printf %s
'
25957 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25958 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25959 as_echo_n='/usr
/ucb
/echo -n'
25961 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25962 as_echo_n_body='eval
25966 expr "X$arg" : "X\\(.*\\)$as_nl";
25967 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25969 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25971 export as_echo_n_body
25972 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25974 export as_echo_body
25975 as_echo='sh
-c $as_echo_body as_echo
'
25978 # The user is always right.
25979 if test "${PATH_SEPARATOR+set}" != set; then
25981 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25982 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25989 # We need space, tab and new line, in precisely that order. Quoting is
25990 # there to prevent editors from complaining about space-tab.
25991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25992 # splitting by setting IFS to empty value.)
25995 # Find who we are. Look in the path if we contain no directory separator.
25997 *[\\/]* ) as_myself=$0 ;;
25998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25999 for as_dir in $PATH
26002 test -z "$as_dir" && as_dir=.
26003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26009 # We did not find ourselves, most probably we were run as `sh COMMAND'
26010 # in which case we are not to be found in the path.
26011 if test "x$as_myself" = x
; then
26014 if test ! -f "$as_myself"; then
26015 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26019 # Unset variables that we do not need and which cause bugs (e.g. in
26020 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26021 # suppresses any "Segmentation fault" message there. '((' could
26022 # trigger a bug in pdksh 5.2.14.
26023 for as_var
in BASH_ENV ENV MAIL MAILPATH
26024 do eval test x\
${$as_var+set} = xset \
26025 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26038 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26041 # as_fn_error ERROR [LINENO LOG_FD]
26042 # ---------------------------------
26043 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26044 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26045 # script with status $?, using 1 if that was 0.
26048 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26050 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26051 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26053 $as_echo "$as_me: error: $1" >&2
26054 as_fn_exit
$as_status
26058 # as_fn_set_status STATUS
26059 # -----------------------
26060 # Set $? to STATUS, without forking.
26061 as_fn_set_status
()
26064 } # as_fn_set_status
26066 # as_fn_exit STATUS
26067 # -----------------
26068 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26072 as_fn_set_status
$1
26078 # Portably unset VAR.
26081 { eval $1=; unset $1;}
26083 as_unset
=as_fn_unset
26084 # as_fn_append VAR VALUE
26085 # ----------------------
26086 # Append the text in VALUE to the end of the definition contained in VAR. Take
26087 # advantage of any shell optimizations that allow amortized linear growth over
26088 # repeated appends, instead of the typical quadratic growth present in naive
26090 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26091 eval 'as_fn_append ()
26102 # as_fn_arith ARG...
26103 # ------------------
26104 # Perform arithmetic evaluation on the ARGs, and store the result in the
26105 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26106 # must be portable across $(()) and expr.
26107 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26108 eval 'as_fn_arith ()
26115 as_val
=`expr "$@" || test $? -eq 1`
26120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26128 as_basename
=basename
26133 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26139 as_me
=`$as_basename -- "$0" ||
26140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26141 X"$0" : 'X\(//\)$' \| \
26142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26144 sed '/^.*\/\([^/][^/]*\)\/*$/{
26158 # Avoid depending upon Character Ranges.
26159 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26160 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26161 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26162 as_cr_digits
='0123456789'
26163 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26165 ECHO_C
= ECHO_N
= ECHO_T
=
26166 case `echo -n x` in #(((((
26168 case `echo 'xy\c'` in
26169 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26171 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26178 rm -f conf$$ conf$$.exe conf$$.
file
26179 if test -d conf$$.dir
; then
26180 rm -f conf$$.dir
/conf$$.
file
26183 mkdir conf$$.dir
2>/dev
/null
26185 if (echo >conf$$.
file) 2>/dev
/null
; then
26186 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26188 # ... but there are two gotchas:
26189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26191 # In both cases, we have to default to `cp -p'.
26192 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26194 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26202 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26203 rmdir conf$$.dir
2>/dev
/null
26208 # Create "$as_dir" as a directory, including parents if necessary.
26213 -*) as_dir
=.
/$as_dir;;
26215 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26219 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26220 *) as_qdir
=$as_dir;;
26222 as_dirs
="'$as_qdir' $as_dirs"
26223 as_dir
=`$as_dirname -- "$as_dir" ||
26224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26225 X"$as_dir" : 'X\(//\)[^/]' \| \
26226 X"$as_dir" : 'X\(//\)$' \| \
26227 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26228 $as_echo X"$as_dir" |
26229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26233 /^X\(\/\/\)[^/].*/{
26246 test -d "$as_dir" && break
26248 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26249 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26253 if mkdir
-p .
2>/dev
/null
; then
26254 as_mkdir_p
='mkdir -p "$as_dir"'
26256 test -d .
/-p && rmdir .
/-p
26260 if test -x / >/dev
/null
2>&1; then
26261 as_test_x
='test -x'
26263 if ls -dL / >/dev
/null
2>&1; then
26270 if test -d "$1"; then
26276 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26277 ???[sx]*):;;*)false;;esac;fi
26281 as_executable_p
=$as_test_x
26283 # Sed expression to map a string onto a valid CPP name.
26284 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26286 # Sed expression to map a string onto a valid variable name.
26287 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26291 ## ----------------------------------- ##
26292 ## Main body of $CONFIG_STATUS script. ##
26293 ## ----------------------------------- ##
26295 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26298 # Save the log message, to keep $0 and so on meaningful, and to
26299 # report actual input values of CONFIG_FILES etc. instead of their
26300 # values after options handling.
26302 This file was extended by emacs $as_me 24.3.50, which was
26303 generated by GNU Autoconf 2.65. Invocation command line was
26305 CONFIG_FILES = $CONFIG_FILES
26306 CONFIG_HEADERS = $CONFIG_HEADERS
26307 CONFIG_LINKS = $CONFIG_LINKS
26308 CONFIG_COMMANDS = $CONFIG_COMMANDS
26311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26316 case $ac_config_files in *"
26317 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26320 case $ac_config_headers in *"
26321 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26326 # Files that config.status was made for.
26327 config_files="$ac_config_files"
26328 config_headers="$ac_config_headers"
26329 config_commands="$ac_config_commands"
26333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26335 \`$as_me' instantiates files and other configuration actions
26336 from templates according to the current configuration. Unless the files
26337 and actions are specified as TAGs, all are instantiated by default.
26339 Usage: $0 [OPTION]... [TAG]...
26341 -h, --help print this help, then exit
26342 -V, --version print version number and configuration settings, then exit
26343 --config print configuration, then exit
26344 -q, --quiet, --silent
26345 do not print progress messages
26346 -d, --debug don't remove temporary files
26347 --recheck update $as_me by reconfiguring in the same conditions
26348 --file=FILE[:TEMPLATE]
26349 instantiate the configuration file FILE
26350 --header=FILE[:TEMPLATE]
26351 instantiate the configuration header FILE
26353 Configuration files:
26356 Configuration headers:
26359 Configuration commands:
26362 Report bugs to the package provider."
26365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26366 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26368 emacs config.status 24.3.50
26369 configured by $0, generated by GNU Autoconf 2.65,
26370 with options \\"\$ac_cs_config\\"
26372 Copyright (C) 2009 Free Software Foundation, Inc.
26373 This config.status script is free software; the Free Software Foundation
26374 gives unlimited permission to copy, distribute and modify it."
26381 test -n "\$AWK" || AWK=awk
26384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26385 # The default lists apply if the user does not specify any file.
26391 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26392 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26403 # Handling of the options.
26404 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26406 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26407 $as_echo "$ac_cs_version"; exit ;;
26408 --config |
--confi |
--conf |
--con |
--co |
--c )
26409 $as_echo "$ac_cs_config"; exit ;;
26410 --debug |
--debu |
--deb |
--de |
--d |
-d )
26412 --file |
--fil |
--fi |
--f )
26415 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26417 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26418 ac_need_defaults
=false
;;
26419 --header |
--heade |
--head |
--hea )
26422 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26424 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26425 ac_need_defaults
=false
;;
26427 # Conflict between --help and --header
26428 as_fn_error
"ambiguous option: \`$1'
26429 Try \`$0 --help' for more information.";;
26430 --help |
--hel |
-h )
26431 $as_echo "$ac_cs_usage"; exit ;;
26432 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26433 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26436 # This is an error.
26437 -*) as_fn_error
"unrecognized option: \`$1'
26438 Try \`$0 --help' for more information." ;;
26440 *) as_fn_append ac_config_targets
" $1"
26441 ac_need_defaults
=false
;;
26447 ac_configure_extra_args
=
26449 if $ac_cs_silent; then
26451 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26456 if \$ac_cs_recheck; then
26457 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26459 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26460 CONFIG_SHELL='$SHELL'
26461 export CONFIG_SHELL
26466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26471 ## Running $as_me. ##
26477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26481 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26482 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26488 # Handling of arguments.
26489 for ac_config_target
in $ac_config_targets
26491 case $ac_config_target in
26492 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26493 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26494 "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" ;;
26495 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26496 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26497 "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" ;;
26498 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26499 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
26500 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
26501 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26502 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26503 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26504 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26505 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26506 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
26507 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26508 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26509 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26510 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
26511 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
26512 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
26513 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
26514 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
26515 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
26517 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26522 # If the user did not use the arguments to specify the items to instantiate,
26523 # then the envvar interface is used. Set only those that are not.
26524 # We use the long form for the default assignment because of an extremely
26525 # bizarre bug on SunOS 4.1.3.
26526 if $ac_need_defaults; then
26527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26532 # Have a temporary directory for convenience. Make it in the build tree
26533 # simply because there is no reason against having it here, and in addition,
26534 # creating and moving files from /tmp can sometimes cause problems.
26535 # Hook for its removal unless debugging.
26536 # Note that there is a small window in which the directory will not be cleaned:
26537 # after its creation but before its name has been assigned to `$tmp'.
26541 trap 'exit_status=$?
26542 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26544 trap 'as_fn_exit 1' 1 2 13 15
26546 # Create a (secure) tmp directory for tmp files.
26549 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26550 test -n "$tmp" && test -d "$tmp"
26553 tmp
=.
/conf$$
-$RANDOM
26554 (umask 077 && mkdir
"$tmp")
26555 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26557 # Set up the scripts for CONFIG_FILES section.
26558 # No need to generate them if there are no CONFIG_FILES.
26559 # This happens for instance with `./config.status config.h'.
26560 if test -n "$CONFIG_FILES"; then
26562 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26563 ac_cs_awk_getline
=:
26564 ac_cs_awk_pipe_init
=
26565 ac_cs_awk_read_file
='
26566 while ((getline aline < (F[key])) > 0)
26569 ac_cs_awk_pipe_fini
=
26571 ac_cs_awk_getline
=false
26572 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26573 ac_cs_awk_read_file
='
26575 print "cat " F[key] " &&"
26576 '$ac_cs_awk_pipe_init
26577 # The final `:' finishes the AND list.
26578 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26580 ac_cr
=`echo X | tr X '\015'`
26581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26582 # But we know of no other shell where ac_cr would be empty at this
26583 # point, so we can use a bashism as a fallback.
26584 if test "x$ac_cr" = x
; then
26585 eval ac_cr
=\$
\'\\r
\'
26587 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26591 ac_cs_awk_cr
=$ac_cr
26594 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26597 # Create commands to substitute file output variables.
26599 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26600 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26601 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26604 } >conf$
$files.sh
&&
26605 . .
/conf$
$files.sh ||
26606 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26607 rm -f conf$
$files.sh
26610 echo "cat >conf$$subs.awk <<_ACEOF" &&
26611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26613 } >conf$$subs.sh ||
26614 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26617 for ac_last_try in false false false false false :; do
26618 . ./conf$$subs.sh ||
26619 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26621 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26622 if test $ac_delim_n = $ac_delim_num; then
26624 elif $ac_last_try; then
26625 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26627 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26630 rm -f conf$$subs.sh
26632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26633 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26637 s/^/S["/; s
/!.
*/"]=/
26647 s/\(.\{148\}\)..*/\1/
26649 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26654 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26661 s/\(.\{148\}\)..*/\1/
26663 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26667 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26672 ' <conf$$subs.awk | sed '
26677 ' >>$CONFIG_STATUS || ac_write_fail=1
26678 rm -f conf$$subs.awk
26679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26681 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26682 for (key in S) S_is_set[key] = 1
26684 \$ac_cs_awk_pipe_init
26688 nfields = split(line, field, "@
")
26690 len = length(field[1])
26691 for (i = 2; i < nfields; i++) {
26693 keylen = length(key)
26694 if (S_is_set[key]) {
26696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26697 len += length(value) + length(field[++i])
26702 if (nfields == 3 && !substed) {
26704 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26705 \$ac_cs_awk_read_file
26711 \$ac_cs_awk_pipe_fini
26714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26715 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26716 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26719 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26720 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26725 # trailing colons and then remove the whole line if VPATH becomes empty
26726 # (actually we leave an empty line to preserve line numbers).
26727 if test "x
$srcdir" = x.; then
26728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26729 s/:*\$(srcdir):*/:/
26730 s/:*\${srcdir}:*/:/
26732 s/^\([^=]*=[ ]*\):*/\1/
26738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26739 fi # test -n "$CONFIG_FILES"
26741 # Set up the scripts for CONFIG_HEADERS section.
26742 # No need to generate them if there are no CONFIG_HEADERS.
26743 # This happens for instance with `./config.status Makefile'.
26744 if test -n "$CONFIG_HEADERS"; then
26745 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26749 # Transform confdefs.h into an awk script `defines.awk', embedded as
26750 # here-document in config.status, that substitutes the proper values into
26751 # config.h.in to produce config.h.
26753 # Create a delimiter string that does not exist in confdefs.h, to ease
26754 # handling of long lines.
26756 for ac_last_try in false false :; do
26757 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26758 if test -z "$ac_t"; then
26760 elif $ac_last_try; then
26761 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26763 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26767 # For the awk script, D is an array of macro values keyed by name,
26768 # likewise P contains macro parameters if any. Preserve backslash
26769 # newline sequences.
26771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26773 s/.\{148\}/&'"$ac_delim"'/g
26776 s/^[ ]*#[ ]*define[ ][ ]*/ /
26783 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26785 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26790 D["\
1"]=" \
3\\\\\\n
"\\/p
26792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26797 s/.\{148\}/&'"$ac_delim"'/g
26802 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26805 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26807 ' <confdefs.h | sed '
26808 s/'"$ac_delim"'/"\\\
26809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26812 for (key in D) D_is_set[key] = 1
26815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26817 split(line, arg, " ")
26818 if (arg[1] == "#") {
26822 defundef
= substr
(arg
[1], 2)
26825 split(mac1
, mac2
, "(") #)
26827 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26828 if (D_is_set
[macro
]) {
26829 # Preserve the white space surrounding the "#".
26830 print prefix
"define", macro P
[macro
] D
[macro
]
26833 # Replace #undef with comments. This is necessary, for example,
26834 # in the case of _POSIX_SOURCE, which is predefined and required
26835 # on some systems where configure will not decide to define it.
26836 if (defundef
== "undef") {
26837 print
"/*", prefix defundef
, macro
, "*/"
26845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26846 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26847 fi # test -n "$CONFIG_HEADERS"
26850 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26855 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26857 case $ac_mode$ac_tag in
26859 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26860 :[FH
]-) ac_tag
=-:-;;
26861 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26878 -) ac_f
="$tmp/stdin";;
26879 *) # Look for the file first in the build tree, then in the source tree
26880 # (if the path is not absolute). The absolute path cannot be DOS-style,
26881 # because $ac_f cannot contain `:'.
26885 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26887 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26889 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26890 as_fn_append ac_file_inputs
" '$ac_f'"
26893 # Let's still pretend it is `configure' which instantiates (i.e., don't
26894 # use $as_me), people would be surprised to read:
26895 # /* config.h. Generated by config.status. */
26896 configure_input
='Generated from '`
26897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26899 if test x
"$ac_file" != x-
; then
26900 configure_input
="$ac_file. $configure_input"
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26902 $as_echo "$as_me: creating $ac_file" >&6;}
26904 # Neutralize special characters interpreted by sed in replacement strings.
26905 case $configure_input in #(
26906 *\
&* |
*\|
* |
*\\* )
26907 ac_sed_conf_input
=`$as_echo "$configure_input" |
26908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26909 *) ac_sed_conf_input
=$configure_input;;
26913 *:-:* |
*:-) cat >"$tmp/stdin" \
26914 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26919 ac_dir
=`$as_dirname -- "$ac_file" ||
26920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26921 X"$ac_file" : 'X\(//\)[^/]' \| \
26922 X"$ac_file" : 'X\(//\)$' \| \
26923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26924 $as_echo X"$ac_file" |
26925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26929 /^X\(\/\/\)[^/].*/{
26942 as_dir
="$ac_dir"; as_fn_mkdir_p
26946 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26948 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26949 # A ".." for each directory in $ac_dir_suffix.
26950 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26951 case $ac_top_builddir_sub in
26952 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26953 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26956 ac_abs_top_builddir
=$ac_pwd
26957 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26958 # for backward compatibility:
26959 ac_top_builddir
=$ac_top_build_prefix
26962 .
) # We are building in place.
26964 ac_top_srcdir
=$ac_top_builddir_sub
26965 ac_abs_top_srcdir
=$ac_pwd ;;
26966 [\\/]* | ?
:[\\/]* ) # Absolute name.
26967 ac_srcdir
=$srcdir$ac_dir_suffix;
26968 ac_top_srcdir
=$srcdir
26969 ac_abs_top_srcdir
=$srcdir ;;
26970 *) # Relative name.
26971 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26972 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26973 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26975 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26985 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26986 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26988 ac_MKDIR_P
=$MKDIR_P
26990 [\\/$
]* | ?
:[\\/]* ) ;;
26991 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26996 # If the template does not know about datarootdir, expand it.
26997 # FIXME: This hack should be removed a few years after 2.60.
26998 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27010 *datarootdir
*) ac_datarootdir_seen
=yes;;
27011 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27016 ac_datarootdir_hack='
27017 s&@datadir@&$datadir&g
27018 s&@docdir@&$docdir&g
27019 s&@infodir@&$infodir&g
27020 s&@localedir@&$localedir&g
27021 s&@mandir@&$mandir&g
27022 s&\\\${datarootdir}&$datarootdir&g' ;;
27026 # Neutralize VPATH when `$srcdir' = `.'.
27027 # Shell code in configure.ac might set extrasub.
27028 # FIXME: do we really want to maintain this feature?
27029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27030 ac_sed_extra="$ac_vpsub
27033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27035 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27036 s|@configure_input@|
$ac_sed_conf_input|
;t t
27037 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27038 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27039 s
&@srcdir@
&$ac_srcdir&;t t
27040 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27041 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27042 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27043 s
&@builddir@
&$ac_builddir&;t t
27044 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27045 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27046 s
&@INSTALL@
&$ac_INSTALL&;t t
27047 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27048 $ac_datarootdir_hack
27050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27051 if $ac_cs_awk_getline; then
27052 $AWK -f "$tmp/subs.
awk"
27054 $AWK -f "$tmp/subs.
awk" | $SHELL
27056 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27062 which seems to be undefined. Please make sure it is defined." >&5
27063 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27064 which seems to be undefined. Please make sure it is defined." >&2;}
27068 -) cat "$tmp/out" && rm -f "$tmp/out";;
27069 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27071 || as_fn_error "could not create $ac_file" "$LINENO" 5
27077 if test x"$ac_file" != x-; then
27079 $as_echo "/* $configure_input */" \
27080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27081 } >"$tmp/config.h" \
27082 || as_fn_error "could not create $ac_file" "$LINENO" 5
27083 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27085 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27088 mv "$tmp/config.h" "$ac_file" \
27089 || as_fn_error "could not create $ac_file" "$LINENO" 5
27092 $as_echo "/* $configure_input */" \
27093 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27094 || as_fn_error "could not create -" "$LINENO" 5
27096 # Compute "$ac_file"'s index
in $config_headers.
27099 for _am_header
in $config_headers :; do
27100 case $_am_header in
27101 $_am_arg |
$_am_arg:* )
27104 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27109 X"$_am_arg" : 'X\(//\)[^/]' \| \
27110 X"$_am_arg" : 'X\(//\)$' \| \
27111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27112 $as_echo X"$_am_arg" |
27113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27117 /^X\(\/\/\)[^/].*/{
27129 s/.*/./; q'`/stamp-h
$_am_stamp_count
27132 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27133 $as_echo "$as_me: executing $ac_file commands" >&6;}
27138 case $ac_file$ac_mode in
27139 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27140 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27141 # are listed without --file. Let's play safe and only enable the eval
27142 # if we detect the quoting.
27143 case $CONFIG_FILES in
27144 *\'*) eval set x
"$CONFIG_FILES" ;;
27145 *) set x
$CONFIG_FILES ;;
27150 # Strip MF so we end up with the name of the file.
27151 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27152 # Check whether this is an Automake generated Makefile or not.
27153 # We used to match only the files named `Makefile.in', but
27154 # some people rename them; so instead we look at the file content.
27155 # Grep'ing the first line is not enough: some people post-process
27156 # each Makefile.in and add a new line on top of each file to say so.
27157 # Grep'ing the whole file is not good either: AIX grep has a line
27158 # limit of 2048, but all sed's we know have understand at least 4000.
27159 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27160 dirpart
=`$as_dirname -- "$mf" ||
27161 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27162 X"$mf" : 'X\(//\)[^/]' \| \
27163 X"$mf" : 'X\(//\)$' \| \
27164 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27170 /^X\(\/\/\)[^/].*/{
27186 # Extract the definition of DEPDIR, am__include, and am__quote
27187 # from the Makefile without running `make'.
27188 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27189 test -z "$DEPDIR" && continue
27190 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27191 test -z "am__include" && continue
27192 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27193 # When using ansi2knr, U may be empty or an underscore; expand it
27194 U
=`sed -n 's/^U = //p' < "$mf"`
27195 # Find all dependency output files, they are included files with
27196 # $(DEPDIR) in their names. We invoke sed twice because it is the
27197 # simplest approach to changing $(DEPDIR) to its actual value in the
27199 for file in `sed -n "
27200 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27201 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27202 # Make sure the directory exists.
27203 test -f "$dirpart/$file" && continue
27204 fdir
=`$as_dirname -- "$file" ||
27205 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27206 X"$file" : 'X\(//\)[^/]' \| \
27207 X"$file" : 'X\(//\)$' \| \
27208 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27209 $as_echo X"$file" |
27210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27214 /^X\(\/\/\)[^/].*/{
27227 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27228 # echo "creating $dirpart/$file"
27229 echo '# dummy' > "$dirpart/$file"
27235 for dir
in etc lisp
; do
27236 test -d ${dir} || mkdir
${dir}
27240 echo creating src
/epaths.h
27241 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
27244 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27245 echo creating src
/.gdbinit
27246 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27256 ac_clean_files
=$ac_clean_files_save
27258 test $ac_write_fail = 0 ||
27259 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27262 # configure is writing to config.log, and then calls config.status.
27263 # config.status does its own redirection, appending to config.log.
27264 # Unfortunately, on DOS this fails, as config.log is still kept open
27265 # by configure, so config.status won't be able to write to it; its
27266 # output is simply discarded. So we exec the FD to /dev/null,
27267 # effectively closing config.log, so it can be properly (re)opened and
27268 # appended to by config.status. When coming back to configure, we
27269 # need to make the FD available again.
27270 if test "$no_create" != yes; then
27272 ac_config_status_args
=
27273 test "$silent" = yes &&
27274 ac_config_status_args
="$ac_config_status_args --quiet"
27276 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27279 # would make configure fail if this is the last instruction.
27280 $ac_cs_success || as_fn_exit $?
27282 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27284 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}