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_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
634 gl_GNULIB_ENABLED_getgroups_FALSE
635 gl_GNULIB_ENABLED_getgroups_TRUE
636 gl_GNULIB_ENABLED_euidaccess_FALSE
637 gl_GNULIB_ENABLED_euidaccess_TRUE
638 gl_GNULIB_ENABLED_dosname_FALSE
639 gl_GNULIB_ENABLED_dosname_TRUE
640 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
647 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
650 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
651 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
652 TIME_H_DEFINES_STRUCT_TIMESPEC
653 NEXT_AS_FIRST_DIRECTIVE_TIME_H
655 WINDOWS_64_BIT_ST_SIZE
656 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
679 REPLACE_OBSTACK_PRINTF
704 HAVE_DECL_OBSTACK_PRINTF
710 GNULIB_VSPRINTF_POSIX
714 GNULIB_VFPRINTF_POSIX
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
786 REPLACE_PTHREAD_SIGMASK
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
795 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGNAL_H_SIGPIPE
800 GNULIB_PTHREAD_SIGMASK
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
816 HAVE_DECL_LOCALTIME_R
822 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
824 UINT64_MAX_EQ_ULONG_MAX
825 UINT32_MAX_LT_UINTMAX_MAX
828 INT64_MAX_EQ_LONG_MAX
829 INT32_MAX_LT_INTMAX_MAX
839 GL_GENERATE_STDINT_H_FALSE
840 GL_GENERATE_STDINT_H_TRUE
849 HAVE_SIGNED_SIG_ATOMIC_T
852 BITSIZEOF_SIG_ATOMIC_T
855 APPLE_UNIVERSAL_BUILD
859 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
864 HAVE_UNSIGNED_LONG_LONG_INT
867 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
869 REPLACE_STRUCT_TIMEVAL
875 GNULIB_GL_UNISTD_H_GETOPT
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
894 REPLACE_CANONICALIZE_FILE_NAME
899 HAVE_STRUCT_RANDOM_DATA
922 HAVE_CANONICALIZE_FILE_NAME
953 GNULIB_CANONICALIZE_FILE_NAME
990 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1001 GL_GENERATE_EXECINFO_H_FALSE
1002 GL_GENERATE_EXECINFO_H_TRUE
1006 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1033 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1034 UNISTD_H_HAVE_WINSOCK2_H
1055 REPLACE_GETDOMAINNAME
1066 HAVE_DECL_SETHOSTNAME
1067 HAVE_DECL_GETUSERSHELL
1068 HAVE_DECL_GETPAGESIZE
1069 HAVE_DECL_GETLOGIN_R
1070 HAVE_DECL_GETDOMAINNAME
1109 GNULIB_UNISTD_H_SIGPIPE
1110 GNULIB_UNISTD_H_NONBLOCKING
1136 GNULIB_GETDTABLESIZE
1137 GNULIB_GETDOMAINNAME
1154 GL_GENERATE_ALLOCA_H_FALSE
1155 GL_GENERATE_ALLOCA_H_TRUE
1158 GL_COND_LIBTOOL_FALSE
1159 GL_COND_LIBTOOL_TRUE
1190 x_default_search_path
1269 INSTALL_ARCH_INDEP_EXTRA
1271 LD_SWITCH_X_SITE_RPATH
1340 INSTALL_STRIP_PROGRAM
1382 program_transform_name
1393 ac_subst_files
='deps_frag
1396 enable_option_checking
1419 with_toolkit_scroll_bars
1434 with_pkg_config_prog
1438 enable_ns_self_contained
1439 enable_locallisppath
1441 enable_check_lisp_object_type
1444 enable_gtk_deprecation_warnings
1445 enable_dependency_tracking
1448 enable_link_time_optimization
1451 ac_precious_vars
='build_alias
1463 # Initialize some variables set by options.
1465 ac_init_version
=false
1466 ac_unrecognized_opts
=
1467 ac_unrecognized_sep
=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file
=/dev
/null
1477 program_transform_name
=s
,x
,x
,
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir
='${exec_prefix}/bin'
1492 sbindir
='${exec_prefix}/sbin'
1493 libexecdir
='${exec_prefix}/libexec'
1494 datarootdir
='${prefix}/share'
1495 datadir
='${datarootdir}'
1496 sysconfdir
='${prefix}/etc'
1497 sharedstatedir
='${prefix}/com'
1498 localstatedir
='${prefix}/var'
1499 includedir
='${prefix}/include'
1500 oldincludedir
='/usr/include'
1501 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1502 infodir
='${datarootdir}/info'
1507 libdir
='${exec_prefix}/lib'
1508 localedir
='${datarootdir}/locale'
1509 mandir
='${datarootdir}/man'
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\
$ac_option
1523 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1533 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1535 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1536 bindir
=$ac_optarg ;;
1538 -build |
--build |
--buil |
--bui |
--bu)
1539 ac_prev
=build_alias
;;
1540 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1541 build_alias
=$ac_optarg ;;
1543 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1544 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1545 ac_prev
=cache_file
;;
1546 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1547 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1548 cache_file
=$ac_optarg ;;
1550 --config-cache |
-C)
1551 cache_file
=config.cache
;;
1553 -datadir |
--datadir |
--datadi |
--datad)
1555 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1556 datadir
=$ac_optarg ;;
1558 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1559 |
--dataroo |
--dataro |
--datar)
1560 ac_prev
=datarootdir
;;
1561 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1562 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1563 datarootdir
=$ac_optarg ;;
1565 -disable-* |
--disable-*)
1566 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1569 as_fn_error
"invalid feature name: $ac_useropt"
1570 ac_useropt_orig
=$ac_useropt
1571 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1574 "enable_
$ac_useropt"
1576 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep
=', ';;
1579 eval enable_
$ac_useropt=no
;;
1581 -docdir |
--docdir |
--docdi |
--doc |
--do)
1583 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1584 docdir
=$ac_optarg ;;
1586 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1588 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1589 dvidir
=$ac_optarg ;;
1591 -enable-* |
--enable-*)
1592 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1595 as_fn_error
"invalid feature name: $ac_useropt"
1596 ac_useropt_orig
=$ac_useropt
1597 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_
$ac_useropt"
1602 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep
=', ';;
1605 eval enable_
$ac_useropt=\
$ac_optarg ;;
1607 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1608 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1609 |
--exec |
--exe |
--ex)
1610 ac_prev
=exec_prefix
;;
1611 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1612 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1613 |
--exec=* |
--exe=* |
--ex=*)
1614 exec_prefix
=$ac_optarg ;;
1616 -gas |
--gas |
--ga |
--g)
1617 # Obsolete; use --with-gas.
1620 -help |
--help |
--hel |
--he |
-h)
1621 ac_init_help
=long
;;
1622 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1623 ac_init_help
=recursive
;;
1624 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1625 ac_init_help
=short
;;
1627 -host |
--host |
--hos |
--ho)
1628 ac_prev
=host_alias
;;
1629 -host=* |
--host=* |
--hos=* |
--ho=*)
1630 host_alias
=$ac_optarg ;;
1632 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1634 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1636 htmldir
=$ac_optarg ;;
1638 -includedir |
--includedir |
--includedi |
--included |
--include \
1639 |
--includ |
--inclu |
--incl |
--inc)
1640 ac_prev
=includedir
;;
1641 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1642 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1643 includedir
=$ac_optarg ;;
1645 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1647 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1648 infodir
=$ac_optarg ;;
1650 -libdir |
--libdir |
--libdi |
--libd)
1652 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1653 libdir
=$ac_optarg ;;
1655 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1656 |
--libexe |
--libex |
--libe)
1657 ac_prev
=libexecdir
;;
1658 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1659 |
--libexe=* |
--libex=* |
--libe=*)
1660 libexecdir
=$ac_optarg ;;
1662 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1663 ac_prev
=localedir
;;
1664 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1665 localedir
=$ac_optarg ;;
1667 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1668 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1669 ac_prev
=localstatedir
;;
1670 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1671 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1672 localstatedir
=$ac_optarg ;;
1674 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1676 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1677 mandir
=$ac_optarg ;;
1679 -nfp |
--nfp |
--nf)
1680 # Obsolete; use --without-fp.
1683 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1684 |
--no-cr |
--no-c |
-n)
1687 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1688 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1691 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1692 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1693 |
--oldin |
--oldi |
--old |
--ol |
--o)
1694 ac_prev
=oldincludedir
;;
1695 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1696 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1697 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1698 oldincludedir
=$ac_optarg ;;
1700 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1702 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1703 prefix
=$ac_optarg ;;
1705 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1706 |
--program-pre |
--program-pr |
--program-p)
1707 ac_prev
=program_prefix
;;
1708 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1709 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1710 program_prefix
=$ac_optarg ;;
1712 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1713 |
--program-suf |
--program-su |
--program-s)
1714 ac_prev
=program_suffix
;;
1715 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1716 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1717 program_suffix
=$ac_optarg ;;
1719 -program-transform-name |
--program-transform-name \
1720 |
--program-transform-nam |
--program-transform-na \
1721 |
--program-transform-n |
--program-transform- \
1722 |
--program-transform |
--program-transfor \
1723 |
--program-transfo |
--program-transf \
1724 |
--program-trans |
--program-tran \
1725 |
--progr-tra |
--program-tr |
--program-t)
1726 ac_prev
=program_transform_name
;;
1727 -program-transform-name=* |
--program-transform-name=* \
1728 |
--program-transform-nam=* |
--program-transform-na=* \
1729 |
--program-transform-n=* |
--program-transform-=* \
1730 |
--program-transform=* |
--program-transfor=* \
1731 |
--program-transfo=* |
--program-transf=* \
1732 |
--program-trans=* |
--program-tran=* \
1733 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1734 program_transform_name
=$ac_optarg ;;
1736 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1738 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1739 pdfdir
=$ac_optarg ;;
1741 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1743 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1746 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1747 |
-silent |
--silent |
--silen |
--sile |
--sil)
1750 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1752 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1754 sbindir
=$ac_optarg ;;
1756 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1757 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1758 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1760 ac_prev
=sharedstatedir
;;
1761 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1762 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1763 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1765 sharedstatedir
=$ac_optarg ;;
1767 -site |
--site |
--sit)
1769 -site=* |
--site=* |
--sit=*)
1772 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1774 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1775 srcdir
=$ac_optarg ;;
1777 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1778 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1779 ac_prev
=sysconfdir
;;
1780 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1781 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1782 sysconfdir
=$ac_optarg ;;
1784 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1785 ac_prev
=target_alias
;;
1786 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1787 target_alias
=$ac_optarg ;;
1789 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1792 -version |
--version |
--versio |
--versi |
--vers |
-V)
1793 ac_init_version
=: ;;
1796 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1799 as_fn_error
"invalid package name: $ac_useropt"
1800 ac_useropt_orig
=$ac_useropt
1801 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1806 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep
=', ';;
1809 eval with_
$ac_useropt=\
$ac_optarg ;;
1811 -without-* |
--without-*)
1812 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1815 as_fn_error
"invalid package name: $ac_useropt"
1816 ac_useropt_orig
=$ac_useropt
1817 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1822 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep
=', ';;
1825 eval with_
$ac_useropt=no
;;
1828 # Obsolete; use --with-x.
1831 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1832 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1833 ac_prev
=x_includes
;;
1834 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1835 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1836 x_includes
=$ac_optarg ;;
1838 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1839 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1840 ac_prev
=x_libraries
;;
1841 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1842 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1843 x_libraries
=$ac_optarg ;;
1845 -*) as_fn_error
"unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1850 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1854 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1856 eval $ac_envvar=\
$ac_optarg
1857 export $ac_envvar ;;
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1870 if test -n "$ac_prev"; then
1871 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error
"missing argument to $ac_option"
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1878 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1883 # Check all directory arguments for consistency.
1884 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1889 eval ac_val
=\$
$ac_var
1890 # Remove trailing slashes.
1893 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\
$ac_val;;
1896 # Be sure to have absolute directory names.
1898 [\\/$
]* | ?
:[\\/]* ) continue;;
1899 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1901 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1909 target
=$target_alias
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x
; then
1913 if test "x$build_alias" = x
; then
1914 cross_compiling
=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1923 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1925 test "$silent" = yes && exec 6>/dev
/null
1928 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di
=`ls -di .` &&
1930 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error
"working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error
"pwd does not report name of working directory"
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted
=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir
=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1968 ac_srcdir_defaulted
=no
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1972 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1974 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1986 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1988 for ac_var
in $ac_precious_vars; do
1989 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1991 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1996 # Report the --help message.
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2002 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2009 Defaults for the options are specified in brackets.
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2033 For better control, use the options below.
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2065 --x-includes=DIR X include files are
in DIR
2066 --x-libraries=DIR X library files are
in DIR
2069 --build=BUILD configure
for building on BUILD
[guessed
]
2070 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2074 if test -n "$ac_init_help"; then
2075 case $ac_init_help in
2076 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2081 --disable-option-checking ignore unrecognized
--enable/--with options
2082 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2083 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2084 --disable-ns-self-contained
2085 disable self contained build under NeXTstep
2086 --enable-locallisppath=PATH
2087 directories Emacs should search
for lisp files
2088 specific to this site
2089 --enable-checking[=LIST
]
2090 enable expensive run-time checks. With LIST
, enable
2091 only specific categories of checks. Categories are
:
2092 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2093 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2094 --enable-check-lisp-object-type
2095 enable compile
time checks
for the Lisp_Object data
2096 type. This is useful
for development
for catching
2097 certain types of bugs.
2098 --enable-profiling build emacs with low-level
, gprof profiling support.
2099 Mainly useful
for debugging Emacs itself. May not
2100 work on all platforms. Stops profiler.el working.
2101 --enable-autodepend automatically generate dependencies to .h-files.
2102 Requires GNU Make and Gcc. Enabled
if GNU Make and
2104 --enable-gtk-deprecation-warnings
2105 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2106 --disable-dependency-tracking speeds up one-time build
2107 --enable-dependency-tracking do not reject slow dependency extractors
2108 --disable-largefile omit support
for large files
2109 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2110 intended
for developers
, and may generate false
2111 alarms when used with older or non-GNU development
2113 --enable-link-time-optimization
2114 build emacs with link-time optimization. This is
2115 supported only
for GCC since
4.5.0.
2118 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2119 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2120 --without-all omit almost all features and build small executable
2121 with minimal dependencies
2122 --without-pop don
't support POP mail retrieval with movemail
2123 --with-kerberos support Kerberos-authenticated POP
2124 --with-kerberos5 support Kerberos version 5 authenticated POP
2125 --with-hesiod support Hesiod to get the POP server host
2126 --with-mmdf support MMDF mailboxes
2127 --with-mail-unlink unlink, rather than empty, mail spool after reading
2128 --with-mailhost=HOSTNAME
2129 string giving default POP mail host
2130 --without-sound don't compile with sound support
2131 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2132 gtk3
, lucid or athena
, motif
, no
)
2133 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2134 --without-xpm don
't compile with XPM image support
2135 --without-jpeg don't compile with JPEG image support
2136 --without-tiff don
't compile with TIFF image support
2137 --without-gif don't compile with GIF image support
2138 --without-png don
't compile with PNG image support
2139 --without-rsvg don't compile with SVG image support
2140 --without-xml2 don
't compile with XML parsing support
2141 --without-imagemagick don't compile with ImageMagick image support
2142 --without-xft don
't use XFT for anti aliased fonts
2143 --without-libotf don't use libotf
for OpenType font support
2144 --without-m17n-flt don
't use m17n-flt for text shaping
2145 --without-toolkit-scroll-bars
2146 don't use Motif or Xaw3d scroll bars
2147 --without-xaw3d don
't use Xaw3d
2148 --without-xim don't use X11 XIM
2149 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2150 --with-w32 use native MS Windows GUI
2151 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2153 --without-dbus don't compile with D-Bus support
2154 --without-gconf don
't compile with GConf support
2155 --without-gsettings don't compile with GSettings support
2156 --without-selinux don
't compile with SELinux support
2157 --without-acl don't compile with ACL support
2158 --without-gnutls don
't use -lgnutls for SSL/TLS support
2159 --without-inotify don't compile with inotify
(file-watch
) support
2160 --without-makeinfo don
't require makeinfo for building manuals
2161 --without-compress-info don't
compress the installed Info pages
2162 --with-pkg-config-prog=FILENAME
2163 file name of pkg-config
for finding GTK and librsvg
2164 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2165 /usr
/lib
, or
/usr
/lib64 on some platforms.
2166 --with-gameuser=USER user
for shared game score files
2167 --with-gnustep-conf=FILENAME
2168 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2169 or
/etc
/GNUstep
/GNUstep.conf
2170 --with-x use the X Window System
2172 Some influential environment variables
:
2173 CC C compiler
command
2174 CFLAGS C compiler flags
2175 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2176 nonstandard directory
<lib dir
>
2177 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2178 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2179 you have headers
in a nonstandard directory
<include dir
>
2181 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2183 Use these variables to override the choices made by
`configure' or to help
2184 it to find libraries and programs with nonstandard names/locations.
2186 Report bugs to the package provider.
2191 if test "$ac_init_help" = "recursive"; then
2192 # If there are subdirs, report their specific --help.
2193 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2194 test -d "$ac_dir" ||
2195 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2202 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2203 # A ".." for each directory in $ac_dir_suffix.
2204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2205 case $ac_top_builddir_sub in
2206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2210 ac_abs_top_builddir=$ac_pwd
2211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2212 # for backward compatibility:
2213 ac_top_builddir=$ac_top_build_prefix
2216 .) # We are building in place.
2218 ac_top_srcdir=$ac_top_builddir_sub
2219 ac_abs_top_srcdir=$ac_pwd ;;
2220 [\\/]* | ?:[\\/]* ) # Absolute name.
2221 ac_srcdir=$srcdir$ac_dir_suffix;
2222 ac_top_srcdir=$srcdir
2223 ac_abs_top_srcdir=$srcdir ;;
2225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2226 ac_top_srcdir=$ac_top_build_prefix$srcdir
2227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2231 cd "$ac_dir" || { ac_status=$?; continue; }
2232 # Check for guested configure.
2233 if test -f "$ac_srcdir/configure.gnu"; then
2235 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2236 elif test -f "$ac_srcdir/configure"; then
2238 $SHELL "$ac_srcdir/configure" --help=recursive
2240 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2242 cd "$ac_pwd" || { ac_status=$?; break; }
2246 test -n "$ac_init_help" && exit $ac_status
2247 if $ac_init_version; then
2249 emacs configure 24.3.50
2250 generated by GNU Autoconf 2.65
2252 Copyright (C) 2009 Free Software Foundation, Inc.
2253 This configure script is free software; the Free Software Foundation
2254 gives unlimited permission to copy, distribute and modify it.
2259 ## ------------------------ ##
2260 ## Autoconf initialization. ##
2261 ## ------------------------ ##
2263 # ac_fn_c_try_compile LINENO
2264 # --------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext
2270 if { { ac_try="$ac_compile"
2272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2273 *) ac_try_echo
=$ac_try;;
2275 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_compile") 2>conftest.err
2279 if test -s conftest.err
; then
2280 grep -v '^ *+' conftest.err
>conftest.er1
2281 cat conftest.er1
>&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest.
$ac_objext; then :
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2297 as_fn_set_status
$ac_retval
2299 } # ac_fn_c_try_compile
2301 # ac_fn_c_try_cpp LINENO
2302 # ----------------------
2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2306 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2307 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } >/dev/null && {
2323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2324 test ! -s conftest.err
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 as_fn_set_status $ac_retval
2338 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2341 # the include files in INCLUDES and setting the cache variable VAR
2343 ac_fn_c_check_header_mongrel ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2356 # Is the header compilable?
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2358 $as_echo_n "checking $2 usability... " >&6; }
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_header_compiler=yes
2367 ac_header_compiler=no
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2371 $as_echo "$ac_header_compiler" >&6; }
2373 # Is the header present?
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2375 $as_echo_n "checking $2 presence... " >&6; }
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2380 if ac_fn_c_try_cpp "$LINENO"; then :
2381 ac_header_preproc=yes
2383 ac_header_preproc=no
2385 rm -f conftest.err conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2387 $as_echo "$ac_header_preproc" >&6; }
2389 # So? What about this header?
2390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2393 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2399 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2401 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2403 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2405 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2407 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413 $as_echo_n "(cached) " >&6
2415 eval "$3=\$ac_header_compiler"
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_c_check_header_mongrel
2425 # ac_fn_c_try_run LINENO
2426 # ----------------------
2427 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2428 # that executables *can* be run.
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 if { { ac_try="$ac_link"
2434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2435 *) ac_try_echo
=$ac_try;;
2437 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_link") 2>&5
2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2442 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2443 { { case "(($ac_try" in
2444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_try") 2>&5
2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452 test $ac_status = 0; }; }; then :
2455 $as_echo "$as_me: program exited with status $ac_status" >&5
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_retval=$ac_status
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463 as_fn_set_status $ac_retval
2467 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2468 # -------------------------------------------------------
2469 # Tests whether HEADER exists and can be compiled using the include files in
2470 # INCLUDES, setting the cache variable VAR accordingly.
2471 ac_fn_c_check_header_compile ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2477 $as_echo_n "(cached) " >&6
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2484 if ac_fn_c_try_compile "$LINENO"; then :
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_compile
2498 # ac_fn_c_try_link LINENO
2499 # -----------------------
2500 # Try to link conftest.$ac_ext, and return whether this succeeded.
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 rm -f conftest.$ac_objext conftest$ac_exeext
2505 if { { ac_try="$ac_link"
2507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2508 *) ac_try_echo
=$ac_try;;
2510 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>conftest.err
2514 if test -s conftest.err
; then
2515 grep -v '^ *+' conftest.err
>conftest.er1
2516 cat conftest.er1
>&5
2517 mv -f conftest.er1 conftest.err
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } && {
2521 test -z "$ac_c_werror_flag" ||
2522 test ! -s conftest.err
2523 } && test -s conftest
$ac_exeext && {
2524 test "$cross_compiling" = yes ||
2525 $as_test_x conftest
$ac_exeext
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.
$ac_ext >&5
2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2536 # interfere with the next link command; also delete a directory that is
2537 # left behind by Apple's compiler. We do this before executing the actions.
2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 as_fn_set_status
$ac_retval
2542 } # ac_fn_c_try_link
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR
2545 # ------------------------------------
2546 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2547 ac_fn_c_check_decl
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2551 $as_echo_n "checking whether $2 is declared... " >&6; }
2552 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2569 if ac_fn_c_try_compile
"$LINENO"; then :
2574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2581 } # ac_fn_c_check_decl
2583 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2584 # ----------------------------------------------
2585 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_preproc
()
2588 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2598 if ac_fn_c_try_cpp
"$LINENO"; then :
2603 rm -f conftest.err conftest.
$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2610 } # ac_fn_c_check_header_preproc
2612 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2613 # ----------------------------------------------------
2614 # Tries to find if the field MEMBER exists in type AGGR, after including
2615 # INCLUDES, setting cache variable VAR accordingly.
2616 ac_fn_c_check_member
()
2618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2620 $as_echo_n "checking for $2.$3... " >&6; }
2621 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2637 if ac_fn_c_try_compile
"$LINENO"; then :
2640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2647 if (sizeof ac_aggr.$3)
2653 if ac_fn_c_try_compile
"$LINENO"; then :
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2667 } # ac_fn_c_check_member
2669 # ac_fn_c_check_func LINENO FUNC VAR
2670 # ----------------------------------
2671 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2672 ac_fn_c_check_func
()
2674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676 $as_echo_n "checking for $2... " >&6; }
2677 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2678 $as_echo_n "(cached) " >&6
2680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2684 #define $2 innocuous_$2
2686 /* System header to define __stub macros and hopefully few prototypes,
2687 which can conflict with char $2 (); below.
2688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2689 <limits.h> exists even on freestanding compilers. */
2692 # include <limits.h>
2694 # include <assert.h>
2699 /* Override any GCC internal prototype to avoid an error.
2700 Use char because int might match the return type of a GCC
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined __stub_$2 || defined __stub___$2
2721 if ac_fn_c_try_link
"$LINENO"; then :
2726 rm -f core conftest.err conftest.
$ac_objext \
2727 conftest
$ac_exeext conftest.
$ac_ext
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2731 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2734 } # ac_fn_c_check_func
2736 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2737 # -------------------------------------------
2738 # Tests whether TYPE exists after having included INCLUDES, setting cache
2739 # variable VAR accordingly.
2740 ac_fn_c_check_type
()
2742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2761 if ac_fn_c_try_compile
"$LINENO"; then :
2762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2774 if ac_fn_c_try_compile
"$LINENO"; then :
2779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2788 } # ac_fn_c_check_type
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2795 ac_fn_c_compute_int
()
2797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
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_hi
=$ac_mid; break
2832 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2833 if test $ac_lo -le $ac_mid; then
2837 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2848 static int test_array [1 - 2 * !(($2) < 0)];
2855 if ac_fn_c_try_compile
"$LINENO"; then :
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2871 if ac_fn_c_try_compile
"$LINENO"; then :
2872 ac_lo
=$ac_mid; break
2874 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2875 if test $ac_mid -le $ac_hi; then
2879 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2905 if ac_fn_c_try_compile
"$LINENO"; then :
2908 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2913 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2928 FILE *f = fopen ("conftest.val", "w");
2933 long int i = longval ();
2936 fprintf (f, "%ld", i);
2940 unsigned long int i = ulongval ();
2943 fprintf (f, "%lu", i);
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2953 if ac_fn_c_try_run
"$LINENO"; then :
2954 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2964 as_fn_set_status
$ac_retval
2966 } # ac_fn_c_compute_int
2967 cat >config.log
<<_ACEOF
2968 This file contains any messages produced by compilers while
2969 running configure, to aid debugging if configure makes a mistake.
2971 It was created by emacs $as_me 24.3.50, which was
2972 generated by GNU Autoconf 2.65. Invocation command line was
2984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir
=.
3008 $as_echo "PATH: $as_dir"
3024 # Keep a trace of the command line.
3025 # Strip out --no-create and --no-recursion so they do not pile up.
3026 # Strip out --silent because we don't want to record it for future runs.
3027 # Also quote any args containing shell meta-characters.
3028 # Make two passes to allow for proper duplicate-argument suppression.
3032 ac_must_keep_next
=false
3038 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3040 |
-silent |
--silent |
--silen |
--sile |
--sil)
3043 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3046 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3048 as_fn_append ac_configure_args1
" '$ac_arg'"
3049 if test $ac_must_keep_next = true
; then
3050 ac_must_keep_next
=false
# Got value, back to normal.
3053 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3054 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3055 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3056 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3057 case "$ac_configure_args0 " in
3058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3061 -* ) ac_must_keep_next
=true
;;
3064 as_fn_append ac_configure_args
" '$ac_arg'"
3069 { ac_configure_args0
=; unset ac_configure_args0
;}
3070 { ac_configure_args1
=; unset ac_configure_args1
;}
3072 # When interrupted or exit'd, cleanup temporary files, and complete
3073 # config.log. We remove comments because anyway the quotes in there
3074 # would cause problems or look ugly.
3075 # WARNING: Use '\'' to represent an apostrophe within the trap.
3076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3077 trap 'exit_status=$?
3078 # Save into config.log some information that might help in debugging.
3083 ## ---------------- ##
3084 ## Cache variables. ##
3085 ## ---------------- ##
3088 # The following way of writing the cache mishandles newlines in values,
3090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3091 eval ac_val=\$$ac_var
3095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3096 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3099 _ | IFS | as_nl) ;; #(
3100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3101 *) { eval $ac_var=; unset $ac_var;} ;;
3106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3107 *${as_nl}ac_space=\ *)
3109 "s/'\''/'\''\\\\'\'''\''/g;
3110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3121 ## ----------------- ##
3122 ## Output variables. ##
3123 ## ----------------- ##
3126 for ac_var in $ac_subst_vars
3128 eval ac_val=\$$ac_var
3130 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3132 $as_echo "$ac_var='\''$ac_val'\''"
3136 if test -n "$ac_subst_files"; then
3138 ## ------------------- ##
3139 ## File substitutions. ##
3140 ## ------------------- ##
3143 for ac_var
in $ac_subst_files
3145 eval ac_val
=\$
$ac_var
3147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3149 $as_echo "$ac_var='\''$ac_val'\''"
3154 if test -s confdefs.h; then
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3172 for ac_signal
in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest
* confdefs.h
3180 $as_echo "/* confdefs.h */" > confdefs.h
3182 # Predefined preprocessor variables.
3184 cat >>confdefs.h
<<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3188 cat >>confdefs.h
<<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3192 cat >>confdefs.h
<<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3196 cat >>confdefs.h
<<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3200 cat >>confdefs.h
<<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3204 cat >>confdefs.h
<<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3213 if test -n "$CONFIG_SITE"; then
3214 ac_site_file1
=$CONFIG_SITE
3215 elif test "x$prefix" != xNONE
; then
3216 ac_site_file1
=$prefix/share
/config.site
3217 ac_site_file2
=$prefix/etc
/config.site
3219 ac_site_file1
=$ac_default_prefix/share
/config.site
3220 ac_site_file2
=$ac_default_prefix/etc
/config.site
3222 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3224 test "x$ac_site_file" = xNONE
&& continue
3225 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3228 sed 's/^/| /' "$ac_site_file" >&5
3233 if test -r "$cache_file"; then
3234 # Some versions of bash will fail to source /dev/null (special files
3235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3236 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3238 $as_echo "$as_me: loading cache $cache_file" >&6;}
3240 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3241 *) .
"./$cache_file";;
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3246 $as_echo "$as_me: creating cache $cache_file" >&6;}
3250 as_fn_append ac_header_list
" linux/version.h"
3251 as_fn_append ac_header_list
" sys/systeminfo.h"
3252 as_fn_append ac_header_list
" coff.h"
3253 as_fn_append ac_header_list
" pty.h"
3254 as_fn_append ac_header_list
" sys/vlimit.h"
3255 as_fn_append ac_header_list
" sys/resource.h"
3256 as_fn_append ac_header_list
" sys/utsname.h"
3257 as_fn_append ac_header_list
" pwd.h"
3258 as_fn_append ac_header_list
" utmp.h"
3259 as_fn_append ac_header_list
" util.h"
3260 as_fn_append ac_header_list
" sys/socket.h"
3261 as_fn_append ac_header_list
" stdlib.h"
3262 as_fn_append ac_header_list
" unistd.h"
3263 as_fn_append ac_header_list
" sys/param.h"
3264 as_fn_append ac_header_list
" pthread.h"
3265 as_fn_append ac_header_list
" malloc/malloc.h"
3266 as_fn_append ac_header_list
" maillock.h"
3267 as_fn_append ac_header_list
" sys/un.h"
3268 as_fn_append ac_func_list
" tzset"
3269 as_fn_append ac_func_list
" readlinkat"
3270 as_fn_append ac_header_list
" dirent.h"
3271 as_fn_append ac_header_list
" execinfo.h"
3272 as_fn_append ac_func_list
" faccessat"
3273 as_fn_append ac_func_list
" fdopendir"
3274 as_fn_append ac_header_list
" stdio_ext.h"
3275 as_fn_append ac_func_list
" __fpending"
3276 as_fn_append ac_func_list
" fstatat"
3277 gl_getopt_required
=GNU
3278 as_fn_append ac_header_list
" getopt.h"
3279 as_fn_append ac_func_list
" gettimeofday"
3280 as_fn_append ac_func_list
" nanotime"
3281 as_fn_append ac_header_list
" sys/time.h"
3282 as_fn_append ac_header_list
" wchar.h"
3283 as_fn_append ac_header_list
" stdint.h"
3284 as_fn_append ac_header_list
" inttypes.h"
3285 as_fn_append ac_func_list
" lstat"
3286 as_fn_append ac_func_list
" alarm"
3287 as_fn_append ac_header_list
" sys/select.h"
3288 as_fn_append ac_func_list
" pselect"
3289 as_fn_append ac_func_list
" pthread_sigmask"
3290 as_fn_append ac_func_list
" readlink"
3291 as_fn_append ac_func_list
" strtoimax"
3292 as_fn_append ac_func_list
" strtoumax"
3293 as_fn_append ac_func_list
" symlink"
3294 as_fn_append ac_header_list
" sys/stat.h"
3295 as_fn_append ac_func_list
" localtime_r"
3296 as_fn_append ac_header_list
" utime.h"
3297 as_fn_append ac_func_list
" futimes"
3298 as_fn_append ac_func_list
" futimesat"
3299 as_fn_append ac_func_list
" futimens"
3300 as_fn_append ac_func_list
" utimensat"
3301 as_fn_append ac_func_list
" lutimes"
3302 # Check that the precious variables saved in the cache have kept the same
3304 ac_cache_corrupted
=false
3305 for ac_var
in $ac_precious_vars; do
3306 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3307 eval ac_new_set
=\
$ac_env_${ac_var}_set
3308 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3309 eval ac_new_val
=\
$ac_env_${ac_var}_value
3310 case $ac_old_set,$ac_new_set in
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3314 ac_cache_corrupted
=: ;;
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3318 ac_cache_corrupted
=: ;;
3321 if test "x$ac_old_val" != "x$ac_new_val"; then
3322 # differences in whitespace do not lead to failure.
3323 ac_old_val_w
=`echo x $ac_old_val`
3324 ac_new_val_w
=`echo x $ac_new_val`
3325 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3328 ac_cache_corrupted
=:
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3332 eval $ac_var=\
$ac_old_val
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3335 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3337 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3340 # Pass precious variables to config.status.
3341 if test "$ac_new_set" = set; then
3343 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3344 *) ac_arg
=$ac_var=$ac_new_val ;;
3346 case " $ac_configure_args " in
3347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3348 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3352 if $ac_cache_corrupted; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3357 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3359 ## -------------------- ##
3360 ## Main body of script. ##
3361 ## -------------------- ##
3364 ac_cpp
='$CPP $CPPFLAGS'
3365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3371 emacs_config_options
="$@"
3372 ## Add some environment variables, if they were passed via the environment
3373 ## rather than on the command-line.
3374 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3375 case "$emacs_config_options" in
3376 *$var=*) continue ;;
3379 test x
"$val" = x
&& continue
3380 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=$val"
3383 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3387 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3388 for ac_t
in install-sh
install.sh shtool
; do
3389 if test -f "$ac_dir/$ac_t"; then
3391 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3396 if test -z "$ac_aux_dir"; then
3397 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3400 # These three variables are undocumented and unsupported,
3401 # and are intended to be withdrawn in a future Autoconf release.
3402 # They can cause serious problems if a builder's source tree is in a directory
3403 # whose full name contains unusual characters.
3404 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3405 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3406 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3409 am__api_version
='1.11'
3411 # Find a good install program. We prefer a C program (faster),
3412 # so one script is as good as another. But avoid the broken or
3413 # incompatible versions:
3414 # SysV /etc/install, /usr/sbin/install
3415 # SunOS /usr/etc/install
3416 # IRIX /sbin/install
3418 # AmigaOS /C/install, which installs bootblocks on floppy discs
3419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3422 # OS/2's system install, which has a completely different semantic
3423 # ./install, which can be erroneously created by make from ./install.sh.
3424 # Reject install programs that cannot install multiple files.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3426 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3427 if test -z "$INSTALL"; then
3428 if test "${ac_cv_path_install+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir
=.
3436 # Account for people who put trailing slashes in PATH elements.
3437 case $as_dir/ in #((
3438 .
/ | .
// |
/[cC
]/* | \
3439 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3440 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3443 # OSF1 and SCO ODT 3.0 have their own names for install.
3444 # Don't use installbsd from OSF since it installs stuff as root
3446 for ac_prog
in ginstall scoinst
install; do
3447 for ac_exec_ext
in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3449 if test $ac_prog = install &&
3450 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3451 # AIX install. It has an incompatible calling convention.
3453 elif test $ac_prog = install &&
3454 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3455 # program-specific install script used by HP pwplus--don't use.
3458 rm -rf conftest.one conftest.two conftest.dir
3459 echo one
> conftest.one
3460 echo two
> conftest.two
3462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3463 test -s conftest.one
&& test -s conftest.two
&&
3464 test -s conftest.dir
/conftest.one
&&
3465 test -s conftest.dir
/conftest.two
3467 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3480 rm -rf conftest.one conftest.two conftest.dir
3483 if test "${ac_cv_path_install+set}" = set; then
3484 INSTALL
=$ac_cv_path_install
3486 # As a last resort, use the slow shell script. Don't cache a
3487 # value for INSTALL within a source directory, because that will
3488 # break other packages using the cache if that directory is
3489 # removed, or if the value is a relative name.
3490 INSTALL
=$ac_install_sh
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3494 $as_echo "$INSTALL" >&6; }
3496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3497 # It thinks the first close brace ends the variable substitution.
3498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3502 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3505 $as_echo_n "checking whether build environment is sane... " >&6; }
3508 echo timestamp
> conftest.
file
3509 # Reject unsafe characters in $srcdir or the absolute working directory
3510 # name. Accept space and tab only in the latter.
3514 *[\\\"\
#\$\&\'\`$am_lf]*)
3515 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3518 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3519 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3522 # Do `set' in a subshell so we don't clobber the current shell's
3523 # arguments. Must try -L first in case configure is actually a
3524 # symlink; some systems play weird games with the mod time of symlinks
3525 # (eg FreeBSD returns the mod time of the symlink's containing
3528 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3529 if test "$*" = "X"; then
3531 set X
`ls -t "$srcdir/configure" conftest.file`
3534 if test "$*" != "X $srcdir/configure conftest.file" \
3535 && test "$*" != "X conftest.file $srcdir/configure"; then
3537 # If neither matched, then we have a broken ls. This can happen
3538 # if, for instance, CONFIG_SHELL is bash and it inherits a
3539 # broken ls alias from the environment. This has actually
3540 # happened. Such a system could not be considered "sane".
3541 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3542 alias in your environment" "$LINENO" 5
3545 test "$2" = conftest.
file
3551 as_fn_error
"newly created file is older than distributed files!
3552 Check your system clock" "$LINENO" 5
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 $as_echo "yes" >&6; }
3556 test "$program_prefix" != NONE
&&
3557 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3558 # Use a double $ so make ignores it.
3559 test "$program_suffix" != NONE
&&
3560 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3561 # Double any \ or $.
3562 # By default was `s,x,x', remove it if useless.
3563 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3564 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3566 # expand $ac_aux_dir to an absolute path
3567 am_aux_dir
=`cd $ac_aux_dir && pwd`
3569 if test x
"${MISSING+set}" != xset
; then
3572 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3574 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3577 # Use eval to expand $SHELL
3578 if eval "$MISSING --run true"; then
3579 am_missing_run
="$MISSING --run "
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3583 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3586 if test x
"${install_sh}" != xset
; then
3589 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3591 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3595 # Installed binaries are usually stripped using `strip' when the user
3596 # run `make install-strip'. However `strip' might not be the right
3597 # tool to use in cross-compilation environments, therefore Automake
3598 # will honor the `STRIP' environment variable to overrule this program.
3599 if test "$cross_compiling" != no
; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3602 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_STRIP+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$STRIP"; then
3609 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir
=.
3616 for ac_exec_ext
in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 STRIP
=$ac_cv_prog_STRIP
3629 if test -n "$STRIP"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3631 $as_echo "$STRIP" >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3639 if test -z "$ac_cv_prog_STRIP"; then
3641 # Extract the first word of "strip", so it can be a program name with args.
3642 set dummy strip
; ac_word
=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$ac_ct_STRIP"; then
3649 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir
=.
3656 for ac_exec_ext
in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_ac_ct_STRIP
="strip"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3669 if test -n "$ac_ct_STRIP"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3671 $as_echo "$ac_ct_STRIP" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 if test "x$ac_ct_STRIP" = x
; then
3680 case $cross_compiling:$ac_tool_warned in
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned
=yes ;;
3689 STRIP
="$ac_cv_prog_STRIP"
3693 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3696 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3697 if test -z "$MKDIR_P"; then
3698 if test "${ac_cv_path_mkdir+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_prog
in mkdir gmkdir
; do
3707 for ac_exec_ext
in '' $ac_executable_extensions; do
3708 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3709 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3710 'mkdir (GNU coreutils) '* | \
3711 'mkdir (coreutils) '* | \
3712 'mkdir (fileutils) '4.1*)
3713 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3723 test -d .
/--version && rmdir .
/--version
3724 if test "${ac_cv_path_mkdir+set}" = set; then
3725 MKDIR_P
="$ac_cv_path_mkdir -p"
3727 # As a last resort, use the slow shell script. Don't cache a
3728 # value for MKDIR_P within a source directory, because that will
3729 # break other packages using the cache if that directory is
3730 # removed, or if the value is a relative name.
3731 MKDIR_P
="$ac_install_sh -d"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3735 $as_echo "$MKDIR_P" >&6; }
3739 [\\/$
]* | ?
:[\\/]*) ;;
3740 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3743 for ac_prog
in gawk mawk nawk
awk
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy
$ac_prog; ac_word
=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_AWK+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$AWK"; then
3753 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir
=.
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_AWK
="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 if test -n "$AWK"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3775 $as_echo "$AWK" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$AWK" && break
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3786 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3788 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3789 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3790 $as_echo_n "(cached) " >&6
3792 cat >conftest.
make <<\_ACEOF
3795 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3798 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3800 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3802 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3806 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 SET_MAKE
="MAKE=${MAKE-make}"
3816 rm -rf .tst
2>/dev
/null
3817 mkdir .tst
2>/dev
/null
3818 if test -d .tst
; then
3823 rmdir .tst
2>/dev
/null
3825 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3826 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3827 # is not polluted with repeated "-I."
3828 am__isrc
=' -I$(srcdir)'
3829 # test to see if srcdir already configured
3830 if test -f $srcdir/config.status
; then
3831 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3835 # test whether we have cygpath
3836 if test -z "$CYGPATH_W"; then
3837 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3838 CYGPATH_W
='cygpath -w'
3845 # Define the identity of the package.
3850 cat >>confdefs.h
<<_ACEOF
3851 #define PACKAGE "$PACKAGE"
3855 cat >>confdefs.h
<<_ACEOF
3856 #define VERSION "$VERSION"
3859 # Some tools Automake needs.
3861 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3864 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3867 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3870 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3873 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3875 # We need awk for the "check" target. The system "awk" is bad on
3877 # Always define AMTAR for backward compatibility.
3879 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3881 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3890 lispdir
='${datadir}/emacs/${version}/lisp'
3891 leimdir
='${datadir}/emacs/${version}/leim'
3892 standardlisppath
='${lispdir}:${leimdir}'
3893 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3894 '${datadir}/emacs/site-lisp'
3895 lisppath
='${locallisppath}:${standardlisppath}'
3896 etcdir
='${datadir}/emacs/${version}/etc'
3897 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3898 docdir
='${datadir}/emacs/${version}/etc'
3899 gamedir
='${localstatedir}/games/emacs'
3902 # Check whether --with-all was given.
3903 if test "${with_all+set}" = set; then :
3904 withval
=$with_all; with_features
=$withval
3913 # Check whether --with-pop was given.
3914 if test "${with_pop+set}" = set; then :
3917 with_pop
=$with_features
3920 if test "$with_pop" = yes; then
3921 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3926 # Check whether --with-kerberos was given.
3927 if test "${with_kerberos+set}" = set; then :
3928 withval
=$with_kerberos;
3933 if test "$with_kerberos" != no
; then
3934 $as_echo "#define KERBEROS 1" >>confdefs.h
3939 # Check whether --with-kerberos5 was given.
3940 if test "${with_kerberos5+set}" = set; then :
3941 withval
=$with_kerberos5;
3946 if test "${with_kerberos5}" != no
; then
3947 if test "${with_kerberos}" = no
; then
3949 $as_echo "#define KERBEROS 1" >>confdefs.h
3953 $as_echo "#define KERBEROS5 1" >>confdefs.h
3958 # Check whether --with-hesiod was given.
3959 if test "${with_hesiod+set}" = set; then :
3960 withval
=$with_hesiod;
3965 if test "$with_hesiod" != no
; then
3967 $as_echo "#define HESIOD 1" >>confdefs.h
3972 # Check whether --with-mmdf was given.
3973 if test "${with_mmdf+set}" = set; then :
3979 if test "$with_mmdf" != no
; then
3981 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3986 # Check whether --with-mail-unlink was given.
3987 if test "${with_mail_unlink+set}" = set; then :
3988 withval
=$with_mail_unlink;
3993 if test "$with_mail_unlink" != no
; then
3995 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4000 # Check whether --with-mailhost was given.
4001 if test "${with_mailhost+set}" = set; then :
4002 withval
=$with_mailhost;
4003 cat >>confdefs.h
<<_ACEOF
4004 #define MAILHOST "$withval"
4011 # Check whether --with-sound was given.
4012 if test "${with_sound+set}" = set; then :
4013 withval
=$with_sound;
4015 with_sound
=$with_features
4020 # Check whether --with-x-toolkit was given.
4021 if test "${with_x_toolkit+set}" = set; then :
4022 withval
=$with_x_toolkit; case "${withval}" in
4023 y | ye |
yes ) val
=gtk
;;
4025 l | lu | luc | luci | lucid
) val
=lucid
;;
4026 a |
at | ath | athe | athen | athena
) val
=athena
;;
4027 m | mo | mot | moti | motif
) val
=motif
;;
4028 g | gt | gtk
) val
=gtk
;;
4032 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4033 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4034 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4035 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4044 # Check whether --with-wide-int was given.
4045 if test "${with_wide_int+set}" = set; then :
4046 withval
=$with_wide_int;
4051 if test "$with_wide_int" = yes; then
4053 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4058 # Check whether --with-xpm was given.
4059 if test "${with_xpm+set}" = set; then :
4062 with_xpm
=$with_features
4066 # Check whether --with-jpeg was given.
4067 if test "${with_jpeg+set}" = set; then :
4070 with_jpeg
=$with_features
4074 # Check whether --with-tiff was given.
4075 if test "${with_tiff+set}" = set; then :
4078 with_tiff
=$with_features
4082 # Check whether --with-gif was given.
4083 if test "${with_gif+set}" = set; then :
4086 with_gif
=$with_features
4090 # Check whether --with-png was given.
4091 if test "${with_png+set}" = set; then :
4094 with_png
=$with_features
4098 # Check whether --with-rsvg was given.
4099 if test "${with_rsvg+set}" = set; then :
4102 with_rsvg
=$with_features
4106 # Check whether --with-xml2 was given.
4107 if test "${with_xml2+set}" = set; then :
4110 with_xml2
=$with_features
4114 # Check whether --with-imagemagick was given.
4115 if test "${with_imagemagick+set}" = set; then :
4116 withval
=$with_imagemagick;
4118 with_imagemagick
=$with_features
4123 # Check whether --with-xft was given.
4124 if test "${with_xft+set}" = set; then :
4127 with_xft
=$with_features
4131 # Check whether --with-libotf was given.
4132 if test "${with_libotf+set}" = set; then :
4133 withval
=$with_libotf;
4135 with_libotf
=$with_features
4139 # Check whether --with-m17n-flt was given.
4140 if test "${with_m17n_flt+set}" = set; then :
4141 withval
=$with_m17n_flt;
4143 with_m17n_flt
=$with_features
4148 # Check whether --with-toolkit-scroll-bars was given.
4149 if test "${with_toolkit_scroll_bars+set}" = set; then :
4150 withval
=$with_toolkit_scroll_bars;
4152 with_toolkit_scroll_bars
=$with_features
4156 # Check whether --with-xaw3d was given.
4157 if test "${with_xaw3d+set}" = set; then :
4158 withval
=$with_xaw3d;
4160 with_xaw3d
=$with_features
4164 # Check whether --with-xim was given.
4165 if test "${with_xim+set}" = set; then :
4168 with_xim
=$with_features
4172 # Check whether --with-ns was given.
4173 if test "${with_ns+set}" = set; then :
4180 # Check whether --with-w32 was given.
4181 if test "${with_w32+set}" = set; then :
4189 # Check whether --with-gpm was given.
4190 if test "${with_gpm+set}" = set; then :
4193 with_gpm
=$with_features
4197 # Check whether --with-dbus was given.
4198 if test "${with_dbus+set}" = set; then :
4201 with_dbus
=$with_features
4205 # Check whether --with-gconf was given.
4206 if test "${with_gconf+set}" = set; then :
4207 withval
=$with_gconf;
4209 with_gconf
=$with_features
4213 # Check whether --with-gsettings was given.
4214 if test "${with_gsettings+set}" = set; then :
4215 withval
=$with_gsettings;
4217 with_gsettings
=$with_features
4221 # Check whether --with-selinux was given.
4222 if test "${with_selinux+set}" = set; then :
4223 withval
=$with_selinux;
4225 with_selinux
=$with_features
4229 # Check whether --with-acl was given.
4230 if test "${with_acl+set}" = set; then :
4233 with_acl
=$with_features
4237 # Check whether --with-gnutls was given.
4238 if test "${with_gnutls+set}" = set; then :
4239 withval
=$with_gnutls;
4241 with_gnutls
=$with_features
4245 # Check whether --with-inotify was given.
4246 if test "${with_inotify+set}" = set; then :
4247 withval
=$with_inotify;
4249 with_inotify
=$with_features
4253 ## For the times when you want to build Emacs but don't have
4254 ## a suitable makeinfo, and can live without the manuals.
4256 # Check whether --with-makeinfo was given.
4257 if test "${with_makeinfo+set}" = set; then :
4258 withval
=$with_makeinfo;
4260 with_makeinfo
=$with_features
4264 ## Makefile.in needs the cache file name.
4267 ## This is an option because I do not know if all info/man support
4268 ## compressed files, nor how to test if they do so.
4270 # Check whether --with-compress-info was given.
4271 if test "${with_compress_info+set}" = set; then :
4272 withval
=$with_compress_info;
4274 with_compress_info
=$with_features
4277 if test $with_compress_info = yes; then
4285 # Check whether --with-pkg-config-prog was given.
4286 if test "${with_pkg_config_prog+set}" = set; then :
4287 withval
=$with_pkg_config_prog;
4290 if test "X${with_pkg_config_prog}" != X
; then
4291 if test "${with_pkg_config_prog}" != yes; then
4292 PKG_CONFIG
="${with_pkg_config_prog}"
4298 # Check whether --with-crt-dir was given.
4299 if test "${with_crt_dir+set}" = set; then :
4300 withval
=$with_crt_dir;
4303 CRT_DIR
="${with_crt_dir}"
4306 # Check whether --with-gameuser was given.
4307 if test "${with_gameuser+set}" = set; then :
4308 withval
=$with_gameuser;
4311 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4312 && gameuser
="${with_gameuser}"
4313 test "X$gameuser" = X
&& gameuser
=games
4316 # Check whether --with-gnustep-conf was given.
4317 if test "${with_gnustep_conf+set}" = set; then :
4318 withval
=$with_gnustep_conf;
4321 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4322 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4323 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4324 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4326 # Check whether --enable-ns-self-contained was given.
4327 if test "${enable_ns_self_contained+set}" = set; then :
4328 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4330 EN_NS_SELF_CONTAINED
=yes
4334 # Check whether --enable-locallisppath was given.
4335 if test "${enable_locallisppath+set}" = set; then :
4336 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4338 elif test "${enableval}" != "yes"; then
4339 locallisppath
=${enableval}
4344 # Check whether --enable-checking was given.
4345 if test "${enable_checking+set}" = set; then :
4346 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4349 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4350 for check
in $ac_checking_flags
4353 # these set all the flags to specific states
4354 yes) ac_enable_checking
=1 ;;
4355 no
) ac_enable_checking
= ;
4356 ac_gc_check_stringbytes
= ;
4357 ac_gc_check_string_overrun
= ;
4358 ac_gc_check_string_free_list
= ;
4359 ac_xmalloc_overrun
= ;
4360 ac_gc_check_cons_list
= ;
4362 all
) ac_enable_checking
=1 ;
4363 ac_gc_check_stringbytes
=1 ;
4364 ac_gc_check_string_overrun
=1 ;
4365 ac_gc_check_string_free_list
=1 ;
4366 ac_xmalloc_overrun
=1 ;
4367 ac_gc_check_cons_list
=1 ;
4368 ac_glyphs_debug
=1 ;;
4369 # these enable particular checks
4370 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4371 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4372 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4373 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4374 conslist
) ac_gc_check_cons_list
=1 ;;
4375 glyphs
) ac_glyphs_debug
=1 ;;
4376 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4381 if test x
$ac_enable_checking != x
; then
4383 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4386 if test x
$ac_gc_check_stringbytes != x
; then
4388 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4391 if test x
$ac_gc_check_string_overrun != x
; then
4393 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4396 if test x
$ac_gc_check_string_free_list != x
; then
4398 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4401 if test x
$ac_xmalloc_overrun != x
; then
4403 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4406 if test x
$ac_gc_check_cons_list != x
; then
4408 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4411 if test x
$ac_glyphs_debug != x
; then
4413 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4417 # Check whether --enable-check-lisp-object-type was given.
4418 if test "${enable_check_lisp_object_type+set}" = set; then :
4419 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4421 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4428 # Check whether --enable-profiling was given.
4429 if test "${enable_profiling+set}" = set; then :
4430 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4433 if test x
$ac_enable_profiling != x
; then
4434 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4440 # Check whether --enable-autodepend was given.
4441 if test "${enable_autodepend+set}" = set; then :
4442 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4444 ac_enable_autodepend
=yes
4448 # Check whether --enable-gtk-deprecation-warnings was given.
4449 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4450 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4454 #### Make srcdir absolute, if it isn't already. It's important to
4455 #### avoid running the file name through pwd unnecessarily, since pwd can
4456 #### give you automounter prefixes, which can go away. We do all this
4457 #### so Emacs can find its files when run uninstalled.
4458 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4463 ## We may be able to use the $PWD environment variable to make this
4464 ## absolute. But sometimes PWD is inaccurate.
4465 ## Note: we used to use $PWD at the end instead of `pwd`,
4466 ## but that tested only for a well-formed and valid PWD,
4467 ## it did not object when PWD was well-formed and valid but just wrong.
4468 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4472 srcdir
=`(cd "$srcdir"; pwd)`
4475 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4478 ### Canonicalize the configuration name.
4480 # Make sure we can run config.sub.
4481 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4482 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4485 $as_echo_n "checking build system type... " >&6; }
4486 if test "${ac_cv_build+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4489 ac_build_alias
=$build_alias
4490 test "x$ac_build_alias" = x
&&
4491 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4492 test "x$ac_build_alias" = x
&&
4493 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4494 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4495 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4499 $as_echo "$ac_cv_build" >&6; }
4500 case $ac_cv_build in
4502 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4505 ac_save_IFS
=$IFS; IFS
='-'
4511 # Remember, the first character of IFS is used to create $*,
4512 # except with old shells:
4515 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4519 $as_echo_n "checking host system type... " >&6; }
4520 if test "${ac_cv_host+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4523 if test "x$host_alias" = x
; then
4524 ac_cv_host
=$ac_cv_build
4526 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4527 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4532 $as_echo "$ac_cv_host" >&6; }
4535 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4538 ac_save_IFS
=$IFS; IFS
='-'
4544 # Remember, the first character of IFS is used to create $*,
4545 # except with old shells:
4548 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4552 configuration
=${host_alias-${build_alias-$host}}
4556 ### If you add support for a new configuration, add code to this
4557 ### switch statement to recognize your configuration name and select
4558 ### the appropriate operating system file.
4560 ### You would hope that you could choose an s/*.h
4561 ### file based on the operating system portion. However, it turns out
4562 ### that each s/*.h file is pretty manufacturer-specific.
4563 ### So we basically have to have a special case for each
4564 ### configuration name.
4566 ### As far as handling version numbers on operating systems is
4567 ### concerned, make sure things will fail in a fixable way. If
4568 ### /etc/MACHINES doesn't say anything about version numbers, be
4569 ### prepared to handle anything reasonably. If version numbers
4570 ### matter, be sure /etc/MACHINES says something about it.
4572 opsys
='' unported
=no
4573 case "${canonical}" in
4575 ## GNU/Linux and similar ports
4585 ## FreeBSD kernel + glibc based userland
4600 ## Apple Darwin / Mac OS X
4602 case "${canonical}" in
4609 ## Use fink packages if available.
4610 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4611 ## if test -d /sw/include && test -d /sw/lib; then
4612 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4613 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4617 ## HP 9000 series 700 and 800, running HP/UX
4618 hppa
*-hp-hpux10.2
* )
4621 hppa
*-hp-hpux1[1-9]* )
4623 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4627 rs6000-ibm-aix4.
[23]* )
4630 powerpc-ibm-aix4.
[23]* )
4633 rs6000-ibm-aix
[56]* )
4636 powerpc-ibm-aix
[56]* )
4640 ## Silicon Graphics machines
4644 # Without defining _LANGUAGE_C, things get masked out in the headers
4645 # so that, for instance, grepping for `free' in stdlib.h fails and
4646 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4647 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4652 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4653 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4654 case "${canonical}" in
4656 amd64-
*-*|x86_64-
*-*) ;;
4660 case "${canonical}" in
4661 *-sunos5.6
* |
*-solaris2.6
* )
4665 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4667 emacs_check_sunpro_c
=yes
4669 *-sunos5* |
*-solaris* )
4671 emacs_check_sunpro_c
=yes
4674 ## Watch out for a compiler that we know will not work.
4675 case "${canonical}" in
4676 *-solaris* |
*-sunos5* )
4677 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4678 ## /usr/ucb/cc doesn't work;
4679 ## we should find some other compiler that does work.
4687 ## Intel 386 machines where we don't care about the manufacturer.
4689 case "${canonical}" in
4690 *-cygwin ) opsys
=cygwin
;;
4691 *-darwin* ) opsys
=darwin
;;
4692 *-sysv4.2uw
* ) opsys
=unixware
;;
4693 *-sysv5uw* ) opsys
=unixware
;;
4694 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4695 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4704 ### If the code above didn't choose an operating system, just choose
4705 ### an operating system based on the configuration name. You really
4706 ### only want to use this when you have no idea what the right
4707 ### operating system is; if you know what operating systems a machine
4708 ### runs, it's cleaner to make it explicit in the case statement
4710 if test x
"${opsys}" = x
; then
4711 case "${canonical}" in
4712 *-gnu* ) opsys
=gnu
;;
4721 if test $unported = yes; then
4722 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4723 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4727 #### Choose a compiler.
4730 ac_cpp
='$CPP $CPPFLAGS'
4731 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4736 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_CC+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC
="$CC" # Let the user override the test.
4745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir
=.
4750 for ac_exec_ext
in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_CC"; then
4775 # Extract the first word of "gcc", so it can be a program name with args.
4776 set dummy gcc
; ac_word
=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_CC"; then
4783 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir
=.
4790 for ac_exec_ext
in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_CC
="gcc"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4803 if test -n "$ac_ct_CC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4805 $as_echo "$ac_ct_CC" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_CC" = x
; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned
=yes ;;
4826 if test -z "$CC"; then
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4829 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_CC+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 if test -n "$CC"; then
4836 ac_cv_prog_CC
="$CC" # Let the user override the test.
4838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir
=.
4843 for ac_exec_ext
in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 if test -n "$CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858 $as_echo "$CC" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4867 if test -z "$CC"; then
4868 # Extract the first word of "cc", so it can be a program name with args.
4869 set dummy cc
; ac_word
=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC
="$CC" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4887 ac_prog_rejected
=yes
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 if test $ac_prog_rejected = yes; then
4899 # We found a bogon in the path, so make sure we never use it.
4900 set dummy
$ac_cv_prog_CC
4902 if test $# != 0; then
4903 # We chose a different compiler from the bogus one.
4904 # However, it has the same basename, so the bogon will be chosen
4905 # first if we set CC to just the basename; use the full file name.
4907 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4913 if test -n "$CC"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 $as_echo "$CC" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4923 if test -z "$CC"; then
4924 if test -n "$ac_tool_prefix"; then
4925 for ac_prog
in cl.exe
4927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4928 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4934 if test -n "$CC"; then
4935 ac_cv_prog_CC
="$CC" # Let the user override the test.
4937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir
=.
4942 for ac_exec_ext
in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 if test -n "$CC"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4957 $as_echo "$CC" >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 test -n "$CC" && break
4967 if test -z "$CC"; then
4969 for ac_prog
in cl.exe
4971 # Extract the first word of "$ac_prog", so it can be a program name with args.
4972 set dummy
$ac_prog; ac_word
=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$ac_ct_CC"; then
4979 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir
=.
4986 for ac_exec_ext
in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_ac_ct_CC
="$ac_prog"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4999 if test -n "$ac_ct_CC"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5001 $as_echo "$ac_ct_CC" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 test -n "$ac_ct_CC" && break
5011 if test "x$ac_ct_CC" = x
; then
5014 case $cross_compiling:$ac_tool_warned in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned
=yes ;;
5027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 as_fn_error
"no acceptable C compiler found in \$PATH
5030 See \`config.log' for more details." "$LINENO" 5; }
5032 # Provide some information about the compiler.
5033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5036 for ac_option
in --version -v -V -qversion; do
5037 { { ac_try
="$ac_compiler $ac_option >&5"
5039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043 $as_echo "$ac_try_echo"; } >&5
5044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5046 if test -s conftest.err; then
5048 ... rest of stderr output deleted ...
5049 10q' conftest.err >conftest.er1
5050 cat conftest.er1 >&5
5052 rm -f conftest.er1 conftest.err
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5068 ac_clean_files_save=$ac_clean_files
5069 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5070 # Try to create an executable without -o first, disregard a.out.
5071 # It will help us diagnose broken compilers, and finding out an intuition
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5074 $as_echo_n "checking whether the C compiler works... " >&6; }
5075 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5077 # The possible output files:
5078 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5081 for ac_file in $ac_files
5084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5085 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5090 if { { ac_try="$ac_link_default"
5092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5093 *) ac_try_echo
=$ac_try;;
5095 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5096 $as_echo "$ac_try_echo"; } >&5
5097 (eval "$ac_link_default") 2>&5
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }; then :
5101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5104 # so that the user can short-circuit this test for compilers unknown to
5106 for ac_file
in $ac_files ''
5108 test -f "$ac_file" ||
continue
5110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5113 # We found the default executable, but exeext='' is most
5117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5121 # We set ac_cv_exeext here because the later test for it is not
5122 # safe: cross compilers may not add the suffix if given an `-o'
5123 # argument, so we may need to know it at that point already.
5124 # Even if this section looks crufty: it has the advantage of
5131 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5136 if test -z "$ac_file"; then :
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 $as_echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 { as_fn_set_status
77
5145 as_fn_error
"C compiler cannot create executables
5146 See \`config.log' for more details." "$LINENO" 5; }; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5152 $as_echo_n "checking for C compiler default output file name... " >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5154 $as_echo "$ac_file" >&6; }
5155 ac_exeext
=$ac_cv_exeext
5157 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5158 ac_clean_files
=$ac_clean_files_save
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5160 $as_echo_n "checking for suffix of executables... " >&6; }
5161 if { { ac_try
="$ac_link"
5163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_link") 2>&5
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5173 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5174 # work properly (i.e., refer to `conftest.exe'), while it won't with
5176 for ac_file
in conftest.exe conftest conftest.
*; do
5177 test -f "$ac_file" ||
continue
5179 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5180 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5188 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5189 See \`config.log' for more details." "$LINENO" 5; }
5191 rm -f conftest conftest
$ac_cv_exeext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5193 $as_echo "$ac_cv_exeext" >&6; }
5195 rm -f conftest.
$ac_ext
5196 EXEEXT
=$ac_cv_exeext
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5204 FILE *f = fopen ("conftest.out", "w");
5205 return ferror (f) || fclose (f) != 0;
5211 ac_clean_files
="$ac_clean_files conftest.out"
5212 # Check that the compiler produces executables we can run. If not, either
5213 # the compiler is broken, or we cross compile.
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5215 $as_echo_n "checking whether we are cross compiling... " >&6; }
5216 if test "$cross_compiling" != yes; then
5217 { { ac_try
="$ac_link"
5219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_link") 2>&5
5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227 test $ac_status = 0; }
5228 if { ac_try='./conftest$ac_cv_exeext'
5229 { { case "(($ac_try" in
5230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5231 *) ac_try_echo
=$ac_try;;
5233 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234 $as_echo "$ac_try_echo"; } >&5
5235 (eval "$ac_try") 2>&5
5237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }; }; then
5241 if test "$cross_compiling" = maybe
; then
5244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5246 as_fn_error
"cannot run C compiled programs.
5247 If you meant to cross compile, use \`--host'.
5248 See \`config.log' for more details." "$LINENO" 5; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5253 $as_echo "$cross_compiling" >&6; }
5255 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5256 ac_clean_files
=$ac_clean_files_save
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5258 $as_echo_n "checking for suffix of object files... " >&6; }
5259 if test "${ac_cv_objext+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5273 rm -f conftest.o conftest.obj
5274 if { { ac_try
="$ac_compile"
5276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280 $as_echo "$ac_try_echo"; } >&5
5281 (eval "$ac_compile") 2>&5
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }; then :
5285 for ac_file in conftest.o conftest.obj conftest.*; do
5286 test -f "$ac_file" || continue;
5288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5289 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5294 $as_echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5299 as_fn_error "cannot compute suffix of object files
: cannot compile
5300 See \
`config.log' for more details." "$LINENO" 5; }
5302 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5305 $as_echo "$ac_cv_objext" >&6; }
5306 OBJEXT=$ac_cv_objext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5310 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5327 if ac_fn_c_try_compile "$LINENO"; then :
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5338 if test $ac_compiler_gnu = yes; then
5343 ac_test_CFLAGS=${CFLAGS+set}
5344 ac_save_CFLAGS=$CFLAGS
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5347 if test "${ac_cv_prog_cc_g+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 ac_save_c_werror_flag=$ac_c_werror_flag
5351 ac_c_werror_flag=yes
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5365 if ac_fn_c_try_compile "$LINENO"; then :
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5380 if ac_fn_c_try_compile "$LINENO"; then :
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5396 if ac_fn_c_try_compile "$LINENO"; then :
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_c_werror_flag=$ac_save_c_werror_flag
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5407 $as_echo "$ac_cv_prog_cc_g" >&6; }
5408 if test "$ac_test_CFLAGS" = set; then
5409 CFLAGS=$ac_save_CFLAGS
5410 elif test $ac_cv_prog_cc_g = yes; then
5411 if test "$GCC" = yes; then
5417 if test "$GCC" = yes; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5425 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 ac_cv_prog_cc_c89=no
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5434 #include <sys/types.h>
5435 #include <sys/stat.h>
5436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5437 struct buf { int x; };
5438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5439 static char *e (p, i)
5445 static char *f (char * (*g) (char **, int), char **p, ...)
5450 s = g (p, va_arg (v,int));
5455 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5456 function prototypes and stuff, but not '\xHH' hex character constants.
5457 These don't provoke an error unfortunately, instead are silently treated
5458 as 'x'. The following induces an error, until -std is added to get
5459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5460 array size at least. It's necessary to write '\x00'==0 to get something
5461 that's true only with -std. */
5462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5464 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5465 inside strings and character constants. */
5467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5469 int test (int i, double x);
5470 struct s1 {int (*f) (int a);};
5471 struct s2 {int (*f) (double a);};
5472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486 CC="$ac_save_CC $ac_arg"
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488 ac_cv_prog_cc_c89=$ac_arg
5490 rm -f core conftest.err conftest.$ac_objext
5491 test "x$ac_cv_prog_cc_c89" != "xno" && break
5493 rm -f conftest.$ac_ext
5498 case "x$ac_cv_prog_cc_c89" in
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5501 $as_echo "none needed" >&6; } ;;
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5504 $as_echo "unsupported" >&6; } ;;
5506 CC="$CC $ac_cv_prog_cc_c89"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5508 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5510 if test "x$ac_cv_prog_cc_c89" != xno; then :
5515 ac_cpp='$CPP $CPPFLAGS'
5516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519 DEPDIR="${am__leading_dot}deps"
5521 ac_config_commands="$ac_config_commands depfiles"
5524 am_make=${MAKE-make}
5525 cat > confinc << 'END'
5527 @echo this is the am__doit target
5530 # If we don't find an include directive, just comment out the code.
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5532 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5536 # First try GNU make style include.
5537 echo "include confinc" > confmf
5538 # Ignore all kinds of additional output from `make'.
5539 case `$am_make -s -f confmf 2> /dev/null` in #(
5540 *the\ am__doit\ target*)
5546 # Now try BSD make style include.
5547 if test "$am__include" = "#"; then
5548 echo '.include
"confinc"' > confmf
5549 case `$am_make -s -f confmf 2> /dev/null` in #(
5550 *the\ am__doit\ target*)
5551 am__include=.include
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5560 $as_echo "$_am_result" >&6; }
5561 rm -f confinc confmf
5563 # Check whether --enable-dependency-tracking was given.
5564 if test "${enable_dependency_tracking+set}" = set; then :
5565 enableval=$enable_dependency_tracking;
5568 if test "x$enable_dependency_tracking" != xno; then
5569 am_depcomp="$ac_aux_dir/depcomp"
5572 if test "x$enable_dependency_tracking" != xno
; then
5582 depcc
="$CC" am_compiler_list
=
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5585 $as_echo_n "checking dependency style of $depcc... " >&6; }
5586 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5590 # We make a subdir and do the tests there. Otherwise we can end up
5591 # making bogus files that we don't know about and never remove. For
5592 # instance it was reported that on HP-UX the gcc test will end up
5593 # making a dummy file named `D' -- because `-MD' means `put the output
5596 # Copy depcomp to subdir because otherwise we won't find it if we're
5597 # using a relative directory.
5598 cp "$am_depcomp" conftest.dir
5600 # We will build objects and dependencies in a subdirectory because
5601 # it helps to detect inapplicable dependency modes. For instance
5602 # both Tru64's cc and ICC support -MD to output dependencies as a
5603 # side effect of compilation, but ICC will put the dependencies in
5604 # the current directory while Tru64 will put them in the object
5608 am_cv_CC_dependencies_compiler_type
=none
5609 if test "$am_compiler_list" = ""; then
5610 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5613 case " $depcc " in #(
5614 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5617 for depmode
in $am_compiler_list; do
5618 # Setup a source with many dependencies, because some compilers
5619 # like to wrap large dependency lists on column 80 (with \), and
5620 # we should not choose a depcomp mode which is confused by this.
5622 # We need to recreate these files for each test, as the compiler may
5623 # overwrite some of them when testing with obscure command lines.
5624 # This happens at least with the AIX C compiler.
5626 for i
in 1 2 3 4 5 6; do
5627 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5628 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5629 # Solaris 8's {/usr,}/bin/sh.
5630 touch sub
/conftst
$i.h
5632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5634 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5635 # mode. It turns out that the SunPro C++ compiler does not properly
5636 # handle `-M -o', and we need to detect this. Also, some Intel
5637 # versions had trouble with output in subdirs
5638 am__obj
=sub
/conftest.
${OBJEXT-o}
5639 am__minus_obj
="-o $am__obj"
5642 # This depmode causes a compiler race in universal mode.
5643 test "$am__universal" = false ||
continue
5646 # after this tag, mechanisms are not by side-effect, so they'll
5647 # only be used when explicitly requested
5648 if test "x$enable_dependency_tracking" = xyes
; then
5654 msvisualcpp | msvcmsys
)
5655 # This compiler won't grok `-c -o', but also, the minuso test has
5656 # not run yet. These depmodes are late enough in the game, and
5657 # so weak that their functioning should not be impacted.
5658 am__obj
=conftest.
${OBJEXT-o}
5663 if depmode
=$depmode \
5664 source=sub
/conftest.c object
=$am__obj \
5665 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5666 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5667 >/dev
/null
2>conftest.err
&&
5668 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5669 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5670 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5671 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5672 # icc doesn't choke on unknown options, it will just issue warnings
5673 # or remarks (even with -Werror). So we grep stderr for any message
5674 # that says an option was ignored or not supported.
5675 # When given -MP, icc 7.0 and 7.1 complain thusly:
5676 # icc: Command line warning: ignoring option '-M'; no argument required
5677 # The diagnosis changed in icc 8.0:
5678 # icc: Command line remark: option '-MP' not supported
5679 if (grep 'ignoring option' conftest.err ||
5680 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5681 am_cv_CC_dependencies_compiler_type
=$depmode
5690 am_cv_CC_dependencies_compiler_type
=none
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5695 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5696 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5699 test "x$enable_dependency_tracking" != xno \
5700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5702 am__fastdepCC_FALSE
='#'
5704 am__fastdepCC_TRUE
='#'
5705 am__fastdepCC_FALSE
=
5709 if test "x$CC" != xcc
; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5711 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5714 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5716 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5717 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5718 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5719 $as_echo_n "(cached) " >&6
5721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5732 # Make sure it works both with $CC and with simple cc.
5733 # We do the test twice because some compilers refuse to overwrite an
5734 # existing .o file with -o, though they will create one.
5735 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5737 if { { case "(($ac_try" in
5738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5742 $as_echo "$ac_try_echo"; } >&5
5743 (eval "$ac_try") 2>&5
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746 test $ac_status = 0; } &&
5747 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5749 *) ac_try_echo
=$ac_try;;
5751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5752 $as_echo "$ac_try_echo"; } >&5
5753 (eval "$ac_try") 2>&5
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; };
5758 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5759 if test "x$CC" != xcc
; then
5760 # Test first that cc exists at all.
5761 if { ac_try
='cc -c conftest.$ac_ext >&5'
5762 { { case "(($ac_try" in
5763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5767 $as_echo "$ac_try_echo"; } >&5
5768 (eval "$ac_try") 2>&5
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; }; }; then
5772 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5774 if { { case "(($ac_try" in
5775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5776 *) ac_try_echo
=$ac_try;;
5778 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 $as_echo "$ac_try_echo"; } >&5
5780 (eval "$ac_try") 2>&5
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; } &&
5784 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_try") 2>&5
5792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793 test $ac_status = 0; };
5798 # cc exists but doesn't like -o.
5799 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5804 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5806 rm -f core conftest*
5809 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5811 $as_echo "yes" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5816 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5820 # FIXME: we rely on the cache variable name because
5821 # there is no other way.
5823 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5824 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5825 if test "$am_t" != yes; then
5826 # Losing compiler, so override with the script.
5827 # FIXME: It is wrong to rewrite CC.
5828 # But if we don't then we get into trouble of one sort or another.
5829 # A longer-term fix would be to have automake use am__CC in this case,
5830 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5831 CC="$am_aux_dir/compile $CC"
5836 if test x$GCC = xyes; then
5837 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5839 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5842 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5844 # Avoid gnulib's threadlib module, as we do threads our own way.
5847 # Initialize gnulib right after choosing the compiler.
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5855 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5856 # On Suns, sometimes $CPP names a directory.
5857 if test -n "$CPP" && test -d "$CPP"; then
5860 if test -z "$CPP"; then
5861 if test "${ac_cv_prog_CPP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 # Double quotes because CPP needs to be expanded
5865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5868 for ac_c_preproc_warn_flag in '' yes
5870 # Use a header file that comes with gcc, so configuring glibc
5871 # with a fresh cross-compiler works.
5872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5873 # <limits.h> exists even on freestanding compilers.
5874 # On the NeXT, cc -E runs the code through the compiler's parser,
5875 # not just through cpp. "Syntax error" is here to catch this case.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5879 # include <limits.h>
5881 # include <assert.h>
5885 if ac_fn_c_try_cpp "$LINENO"; then :
5888 # Broken: fails on valid input.
5891 rm -f conftest.err conftest.$ac_ext
5893 # OK, works on sane cases. Now check whether nonexistent headers
5894 # can be detected and how.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897 #include <ac_nonexistent.h>
5899 if ac_fn_c_try_cpp "$LINENO"; then :
5900 # Broken: success on invalid input.
5903 # Passes both tests.
5907 rm -f conftest.err conftest.$ac_ext
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.err conftest.
$ac_ext
5912 if $ac_preproc_ok; then :
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5925 $as_echo "$CPP" >&6; }
5927 for ac_c_preproc_warn_flag
in '' yes
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5938 # include <limits.h>
5940 # include <assert.h>
5944 if ac_fn_c_try_cpp
"$LINENO"; then :
5947 # Broken: fails on valid input.
5950 rm -f conftest.err conftest.
$ac_ext
5952 # OK, works on sane cases. Now check whether nonexistent headers
5953 # can be detected and how.
5954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <ac_nonexistent.h>
5958 if ac_fn_c_try_cpp
"$LINENO"; then :
5959 # Broken: success on invalid input.
5962 # Passes both tests.
5966 rm -f conftest.err conftest.
$ac_ext
5969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5970 rm -f conftest.err conftest.
$ac_ext
5971 if $ac_preproc_ok; then :
5974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5976 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5977 See \`config.log' for more details." "$LINENO" 5; }
5981 ac_cpp
='$CPP $CPPFLAGS'
5982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5988 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5989 if test "${ac_cv_path_GREP+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 if test -z "$GREP"; then
5993 ac_path_GREP_found
=false
5994 # Loop through the user's path and test for each of PROGNAME-LIST
5995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5996 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5999 test -z "$as_dir" && as_dir
=.
6000 for ac_prog
in grep ggrep
; do
6001 for ac_exec_ext
in '' $ac_executable_extensions; do
6002 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6004 # Check for GNU ac_path_GREP and select it if it is found.
6005 # Check for GNU $ac_path_GREP
6006 case `"$ac_path_GREP" --version 2>&1` in
6008 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6011 $as_echo_n 0123456789 >"conftest.in"
6014 cat "conftest.in" "conftest.in" >"conftest.tmp"
6015 mv "conftest.tmp" "conftest.in"
6016 cp "conftest.in" "conftest.nl"
6017 $as_echo 'GREP' >> "conftest.nl"
6018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6019 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6020 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6022 # Best one so far, save it but keep looking for a better one
6023 ac_cv_path_GREP
="$ac_path_GREP"
6024 ac_path_GREP_max
=$ac_count
6026 # 10*(2^10) chars as input seems more than enough
6027 test $ac_count -gt 10 && break
6029 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6032 $ac_path_GREP_found && break 3
6037 if test -z "$ac_cv_path_GREP"; then
6038 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6041 ac_cv_path_GREP
=$GREP
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6046 $as_echo "$ac_cv_path_GREP" >&6; }
6047 GREP
="$ac_cv_path_GREP"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6051 $as_echo_n "checking for egrep... " >&6; }
6052 if test "${ac_cv_path_EGREP+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6055 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6056 then ac_cv_path_EGREP
="$GREP -E"
6058 if test -z "$EGREP"; then
6059 ac_path_EGREP_found
=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6062 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6065 test -z "$as_dir" && as_dir
=.
6066 for ac_prog
in egrep; do
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6070 # Check for GNU ac_path_EGREP and select it if it is found.
6071 # Check for GNU $ac_path_EGREP
6072 case `"$ac_path_EGREP" --version 2>&1` in
6074 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6077 $as_echo_n 0123456789 >"conftest.in"
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo 'EGREP' >> "conftest.nl"
6084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6085 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6086 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_EGREP
="$ac_path_EGREP"
6090 ac_path_EGREP_max
=$ac_count
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6095 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6098 $ac_path_EGREP_found && break 3
6103 if test -z "$ac_cv_path_EGREP"; then
6104 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6107 ac_cv_path_EGREP
=$EGREP
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6113 $as_echo "$ac_cv_path_EGREP" >&6; }
6114 EGREP
="$ac_cv_path_EGREP"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6120 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6121 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6134 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6135 gl_cv_c_amsterdam_compiler
=yes
6137 gl_cv_c_amsterdam_compiler
=no
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6144 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6145 if test -z "$AR"; then
6146 if test $gl_cv_c_amsterdam_compiler = yes; then
6148 if test -z "$ARFLAGS"; then
6152 if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6154 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if test "${ac_cv_prog_AR+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -n "$AR"; then
6161 ac_cv_prog_AR
="$AR" # Let the user override the test.
6163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir
=.
6168 for ac_exec_ext
in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 if test -n "$AR"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6183 $as_echo "$AR" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6191 if test -z "$ac_cv_prog_AR"; then
6193 # Extract the first word of "ar", so it can be a program name with args.
6194 set dummy
ar; ac_word
=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$ac_ct_AR"; then
6201 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 for ac_exec_ext
in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_AR
="ar"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6221 if test -n "$ac_ct_AR"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6223 $as_echo "$ac_ct_AR" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6229 if test "x$ac_ct_AR" = x
; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned
=yes ;;
6244 if test -z "$ARFLAGS"; then
6249 if test -z "$ARFLAGS"; then
6255 if test -z "$RANLIB"; then
6256 if test $gl_cv_c_amsterdam_compiler = yes; then
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6261 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -n "$RANLIB"; then
6268 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir
=.
6275 for ac_exec_ext
in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 RANLIB
=$ac_cv_prog_RANLIB
6288 if test -n "$RANLIB"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6290 $as_echo "$RANLIB" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6298 if test -z "$ac_cv_prog_RANLIB"; then
6299 ac_ct_RANLIB
=$RANLIB
6300 # Extract the first word of "ranlib", so it can be a program name with args.
6301 set dummy ranlib
; ac_word
=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 if test -n "$ac_ct_RANLIB"; then
6308 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir
=.
6315 for ac_exec_ext
in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6328 if test -n "$ac_ct_RANLIB"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6330 $as_echo "$ac_ct_RANLIB" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6336 if test "x$ac_ct_RANLIB" = x
; then
6339 case $cross_compiling:$ac_tool_warned in
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 ac_tool_warned
=yes ;;
6345 RANLIB
=$ac_ct_RANLIB
6348 RANLIB
="$ac_cv_prog_RANLIB"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6356 $as_echo_n "checking for ANSI C header files... " >&6; }
6357 if test "${ac_cv_header_stdc+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6375 if ac_fn_c_try_compile
"$LINENO"; then :
6376 ac_cv_header_stdc
=yes
6378 ac_cv_header_stdc
=no
6380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6382 if test $ac_cv_header_stdc = yes; then
6383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6390 $EGREP "memchr" >/dev
/null
2>&1; then :
6393 ac_cv_header_stdc
=no
6399 if test $ac_cv_header_stdc = yes; then
6400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407 $EGREP "free" >/dev
/null
2>&1; then :
6410 ac_cv_header_stdc
=no
6416 if test $ac_cv_header_stdc = yes; then
6417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6418 if test "$cross_compiling" = yes; then :
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6425 #if ((' ' & 0x0FF) == 0x020)
6426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6429 # define ISLOWER(c) \
6430 (('a' <= (c) && (c) <= 'i') \
6431 || ('j' <= (c) && (c) <= 'r') \
6432 || ('s' <= (c) && (c) <= 'z'))
6433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6441 for (i = 0; i < 256; i++)
6442 if (XOR (islower (i), ISLOWER (i))
6443 || toupper (i) != TOUPPER (i))
6448 if ac_fn_c_try_run
"$LINENO"; then :
6451 ac_cv_header_stdc
=no
6453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6460 $as_echo "$ac_cv_header_stdc" >&6; }
6461 if test $ac_cv_header_stdc = yes; then
6463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6468 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6469 inttypes.h stdint.h unistd.h
6471 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6474 eval as_val
=\$
$as_ac_Header
6475 if test "x$as_val" = x
""yes; then :
6476 cat >>confdefs.h
<<_ACEOF
6477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6486 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6487 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6494 if test "$MINIX" = yes; then
6496 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6499 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6502 $as_echo "#define _MINIX 1" >>confdefs.h
6505 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6511 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6512 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6518 # define __EXTENSIONS__ 1
6519 $ac_includes_default
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 ac_cv_safe_to_define___extensions__
=yes
6531 ac_cv_safe_to_define___extensions__
=no
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6536 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6537 test $ac_cv_safe_to_define___extensions__ = yes &&
6538 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6540 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6542 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6551 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6552 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6555 ac_cv_should_define__xopen_source
=no
6556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6569 if ac_fn_c_try_compile
"$LINENO"; then :
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6575 #define _XOPEN_SOURCE 500
6586 if ac_fn_c_try_compile
"$LINENO"; then :
6587 ac_cv_should_define__xopen_source
=yes
6589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6594 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6595 test $ac_cv_should_define__xopen_source = yes &&
6596 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6605 # Check whether --enable-largefile was given.
6606 if test "${enable_largefile+set}" = set; then :
6607 enableval
=$enable_largefile;
6610 if test "$enable_largefile" != no
; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6613 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6614 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6617 ac_cv_sys_largefile_CC
=no
6618 if test "$GCC" != yes; then
6621 # IRIX 6.2 and later do not support large files by default,
6622 # so use the C compiler's -n32 option if that helps.
6623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #include <sys/types.h>
6626 /* Check that off_t can represent 2**63 - 1 correctly.
6627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6628 since some C++ compilers masquerading as C compilers
6629 incorrectly reject 9223372036854775807. */
6630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6632 && LARGE_OFF_T % 2147483647 == 1)
6642 if ac_fn_c_try_compile
"$LINENO"; then :
6645 rm -f core conftest.err conftest.
$ac_objext
6647 if ac_fn_c_try_compile
"$LINENO"; then :
6648 ac_cv_sys_largefile_CC
=' -n32'; break
6650 rm -f core conftest.err conftest.
$ac_objext
6654 rm -f conftest.
$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6658 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6659 if test "$ac_cv_sys_largefile_CC" != no
; then
6660 CC
=$CC$ac_cv_sys_largefile_CC
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6664 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6665 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 /* Check that off_t can represent 2**63 - 1 correctly.
6673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6674 since some C++ compilers masquerading as C compilers
6675 incorrectly reject 9223372036854775807. */
6676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6678 && LARGE_OFF_T % 2147483647 == 1)
6688 if ac_fn_c_try_compile
"$LINENO"; then :
6689 ac_cv_sys_file_offset_bits
=no
; break
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #define _FILE_OFFSET_BITS 64
6695 #include <sys/types.h>
6696 /* Check that off_t can represent 2**63 - 1 correctly.
6697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6698 since some C++ compilers masquerading as C compilers
6699 incorrectly reject 9223372036854775807. */
6700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6702 && LARGE_OFF_T % 2147483647 == 1)
6712 if ac_fn_c_try_compile
"$LINENO"; then :
6713 ac_cv_sys_file_offset_bits
=64; break
6715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6716 ac_cv_sys_file_offset_bits
=unknown
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6721 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6722 case $ac_cv_sys_file_offset_bits in #(
6725 cat >>confdefs.h
<<_ACEOF
6726 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6731 if test $ac_cv_sys_file_offset_bits = unknown
; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6733 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6734 if test "${ac_cv_sys_large_files+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 /* Check that off_t can represent 2**63 - 1 correctly.
6742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6743 since some C++ compilers masquerading as C compilers
6744 incorrectly reject 9223372036854775807. */
6745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6747 && LARGE_OFF_T % 2147483647 == 1)
6757 if ac_fn_c_try_compile
"$LINENO"; then :
6758 ac_cv_sys_large_files
=no
; break
6760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #define _LARGE_FILES 1
6764 #include <sys/types.h>
6765 /* Check that off_t can represent 2**63 - 1 correctly.
6766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6767 since some C++ compilers masquerading as C compilers
6768 incorrectly reject 9223372036854775807. */
6769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6771 && LARGE_OFF_T % 2147483647 == 1)
6781 if ac_fn_c_try_compile
"$LINENO"; then :
6782 ac_cv_sys_large_files
=1; break
6784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6785 ac_cv_sys_large_files
=unknown
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6790 $as_echo "$ac_cv_sys_large_files" >&6; }
6791 case $ac_cv_sys_large_files in #(
6794 cat >>confdefs.h
<<_ACEOF
6795 #define _LARGE_FILES $ac_cv_sys_large_files
6803 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6807 case $ac_cv_prog_cc_stdc in #(
6809 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6812 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6813 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6816 ac_cv_prog_cc_c99
=no
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6821 #include <stdbool.h>
6826 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6827 #define debug(...) fprintf (stderr, __VA_ARGS__)
6828 #define showlist(...) puts (#__VA_ARGS__)
6829 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6831 test_varargs_macros (void)
6836 debug ("X = %d\n", x);
6837 showlist (The first, second, and third items.);
6838 report (x>y, "x is %d but y is %d", x, y);
6841 // Check long long types.
6842 #define BIG64 18446744073709551615ull
6843 #define BIG32 4294967295ul
6844 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6846 your preprocessor is broken;
6850 your preprocessor is broken;
6852 static long long int bignum = -9223372036854775807LL;
6853 static unsigned long long int ubignum = BIG64;
6855 struct incomplete_array
6863 const wchar_t *name;
6867 typedef const char *ccp;
6870 test_restrict (ccp restrict text)
6872 // See if C++-style comments work.
6873 // Iterate through items via the restricted pointer.
6874 // Also check for declarations in for loops.
6875 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6880 // Check varargs and va_copy.
6882 test_varargs (const char *format, ...)
6885 va_start (args, format);
6887 va_copy (args_copy, args);
6898 str = va_arg (args_copy, const char *);
6901 number = va_arg (args_copy, int);
6904 fnumber = va_arg (args_copy, double);
6919 _Bool success = false;
6922 if (test_restrict ("String literal") == 0)
6924 char *restrict newvar = "Another string";
6927 test_varargs ("s, d' f .", "string", 65, 34.234);
6928 test_varargs_macros ();
6930 // Check flexible array members.
6931 struct incomplete_array *ia =
6932 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6934 for (int i = 0; i < ia->datasize; ++i)
6935 ia->data[i] = i * 1.234;
6937 // Check named initializers.
6938 struct named_init ni = {
6940 .name = L"Test wide string",
6941 .average = 543.34343,
6946 int dynamic_array[ni.number];
6947 dynamic_array[ni.number - 1] = 543;
6949 // work around unused variable warnings
6950 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6951 || dynamic_array[ni.number - 1] != 543);
6957 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6959 CC
="$ac_save_CC $ac_arg"
6960 if ac_fn_c_try_compile
"$LINENO"; then :
6961 ac_cv_prog_cc_c99
=$ac_arg
6963 rm -f core conftest.err conftest.
$ac_objext
6964 test "x$ac_cv_prog_cc_c99" != "xno" && break
6966 rm -f conftest.
$ac_ext
6971 case "x$ac_cv_prog_cc_c99" in
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6974 $as_echo "none needed" >&6; } ;;
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6977 $as_echo "unsupported" >&6; } ;;
6979 CC
="$CC $ac_cv_prog_cc_c99"
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6981 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6983 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6984 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6991 ac_cv_prog_cc_c89
=no
6993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6997 #include <sys/types.h>
6998 #include <sys/stat.h>
6999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7000 struct buf { int x; };
7001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7002 static char *e (p, i)
7008 static char *f (char * (*g) (char **, int), char **p, ...)
7013 s = g (p, va_arg (v,int));
7018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7019 function prototypes and stuff, but not '\xHH' hex character constants.
7020 These don't provoke an error unfortunately, instead are silently treated
7021 as 'x'. The following induces an error, until -std is added to get
7022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7023 array size at least. It's necessary to write '\x00'==0 to get something
7024 that's true only with -std. */
7025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7028 inside strings and character constants. */
7030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7032 int test (int i, double x);
7033 struct s1 {int (*f) (int a);};
7034 struct s2 {int (*f) (double a);};
7035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7046 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7049 CC
="$ac_save_CC $ac_arg"
7050 if ac_fn_c_try_compile
"$LINENO"; then :
7051 ac_cv_prog_cc_c89
=$ac_arg
7053 rm -f core conftest.err conftest.
$ac_objext
7054 test "x$ac_cv_prog_cc_c89" != "xno" && break
7056 rm -f conftest.
$ac_ext
7061 case "x$ac_cv_prog_cc_c89" in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7064 $as_echo "none needed" >&6; } ;;
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7067 $as_echo "unsupported" >&6; } ;;
7069 CC
="$CC $ac_cv_prog_cc_c89"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7073 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7074 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7076 ac_cv_prog_cc_stdc
=no
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7083 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7084 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7088 case $ac_cv_prog_cc_stdc in #(
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7091 $as_echo "unsupported" >&6; } ;; #(
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7094 $as_echo "none needed" >&6; } ;; #(
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7097 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7102 # Code from module alloca-opt:
7103 # Code from module allocator:
7104 # Code from module at-internal:
7105 # Code from module c-ctype:
7106 # Code from module c-strcase:
7107 # Code from module careadlinkat:
7108 # Code from module clock-time:
7109 # Code from module close-stream:
7110 # Code from module crypto/md5:
7111 # Code from module crypto/sha1:
7112 # Code from module crypto/sha256:
7113 # Code from module crypto/sha512:
7114 # Code from module dirent:
7115 # Code from module dosname:
7116 # Code from module dtoastr:
7117 # Code from module dtotimespec:
7118 # Code from module dup2:
7119 # Code from module environ:
7120 # Code from module euidaccess:
7121 # Code from module execinfo:
7122 # Code from module extensions:
7124 # Code from module extern-inline:
7125 # Code from module faccessat:
7126 # Code from module fcntl-h:
7127 # Code from module fdopendir:
7128 # Code from module filemode:
7129 # Code from module fpending:
7130 # Code from module fstatat:
7131 # Code from module getgroups:
7132 # Code from module getloadavg:
7133 # Code from module getopt-gnu:
7134 # Code from module getopt-posix:
7135 # Code from module gettext-h:
7136 # Code from module gettime:
7137 # Code from module gettimeofday:
7138 # Code from module group-member:
7139 # Code from module ignore-value:
7140 # Code from module include_next:
7141 # Code from module intprops:
7142 # Code from module inttypes-incomplete:
7143 # Code from module largefile:
7145 # Code from module lstat:
7146 # Code from module manywarnings:
7147 # Code from module mktime:
7148 # Code from module multiarch:
7149 # Code from module nocrash:
7150 # Code from module openat-h:
7151 # Code from module pathmax:
7152 # Code from module pselect:
7153 # Code from module pthread_sigmask:
7154 # Code from module putenv:
7155 # Code from module readlink:
7156 # Code from module readlinkat:
7157 # Code from module root-uid:
7158 # Code from module sig2str:
7159 # Code from module signal-h:
7160 # Code from module snippet/_Noreturn:
7161 # Code from module snippet/arg-nonnull:
7162 # Code from module snippet/c++defs:
7163 # Code from module snippet/warn-on-use:
7164 # Code from module socklen:
7165 # Code from module ssize_t:
7166 # Code from module stat:
7167 # Code from module stat-time:
7168 # Code from module stdalign:
7169 # Code from module stdarg:
7173 # Code from module stdbool:
7174 # Code from module stddef:
7175 # Code from module stdint:
7176 # Code from module stdio:
7177 # Code from module stdlib:
7178 # Code from module strftime:
7179 # Code from module strtoimax:
7180 # Code from module strtoll:
7181 # Code from module strtoull:
7182 # Code from module strtoumax:
7183 # Code from module symlink:
7184 # Code from module sys_select:
7185 # Code from module sys_stat:
7186 # Code from module sys_time:
7187 # Code from module time:
7188 # Code from module time_r:
7189 # Code from module timer-time:
7190 # Code from module timespec:
7191 # Code from module timespec-add:
7192 # Code from module timespec-sub:
7193 # Code from module u64:
7194 # Code from module unistd:
7195 # Code from module unsetenv:
7196 # Code from module utimens:
7197 # Code from module verify:
7198 # Code from module warnings:
7199 # Code from module xalloc-oversized:
7202 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7203 # if -g3 works and the user does not specify CFLAGS.
7204 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7205 if test "$ac_test_CFLAGS" != set; then
7208 emacs_g3_CFLAGS
='-g3';;
7210 emacs_g3_CFLAGS
='-g3 -O2';;
7212 emacs_g3_CFLAGS
='';;
7214 if test -n "$emacs_g3_CFLAGS"; then
7215 emacs_save_CFLAGS
=$CFLAGS
7216 CFLAGS
=$emacs_g3_CFLAGS
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7218 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7219 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7233 if ac_fn_c_try_link
"$LINENO"; then :
7234 emacs_cv_prog_cc_g3
=yes
7236 emacs_cv_prog_cc_g3
=no
7238 rm -f core conftest.err conftest.
$ac_objext \
7239 conftest
$ac_exeext conftest.
$ac_ext
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7242 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7243 if test $emacs_cv_prog_cc_g3 = yes; then
7244 CFLAGS
=$emacs_g3_CFLAGS
7246 CFLAGS
=$emacs_save_CFLAGS
7251 # Check whether --enable-gcc-warnings was given.
7252 if test "${enable_gcc_warnings+set}" = set; then :
7253 enableval
=$enable_gcc_warnings; case $enableval in
7255 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7257 gl_gcc_warnings
=$enableval
7264 # Check whether --enable-link-time-optimization was given.
7265 if test "${enable_link_time_optimization+set}" = set; then :
7266 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7268 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7270 if test x
$GCC = xyes
; then
7271 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7272 if test x
$CPUS != x
; then
7278 CFLAGS
="$CFLAGS $LTO"
7279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7290 if ac_fn_c_try_compile
"$LINENO"; then :
7291 ac_lto_supported
=yes
7295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7296 CFLAGS
="$old_CFLAGS"
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7299 $as_echo "$ac_lto_supported" >&6; }
7300 if test "$ac_lto_supported" = "yes"; then
7301 CFLAGS
="$CFLAGS $LTO"
7307 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7308 # ------------------------------------------------
7309 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7310 # Otherwise, run RUN-IF-NOT-FOUND.
7313 # When compiling with GCC, prefer -isystem to -I when including system
7314 # include files, to avoid generating useless diagnostics for the files.
7315 if test "$gl_gcc_warnings" != yes; then
7320 # This, $nw, is the list of warnings we disable.
7323 case $with_x_toolkit in
7324 lucid | athena | motif
)
7325 # Old toolkits mishandle 'const'.
7326 nw
="$nw -Wwrite-strings"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7330 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7331 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7335 gl_save_compiler_FLAGS
="$CFLAGS"
7336 as_fn_append CFLAGS
" -Werror"
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_compile
"$LINENO"; then :
7349 gl_cv_warn_c__Werror
=yes
7351 gl_cv_warn_c__Werror
=no
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7354 CFLAGS
="$gl_save_compiler_FLAGS"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7358 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7359 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7360 as_fn_append WERROR_CFLAGS
" -Werror"
7368 nw
="$nw -Waggregate-return" # anachronistic
7369 nw
="$nw -Wlong-long" # C90 is anachronistic
7370 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7371 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7372 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7373 nw
="$nw -Wcast-qual" # Too many warnings for now
7374 nw
="$nw -Wconversion" # Too many warnings for now
7375 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7376 nw
="$nw -Wsign-conversion" # Too many warnings for now
7377 nw
="$nw -Woverlength-strings" # Not a problem these days
7378 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7379 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7380 nw
="$nw -Wpadded" # Our structs are not padded
7381 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7382 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7383 nw
="$nw -Wformat-nonliteral" # we do this a lot
7384 nw
="$nw -Wvla" # warnings in gettext.h
7385 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7386 nw
="$nw -Wswitch-enum" # Too many warnings for now
7387 nw
="$nw -Wswitch-default" # Too many warnings for now
7388 nw
="$nw -Wfloat-equal" # warns about high-quality code
7389 nw
="$nw -Winline" # OK to ignore 'inline'
7390 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7391 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7392 # signed overflow has undefined behavior
7393 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7394 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7396 # Emacs doesn't care about shadowing; see
7397 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7400 # Emacs's use of alloca inhibits protecting the stack.
7401 nw
="$nw -Wstack-protector"
7403 # The following line should be removable at some point.
7404 nw
="$nw -Wsuggest-attribute=pure"
7408 if test -n "$GCC"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7411 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7412 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7416 gl_save_CFLAGS
="$CFLAGS"
7417 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7429 if ac_fn_c_try_compile
"$LINENO"; then :
7430 gl_cv_cc_nomfi_supported
=yes
7432 gl_cv_cc_nomfi_supported
=no
7434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7435 CFLAGS
="$gl_save_CFLAGS"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7439 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7441 if test "$gl_cv_cc_nomfi_supported" = yes; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7443 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7444 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_CFLAGS
="$CFLAGS"
7449 CFLAGS
="$CFLAGS -W -Werror"
7450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 typedef struct { int a; int b; } s_t;
7466 if ac_fn_c_try_compile
"$LINENO"; then :
7467 gl_cv_cc_nomfi_needed
=no
7469 gl_cv_cc_nomfi_needed
=yes
7471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7472 CFLAGS
="$gl_save_CFLAGS"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7477 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7481 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7482 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7486 gl_save_CFLAGS
="$CFLAGS"
7487 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7499 if ac_fn_c_try_compile
"$LINENO"; then :
7500 gl_cv_cc_uninitialized_supported
=yes
7502 gl_cv_cc_uninitialized_supported
=no
7504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 CFLAGS
="$gl_save_CFLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7509 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7513 # List all gcc warning categories.
7515 for gl_manywarn_item
in \
7522 -Wbad-function-cast \
7523 -Wbuiltin-macro-redefined \
7529 -Wcoverage-mismatch \
7532 -Wdeprecated-declarations \
7533 -Wdisabled-optimization \
7535 -Wdouble-promotion \
7540 -Wformat-contains-nul \
7541 -Wformat-extra-args \
7542 -Wformat-nonliteral \
7545 -Wformat-zero-length \
7547 -Wfree-nonheap-object \
7548 -Wignored-qualifiers \
7550 -Wimplicit-function-declaration \
7554 -Wint-to-pointer-cast \
7555 -Winvalid-memory-model \
7557 -Wjump-misses-init \
7560 -Wmaybe-uninitialized \
7562 -Wmissing-declarations \
7563 -Wmissing-field-initializers \
7564 -Wmissing-format-attribute \
7565 -Wmissing-include-dirs \
7566 -Wmissing-noreturn \
7567 -Wmissing-parameter-type \
7568 -Wmissing-prototypes \
7575 -Wold-style-declaration \
7576 -Wold-style-definition \
7578 -Woverlength-strings \
7581 -Wpacked-bitfield-compat \
7585 -Wpointer-to-int-cast \
7590 -Wsizeof-pointer-memaccess \
7594 -Wstrict-prototypes \
7595 -Wsuggest-attribute=const \
7596 -Wsuggest-attribute=format \
7597 -Wsuggest-attribute=noreturn \
7598 -Wsuggest-attribute=pure \
7608 -Wunreachable-code \
7609 -Wunsafe-loop-optimizations \
7611 -Wunused-but-set-parameter \
7612 -Wunused-but-set-variable \
7615 -Wunused-local-typedefs \
7617 -Wunused-parameter \
7623 -Wvector-operation-performance \
7625 -Wvolatile-register-var \
7629 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7632 # Disable specific options as needed.
7633 if test "$gl_cv_cc_nomfi_needed" = yes; then
7634 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7637 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7638 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7649 *" $gl_warn_item "*)
7652 gl_warn_set
="$gl_warn_set $gl_warn_item"
7659 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7661 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7662 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7663 $as_echo_n "(cached) " >&6
7666 gl_save_compiler_FLAGS
="$CFLAGS"
7667 as_fn_append CFLAGS
" $w"
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7679 if ac_fn_c_try_compile
"$LINENO"; then :
7680 eval "$as_gl_Warn=yes"
7682 eval "$as_gl_Warn=no"
7684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7685 CFLAGS
="$gl_save_compiler_FLAGS"
7688 eval ac_res
=\$
$as_gl_Warn
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7690 $as_echo "$ac_res" >&6; }
7691 eval as_val
=\$
$as_gl_Warn
7692 if test "x$as_val" = x
""yes; then :
7693 as_fn_append WARN_CFLAGS
" $w"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7699 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7700 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7704 gl_save_compiler_FLAGS
="$CFLAGS"
7705 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7717 if ac_fn_c_try_compile
"$LINENO"; then :
7718 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7720 gl_cv_warn_c__Wno_missing_field_initializers
=no
7722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7723 CFLAGS
="$gl_save_compiler_FLAGS"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7727 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7728 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7729 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7734 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7735 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7739 gl_save_compiler_FLAGS
="$CFLAGS"
7740 as_fn_append CFLAGS
" -Wno-sign-compare"
7741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7752 if ac_fn_c_try_compile
"$LINENO"; then :
7753 gl_cv_warn_c__Wno_sign_compare
=yes
7755 gl_cv_warn_c__Wno_sign_compare
=no
7757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 CFLAGS
="$gl_save_compiler_FLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7762 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7763 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7764 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7767 # Too many warnings for now
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7769 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7770 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7774 gl_save_compiler_FLAGS
="$CFLAGS"
7775 as_fn_append CFLAGS
" -Wno-type-limits"
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7787 if ac_fn_c_try_compile
"$LINENO"; then :
7788 gl_cv_warn_c__Wno_type_limits
=yes
7790 gl_cv_warn_c__Wno_type_limits
=no
7792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7793 CFLAGS
="$gl_save_compiler_FLAGS"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7797 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7798 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7799 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7802 # Too many warnings for now
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7804 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7805 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7809 gl_save_compiler_FLAGS
="$CFLAGS"
7810 as_fn_append CFLAGS
" -Wno-switch"
7811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7822 if ac_fn_c_try_compile
"$LINENO"; then :
7823 gl_cv_warn_c__Wno_switch
=yes
7825 gl_cv_warn_c__Wno_switch
=no
7827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7828 CFLAGS
="$gl_save_compiler_FLAGS"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7832 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7833 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7834 as_fn_append WARN_CFLAGS
" -Wno-switch"
7837 # Too many warnings for now
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7839 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7840 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7844 gl_save_compiler_FLAGS
="$CFLAGS"
7845 as_fn_append CFLAGS
" -Wno-unused-parameter"
7846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7857 if ac_fn_c_try_compile
"$LINENO"; then :
7858 gl_cv_warn_c__Wno_unused_parameter
=yes
7860 gl_cv_warn_c__Wno_unused_parameter
=no
7862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7863 CFLAGS
="$gl_save_compiler_FLAGS"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7867 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7868 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7869 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7872 # Too many warnings for now
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7874 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7875 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7879 gl_save_compiler_FLAGS
="$CFLAGS"
7880 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7892 if ac_fn_c_try_compile
"$LINENO"; then :
7893 gl_cv_warn_c__Wno_format_nonliteral
=yes
7895 gl_cv_warn_c__Wno_format_nonliteral
=no
7897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 CFLAGS
="$gl_save_compiler_FLAGS"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7902 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7903 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7904 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7909 # In spite of excluding -Wlogical-op above, it is enabled, as of
7910 # gcc 4.5.0 20090517.
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7912 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7913 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7917 gl_save_compiler_FLAGS
="$CFLAGS"
7918 as_fn_append CFLAGS
" -Wno-logical-op"
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7930 if ac_fn_c_try_compile
"$LINENO"; then :
7931 gl_cv_warn_c__Wno_logical_op
=yes
7933 gl_cv_warn_c__Wno_logical_op
=no
7935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7936 CFLAGS
="$gl_save_compiler_FLAGS"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7940 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7941 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7942 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7948 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7949 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7953 gl_save_compiler_FLAGS
="$CFLAGS"
7954 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7966 if ac_fn_c_try_compile
"$LINENO"; then :
7967 gl_cv_warn_c__fdiagnostics_show_option
=yes
7969 gl_cv_warn_c__fdiagnostics_show_option
=no
7971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7972 CFLAGS
="$gl_save_compiler_FLAGS"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7976 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7977 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7978 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7983 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7984 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7988 gl_save_compiler_FLAGS
="$CFLAGS"
7989 as_fn_append CFLAGS
" -funit-at-a-time"
7990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
8001 if ac_fn_c_try_compile
"$LINENO"; then :
8002 gl_cv_warn_c__funit_at_a_time
=yes
8004 gl_cv_warn_c__funit_at_a_time
=no
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 CFLAGS
="$gl_save_compiler_FLAGS"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8011 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8012 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8013 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8019 $as_echo "#define lint 1" >>confdefs.h
8023 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8026 # We use a slightly smaller set of warning options for lib/.
8027 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8029 nw
="$nw -Wunused-macros"
8033 set x
$WARN_CFLAGS; shift
8037 *" $gl_warn_item "*)
8040 gl_warn_set
="$gl_warn_set $gl_warn_item"
8044 GNULIB_WARN_CFLAGS
=$gl_warn_set
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8052 $as_echo_n "checking whether ln -s works... " >&6; }
8054 if test "$LN_S" = "ln -s"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8056 $as_echo "yes" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8059 $as_echo "no, using $LN_S" >&6; }
8063 # Extract the first word of "install-info", so it can be a program name with args.
8064 set dummy install-info
; ac_word
=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8070 case $INSTALL_INFO in
8072 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8076 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8079 test -z "$as_dir" && as_dir
=.
8080 for ac_exec_ext
in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8094 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8095 if test -n "$INSTALL_INFO"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8097 $as_echo "$INSTALL_INFO" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 # Extract the first word of "gzip", so it can be a program name with args.
8105 set dummy
gzip; ac_word
=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8113 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir
=.
8121 for ac_exec_ext
in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8135 if test -n "$GZIP_PROG"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8137 $as_echo "$GZIP_PROG" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test $opsys = gnu-linux
; then
8146 # Extract the first word of "paxctl", so it can be a program name with args.
8147 set dummy paxctl
; ac_word
=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8155 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8159 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8162 test -z "$as_dir" && as_dir
=.
8163 for ac_exec_ext
in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 PAXCTL
=$ac_cv_path_PAXCTL
8177 if test -n "$PAXCTL"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8179 $as_echo "$PAXCTL" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8186 if test "X$PAXCTL" != X
; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8188 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8200 if ac_fn_c_try_link
"$LINENO"; then :
8201 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8202 $as_echo "yes" >&6; }
8203 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }; PAXCTL
=""; fi
8206 rm -f core conftest.err conftest.
$ac_objext \
8207 conftest
$ac_exeext conftest.
$ac_ext
8211 ## Need makeinfo >= 4.7 (?) to build the manuals.
8212 # Extract the first word of "makeinfo", so it can be a program name with args.
8213 set dummy makeinfo
; ac_word
=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8221 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8243 MAKEINFO
=$ac_cv_path_MAKEINFO
8244 if test -n "$MAKEINFO"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8246 $as_echo "$MAKEINFO" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8253 if test "$MAKEINFO" != "no"; then
8255 $MAKEINFO --version 2> /dev/null |
8256 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8262 ## Makeinfo is unusual. For a released Emacs, the manuals are
8263 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8264 ## therefore in the category of "special tools" not normally required, which
8265 ## configure does not have to check for (eg autoconf itself).
8266 ## In a Bazaar checkout on the other hand, the manuals are not included.
8267 ## So makeinfo is a requirement to build from Bazaar, and configure
8268 ## should test for it as it does for any other build requirement.
8269 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8270 ## with pre-built manuals, from a Bazaar checkout.
8273 if test "$MAKEINFO" = "no"; then
8275 if test "x${with_makeinfo}" = "xno"; then
8277 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8278 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8279 source tree does not seem to have pre-built manuals in the \`info' directory.
8280 Either install a suitable version of makeinfo, or re-run configure
8281 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8287 INFO_OPTS
=--no-split
8292 if test x
$GCC = xyes
; then
8293 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8294 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8296 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8297 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8301 late_LDFLAGS
=$LDFLAGS
8302 if test x
$GCC = xyes
; then
8303 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8305 LDFLAGS
="$LDFLAGS -znocombreloc"
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8309 $as_echo_n "checking for -znocombreloc... " >&6; }
8310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8321 if ac_fn_c_try_link
"$LINENO"; then :
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323 $as_echo "yes" >&6; }
8325 LDFLAGS
=$late_LDFLAGS
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8329 rm -f core conftest.err conftest.
$ac_objext \
8330 conftest
$ac_exeext conftest.
$ac_ext
8333 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8335 your-opsys-here
) CANNOT_DUMP
=yes ;;
8338 test "$CANNOT_DUMP" = "yes" && \
8340 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8346 UNEXEC_OBJ
=unexelf.o
8348 # MSDOS uses unexcoff.o
8349 # MSWindows uses unexw32.o
8351 UNEXEC_OBJ
=unexaix.o
8357 UNEXEC_OBJ
=unexmacosx.o
8360 UNEXEC_OBJ
=unexhp9k800.o
8363 # Use the Solaris dldump() function, called from unexsol.c, to dump
8364 # emacs, instead of the generic ELF dump code found in unexelf.c.
8365 # The resulting binary has a complete symbol table, and is better
8366 # for debugging and other observability tools (debuggers, pstack, etc).
8368 # If you encounter a problem using dldump(), please consider sending
8369 # a message to the OpenSolaris tools-linking mailing list:
8370 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8372 # It is likely that dldump() works with older Solaris too, but this has
8373 # not been tested, so for now this change is for Solaris 10 or newer.
8374 UNEXEC_OBJ
=unexsol.o
8381 ## Let `ld' find image libs and similar things in /usr/local/lib.
8382 ## The system compiler, GCC, has apparently been modified to not
8383 ## look there, contrary to what a stock GCC would do.
8384 ### It's not our place to do this. See bug#10313#17.
8385 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8390 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8391 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8395 ### It's not our place to do this. See bug#10313#17.
8396 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8401 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8402 ## otherwise Emacs dumps core on elf systems.
8403 LD_SWITCH_SYSTEM
="-Z"
8408 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8410 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8411 ## which has not been defined yet. When this was handled with cpp,
8412 ## it was expanded to null when configure sourced the s/*.h file.
8413 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8414 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8415 ## (or somesuch), but because it is supposed to go at the _front_
8416 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8417 ## Compare with the gnu-linux case below, which added to the end
8418 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8419 ## LD_SWITCH_SYSTEM_TEMACS.
8422 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8429 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8430 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8434 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8435 ## With ELF, make sure that all common symbols get allocated to in the
8436 ## data section. Otherwise, the dump of temacs may miss variables in
8437 ## the shared library that have been initialized. For example, with
8438 ## GNU libc, __malloc_initialized would normally be resolved to the
8439 ## shared library's .bss section, which is fatal.
8440 if test "x$GCC" = "xyes"; then
8441 C_SWITCH_MACHINE
="-fno-common"
8443 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8446 UNEXEC_OBJ
=unexalpha.o
8455 ## Some programs in src produce warnings saying certain subprograms
8456 ## are too complex and need a MAXMEM value greater than 2000 for
8457 ## additional optimization. --nils@exp-math.uni-essen.de
8458 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8459 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8460 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8461 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8467 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8468 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8470 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8472 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8474 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8476 ## Motif needs -lgen.
8477 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8482 ### Make sure subsequent tests use flags consistent with the build flags.
8484 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8485 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8487 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8490 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8492 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8499 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8504 START_FILES
='pre-crt0.o'
8507 ## Adding -lm confuses the dynamic linker, so omit it.
8509 START_FILES
='pre-crt0.o'
8512 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8513 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8514 SYSTEM_TYPE
=berkeley-unix
8516 gnu-linux | gnu-kfreebsd
)
8517 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8518 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8520 hpux10-20 | hpux11
)
8522 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8525 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8526 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8527 SYSTEM_TYPE
=berkeley-unix
8531 SYSTEM_TYPE
=usg-unix-v
8539 cat >>confdefs.h
<<_ACEOF
8540 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8546 for file in x
$LIB_STANDARD $START_FILES; do
8548 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8552 if test "x$crt_files" != x
; then
8554 ## If user specified a crt-dir, use that unconditionally.
8557 if test "X$CRT_DIR" = "X"; then
8559 CRT_DIR
=/usr
/lib
# default
8561 case "$canonical" in
8562 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8563 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8564 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8565 ## For anything else (eg /usr/lib32), it is up the user to specify
8566 ## the location (bug#5655).
8567 ## Test for crtn.o, not just the directory, because sometimes the
8568 ## directory exists but does not have the relevant files (bug#1287).
8569 ## FIXME better to test for binary compatibility somehow.
8570 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8573 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8577 hpux10-20
) CRT_DIR
=/lib
;;
8580 test "x${GCC}" = xyes
&& crt_gcc
=yes
8586 for file in $crt_files; do
8588 ## If we're using gcc, try to determine it automatically by asking
8589 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8590 ## system-dependent default from above.]
8591 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8593 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8596 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8597 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8598 X"$crt_file" : 'X\(//\)[^/]' \| \
8599 X"$crt_file" : 'X\(//\)$' \| \
8600 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8601 $as_echo X"$crt_file" |
8602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8625 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8628 test "x$crt_missing" = x || \
8629 as_fn_error
"Required file(s) not found:$crt_missing
8630 Try using the --with-crt-dir option." "$LINENO" 5
8632 fi # crt_files != ""
8638 if test -f $CRT_DIR/crti.o
; then
8640 test -f $CRT_DIR/crtn.o || \
8641 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8643 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8644 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8650 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8651 pre_PKG_CONFIG_LIBS
=$LIBS
8653 # Extract the first word of "pkg-config", so it can be a program name with args.
8654 set dummy pkg-config
; ac_word
=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8662 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir
=.
8670 for ac_exec_ext
in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8684 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8685 if test -n "$PKG_CONFIG"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8687 $as_echo "$PKG_CONFIG" >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8698 if test "${with_sound}" != "no"; then
8699 # Sound support for GNU/Linux and the free BSDs.
8700 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8702 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8704 eval as_val
=\$
$as_ac_Header
8705 if test "x$as_val" = x
""yes; then :
8706 cat >>confdefs.h
<<_ACEOF
8707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709 have_sound_header
=yes
8714 # Emulation library used on NetBSD.
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8716 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8717 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 ac_check_lib_save_LIBS
=$LIBS
8721 LIBS
="-lossaudio $LIBS"
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8725 /* Override any GCC internal prototype to avoid an error.
8726 Use char because int might match the return type of a GCC
8727 builtin and then its argument prototype would still apply. */
8735 return _oss_ioctl ();
8740 if ac_fn_c_try_link
"$LINENO"; then :
8741 ac_cv_lib_ossaudio__oss_ioctl
=yes
8743 ac_cv_lib_ossaudio__oss_ioctl
=no
8745 rm -f core conftest.err conftest.
$ac_objext \
8746 conftest
$ac_exeext conftest.
$ac_ext
8747 LIBS
=$ac_check_lib_save_LIBS
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8750 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8751 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8760 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8764 if test "$PKG_CONFIG" = "no" ; then
8767 PKG_CONFIG_MIN_VERSION
=0.9.0
8768 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8770 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8772 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8773 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8774 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8781 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8782 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8784 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8791 ## If we have a custom action on failure, don't print errors, but
8792 ## do set a variable so people can do so. Do it in a subshell
8793 ## to capture any diagnostics in invoking pkg-config.
8794 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8806 if test $succeeded = yes; then
8812 if test $HAVE_ALSA = yes; then
8813 SAVE_CFLAGS
="$CFLAGS"
8815 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8816 LIBS
="$ALSA_LIBS $LIBS"
8817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #include <asoundlib.h>
8823 snd_lib_error_set_handler (0);
8828 if ac_fn_c_try_compile
"$LINENO"; then :
8829 emacs_alsa_normal
=yes
8831 emacs_alsa_normal
=no
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 if test "$emacs_alsa_normal" != yes; then
8835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8837 #include <alsa/asoundlib.h>
8841 snd_lib_error_set_handler (0);
8846 if ac_fn_c_try_compile
"$LINENO"; then :
8847 emacs_alsa_subdir
=yes
8849 emacs_alsa_subdir
=no
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 if test "$emacs_alsa_subdir" != yes; then
8853 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8855 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8858 CFLAGS
="$SAVE_CFLAGS"
8860 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8861 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8863 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8867 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8869 gnu-linux|freebsd|netbsd
)
8871 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8883 for ac_header
in $ac_header_list
8885 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8886 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8888 eval as_val
=\$
$as_ac_Header
8889 if test "x$as_val" = x
""yes; then :
8890 cat >>confdefs.h
<<_ACEOF
8891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8921 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 #include <sys/personality.h>
8928 personality (PER_LINUX32)
8933 if ac_fn_c_try_compile
"$LINENO"; then :
8934 emacs_cv_personality_linux32
=yes
8936 emacs_cv_personality_linux32
=no
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8940 $as_echo "$emacs_cv_personality_linux32" >&6; }
8942 if test $emacs_cv_personality_linux32 = yes; then
8944 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8948 for ac_header
in term.h
8950 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8951 if test "x$ac_cv_header_term_h" = x
""yes; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_TERM_H 1
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8961 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8962 if test "${ac_cv_header_time+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 #include <sys/time.h>
8974 if ((struct tm *) 0)
8980 if ac_fn_c_try_compile
"$LINENO"; then :
8981 ac_cv_header_time
=yes
8983 ac_cv_header_time
=no
8985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8988 $as_echo "$ac_cv_header_time" >&6; }
8989 if test $ac_cv_header_time = yes; then
8991 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8995 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8998 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9004 cat >>confdefs.h
<<_ACEOF
9005 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9008 if test $ac_cv_have_decl_sys_siglist != yes; then
9009 # For Tru64, at least:
9010 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9013 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9019 cat >>confdefs.h
<<_ACEOF
9020 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9023 if test $ac_cv_have_decl___sys_siglist = yes; then
9025 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9030 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9031 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #include <sys/types.h>
9037 #include <sys/wait.h>
9039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9050 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9055 if ac_fn_c_try_compile
"$LINENO"; then :
9056 ac_cv_header_sys_wait_h
=yes
9058 ac_cv_header_sys_wait_h
=no
9060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9063 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9064 if test $ac_cv_header_sys_wait_h = yes; then
9066 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9072 $as_echo_n "checking for speed_t... " >&6; }
9073 if test "${emacs_cv_speed_t+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #include <termios.h>
9087 if ac_fn_c_try_compile
"$LINENO"; then :
9088 emacs_cv_speed_t
=yes
9092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9095 $as_echo "$emacs_cv_speed_t" >&6; }
9096 if test $emacs_cv_speed_t = yes; then
9098 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9105 for ac_header
in net
/if.h
9107 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9108 #if HAVE_SYS_SOCKET_H
9109 #include <sys/socket.h>
9112 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9113 cat >>confdefs.h
<<_ACEOF
9114 #define HAVE_NET_IF_H 1
9121 for ac_header
in ifaddrs.h
9123 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9124 #if HAVE_SYS_SOCKET_H
9125 #include <sys/socket.h>
9128 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9129 cat >>confdefs.h
<<_ACEOF
9130 #define HAVE_IFADDRS_H 1
9137 for ac_header
in net
/if_dl.h
9139 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9140 #if HAVE_SYS_SOCKET_H
9141 #include <sys/socket.h>
9144 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9145 cat >>confdefs.h
<<_ACEOF
9146 #define HAVE_NET_IF_DL_H 1
9154 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9155 #if HAVE_SYS_SOCKET_H
9156 #include <sys/socket.h>
9162 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9164 cat >>confdefs.h
<<_ACEOF
9165 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9170 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9171 #if HAVE_SYS_SOCKET_H
9172 #include <sys/socket.h>
9178 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9180 cat >>confdefs.h
<<_ACEOF
9181 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9186 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9187 #if HAVE_SYS_SOCKET_H
9188 #include <sys/socket.h>
9194 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9196 cat >>confdefs.h
<<_ACEOF
9197 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9202 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9203 #if HAVE_SYS_SOCKET_H
9204 #include <sys/socket.h>
9210 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9212 cat >>confdefs.h
<<_ACEOF
9213 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9218 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9219 #if HAVE_SYS_SOCKET_H
9220 #include <sys/socket.h>
9226 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9228 cat >>confdefs.h
<<_ACEOF
9229 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9234 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9235 #if HAVE_SYS_SOCKET_H
9236 #include <sys/socket.h>
9242 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9244 cat >>confdefs.h
<<_ACEOF
9245 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9257 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9259 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9261 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9262 if test "x$testval" != x
; then
9265 ac_enable_autodepend
=no
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9268 $as_echo "$HAVE_GNU_MAKE" >&6; }
9269 if test $HAVE_GNU_MAKE = yes; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9271 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9272 SAVE_CFLAGS
="$CFLAGS"
9273 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9285 if ac_fn_c_try_compile
"$LINENO"; then :
9288 ac_enable_autodepend
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9291 CFLAGS
="$SAVE_CFLAGS"
9292 test -f deps.d || ac_enable_autodepend
=no
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9295 $as_echo "$ac_enable_autodepend" >&6; }
9297 if test $ac_enable_autodepend = yes; then
9298 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9299 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9300 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9301 deps_frag
=autodeps.mk
9304 deps_frag
=$srcdir/src
/$deps_frag
9310 lisp_frag
=$srcdir/src
/lisp.mk
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9315 $as_echo_n "checking for long file names... " >&6; }
9316 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9319 ac_cv_sys_long_file_names
=yes
9320 # Test for long file names in all the places we know might matter:
9321 # . the current directory, where building will happen
9322 # $prefix/lib where we will be installing things
9323 # $exec_prefix/lib likewise
9324 # $TMPDIR if set, where it might want to write temporary files
9325 # /tmp where it might want to write temporary files
9328 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9329 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9330 # in the usual case where exec_prefix is '${prefix}'.
9332 . |
/* | ?
:[\\/]*) ;; #(
9335 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9336 ac_xdir
=$ac_dir/cf$$
9337 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9338 ac_tf1
=$ac_xdir/conftest9012345
9339 ac_tf2
=$ac_xdir/conftest9012346
9340 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9341 ac_cv_sys_long_file_names
=no
9342 rm -f -r "$ac_xdir" 2>/dev
/null
9343 test $ac_cv_sys_long_file_names = no
&& break
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9347 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9348 if test $ac_cv_sys_long_file_names = yes; then
9350 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9355 #### Choose a window system.
9357 ## We leave window_system equal to none if
9358 ## we end up building without one. Any new window system should
9359 ## set window_system to an appropriate value and add objects to
9360 ## window-system-specific substs.
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9364 $as_echo_n "checking for X... " >&6; }
9367 # Check whether --with-x was given.
9368 if test "${with_x+set}" = set; then :
9372 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9373 if test "x$with_x" = xno
; then
9374 # The user explicitly disabled X.
9377 case $x_includes,$x_libraries in #(
9378 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9379 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9382 # One or both of the vars are not set, and there is no cached value.
9383 ac_x_includes
=no ac_x_libraries
=no
9384 rm -f -r conftest.dir
9385 if mkdir conftest.dir
; then
9387 cat >Imakefile
<<'_ACEOF'
9389 @echo incroot='${INCROOT}'
9391 @echo usrlibdir='${USRLIBDIR}'
9393 @echo libdir='${LIBDIR}'
9395 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9397 for ac_var
in incroot usrlibdir libdir
; do
9398 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9401 for ac_extension
in a so sl dylib la dll
; do
9402 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9403 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9404 ac_im_usrlibdir
=$ac_im_libdir; break
9407 # Screen out bogus values from the imake configuration. They are
9408 # bogus both because they are the default anyway, and because
9409 # using them would break gcc on systems where it needs fixed includes.
9410 case $ac_im_incroot in
9411 /usr
/include
) ac_x_includes
= ;;
9412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9414 case $ac_im_usrlibdir in
9415 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9420 rm -f -r conftest.dir
9423 # Standard set of common directories for X headers.
9424 # Check X11 before X11Rn because it is often a symlink to the current release.
9438 /usr/local/X11/include
9439 /usr/local/X11R7/include
9440 /usr/local/X11R6/include
9441 /usr/local/X11R5/include
9442 /usr/local/X11R4/include
9444 /usr/local/include/X11
9445 /usr/local/include/X11R7
9446 /usr/local/include/X11R6
9447 /usr/local/include/X11R5
9448 /usr/local/include/X11R4
9452 /usr/XFree86/include/X11
9456 /usr/unsupported/include
9458 /usr/local/x11r5/include
9459 /usr/lpp/Xamples/include
9461 /usr/openwin/include
9462 /usr/openwin/share/include'
9464 if test "$ac_x_includes" = no
; then
9465 # Guess where to find include files, by looking for Xlib.h.
9466 # First, try using that file with no special directory specified.
9467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 #include <X11/Xlib.h>
9471 if ac_fn_c_try_cpp
"$LINENO"; then :
9472 # We can compile using X headers with no special include directory.
9475 for ac_dir
in $ac_x_header_dirs; do
9476 if test -r "$ac_dir/X11/Xlib.h"; then
9477 ac_x_includes
=$ac_dir
9482 rm -f conftest.err conftest.
$ac_ext
9483 fi # $ac_x_includes = no
9485 if test "$ac_x_libraries" = no
; then
9486 # Check for the libraries.
9487 # See if we find them without any special options.
9488 # Don't add to $LIBS permanently.
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #include <X11/Xlib.h>
9502 if ac_fn_c_try_link
"$LINENO"; then :
9504 # We can link X programs with no special library path.
9508 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9510 # Don't even attempt the hair of trying to link an X program!
9511 for ac_extension
in a so sl dylib la dll
; do
9512 if test -r "$ac_dir/libX11.$ac_extension"; then
9513 ac_x_libraries
=$ac_dir
9519 rm -f core conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 fi # $ac_x_libraries = no
9523 case $ac_x_includes,$ac_x_libraries in #(
9525 # Didn't find X, or a directory has "'" in its name.
9526 ac_cv_have_x
="have_x=no";; #(
9528 # Record where we found X for the cache.
9529 ac_cv_have_x
="have_x=yes\
9530 ac_x_includes='$ac_x_includes'\
9531 ac_x_libraries='$ac_x_libraries'"
9537 eval "$ac_cv_have_x"
9540 if test "$have_x" != yes; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9542 $as_echo "$have_x" >&6; }
9545 # If each of the values was on the command line, it overrides each guess.
9546 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9547 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9548 # Update the cache value to reflect the command line values.
9549 ac_cv_have_x
="have_x=yes\
9550 ac_x_includes='$x_includes'\
9551 ac_x_libraries='$x_libraries'"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9553 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9556 if test "$no_x" != yes; then
9560 LD_SWITCH_X_SITE_RPATH
=
9561 if test "${x_libraries}" != NONE
; then
9562 if test -n "${x_libraries}"; then
9563 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9564 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9566 x_default_search_path
=""
9567 x_search_path
=${x_libraries}
9568 if test -z "${x_search_path}"; then
9569 x_search_path
=/usr
/lib
9571 for x_library
in `echo ${x_search_path}: | \
9572 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9574 ${x_library}/X11/%L/%T/%N%C%S:\
9575 ${x_library}/X11/%l/%T/%N%C%S:\
9576 ${x_library}/X11/%T/%N%C%S:\
9577 ${x_library}/X11/%L/%T/%N%S:\
9578 ${x_library}/X11/%l/%T/%N%S:\
9579 ${x_library}/X11/%T/%N%S"
9580 if test x
"${x_default_search_path}" = x
; then
9581 x_default_search_path
=${x_search_path}
9583 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9589 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9590 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9593 if test x
"${x_includes}" = x
; then
9594 bitmapdir
=/usr
/include
/X11
/bitmaps
9596 # accumulate include directories that have X11 bitmap subdirectories
9598 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9599 if test -d "${bmd}/X11/bitmaps"; then
9600 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9602 if test -d "${bmd}/bitmaps"; then
9603 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9606 if test ${bmd_acc} != "dummyval"; then
9607 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9614 tmp_CPPFLAGS
="$CPPFLAGS"
9615 tmp_CFLAGS
="$CFLAGS"
9616 CPPFLAGS
="$CPPFLAGS -x objective-c"
9617 CFLAGS
="$CFLAGS -x objective-c"
9620 if test "${with_ns}" != no
; then
9621 if test "${opsys}" = darwin
; then
9623 ns_appdir
=`pwd`/nextstep
/Emacs.app
9624 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9625 ns_appresdir
=${ns_appdir}/Contents
/Resources
9626 ns_appsrc
=Cocoa
/Emacs.base
9627 elif test -f $GNUSTEP_CONFIG_FILE; then
9629 ns_appdir
=`pwd`/nextstep
/Emacs.app
9630 ns_appbindir
=${ns_appdir}
9631 ns_appresdir
=${ns_appdir}/Resources
9632 ns_appsrc
=GNUstep
/Emacs.base
9633 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9634 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9635 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9636 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9637 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9638 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9639 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9640 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9641 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9642 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9643 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9644 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9648 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9649 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <GNUstepBase/GSConfig.h>
9658 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9667 if ac_fn_c_try_compile
"$LINENO"; then :
9668 emacs_cv_objc_exceptions
=yes
9670 emacs_cv_objc_exceptions
=no
9672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9675 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9676 if test $emacs_cv_objc_exceptions = yes; then
9678 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9680 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9684 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9686 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9687 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9690 as_fn_error
"\`--with-ns' was specified, but the include
9691 files are missing or cannot be compiled." "$LINENO" 5
9696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #include <AppKit/AppKit.h>
9703 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9704 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9707 #error "OSX 10.4 or newer required"
9715 if ac_fn_c_try_compile
"$LINENO"; then :
9720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <Foundation/NSObjCRuntime.h>
9732 if ac_fn_c_try_compile
"$LINENO"; then :
9733 ns_have_nsinteger
=yes
9735 ns_have_nsinteger
=no
9737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 if test $ns_osx_have_104 = no
; then
9739 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9741 if test $ns_have_nsinteger = yes; then
9743 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9750 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9751 ns_self_contained
=no
9754 if test "${HAVE_NS}" = yes; then
9755 if test "$with_toolkit_scroll_bars" = "no"; then
9756 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9759 window_system
=nextstep
9760 # set up packaging dirs
9761 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9762 ns_self_contained
=yes
9763 prefix
=${ns_appresdir}
9764 exec_prefix
=${ns_appbindir}
9765 libexecdir
="\${ns_appbindir}/libexec"
9766 archlibdir
="\${ns_appbindir}/libexec"
9767 docdir
="\${ns_appresdir}/etc"
9768 etcdir
="\${ns_appresdir}/etc"
9769 infodir
="\${ns_appresdir}/info"
9770 mandir
="\${ns_appresdir}/man"
9771 lispdir
="\${ns_appresdir}/lisp"
9772 leimdir
="\${ns_appresdir}/leim"
9773 INSTALL_ARCH_INDEP_EXTRA
=
9775 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9777 CFLAGS
="$tmp_CFLAGS"
9778 CPPFLAGS
="$tmp_CPPFLAGS"
9790 if test "${with_w32}" != no
; then
9791 if test "${opsys}" != "cygwin"; then
9792 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9794 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9795 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9798 as_fn_error
"\`--with-w32' was specified, but windows.h
9799 cannot be found." "$LINENO" 5
9804 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9806 if test -n "$ac_tool_prefix"; then
9807 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9808 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9814 if test -n "$WINDRES"; then
9815 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir
=.
9822 for ac_exec_ext
in '' $ac_executable_extensions; do
9823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9824 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 WINDRES
=$ac_cv_prog_WINDRES
9835 if test -n "$WINDRES"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9837 $as_echo "$WINDRES" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9845 if test -z "$ac_cv_prog_WINDRES"; then
9846 ac_ct_WINDRES
=$WINDRES
9847 # Extract the first word of "windres", so it can be a program name with args.
9848 set dummy windres
; ac_word
=$2
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9854 if test -n "$ac_ct_WINDRES"; then
9855 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9861 test -z "$as_dir" && as_dir
=.
9862 for ac_exec_ext
in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_prog_ac_ct_WINDRES
="windres"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9875 if test -n "$ac_ct_WINDRES"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9877 $as_echo "$ac_ct_WINDRES" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9883 if test "x$ac_ct_WINDRES" = x
; then
9884 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
9886 case $cross_compiling:$ac_tool_warned in
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9890 ac_tool_warned
=yes ;;
9892 WINDRES
=$ac_ct_WINDRES
9895 WINDRES
="$ac_cv_prog_WINDRES"
9898 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9899 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9900 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9901 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9903 # Tell the linker that emacs.res is an object (which we compile from
9904 # the rc file), not a linker script.
9905 W32_RES_LINK
="-Wl,-bpe-i386 -Wl,emacs.res"
9912 if test "${HAVE_W32}" = "yes"; then
9917 ## $window_system is now set to the window system we will
9925 case "${window_system}" in
9930 case "${with_x_toolkit}" in
9931 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9932 motif
) USE_X_TOOLKIT
=MOTIF
;;
9934 term_header
=gtkutil.h
9935 USE_X_TOOLKIT
=none
;;
9936 gtk2
) with_gtk2
=yes
9937 term_header
=gtkutil.h
9938 USE_X_TOOLKIT
=none
;;
9939 gtk3
) with_gtk3
=yes
9940 term_header
=gtkutil.h
9941 USE_X_TOOLKIT
=none
;;
9942 no
) USE_X_TOOLKIT
=none
;;
9943 * ) USE_X_TOOLKIT
=maybe
;;
9947 term_header
=nsterm.h
9950 term_header
=w32term.h
9954 if test -n "${term_header}"; then
9956 cat >>confdefs.h
<<_ACEOF
9957 #define TERM_HEADER "${term_header}"
9962 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X
; ac_word
=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir
=.
9978 for ac_exec_ext
in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER
="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9991 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error
"You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10011 to configure." "$LINENO" 5
10015 ### If we're using X11, we should use the X menu package.
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS
=yes ;;
10021 # Does the opsystem file prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10026 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10027 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <malloc.h>
10033 static void hook (void) {}
10037 malloc_set_state (malloc_get_state ());
10038 __after_morecore_hook = hook;
10039 __malloc_initialize_hook = hook;
10044 if ac_fn_c_try_link
"$LINENO"; then :
10045 emacs_cv_var_doug_lea_malloc
=yes
10047 emacs_cv_var_doug_lea_malloc
=no
10049 rm -f core conftest.err conftest.
$ac_objext \
10050 conftest
$ac_exeext conftest.
$ac_ext
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10053 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10054 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10059 ## darwin ld insists on the use of malloc routines in the System framework.
10060 darwin|sol2-10
) system_malloc
=yes ;;
10063 if test "${system_malloc}" = "yes"; then
10065 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10068 GNU_MALLOC_reason
="
10069 (The GNU allocators don't work with this system configuration.)"
10073 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10074 VMLIMIT_OBJ
=vm-limit.o
10079 if test "$doug_lea_malloc" = "yes" ; then
10080 if test "$GNU_MALLOC" = yes ; then
10081 GNU_MALLOC_reason
="
10082 (Using Doug Lea's new malloc from the GNU C Library.)"
10085 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10088 ## Use mmap directly for allocating larger buffers.
10089 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10090 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10091 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10093 gnu
*) REL_ALLOC
=no
;;
10097 if test x
"${REL_ALLOC}" = x
; then
10098 REL_ALLOC
=${GNU_MALLOC}
10101 use_mmap_for_buffers
=no
10103 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10113 for ac_func
in getpagesize
10115 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10116 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10117 cat >>confdefs.h
<<_ACEOF
10118 #define HAVE_GETPAGESIZE 1
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10125 $as_echo_n "checking for working mmap... " >&6; }
10126 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10129 if test "$cross_compiling" = yes; then :
10130 ac_cv_func_mmap_fixed_mapped
=no
10132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 $ac_includes_default
10135 /* malloc might have been renamed as rpl_malloc. */
10138 /* Thanks to Mike Haertel and Jim Avera for this test.
10139 Here is a matrix of mmap possibilities:
10140 mmap private not fixed
10141 mmap private fixed at somewhere currently unmapped
10142 mmap private fixed at somewhere already mapped
10143 mmap shared not fixed
10144 mmap shared fixed at somewhere currently unmapped
10145 mmap shared fixed at somewhere already mapped
10146 For private mappings, we should verify that changes cannot be read()
10147 back from the file, nor mmap's back from the file at a different
10148 address. (There have been systems where private was not correctly
10149 implemented like the infamous i386 svr4.0, and systems where the
10150 VM page cache was not coherent with the file system buffer cache
10151 like early versions of FreeBSD and possibly contemporary NetBSD.)
10152 For shared mappings, we should conversely verify that changes get
10153 propagated back to all the places they're supposed to be.
10155 Grep wants private fixed already mapped.
10156 The main things grep needs to know about mmap are:
10157 * does it exist and is it safe to write into the mmap'd area
10158 * how to use it (BSD variants) */
10161 #include <sys/mman.h>
10163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10167 /* This mess was copied from the GNU getpagesize.h. */
10168 #ifndef HAVE_GETPAGESIZE
10169 # ifdef _SC_PAGESIZE
10170 # define getpagesize() sysconf(_SC_PAGESIZE)
10171 # else /* no _SC_PAGESIZE */
10172 # ifdef HAVE_SYS_PARAM_H
10173 # include <sys/param.h>
10174 # ifdef EXEC_PAGESIZE
10175 # define getpagesize() EXEC_PAGESIZE
10176 # else /* no EXEC_PAGESIZE */
10178 # define getpagesize() NBPG * CLSIZE
10181 # endif /* no CLSIZE */
10182 # else /* no NBPG */
10184 # define getpagesize() NBPC
10185 # else /* no NBPC */
10187 # define getpagesize() PAGESIZE
10188 # endif /* PAGESIZE */
10189 # endif /* no NBPC */
10190 # endif /* no NBPG */
10191 # endif /* no EXEC_PAGESIZE */
10192 # else /* no HAVE_SYS_PARAM_H */
10193 # define getpagesize() 8192 /* punt totally */
10194 # endif /* no HAVE_SYS_PARAM_H */
10195 # endif /* no _SC_PAGESIZE */
10197 #endif /* no HAVE_GETPAGESIZE */
10202 char *data, *data2, *data3;
10203 const char *cdata2;
10207 pagesize = getpagesize ();
10209 /* First, make a file with some known garbage in it. */
10210 data = (char *) malloc (pagesize);
10213 for (i = 0; i < pagesize; ++i)
10214 *(data + i) = rand ();
10216 fd = creat ("conftest.mmap", 0600);
10219 if (write (fd, data, pagesize) != pagesize)
10223 /* Next, check that the tail of a page is zero-filled. File must have
10224 non-zero length, otherwise we risk SIGBUS for entire page. */
10225 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10229 if (write (fd2, cdata2, 1) != 1)
10231 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10232 if (data2 == MAP_FAILED)
10234 for (i = 0; i < pagesize; ++i)
10238 if (munmap (data2, pagesize))
10241 /* Next, try to mmap the file at a fixed address which already has
10242 something else allocated at it. If we can, also make sure that
10243 we see the same garbage. */
10244 fd = open ("conftest.mmap", O_RDWR);
10247 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10248 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10250 for (i = 0; i < pagesize; ++i)
10251 if (*(data + i) != *(data2 + i))
10254 /* Finally, make sure that changes to the mapped area do not
10255 percolate back to the file as seen by read(). (This is a bug on
10256 some variants of i386 svr4.0.) */
10257 for (i = 0; i < pagesize; ++i)
10258 *(data2 + i) = *(data2 + i) + 1;
10259 data3 = (char *) malloc (pagesize);
10262 if (read (fd, data3, pagesize) != pagesize)
10264 for (i = 0; i < pagesize; ++i)
10265 if (*(data + i) != *(data3 + i))
10271 if ac_fn_c_try_run
"$LINENO"; then :
10272 ac_cv_func_mmap_fixed_mapped
=yes
10274 ac_cv_func_mmap_fixed_mapped
=no
10276 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10277 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10282 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10283 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10285 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10288 rm -f conftest.mmap conftest.txt
10290 if test $use_mmap_for_buffers = yes; then
10292 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10297 LIBS
="$LIBS_SYSTEM $LIBS"
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10300 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10301 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10304 ac_check_lib_save_LIBS
=$LIBS
10305 LIBS
="-ldnet $LIBS"
10306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10319 return dnet_ntoa ();
10324 if ac_fn_c_try_link
"$LINENO"; then :
10325 ac_cv_lib_dnet_dnet_ntoa
=yes
10327 ac_cv_lib_dnet_dnet_ntoa
=no
10329 rm -f core conftest.err conftest.
$ac_objext \
10330 conftest
$ac_exeext conftest.
$ac_ext
10331 LIBS
=$ac_check_lib_save_LIBS
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10334 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10335 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10336 cat >>confdefs.h
<<_ACEOF
10337 #define HAVE_LIBDNET 1
10340 LIBS
="-ldnet $LIBS"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10346 $as_echo_n "checking for main in -lXbsd... " >&6; }
10347 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10350 ac_check_lib_save_LIBS
=$LIBS
10351 LIBS
="-lXbsd $LIBS"
10352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10364 if ac_fn_c_try_link
"$LINENO"; then :
10365 ac_cv_lib_Xbsd_main
=yes
10367 ac_cv_lib_Xbsd_main
=no
10369 rm -f core conftest.err conftest.
$ac_objext \
10370 conftest
$ac_exeext conftest.
$ac_ext
10371 LIBS
=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10374 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10375 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10376 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10384 if test "$ac_cv_header_pthread_h"; then
10385 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10386 emacs_pthread_function
=pthread_atfork
10388 emacs_pthread_function
=pthread_self
10390 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10392 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10393 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10394 $as_echo_n "(cached) " >&6
10396 ac_check_lib_save_LIBS
=$LIBS
10397 LIBS
="-lpthread $LIBS"
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10407 char $emacs_pthread_function ();
10411 return $emacs_pthread_function ();
10416 if ac_fn_c_try_link
"$LINENO"; then :
10417 eval "$as_ac_Lib=yes"
10419 eval "$as_ac_Lib=no"
10421 rm -f core conftest.err conftest.
$ac_objext \
10422 conftest
$ac_exeext conftest.
$ac_ext
10423 LIBS
=$ac_check_lib_save_LIBS
10425 eval ac_res
=\$
$as_ac_Lib
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10427 $as_echo "$ac_res" >&6; }
10428 eval as_val
=\$
$as_ac_Lib
10429 if test "x$as_val" = x
""yes; then :
10434 if test "$HAVE_PTHREAD" = yes; then
10435 case "${canonical}" in
10437 *) LIB_PTHREAD
="-lpthread"
10438 LIBS
="$LIB_PTHREAD $LIBS" ;;
10441 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10447 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10448 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10451 ac_check_lib_save_LIBS
=$LIBS
10452 LIBS
="-lpthreads $LIBS"
10453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10466 return cma_open ();
10471 if ac_fn_c_try_link
"$LINENO"; then :
10472 ac_cv_lib_pthreads_cma_open
=yes
10474 ac_cv_lib_pthreads_cma_open
=no
10476 rm -f core conftest.err conftest.
$ac_objext \
10477 conftest
$ac_exeext conftest.
$ac_ext
10478 LIBS
=$ac_check_lib_save_LIBS
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10481 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10482 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10483 cat >>confdefs.h
<<_ACEOF
10484 #define HAVE_LIBPTHREADS 1
10487 LIBS
="-lpthreads $LIBS"
10492 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10493 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10494 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10495 ## added to LIBS in configure would never contain the pthreads part,
10496 ## but the value used in Makefiles might. FIXME?
10498 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10499 ## be harmless on older versions of X where it happens to exist.
10500 test "$opsys" = "aix4-2" && \
10501 test $ac_cv_lib_pthreads_cma_open = yes && \
10502 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10508 $as_echo_n "checking for -bbigtoc option... " >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10514 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc
=-bbigtoc ;;
10518 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10530 if ac_fn_c_try_link
"$LINENO"; then :
10535 rm -f core conftest.err conftest.
$ac_objext \
10536 conftest
$ac_exeext conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10540 $as_echo "$gdb_cv_bigtoc" >&6; }
10544 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10545 # used for the tests that follow. We set them back to REAL_CFLAGS and
10546 # REAL_CPPFLAGS later on.
10548 REAL_CFLAGS
="$CFLAGS"
10549 REAL_CPPFLAGS
="$CPPFLAGS"
10551 if test "${HAVE_X11}" = "yes"; then
10552 DEFS
="$C_SWITCH_X_SITE $DEFS"
10553 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10555 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10556 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10558 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10559 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10560 # but it's more convenient here to set LD_RUN_PATH since this
10561 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10562 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10563 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10567 if test "${opsys}" = "gnu-linux"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10569 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10576 XOpenDisplay ("foo");
10581 if ac_fn_c_try_link
"$LINENO"; then :
10582 xgnu_linux_first_failure
=no
10584 xgnu_linux_first_failure
=yes
10586 rm -f core conftest.err conftest.
$ac_objext \
10587 conftest
$ac_exeext conftest.
$ac_ext
10588 if test "${xgnu_linux_first_failure}" = "yes"; then
10589 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10590 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10591 OLD_CPPFLAGS
="$CPPFLAGS"
10593 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10594 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10595 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10596 LIBS
="$LIBS -b i486-linuxaout"
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10603 XOpenDisplay ("foo");
10608 if ac_fn_c_try_link
"$LINENO"; then :
10609 xgnu_linux_second_failure
=no
10611 xgnu_linux_second_failure
=yes
10613 rm -f core conftest.err conftest.
$ac_objext \
10614 conftest
$ac_exeext conftest.
$ac_ext
10615 if test "${xgnu_linux_second_failure}" = "yes"; then
10616 # If we get the same failure with -b, there is no use adding -b.
10617 # So take it out. This plays safe.
10618 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10619 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10620 CPPFLAGS
="$OLD_CPPFLAGS"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 $as_echo "yes" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10634 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10635 # header files included from there.
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10637 $as_echo_n "checking for Xkb... " >&6; }
10638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <X11/Xlib.h>
10641 #include <X11/XKBlib.h>
10645 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10650 if ac_fn_c_try_link
"$LINENO"; then :
10655 rm -f core conftest.err conftest.
$ac_objext \
10656 conftest
$ac_exeext conftest.
$ac_ext
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10658 $as_echo "$emacs_xkb" >&6; }
10659 if test $emacs_xkb = yes; then
10661 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10665 for ac_func
in XrmSetDatabase XScreenResourceString \
10666 XScreenNumberOfScreen
10668 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10669 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10670 eval as_val
=\$
$as_ac_var
10671 if test "x$as_val" = x
""yes; then :
10672 cat >>confdefs.h
<<_ACEOF
10673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10681 if test "${window_system}" = "x11"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10683 $as_echo_n "checking X11 version 6... " >&6; }
10684 if test "${emacs_cv_x11_version_6+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10689 #include <X11/Xlib.h>
10693 #if XlibSpecificationRelease < 6
10701 if ac_fn_c_try_link
"$LINENO"; then :
10702 emacs_cv_x11_version_6
=yes
10704 emacs_cv_x11_version_6
=no
10706 rm -f core conftest.err conftest.
$ac_objext \
10707 conftest
$ac_exeext conftest.
$ac_ext
10710 if test $emacs_cv_x11_version_6 = yes; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10712 $as_echo "6 or newer" >&6; }
10714 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10717 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10719 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10724 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10730 $as_echo "before 6" >&6; }
10735 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10737 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10738 if test "${with_rsvg}" != "no"; then
10739 RSVG_REQUIRED
=2.11.0
10740 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10745 if test "$PKG_CONFIG" = "no" ; then
10748 PKG_CONFIG_MIN_VERSION
=0.9.0
10749 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10751 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10753 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10754 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10755 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10762 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10763 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10765 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10772 ## If we have a custom action on failure, don't print errors, but
10773 ## do set a variable so people can do so. Do it in a subshell
10774 ## to capture any diagnostics in invoking pkg-config.
10775 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10782 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10783 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10787 if test $succeeded = yes; then
10796 if test $HAVE_RSVG = yes; then
10798 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10800 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10801 LIBS
="$RSVG_LIBS $LIBS"
10806 HAVE_IMAGEMAGICK
=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_imagemagick}" != "no"; then
10809 ## 6.2.8 is the earliest version known to work, but earlier versions
10810 ## might work - let us know if you find one.
10811 ## 6.0.7 does not work. See bug#7955.
10812 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10816 if test "$PKG_CONFIG" = "no" ; then
10819 PKG_CONFIG_MIN_VERSION
=0.9.0
10820 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10822 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10824 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10825 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10826 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10833 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10834 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10836 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10841 IMAGEMAGICK_CFLAGS
=""
10842 IMAGEMAGICK_LIBS
=""
10843 ## If we have a custom action on failure, don't print errors, but
10844 ## do set a variable so people can do so. Do it in a subshell
10845 ## to capture any diagnostics in invoking pkg-config.
10846 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10858 if test $succeeded = yes; then
10859 HAVE_IMAGEMAGICK
=yes
10867 if test $HAVE_IMAGEMAGICK = yes; then
10869 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10871 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10872 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10873 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10875 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10877 eval as_val
=\$
$as_ac_var
10878 if test "x$as_val" = x
""yes; then :
10879 cat >>confdefs.h
<<_ACEOF
10880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10895 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10898 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10903 if test "$PKG_CONFIG" = "no" ; then
10906 PKG_CONFIG_MIN_VERSION
=0.9.0
10907 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10909 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10911 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10912 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10913 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10920 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10921 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10923 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10930 ## If we have a custom action on failure, don't print errors, but
10931 ## do set a variable so people can do so. Do it in a subshell
10932 ## to capture any diagnostics in invoking pkg-config.
10933 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10945 if test $succeeded = yes; then
10951 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10952 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10954 if test "$pkg_check_gtk" = "yes"; then
10956 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10958 GTK_OBJ
=emacsgtkfixed.o
10959 term_header
=gtkutil.h
10960 USE_GTK_TOOLKIT
="GTK3"
10961 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
10962 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
10966 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10970 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10973 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10978 if test "$PKG_CONFIG" = "no" ; then
10981 PKG_CONFIG_MIN_VERSION
=0.9.0
10982 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10984 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10986 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10987 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10988 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10995 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10996 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10998 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so. Do it in a subshell
11007 ## to capture any diagnostics in invoking pkg-config.
11008 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11020 if test $succeeded = yes; then
11026 if test "$pkg_check_gtk" = "no" &&
11027 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11029 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11031 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11034 if test x
"$pkg_check_gtk" = xyes
; then
11038 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11039 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11040 LIBS
="$GTK_LIBS $LIBS"
11042 for ac_func
in gtk_main
11044 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11045 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11046 cat >>confdefs.h
<<_ACEOF
11047 #define HAVE_GTK_MAIN 1
11053 if test "${GTK_COMPILES}" != "yes"; then
11054 if test "$USE_X_TOOLKIT" != "maybe"; then
11055 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11060 $as_echo "#define USE_GTK 1" >>confdefs.h
11062 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11064 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11068 closing open displays. This is no problem if you just use
11069 one display, but if you use more than one and close one of them
11070 Emacs may crash." >&5
11071 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11072 closing open displays. This is no problem if you just use
11073 one display, but if you use more than one and close one of them
11074 Emacs may crash." >&2;}
11083 if test "${HAVE_GTK}" = "yes"; then
11085 if test "$with_toolkit_scroll_bars" != no
; then
11086 with_toolkit_scroll_bars
=yes
11089 HAVE_GTK_FILE_SELECTION
=no
11090 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11091 #include <gtk/gtk.h>
11093 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11094 HAVE_GTK_FILE_SELECTION
=yes
11096 HAVE_GTK_FILE_SELECTION
=no
11099 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11100 for ac_func
in gtk_file_selection_new
11102 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11103 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11104 cat >>confdefs.h
<<_ACEOF
11105 #define HAVE_GTK_FILE_SELECTION_NEW 1
11113 HAVE_GTK_HANDLE_BOX
=no
11114 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11115 #include <gtk/gtk.h>
11117 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11118 HAVE_GTK_HANDLE_BOX
=yes
11120 HAVE_GTK_HANDLE_BOX
=no
11123 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11124 for ac_func
in gtk_handle_box_new
11126 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11127 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11128 cat >>confdefs.h
<<_ACEOF
11129 #define HAVE_GTK_HANDLE_BOX_NEW 1
11137 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11138 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11139 #include <gtk/gtk.h>
11141 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11142 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11144 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11147 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11148 for ac_func
in gtk_tearoff_menu_item_new
11150 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11151 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11152 cat >>confdefs.h
<<_ACEOF
11153 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11161 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11162 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11163 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11164 gtk_orientable_set_orientation \
11165 gtk_window_set_has_resize_grip
11167 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11169 eval as_val
=\$
$as_ac_var
11170 if test "x$as_val" = x
""yes; then :
11171 cat >>confdefs.h
<<_ACEOF
11172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11179 term_header
=gtkutil.h
11184 if test "${with_dbus}" = "yes"; then
11188 if test "$PKG_CONFIG" = "no" ; then
11191 PKG_CONFIG_MIN_VERSION
=0.9.0
11192 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11194 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11196 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11197 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11198 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11205 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11206 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11208 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11215 ## If we have a custom action on failure, don't print errors, but
11216 ## do set a variable so people can do so. Do it in a subshell
11217 ## to capture any diagnostics in invoking pkg-config.
11218 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11230 if test $succeeded = yes; then
11236 if test "$HAVE_DBUS" = yes; then
11237 LIBS
="$LIBS $DBUS_LIBS"
11239 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11241 for ac_func
in dbus_watch_get_unix_fd \
11242 dbus_type_is_valid \
11243 dbus_validate_bus_name \
11244 dbus_validate_path \
11245 dbus_validate_interface \
11246 dbus_validate_member
11248 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11249 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11250 eval as_val
=\$
$as_ac_var
11251 if test "x$as_val" = x
""yes; then :
11252 cat >>confdefs.h
<<_ACEOF
11253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 DBUS_OBJ
=dbusbind.o
11265 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11269 if test "$PKG_CONFIG" = "no" ; then
11272 PKG_CONFIG_MIN_VERSION
=0.9.0
11273 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11275 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11277 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11278 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11279 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11286 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11287 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11289 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 GSETTINGS_CFLAGS
=""
11296 ## If we have a custom action on failure, don't print errors, but
11297 ## do set a variable so people can do so. Do it in a subshell
11298 ## to capture any diagnostics in invoking pkg-config.
11299 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11311 if test $succeeded = yes; then
11317 if test "$HAVE_GSETTINGS" = "yes"; then
11319 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11321 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11322 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11327 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11331 if test "$PKG_CONFIG" = "no" ; then
11334 PKG_CONFIG_MIN_VERSION
=0.9.0
11335 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11337 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11339 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11340 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11341 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11348 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11349 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11351 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11358 ## If we have a custom action on failure, don't print errors, but
11359 ## do set a variable so people can do so. Do it in a subshell
11360 ## to capture any diagnostics in invoking pkg-config.
11361 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11373 if test $succeeded = yes; then
11379 if test "$HAVE_GCONF" = yes; then
11381 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11383 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11384 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11388 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11392 if test "$PKG_CONFIG" = "no" ; then
11395 PKG_CONFIG_MIN_VERSION
=0.9.0
11396 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11398 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11400 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11401 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11402 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11409 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11410 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11412 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11419 ## If we have a custom action on failure, don't print errors, but
11420 ## do set a variable so people can do so. Do it in a subshell
11421 ## to capture any diagnostics in invoking pkg-config.
11422 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11429 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11430 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11434 if test $succeeded = yes; then
11440 if test "$HAVE_GOBJECT" = "yes"; then
11441 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11442 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11444 SAVE_CFLAGS
="$CFLAGS"
11446 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11447 LIBS
="$SETTINGS_LIBS $LIBS"
11448 for ac_func
in g_type_init
11450 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11451 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11452 cat >>confdefs.h
<<_ACEOF
11453 #define HAVE_G_TYPE_INIT 1
11459 CFLAGS
="$SAVE_CFLAGS"
11468 if test "${with_selinux}" = "yes"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11470 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11471 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11474 ac_check_lib_save_LIBS
=$LIBS
11475 LIBS
="-lselinux $LIBS"
11476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11485 char lgetfilecon ();
11489 return lgetfilecon ();
11494 if ac_fn_c_try_link
"$LINENO"; then :
11495 ac_cv_lib_selinux_lgetfilecon
=yes
11497 ac_cv_lib_selinux_lgetfilecon
=no
11499 rm -f core conftest.err conftest.
$ac_objext \
11500 conftest
$ac_exeext conftest.
$ac_ext
11501 LIBS
=$ac_check_lib_save_LIBS
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11504 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11505 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11506 HAVE_LIBSELINUX
=yes
11511 if test "$HAVE_LIBSELINUX" = yes; then
11513 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11515 LIBSELINUX_LIBS
=-lselinux
11521 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11522 if test "${with_gnutls}" = "yes" ; then
11526 if test "$PKG_CONFIG" = "no" ; then
11529 PKG_CONFIG_MIN_VERSION
=0.9.0
11530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11532 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11534 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11535 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11536 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11543 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11544 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11546 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 LIBGNUTLS_CFLAGS
=""
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so. Do it in a subshell
11555 ## to capture any diagnostics in invoking pkg-config.
11556 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11568 if test $succeeded = yes; then
11574 if test "${HAVE_GNUTLS}" = "yes"; then
11576 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11580 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11581 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11582 for ac_func
in gnutls_certificate_set_verify_function
11584 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11585 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11586 cat >>confdefs.h
<<_ACEOF
11587 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11589 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11594 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11596 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11604 if test "${with_inotify}" = "yes"; then
11605 for ac_header
in sys
/inotify.h
11607 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11608 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
11609 cat >>confdefs.h
<<_ACEOF
11610 #define HAVE_SYS_INOTIFY_H 1
11617 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11618 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11619 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
11625 if test "$ac_cv_func_inotify_init1" = yes; then
11627 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11633 if test "${with_acl}" = "yes"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11635 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11636 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11639 ac_check_lib_save_LIBS
=$LIBS
11641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11650 char acl_set_file ();
11654 return acl_set_file ();
11659 if ac_fn_c_try_link
"$LINENO"; then :
11660 ac_cv_lib_acl_acl_set_file
=yes
11662 ac_cv_lib_acl_acl_set_file
=no
11664 rm -f core conftest.err conftest.
$ac_objext \
11665 conftest
$ac_exeext conftest.
$ac_ext
11666 LIBS
=$ac_check_lib_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11669 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11670 if test "x$ac_cv_lib_acl_acl_set_file" = x
""yes; then :
11676 if test "$HAVE_POSIX_ACL" = yes; then
11678 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11682 ac_fn_c_check_func
"$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11683 if test "x$ac_cv_func_acl_set_file" = x
""yes; then :
11689 if test "$HAVE_POSIX_ACL" = yes; then
11691 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11700 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11701 if test "$with_xaw3d" != no
; then
11702 if test "${emacs_cv_xaw3d+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11708 #include <X11/Intrinsic.h>
11709 #include <X11/Xaw3d/Simple.h>
11718 if ac_fn_c_try_link
"$LINENO"; then :
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11720 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11721 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11724 ac_check_lib_save_LIBS
=$LIBS
11725 LIBS
="-lXaw3d $LIBS"
11726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11729 /* Override any GCC internal prototype to avoid an error.
11730 Use char because int might match the return type of a GCC
11731 builtin and then its argument prototype would still apply. */
11735 char XawScrollbarSetThumb ();
11739 return XawScrollbarSetThumb ();
11744 if ac_fn_c_try_link
"$LINENO"; then :
11745 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11747 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11749 rm -f core conftest.err conftest.
$ac_objext \
11750 conftest
$ac_exeext conftest.
$ac_ext
11751 LIBS
=$ac_check_lib_save_LIBS
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11754 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11755 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11764 rm -f core conftest.err conftest.
$ac_objext \
11765 conftest
$ac_exeext conftest.
$ac_ext
11771 if test $emacs_cv_xaw3d = yes; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11773 $as_echo_n "checking for xaw3d... " >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11775 $as_echo "yes; using Lucid toolkit" >&6; }
11776 USE_X_TOOLKIT
=LUCID
11780 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11784 $as_echo_n "checking for xaw3d... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11788 $as_echo_n "checking for libXaw... " >&6; }
11789 if test "${emacs_cv_xaw+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 #include <X11/Intrinsic.h>
11796 #include <X11/Xaw/Simple.h>
11805 if ac_fn_c_try_link
"$LINENO"; then :
11810 rm -f core conftest.err conftest.
$ac_objext \
11811 conftest
$ac_exeext conftest.
$ac_ext
11814 if test $emacs_cv_xaw = yes; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11816 $as_echo "yes; using Lucid toolkit" >&6; }
11817 USE_X_TOOLKIT
=LUCID
11819 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11820 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11822 as_fn_error
"No X toolkit could be found.
11823 If you are sure you want Emacs compiled without an X toolkit, pass
11824 --with-x-toolkit=no
11825 to configure. Otherwise, install the development libraries for the toolkit
11826 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11831 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11834 if test "${USE_X_TOOLKIT}" != "none"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11836 $as_echo_n "checking X11 toolkit version... " >&6; }
11837 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11838 $as_echo_n "(cached) " >&6
11840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <X11/Intrinsic.h>
11846 #if XtSpecificationRelease < 6
11854 if ac_fn_c_try_link
"$LINENO"; then :
11855 emacs_cv_x11_toolkit_version_6
=yes
11857 emacs_cv_x11_toolkit_version_6
=no
11859 rm -f core conftest.err conftest.
$ac_objext \
11860 conftest
$ac_exeext conftest.
$ac_ext
11863 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11864 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11866 $as_echo "6 or newer" >&6; }
11868 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11870 LIBXTR6
="-lSM -lICE"
11872 ## Use libw.a along with X11R6 Xt.
11873 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11877 $as_echo "before 6" >&6; }
11881 if test x
$HAVE_X11XTR6 = xyes
; then
11882 LIBS
="-lXt -lSM -lICE $LIBS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11887 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11888 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11891 ac_check_lib_save_LIBS
=$LIBS
11893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11902 char XmuConvertStandardSelection ();
11906 return XmuConvertStandardSelection ();
11911 if ac_fn_c_try_link
"$LINENO"; then :
11912 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11914 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11916 rm -f core conftest.err conftest.
$ac_objext \
11917 conftest
$ac_exeext conftest.
$ac_ext
11918 LIBS
=$ac_check_lib_save_LIBS
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11921 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11922 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11923 cat >>confdefs.h
<<_ACEOF
11924 #define HAVE_LIBXMU 1
11931 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11937 ## These systems don't supply Xmu.
11939 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11945 if test "${HAVE_X11}" = "yes"; then
11946 if test "${USE_X_TOOLKIT}" != "none"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11948 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11949 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11952 ac_check_lib_save_LIBS
=$LIBS
11953 LIBS
="-lXext $LIBS"
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11963 char XShapeQueryExtension ();
11967 return XShapeQueryExtension ();
11972 if ac_fn_c_try_link
"$LINENO"; then :
11973 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11975 ac_cv_lib_Xext_XShapeQueryExtension
=no
11977 rm -f core conftest.err conftest.
$ac_objext \
11978 conftest
$ac_exeext conftest.
$ac_ext
11979 LIBS
=$ac_check_lib_save_LIBS
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11982 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11983 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11984 cat >>confdefs.h
<<_ACEOF
11985 #define HAVE_LIBXEXT 1
11988 LIBS
="-lXext $LIBS"
11996 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11997 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11998 if test -d /usr
/include
/openmotif
; then
11999 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12000 emacs_cv_openmotif
=yes
12001 case "$canonical" in
12002 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12003 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12006 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12009 emacs_cv_openmotif
=no
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12012 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12013 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12022 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12025 Motif version prior to 2.1.
12031 if ac_fn_c_try_compile
"$LINENO"; then :
12032 emacs_cv_motif_version_2_1
=yes
12034 emacs_cv_motif_version_2_1
=no
12036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12039 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12040 if test $emacs_cv_motif_version_2_1 = yes; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12042 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12043 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 ac_check_lib_save_LIBS
=$LIBS
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12057 char XpCreateContext ();
12061 return XpCreateContext ();
12066 if ac_fn_c_try_link
"$LINENO"; then :
12067 ac_cv_lib_Xp_XpCreateContext
=yes
12069 ac_cv_lib_Xp_XpCreateContext
=no
12071 rm -f core conftest.err conftest.
$ac_objext \
12072 conftest
$ac_exeext conftest.
$ac_ext
12073 LIBS
=$ac_check_lib_save_LIBS
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12076 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12077 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12081 if test x
$emacs_cv_openmotif = xyes
; then
12082 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12086 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12087 if test "${emacs_cv_lesstif+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12090 # We put this in CFLAGS temporarily to precede other -I options
12091 # that might be in CFLAGS temporarily.
12092 # We put this in CPPFLAGS where it precedes the other -I options.
12093 OLD_CPPFLAGS
=$CPPFLAGS
12095 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12096 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12108 if ac_fn_c_try_compile
"$LINENO"; then :
12109 emacs_cv_lesstif
=yes
12111 emacs_cv_lesstif
=no
12113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12116 $as_echo "$emacs_cv_lesstif" >&6; }
12117 if test $emacs_cv_lesstif = yes; then
12118 # Make sure this -I option remains in CPPFLAGS after it is set
12119 # back to REAL_CPPFLAGS.
12120 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12121 # have those other -I options anyway. Ultimately, having this
12122 # directory ultimately in CPPFLAGS will be enough.
12123 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12124 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12127 CPPFLAGS
=$OLD_CPPFLAGS
12130 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12134 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12141 USE_TOOLKIT_SCROLL_BARS
=no
12142 if test "${with_toolkit_scroll_bars}" != "no"; then
12143 if test "${USE_X_TOOLKIT}" != "none"; then
12144 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12145 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12148 USE_TOOLKIT_SCROLL_BARS
=yes
12149 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12150 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12152 USE_TOOLKIT_SCROLL_BARS
=yes
12154 elif test "${HAVE_GTK}" = "yes"; then
12155 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12157 USE_TOOLKIT_SCROLL_BARS
=yes
12158 elif test "${HAVE_NS}" = "yes"; then
12159 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12161 USE_TOOLKIT_SCROLL_BARS
=yes
12162 elif test "${HAVE_W32}" = "yes"; then
12163 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12165 USE_TOOLKIT_SCROLL_BARS
=yes
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 #include <X11/Xlib.h>
12173 #include <X11/Xresource.h>
12182 if ac_fn_c_try_compile
"$LINENO"; then :
12185 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12193 if test "${with_xim}" != "no"; then
12195 $as_echo "#define USE_XIM 1" >>confdefs.h
12200 if test "${HAVE_XIM}" != "no"; then
12201 late_CFLAGS
=$CFLAGS
12202 if test "$GCC" = yes; then
12203 CFLAGS
="$CFLAGS --pedantic-errors"
12205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 #include <X11/Xlib.h>
12209 #include <X11/Xresource.h>
12218 XPointer *client_data;
12220 /* If we're not using GCC, it's probably not XFree86, and this is
12221 probably right, but we can't use something like --pedantic-errors. */
12222 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12223 char*, XIMProc, XPointer*);
12225 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12231 if ac_fn_c_try_compile
"$LINENO"; then :
12232 emacs_cv_arg6_star
=yes
12234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12235 if test "$emacs_cv_arg6_star" = yes; then
12236 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12239 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12242 CFLAGS
=$late_CFLAGS
12245 ### Start of font-backend (under any platform) section.
12246 # (nothing here yet -- this is a placeholder)
12247 ### End of font-backend (under any platform) section.
12249 ### Start of font-backend (under X11) section.
12250 if test "${HAVE_X11}" = "yes"; then
12254 if test "$PKG_CONFIG" = "no" ; then
12257 PKG_CONFIG_MIN_VERSION
=0.9.0
12258 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12260 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12262 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12263 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12264 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12271 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12272 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12274 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 FONTCONFIG_CFLAGS
=""
12281 ## If we have a custom action on failure, don't print errors, but
12282 ## do set a variable so people can do so. Do it in a subshell
12283 ## to capture any diagnostics in invoking pkg-config.
12284 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12296 if test $succeeded = yes; then
12303 ## Use -lXft if available, unless `--with-xft=no'.
12305 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12308 if test "x${with_xft}" != "xno"; then
12313 if test "$PKG_CONFIG" = "no" ; then
12316 PKG_CONFIG_MIN_VERSION
=0.9.0
12317 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12319 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12321 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12322 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12323 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12330 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12331 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12333 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12340 ## If we have a custom action on failure, don't print errors, but
12341 ## do set a variable so people can do so. Do it in a subshell
12342 ## to capture any diagnostics in invoking pkg-config.
12343 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12355 if test $succeeded = yes; then
12361 ## Because xftfont.c uses XRenderQueryExtension, we also
12362 ## need to link to -lXrender.
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12365 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12366 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 ac_check_lib_save_LIBS
=$LIBS
12370 LIBS
="-lXrender $LIBS"
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12380 char XRenderQueryExtension ();
12384 return XRenderQueryExtension ();
12389 if ac_fn_c_try_link
"$LINENO"; then :
12390 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12392 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12394 rm -f core conftest.err conftest.
$ac_objext \
12395 conftest
$ac_exeext conftest.
$ac_ext
12396 LIBS
=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12399 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12400 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12404 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12405 OLD_CPPFLAGS
="$CPPFLAGS"
12406 OLD_CFLAGS
="$CFLAGS"
12408 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12409 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12410 XFT_LIBS
="-lXrender $XFT_LIBS"
12411 LIBS
="$XFT_LIBS $LIBS"
12412 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12413 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12415 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12416 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12419 ac_check_lib_save_LIBS
=$LIBS
12420 LIBS
="-lXft $XFT_LIBS $LIBS"
12421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12430 char XftFontOpen ();
12434 return XftFontOpen ();
12439 if ac_fn_c_try_link
"$LINENO"; then :
12440 ac_cv_lib_Xft_XftFontOpen
=yes
12442 ac_cv_lib_Xft_XftFontOpen
=no
12444 rm -f core conftest.err conftest.
$ac_objext \
12445 conftest
$ac_exeext conftest.
$ac_ext
12446 LIBS
=$ac_check_lib_save_LIBS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12449 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12450 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12458 if test "${HAVE_XFT}" = "yes"; then
12460 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12463 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12465 CPPFLAGS
="$OLD_CPPFLAGS"
12466 CFLAGS
="$OLD_CFLAGS"
12468 fi # "${HAVE_XFT}" = "yes"
12469 fi # "$HAVE_XFT" != no
12470 fi # "x${with_xft}" != "xno"
12472 ## We used to allow building with FreeType and without Xft.
12473 ## However, the ftx font backend driver is not in good shape.
12474 if test "$HAVE_XFT" != "yes"; then
12481 if test "$PKG_CONFIG" = "no" ; then
12484 PKG_CONFIG_MIN_VERSION
=0.9.0
12485 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12487 $as_echo_n "checking for freetype2... " >&6; }
12489 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12490 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12491 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12498 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12499 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12501 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12508 ## If we have a custom action on failure, don't print errors, but
12509 ## do set a variable so people can do so. Do it in a subshell
12510 ## to capture any diagnostics in invoking pkg-config.
12511 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12523 if test $succeeded = yes; then
12530 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12534 if test "${HAVE_FREETYPE}" = "yes"; then
12536 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12538 if test "${with_libotf}" != "no"; then
12542 if test "$PKG_CONFIG" = "no" ; then
12545 PKG_CONFIG_MIN_VERSION
=0.9.0
12546 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12548 $as_echo_n "checking for libotf... " >&6; }
12550 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12551 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12552 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12559 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12560 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12562 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12569 ## If we have a custom action on failure, don't print errors, but
12570 ## do set a variable so people can do so. Do it in a subshell
12571 ## to capture any diagnostics in invoking pkg-config.
12572 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12584 if test $succeeded = yes; then
12590 if test "$HAVE_LIBOTF" = "yes"; then
12592 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12595 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12596 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12599 ac_check_lib_save_LIBS
=$LIBS
12601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12610 char OTF_get_variation_glyphs ();
12614 return OTF_get_variation_glyphs ();
12619 if ac_fn_c_try_link
"$LINENO"; then :
12620 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12622 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12624 rm -f core conftest.err conftest.
$ac_objext \
12625 conftest
$ac_exeext conftest.
$ac_ext
12626 LIBS
=$ac_check_lib_save_LIBS
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12629 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12630 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12631 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12633 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12636 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12638 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12646 if test "${HAVE_LIBOTF}" = yes; then
12647 if test "${with_m17n_flt}" != "no"; then
12651 if test "$PKG_CONFIG" = "no" ; then
12654 PKG_CONFIG_MIN_VERSION
=0.9.0
12655 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12657 $as_echo_n "checking for m17n-flt... " >&6; }
12659 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12660 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12661 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12668 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12669 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12671 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12678 ## If we have a custom action on failure, don't print errors, but
12679 ## do set a variable so people can do so. Do it in a subshell
12680 ## to capture any diagnostics in invoking pkg-config.
12681 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12688 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12689 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12693 if test $succeeded = yes; then
12699 if test "$HAVE_M17N_FLT" = "yes"; then
12701 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12713 ### End of font-backend (under X11) section.
12724 ### Use -lXpm if available, unless `--with-xpm=no'.
12728 if test "${HAVE_W32}" = "yes"; then
12729 if test "${with_xpm}" != "no"; then
12730 SAVE_CPPFLAGS
="$CPPFLAGS"
12731 SAVE_LDFLAGS
="$LDFLAGS"
12732 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12733 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12734 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12737 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12738 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12741 ac_check_lib_save_LIBS
=$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 XpmReadFileToImage ();
12756 return XpmReadFileToImage ();
12761 if ac_fn_c_try_link
"$LINENO"; then :
12762 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12764 ac_cv_lib_Xpm_XpmReadFileToImage
=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_Xpm_XpmReadFileToImage" >&5
12771 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12772 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12779 if test "${HAVE_XPM}" = "yes"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12781 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include "X11/xpm.h"
12785 #ifndef XpmReturnAllocPixels
12786 no_return_alloc_pixels
12790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12791 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12799 if test "${HAVE_XPM}" = "yes"; then
12800 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802 $as_echo "yes" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 CPPFLAGS
="$SAVE_CPPFLAGS"
12807 LDFLAGS
="$SAVE_LDFLAGS"
12812 if test "${HAVE_XPM}" = "yes"; then
12814 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12820 if test "${HAVE_X11}" = "yes"; then
12821 if test "${with_xpm}" != "no"; then
12822 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12825 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12826 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12829 ac_check_lib_save_LIBS
=$LIBS
12830 LIBS
="-lXpm -lX11 $LIBS"
12831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12834 /* Override any GCC internal prototype to avoid an error.
12835 Use char because int might match the return type of a GCC
12836 builtin and then its argument prototype would still apply. */
12840 char XpmReadFileToPixmap ();
12844 return XpmReadFileToPixmap ();
12849 if ac_fn_c_try_link
"$LINENO"; then :
12850 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12852 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12854 rm -f core conftest.err conftest.
$ac_objext \
12855 conftest
$ac_exeext conftest.
$ac_ext
12856 LIBS
=$ac_check_lib_save_LIBS
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12859 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12860 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12867 if test "${HAVE_XPM}" = "yes"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12869 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872 #include "X11/xpm.h"
12873 #ifndef XpmReturnAllocPixels
12874 no_return_alloc_pixels
12878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12879 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12887 if test "${HAVE_XPM}" = "yes"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889 $as_echo "yes" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12897 if test "${HAVE_XPM}" = "yes"; then
12899 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12907 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12910 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12911 if test "${with_jpeg}" != "no"; then
12912 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12913 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12915 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12916 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12919 ac_check_lib_save_LIBS
=$LIBS
12920 LIBS
="-ljpeg $LIBS"
12921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12930 char jpeg_destroy_compress ();
12934 return jpeg_destroy_compress ();
12939 if ac_fn_c_try_link
"$LINENO"; then :
12940 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12942 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12944 rm -f core conftest.err conftest.
$ac_objext \
12945 conftest
$ac_exeext conftest.
$ac_ext
12946 LIBS
=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12949 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12950 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12959 if test "${HAVE_JPEG}" = "yes"; then
12960 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <jpeglib.h>
12965 version=JPEG_LIB_VERSION
12968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12969 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12970 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12974 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12980 if test "${HAVE_JPEG}" = "yes"; then
12986 ### Use -lpng if available, unless `--with-png=no'.
12989 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12990 if test "${with_png}" != "no"; then
12991 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12992 # in /usr/include/libpng.
12993 for ac_header
in png.h libpng
/png.h
12995 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12997 eval as_val
=\$
$as_ac_Header
12998 if test "x$as_val" = x
""yes; then :
12999 cat >>confdefs.h
<<_ACEOF
13000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13007 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13009 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13010 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13013 ac_check_lib_save_LIBS
=$LIBS
13014 LIBS
="-lpng -lz -lm $LIBS"
13015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13024 char png_get_channels ();
13028 return png_get_channels ();
13033 if ac_fn_c_try_link
"$LINENO"; then :
13034 ac_cv_lib_png_png_get_channels
=yes
13036 ac_cv_lib_png_png_get_channels
=no
13038 rm -f core conftest.err conftest.
$ac_objext \
13039 conftest
$ac_exeext conftest.
$ac_ext
13040 LIBS
=$ac_check_lib_save_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13043 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13044 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13051 if test "${HAVE_PNG}" = "yes"; then
13053 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13055 LIBPNG
="-lpng -lz -lm"
13057 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13058 # include <libpng/png.h>
13064 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13068 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13076 ### Use -ltiff if available, unless `--with-tiff=no'.
13079 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13080 if test "${with_tiff}" != "no"; then
13081 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13082 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13084 # At least one tiff package requires the jpeg library.
13085 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13087 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13088 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13091 ac_check_lib_save_LIBS
=$LIBS
13092 LIBS
="-ltiff $tifflibs $LIBS"
13093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13102 char TIFFGetVersion ();
13106 return TIFFGetVersion ();
13111 if ac_fn_c_try_link
"$LINENO"; then :
13112 ac_cv_lib_tiff_TIFFGetVersion
=yes
13114 ac_cv_lib_tiff_TIFFGetVersion
=no
13116 rm -f core conftest.err conftest.
$ac_objext \
13117 conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13121 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13122 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13131 if test "${HAVE_TIFF}" = "yes"; then
13133 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13140 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13143 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13144 ||
test "${HAVE_W32}" = "yes"; then
13145 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13146 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13147 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13148 # Earlier versions can crash Emacs.
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13150 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13151 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13154 ac_check_lib_save_LIBS
=$LIBS
13156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13165 char EGifPutExtensionLast ();
13169 return EGifPutExtensionLast ();
13174 if ac_fn_c_try_link
"$LINENO"; then :
13175 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13177 ac_cv_lib_gif_EGifPutExtensionLast
=no
13179 rm -f core conftest.err conftest.
$ac_objext \
13180 conftest
$ac_exeext conftest.
$ac_ext
13181 LIBS
=$ac_check_lib_save_LIBS
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13184 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13185 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13195 if test "$HAVE_GIF" = yes; then
13197 elif test "$HAVE_GIF" = maybe
; then
13198 # If gif_lib.h but no libgif, try libungif.
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13200 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13201 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13204 ac_check_lib_save_LIBS
=$LIBS
13205 LIBS
="-lungif $LIBS"
13206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13215 char EGifPutExtensionLast ();
13219 return EGifPutExtensionLast ();
13224 if ac_fn_c_try_link
"$LINENO"; then :
13225 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13227 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13229 rm -f core conftest.err conftest.
$ac_objext \
13230 conftest
$ac_exeext conftest.
$ac_ext
13231 LIBS
=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13234 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13235 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13241 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13244 if test "${HAVE_GIF}" = "yes"; then
13246 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13252 if test "${HAVE_X11}" = "yes"; then
13255 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13256 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13257 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13258 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13259 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13260 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13261 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13262 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13263 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13264 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13266 if test "X${MISSING}" != X
; then
13267 as_fn_error
"The following required libraries were not found:
13269 Maybe some development libraries/packages are missing?
13270 If you don't want to link with them give
13272 as options to configure" "$LINENO" 5
13276 ### Use -lgpm if available, unless `--with-gpm=no'.
13279 if test "${with_gpm}" != "no"; then
13280 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13283 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13284 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13287 ac_check_lib_save_LIBS
=$LIBS
13289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13302 return Gpm_Open ();
13307 if ac_fn_c_try_link
"$LINENO"; then :
13308 ac_cv_lib_gpm_Gpm_Open
=yes
13310 ac_cv_lib_gpm_Gpm_Open
=no
13312 rm -f core conftest.err conftest.
$ac_objext \
13313 conftest
$ac_exeext conftest.
$ac_ext
13314 LIBS
=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13317 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13318 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13326 if test "${HAVE_GPM}" = "yes"; then
13328 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13340 ### Use NeXTstep API to implement GUI.
13341 if test "${HAVE_NS}" = "yes"; then
13343 $as_echo "#define HAVE_NS 1" >>confdefs.h
13345 if test "${NS_IMPL_COCOA}" = "yes"; then
13347 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13350 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13352 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13354 # See also .m.o rule in Makefile.in */
13355 # FIXME: are all these flags really needed? Document here why. */
13356 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13357 ## Extra CFLAGS applied to src/*.m files.
13358 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"
13360 # We also have mouse menus.
13365 if test "${HAVE_W32}" = "yes"; then
13369 ### Use session management (-lSM -lICE) if available
13372 if test "${HAVE_X11}" = "yes"; then
13373 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13374 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13376 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13377 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 ac_check_lib_save_LIBS
=$LIBS
13381 LIBS
="-lSM -lICE $LIBS"
13382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13391 char SmcOpenConnection ();
13395 return SmcOpenConnection ();
13400 if ac_fn_c_try_link
"$LINENO"; then :
13401 ac_cv_lib_SM_SmcOpenConnection
=yes
13403 ac_cv_lib_SM_SmcOpenConnection
=no
13405 rm -f core conftest.err conftest.
$ac_objext \
13406 conftest
$ac_exeext conftest.
$ac_ext
13407 LIBS
=$ac_check_lib_save_LIBS
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13410 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13411 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13419 if test "${HAVE_X_SM}" = "yes"; then
13421 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13423 LIBXSM
="-lSM -lICE"
13426 *) LIBS
="$LIBXSM $LIBS" ;;
13432 ### Use libxml (-lxml2) if available
13434 if test "${with_xml2}" != "no"; then
13435 ### I'm not sure what the version number should be, so I just guessed.
13439 if test "$PKG_CONFIG" = "no" ; then
13442 PKG_CONFIG_MIN_VERSION
=0.9.0
13443 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13445 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13447 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13448 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13449 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13456 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13457 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13459 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 $as_echo "no" >&6; }
13466 ## If we have a custom action on failure, don't print errors, but
13467 ## do set a variable so people can do so. Do it in a subshell
13468 ## to capture any diagnostics in invoking pkg-config.
13469 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13481 if test $succeeded = yes; then
13487 if test "${HAVE_LIBXML2}" = "yes"; then
13488 LIBS
="$LIBXML2_LIBS $LIBS"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13490 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13491 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13494 ac_check_lib_save_LIBS
=$LIBS
13495 LIBS
="-lxml2 $LIBS"
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13505 char htmlReadMemory ();
13509 return htmlReadMemory ();
13514 if ac_fn_c_try_link
"$LINENO"; then :
13515 ac_cv_lib_xml2_htmlReadMemory
=yes
13517 ac_cv_lib_xml2_htmlReadMemory
=no
13519 rm -f core conftest.err conftest.
$ac_objext \
13520 conftest
$ac_exeext conftest.
$ac_ext
13521 LIBS
=$ac_check_lib_save_LIBS
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13524 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13525 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13531 if test "${HAVE_LIBXML2}" = "yes"; then
13533 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13544 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13546 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13547 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
13550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13561 if ac_fn_c_try_link
"$LINENO"; then :
13562 emacs_cv_netdb_declares_h_errno
=yes
13564 emacs_cv_netdb_declares_h_errno
=no
13566 rm -f core conftest.err conftest.
$ac_objext \
13567 conftest
$ac_exeext conftest.
$ac_ext
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13570 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13571 if test $emacs_cv_netdb_declares_h_errno = yes; then
13573 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13577 # sqrt and other floating-point functions such as fmod and frexp
13578 # are found in -lm on most systems.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13580 $as_echo_n "checking for sqrt in -lm... " >&6; }
13581 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13584 ac_check_lib_save_LIBS
=$LIBS
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply. */
13604 if ac_fn_c_try_link
"$LINENO"; then :
13605 ac_cv_lib_m_sqrt
=yes
13607 ac_cv_lib_m_sqrt
=no
13609 rm -f core conftest.err conftest.
$ac_objext \
13610 conftest
$ac_exeext conftest.
$ac_ext
13611 LIBS
=$ac_check_lib_save_LIBS
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13614 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13615 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13616 cat >>confdefs.h
<<_ACEOF
13617 #define HAVE_LIBM 1
13625 # Check for mail-locking functions in a "mail" library. Probably this should
13626 # have the same check as for liblockfile below.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13628 $as_echo_n "checking for maillock in -lmail... " >&6; }
13629 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13630 $as_echo_n "(cached) " >&6
13632 ac_check_lib_save_LIBS
=$LIBS
13633 LIBS
="-lmail $LIBS"
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13647 return maillock ();
13652 if ac_fn_c_try_link
"$LINENO"; then :
13653 ac_cv_lib_mail_maillock
=yes
13655 ac_cv_lib_mail_maillock
=no
13657 rm -f core conftest.err conftest.
$ac_objext \
13658 conftest
$ac_exeext conftest.
$ac_ext
13659 LIBS
=$ac_check_lib_save_LIBS
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13662 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13663 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13669 if test $have_mail = yes; then
13671 LIBS
="$LIBS_MAIL $LIBS"
13673 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13679 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13680 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13681 $as_echo_n "(cached) " >&6
13683 ac_check_lib_save_LIBS
=$LIBS
13684 LIBS
="-llockfile $LIBS"
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13698 return maillock ();
13703 if ac_fn_c_try_link
"$LINENO"; then :
13704 ac_cv_lib_lockfile_maillock
=yes
13706 ac_cv_lib_lockfile_maillock
=no
13708 rm -f core conftest.err conftest.
$ac_objext \
13709 conftest
$ac_exeext conftest.
$ac_ext
13710 LIBS
=$ac_check_lib_save_LIBS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13713 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13714 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13720 if test $have_lockfile = yes; then
13721 LIBS_MAIL
=-llockfile
13722 LIBS
="$LIBS_MAIL $LIBS"
13724 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13727 # If we have the shared liblockfile, assume we must use it for mail
13728 # locking (e.g. Debian). If we couldn't link against liblockfile
13729 # (no liblockfile.a installed), ensure that we don't need to.
13730 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13731 set dummy liblockfile.so
; ac_word
=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13735 $as_echo_n "(cached) " >&6
13737 if test -n "$liblockfile"; then
13738 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13741 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13742 for as_dir
in $as_dummy
13745 test -z "$as_dir" && as_dir
=.
13746 for ac_exec_ext
in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_liblockfile
="yes"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13759 liblockfile
=$ac_cv_prog_liblockfile
13760 if test -n "$liblockfile"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13762 $as_echo "$liblockfile" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13769 if test $ac_cv_prog_liblockfile = yes; then
13770 as_fn_error
"Shared liblockfile found but can't link against it.
13771 This probably means that movemail could lose mail.
13772 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13780 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13781 ## interlock access to the mail spool. The alternative is a lock file named
13782 ## /usr/spool/mail/$USER.lock.
13785 aix4-2
) mail_lock
="lockf" ;;
13787 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13789 ## On GNU/Linux systems, both methods are used by various mail programs.
13790 ## I assume most people are using newer mailers that have heard of flock.
13791 ## Change this if you need to.
13792 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13793 ## configure gets the right answers, and that means *NOT* using flock.
13794 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13795 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13796 ## Debian maintainer hasn't provided a clean fix for Emacs.
13797 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13798 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13799 ## correct logic. -- fx
13800 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13801 ## liblockfile is a Free Software replacement for libmail, used on
13802 ## Debian systems and elsewhere. -rfr.
13805 if test $have_mail = yes ||
test $have_lockfile = yes; then
13806 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13812 case "$mail_lock" in
13814 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13818 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13821 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13826 for ac_func
in gethostname \
13827 getrusage get_current_dir_name \
13829 select getpagesize setlocale \
13830 utimes getrlimit setrlimit shutdown getaddrinfo \
13831 strsignal setitimer \
13832 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13833 gai_strerror mkstemp getline getdelim fsync sync \
13834 difftime posix_memalign \
13835 getpwent endpwent getgrent endgrent \
13837 cfmakeraw cfsetspeed copysign __executable_start
13839 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13840 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13841 eval as_val
=\$
$as_ac_var
13842 if test "x$as_val" = x
""yes; then :
13843 cat >>confdefs.h
<<_ACEOF
13844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13851 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13852 ## has a broken `rint' in some library versions including math library
13853 ## version number A.09.05.
13854 ## You can fix the math library by installing patch number PHSS_4630.
13855 ## But we can fix it more reliably for Emacs by just not using rint.
13856 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13859 *) for ac_func
in random rint
13861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13863 eval as_val
=\$
$as_ac_var
13864 if test "x$as_val" = x
""yes; then :
13865 cat >>confdefs.h
<<_ACEOF
13866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13875 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13876 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13885 __builtin_unwind_init ();
13890 if ac_fn_c_try_link
"$LINENO"; then :
13891 emacs_cv_func___builtin_unwind_init
=yes
13893 emacs_cv_func___builtin_unwind_init
=no
13895 rm -f core conftest.err conftest.
$ac_objext \
13896 conftest
$ac_exeext conftest.
$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13899 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13900 if test $emacs_cv_func___builtin_unwind_init = yes; then
13902 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13911 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13912 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 #include <sys/types.h> /* for off_t */
13923 int (*fp) (FILE *, off_t, int) = fseeko;
13924 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13929 if ac_fn_c_try_link
"$LINENO"; then :
13930 ac_cv_sys_largefile_source
=no
; break
13932 rm -f core conftest.err conftest.
$ac_objext \
13933 conftest
$ac_exeext conftest.
$ac_ext
13934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 #define _LARGEFILE_SOURCE 1
13937 #include <sys/types.h> /* for off_t */
13942 int (*fp) (FILE *, off_t, int) = fseeko;
13943 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13948 if ac_fn_c_try_link
"$LINENO"; then :
13949 ac_cv_sys_largefile_source
=1; break
13951 rm -f core conftest.err conftest.
$ac_objext \
13952 conftest
$ac_exeext conftest.
$ac_ext
13953 ac_cv_sys_largefile_source
=unknown
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13958 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13959 case $ac_cv_sys_largefile_source in #(
13962 cat >>confdefs.h
<<_ACEOF
13963 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13969 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13970 # in glibc 2.1.3, but that breaks too many other things.
13971 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13972 if test $ac_cv_sys_largefile_source != unknown
; then
13974 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13980 for ac_func
in grantpt
13982 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13983 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13984 cat >>confdefs.h
<<_ACEOF
13985 #define HAVE_GRANTPT 1
13992 # PTY-related GNU extensions.
13993 for ac_func
in getpt posix_openpt
13995 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13996 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13997 eval as_val
=\$
$as_ac_var
13998 if test "x$as_val" = x
""yes; then :
13999 cat >>confdefs.h
<<_ACEOF
14000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007 # Check this now, so that we will NOT find the above functions in ncurses.
14008 # That is because we have not set up to link ncurses in lib-src.
14009 # It's better to believe a function is not available
14010 # than to expect to find it in ncurses.
14011 # Also we need tputs and friends to be able to build at all.
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14013 $as_echo_n "checking for library containing tputs... " >&6; }
14014 # Run a test program that contains a call to tputs, a call that is
14015 # never executed. This tests whether a pre-'main' dynamic linker
14016 # works with the library. It's too much trouble to actually call
14017 # tputs in the test program, due to portability hassles. When
14018 # cross-compiling, assume the test program will run if it links.
14020 # Maybe curses should be tried earlier?
14021 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14022 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14024 if test -z "$tputs_library"; then
14026 msg
='none required'
14028 LIBS_TERMCAP
=-l$tputs_library
14030 LIBS
="$LIBS_TERMCAP $LIBS"
14032 if test "$cross_compiling" = yes; then :
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14036 extern void tputs (const char *, int, int (*)(int));
14037 int main (int argc, char **argv)
14040 tputs (argv[0], 0, 0);
14045 if ac_fn_c_try_link
"$LINENO"; then :
14050 rm -f core conftest.err conftest.
$ac_objext \
14051 conftest
$ac_exeext conftest.
$ac_ext
14053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14056 extern void tputs (const char *, int, int (*)(int));
14057 int main (int argc, char **argv)
14060 tputs (argv[0], 0, 0);
14065 if ac_fn_c_try_run
"$LINENO"; then :
14070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14075 if test "X$msg" != Xno
; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14080 $as_echo "$msg" >&6; }
14081 if test "X$msg" = Xno
; then
14082 as_fn_error
"The required function \`tputs' was not found in any library.
14083 The following libraries were tried (in order):
14084 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14085 Please try installing whichever of these libraries is most appropriate
14086 for your system, together with its header files.
14087 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14090 ## Use termcap instead of terminfo?
14091 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14093 ## FIXME? In the cases below where we unconditionally set
14094 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14095 ## if that was found above to have tputs.
14096 ## Should we use the gnu* logic everywhere?
14098 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14099 ## The ncurses library has been moved out of the System framework in
14100 ## Mac OS X 10.2. So if configure detects it, set the command-line
14101 ## option to use it.
14102 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14104 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14108 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14109 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <osreldate.h>
14118 #if __FreeBSD_version < 400000
14126 if ac_fn_c_try_link
"$LINENO"; then :
14127 emacs_cv_freebsd_terminfo
=yes
14129 emacs_cv_freebsd_terminfo
=no
14131 rm -f core conftest.err conftest.
$ac_objext \
14132 conftest
$ac_exeext conftest.
$ac_ext
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14137 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14139 if test $emacs_cv_freebsd_terminfo = yes; then
14140 LIBS_TERMCAP
="-lncurses"
14143 LIBS_TERMCAP
="-ltermcap"
14148 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14150 LIBS_TERMCAP
="-ltermcap"
14154 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14156 ## hpux: Make sure we get select from libc rather than from libcurses
14157 ## because libcurses on HPUX 10.10 has a broken version of select.
14158 ## We used to use -lc -lcurses, but this may be cleaner.
14159 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14160 # set that way, now it uses the default). Isn't this a contradiction?
14161 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14165 TERMCAP_OBJ
=tparam.o
14166 if test $TERMINFO = yes; then
14168 $as_echo "#define TERMINFO 1" >>confdefs.h
14170 TERMCAP_OBJ
=terminfo.o
14176 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14177 # On Darwin, res_init appears not to be useful: see bug#562 and
14178 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14181 if test $opsys != darwin
; then
14183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <netinet/in.h>
14186 #include <arpa/nameser.h>
14187 #include <resolv.h>
14196 if ac_fn_c_try_link
"$LINENO"; then :
14201 rm -f core conftest.err conftest.
$ac_objext \
14202 conftest
$ac_exeext conftest.
$ac_ext
14203 if test "$have_res_init" = no
; then
14205 LIBS
="$LIBS -lresolv"
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14207 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <netinet/in.h>
14211 #include <arpa/nameser.h>
14212 #include <resolv.h>
14221 if ac_fn_c_try_link
"$LINENO"; then :
14226 rm -f core conftest.err conftest.
$ac_objext \
14227 conftest
$ac_exeext conftest.
$ac_ext
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14229 $as_echo "$have_res_init" >&6; }
14230 if test "$have_res_init" = yes ; then
14236 if test "$have_res_init" = yes; then
14238 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14242 # Do we need the Hesiod library to provide the support routines?
14244 if test "$with_hesiod" != no
; then
14245 # Don't set $LIBS here -- see comments above. FIXME which comments?
14246 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14247 if test "x$ac_cv_func_res_send" = x
""yes; then :
14250 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14251 if test "x$ac_cv_func___res_send" = x
""yes; then :
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14255 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14256 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14259 ac_check_lib_save_LIBS
=$LIBS
14260 LIBS
="-lresolv $LIBS"
14261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14274 return res_send ();
14279 if ac_fn_c_try_link
"$LINENO"; then :
14280 ac_cv_lib_resolv_res_send
=yes
14282 ac_cv_lib_resolv_res_send
=no
14284 rm -f core conftest.err conftest.
$ac_objext \
14285 conftest
$ac_exeext conftest.
$ac_ext
14286 LIBS
=$ac_check_lib_save_LIBS
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14289 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14290 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14294 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14295 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14298 ac_check_lib_save_LIBS
=$LIBS
14299 LIBS
="-lresolv $LIBS"
14300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14309 char __res_send ();
14313 return __res_send ();
14318 if ac_fn_c_try_link
"$LINENO"; then :
14319 ac_cv_lib_resolv___res_send
=yes
14321 ac_cv_lib_resolv___res_send
=no
14323 rm -f core conftest.err conftest.
$ac_objext \
14324 conftest
$ac_exeext conftest.
$ac_ext
14325 LIBS
=$ac_check_lib_save_LIBS
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14328 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14329 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14339 if test "$resolv" = yes ; then
14344 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14345 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14349 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14350 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14353 ac_check_lib_save_LIBS
=$LIBS
14354 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14364 char hes_getmailhost ();
14368 return hes_getmailhost ();
14373 if ac_fn_c_try_link
"$LINENO"; then :
14374 ac_cv_lib_hesiod_hes_getmailhost
=yes
14376 ac_cv_lib_hesiod_hes_getmailhost
=no
14378 rm -f core conftest.err conftest.
$ac_objext \
14379 conftest
$ac_exeext conftest.
$ac_ext
14380 LIBS
=$ac_check_lib_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14383 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14384 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14393 if test x
"$hesiod" = xyes
; then
14395 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14402 # Do we need libresolv (due to res_init or Hesiod)?
14403 if test "$resolv" = yes && test $opsys != darwin
; then
14405 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14413 # These tell us which Kerberos-related libraries to use.
14420 if test "${with_kerberos}" != no
; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14422 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14423 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14426 ac_check_lib_save_LIBS
=$LIBS
14427 LIBS
="-lcom_err $LIBS"
14428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14446 if ac_fn_c_try_link
"$LINENO"; then :
14447 ac_cv_lib_com_err_com_err
=yes
14449 ac_cv_lib_com_err_com_err
=no
14451 rm -f core conftest.err conftest.
$ac_objext \
14452 conftest
$ac_exeext conftest.
$ac_ext
14453 LIBS
=$ac_check_lib_save_LIBS
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14456 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14457 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14463 if test $have_com_err = yes; then
14464 COM_ERRLIB
=-lcom_err
14465 LIBS
="$COM_ERRLIB $LIBS"
14467 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14471 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14472 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14473 $as_echo_n "(cached) " >&6
14475 ac_check_lib_save_LIBS
=$LIBS
14476 LIBS
="-lcrypto $LIBS"
14477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14486 char mit_des_cbc_encrypt ();
14490 return mit_des_cbc_encrypt ();
14495 if ac_fn_c_try_link
"$LINENO"; then :
14496 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14498 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14500 rm -f core conftest.err conftest.
$ac_objext \
14501 conftest
$ac_exeext conftest.
$ac_ext
14502 LIBS
=$ac_check_lib_save_LIBS
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14505 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14506 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14512 if test $have_crypto = yes; then
14514 LIBS
="$CRYPTOLIB $LIBS"
14516 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14520 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14521 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14522 $as_echo_n "(cached) " >&6
14524 ac_check_lib_save_LIBS
=$LIBS
14525 LIBS
="-lk5crypto $LIBS"
14526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14529 /* Override any GCC internal prototype to avoid an error.
14530 Use char because int might match the return type of a GCC
14531 builtin and then its argument prototype would still apply. */
14535 char mit_des_cbc_encrypt ();
14539 return mit_des_cbc_encrypt ();
14544 if ac_fn_c_try_link
"$LINENO"; then :
14545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14549 rm -f core conftest.err conftest.
$ac_objext \
14550 conftest
$ac_exeext conftest.
$ac_ext
14551 LIBS
=$ac_check_lib_save_LIBS
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14554 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14555 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14561 if test $have_k5crypto = yes; then
14562 CRYPTOLIB
=-lk5crypto
14563 LIBS
="$CRYPTOLIB $LIBS"
14565 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14569 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14570 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14573 ac_check_lib_save_LIBS
=$LIBS
14574 LIBS
="-lkrb5 $LIBS"
14575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14578 /* Override any GCC internal prototype to avoid an error.
14579 Use char because int might match the return type of a GCC
14580 builtin and then its argument prototype would still apply. */
14584 char krb5_init_context ();
14588 return krb5_init_context ();
14593 if ac_fn_c_try_link
"$LINENO"; then :
14594 ac_cv_lib_krb5_krb5_init_context
=yes
14596 ac_cv_lib_krb5_krb5_init_context
=no
14598 rm -f core conftest.err conftest.
$ac_objext \
14599 conftest
$ac_exeext conftest.
$ac_ext
14600 LIBS
=$ac_check_lib_save_LIBS
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14603 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14604 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14610 if test $have_krb5=yes; then
14612 LIBS
="$KRB5LIB $LIBS"
14614 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14617 if test "${with_kerberos5}" = no
; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14619 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14620 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14621 $as_echo_n "(cached) " >&6
14623 ac_check_lib_save_LIBS
=$LIBS
14624 LIBS
="-ldes425 $LIBS"
14625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14628 /* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14634 char des_cbc_encrypt ();
14638 return des_cbc_encrypt ();
14643 if ac_fn_c_try_link
"$LINENO"; then :
14644 ac_cv_lib_des425_des_cbc_encrypt
=yes
14646 ac_cv_lib_des425_des_cbc_encrypt
=no
14648 rm -f core conftest.err conftest.
$ac_objext \
14649 conftest
$ac_exeext conftest.
$ac_ext
14650 LIBS
=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14653 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14654 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14660 if test $have_des425 = yes; then
14662 LIBS
="$DESLIB $LIBS"
14664 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14668 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14672 ac_check_lib_save_LIBS
=$LIBS
14674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14683 char des_cbc_encrypt ();
14687 return des_cbc_encrypt ();
14692 if ac_fn_c_try_link
"$LINENO"; then :
14693 ac_cv_lib_des_des_cbc_encrypt
=yes
14695 ac_cv_lib_des_des_cbc_encrypt
=no
14697 rm -f core conftest.err conftest.
$ac_objext \
14698 conftest
$ac_exeext conftest.
$ac_ext
14699 LIBS
=$ac_check_lib_save_LIBS
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14702 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14703 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14709 if test $have_des = yes; then
14711 LIBS
="$DESLIB $LIBS"
14713 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14718 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14719 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14722 ac_check_lib_save_LIBS
=$LIBS
14723 LIBS
="-lkrb4 $LIBS"
14724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14733 char krb_get_cred ();
14737 return krb_get_cred ();
14742 if ac_fn_c_try_link
"$LINENO"; then :
14743 ac_cv_lib_krb4_krb_get_cred
=yes
14745 ac_cv_lib_krb4_krb_get_cred
=no
14747 rm -f core conftest.err conftest.
$ac_objext \
14748 conftest
$ac_exeext conftest.
$ac_ext
14749 LIBS
=$ac_check_lib_save_LIBS
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14752 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14753 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14759 if test $have_krb4 = yes; then
14761 LIBS
="$KRB4LIB $LIBS"
14763 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14767 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14768 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14771 ac_check_lib_save_LIBS
=$LIBS
14773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14782 char krb_get_cred ();
14786 return krb_get_cred ();
14791 if ac_fn_c_try_link
"$LINENO"; then :
14792 ac_cv_lib_krb_krb_get_cred
=yes
14794 ac_cv_lib_krb_krb_get_cred
=no
14796 rm -f core conftest.err conftest.
$ac_objext \
14797 conftest
$ac_exeext conftest.
$ac_ext
14798 LIBS
=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14801 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14802 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14808 if test $have_krb = yes; then
14810 LIBS
="$KRB4LIB $LIBS"
14812 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14818 if test "${with_kerberos5}" != no
; then
14819 for ac_header
in krb5.h
14821 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14822 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14823 cat >>confdefs.h
<<_ACEOF
14824 #define HAVE_KRB5_H 1
14826 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14828 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14830 cat >>confdefs.h
<<_ACEOF
14831 #define HAVE_KRB5_ERROR_TEXT 1
14836 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14838 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14840 cat >>confdefs.h
<<_ACEOF
14841 #define HAVE_KRB5_ERROR_E_TEXT 1
14852 for ac_header
in des.h
14854 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14855 if test "x$ac_cv_header_des_h" = x
""yes; then :
14856 cat >>confdefs.h
<<_ACEOF
14857 #define HAVE_DES_H 1
14861 for ac_header
in kerberosIV
/des.h
14863 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14864 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14865 cat >>confdefs.h
<<_ACEOF
14866 #define HAVE_KERBEROSIV_DES_H 1
14870 for ac_header
in kerberos
/des.h
14872 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14873 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14874 cat >>confdefs.h
<<_ACEOF
14875 #define HAVE_KERBEROS_DES_H 1
14890 for ac_header
in krb.h
14892 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14893 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14894 cat >>confdefs.h
<<_ACEOF
14895 #define HAVE_KRB_H 1
14899 for ac_header
in kerberosIV
/krb.h
14901 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14902 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14903 cat >>confdefs.h
<<_ACEOF
14904 #define HAVE_KERBEROSIV_KRB_H 1
14908 for ac_header
in kerberos
/krb.h
14910 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14911 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14912 cat >>confdefs.h
<<_ACEOF
14913 #define HAVE_KERBEROS_KRB_H 1
14929 for ac_header
in com_err.h
14931 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14932 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14933 cat >>confdefs.h
<<_ACEOF
14934 #define HAVE_COM_ERR_H 1
14952 for ac_func
in $ac_func_list
14954 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14956 eval as_val
=\$
$as_ac_var
14957 if test "x$as_val" = x
""yes; then :
14958 cat >>confdefs.h
<<_ACEOF
14959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14969 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14970 if test "${emacs_cv_localtime_cache+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14973 if test x
$ac_cv_func_tzset = xyes
; then
14974 if test "$cross_compiling" = yes; then :
14975 # If we have tzset, assume the worst when cross-compiling.
14976 emacs_cv_localtime_cache
=yes
14978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14981 char TZ_GMT0[] = "TZ=GMT0";
14982 char TZ_PST8[] = "TZ=PST8";
14985 time_t now = time ((time_t *) 0);
14986 int hour_GMT0, hour_unset;
14987 if (putenv (TZ_GMT0) != 0)
14989 hour_GMT0 = localtime (&now)->tm_hour;
14991 hour_unset = localtime (&now)->tm_hour;
14992 if (putenv (TZ_PST8) != 0)
14994 if (localtime (&now)->tm_hour == hour_GMT0)
14997 if (localtime (&now)->tm_hour != hour_unset)
15002 if ac_fn_c_try_run
"$LINENO"; then :
15003 emacs_cv_localtime_cache
=no
15005 emacs_cv_localtime_cache
=yes
15007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15012 # If we lack tzset, report that localtime does not cache TZ,
15013 # since we can't invalidate the cache if we don't have tzset.
15014 emacs_cv_localtime_cache
=no
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15018 $as_echo "$emacs_cv_localtime_cache" >&6; }
15019 if test $emacs_cv_localtime_cache = yes; then
15021 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15026 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15027 if test "x$ac_cv_func_socket" = x
""yes; then :
15033 if test $ok_so_far = yes; then
15034 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15035 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15043 if test $ok_so_far = yes; then
15044 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15045 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15053 if test $ok_so_far = yes; then
15055 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15059 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15061 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15066 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15067 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15069 $as_echo "yes" >&6; }
15071 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 $as_echo "no" >&6; }
15079 *-solaris2.4 |
*-solaris2.4.
*)
15080 : ${ac_cv_func_vfork_works=no};;
15083 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15084 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15088 cat >>confdefs.h
<<_ACEOF
15094 for ac_header
in vfork.h
15096 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15097 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15098 cat >>confdefs.h
<<_ACEOF
15099 #define HAVE_VFORK_H 1
15106 for ac_func
in fork vfork
15108 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15110 eval as_val
=\$
$as_ac_var
15111 if test "x$as_val" = x
""yes; then :
15112 cat >>confdefs.h
<<_ACEOF
15113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15119 if test "x$ac_cv_func_fork" = xyes
; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15121 $as_echo_n "checking for working fork... " >&6; }
15122 if test "${ac_cv_func_fork_works+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15125 if test "$cross_compiling" = yes; then :
15126 ac_cv_func_fork_works
=cross
15128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 $ac_includes_default
15135 /* By Ruediger Kuhlmann. */
15136 return fork () < 0;
15142 if ac_fn_c_try_run
"$LINENO"; then :
15143 ac_cv_func_fork_works
=yes
15145 ac_cv_func_fork_works
=no
15147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15153 $as_echo "$ac_cv_func_fork_works" >&6; }
15156 ac_cv_func_fork_works
=$ac_cv_func_fork
15158 if test "x$ac_cv_func_fork_works" = xcross
; then
15160 *-*-amigaos* |
*-*-msdosdjgpp*)
15161 # Override, as these systems have only a dummy fork() stub
15162 ac_cv_func_fork_works
=no
15165 ac_cv_func_fork_works
=yes
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15169 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15171 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15172 if test "x$ac_cv_func_vfork" = xyes
; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15174 $as_echo_n "checking for working vfork... " >&6; }
15175 if test "${ac_cv_func_vfork_works+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 if test "$cross_compiling" = yes; then :
15179 ac_cv_func_vfork_works
=cross
15181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 /* Thanks to Paul Eggert for this test. */
15184 $ac_includes_default
15185 #include <sys/wait.h>
15186 #ifdef HAVE_VFORK_H
15187 # include <vfork.h>
15189 /* On some sparc systems, changes by the child to local and incoming
15190 argument registers are propagated back to the parent. The compiler
15191 is told about this with #include <vfork.h>, but some compilers
15192 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15193 static variable whose address is put into a register that is
15194 clobbered by the vfork. */
15197 sparc_address_test (int arg)
15199 sparc_address_test (arg) int arg;
15202 static pid_t child;
15220 pid_t parent = getpid ();
15223 sparc_address_test (0);
15228 /* Here is another test for sparc vfork register problems. This
15229 test uses lots of local variables, at least as many local
15230 variables as main has allocated so far including compiler
15231 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15232 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15233 reuse the register of parent for one of the local variables,
15234 since it will think that parent can't possibly be used any more
15235 in this routine. Assigning to the local variable will thus
15236 munge parent in the parent process. */
15238 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15239 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15240 /* Convince the compiler that p..p7 are live; otherwise, it might
15241 use the same hardware register for all 8 local variables. */
15242 if (p != p1 || p != p2 || p != p3 || p != p4
15243 || p != p5 || p != p6 || p != p7)
15246 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15247 from child file descriptors. If the child closes a descriptor
15248 before it execs or exits, this munges the parent's descriptor
15249 as well. Test for this by closing stdout in the child. */
15250 _exit(close(fileno(stdout)) != 0);
15255 while (wait(&status) != child)
15258 /* Was there some problem with vforking? */
15261 /* Did the child fail? (This shouldn't happen.) */
15264 /* Did the vfork/compiler bug occur? */
15265 || parent != getpid()
15267 /* Did the file descriptor bug occur? */
15268 || fstat(fileno(stdout), &st) != 0
15273 if ac_fn_c_try_run
"$LINENO"; then :
15274 ac_cv_func_vfork_works
=yes
15276 ac_cv_func_vfork_works
=no
15278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15284 $as_echo "$ac_cv_func_vfork_works" >&6; }
15287 if test "x$ac_cv_func_fork_works" = xcross
; then
15288 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15290 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15293 if test "x$ac_cv_func_vfork_works" = xyes
; then
15295 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15299 $as_echo "#define vfork fork" >>confdefs.h
15302 if test "x$ac_cv_func_fork_works" = xyes
; then
15304 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15309 for ac_func
in snprintf
15311 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15312 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15313 cat >>confdefs.h
<<_ACEOF
15314 #define HAVE_SNPRINTF 1
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15322 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15323 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 #include <langinfo.h>
15332 char* cs = nl_langinfo(CODESET);
15337 if ac_fn_c_try_link
"$LINENO"; then :
15338 emacs_cv_langinfo_codeset
=yes
15340 emacs_cv_langinfo_codeset
=no
15342 rm -f core conftest.err conftest.
$ac_objext \
15343 conftest
$ac_exeext conftest.
$ac_ext
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15347 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15348 if test $emacs_cv_langinfo_codeset = yes; then
15350 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15355 $as_echo_n "checking for mbstate_t... " >&6; }
15356 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 # include <wchar.h>
15366 mbstate_t x; return sizeof x;
15371 if ac_fn_c_try_compile
"$LINENO"; then :
15372 ac_cv_type_mbstate_t
=yes
15374 ac_cv_type_mbstate_t
=no
15376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15379 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15380 if test $ac_cv_type_mbstate_t = yes; then
15382 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15386 $as_echo "#define mbstate_t int" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15391 $as_echo_n "checking for C restricted array declarations... " >&6; }
15392 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15397 void fred (int x[__restrict]);
15406 if ac_fn_c_try_compile
"$LINENO"; then :
15407 emacs_cv_c_restrict_arr
=yes
15409 emacs_cv_c_restrict_arr
=no
15411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15414 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15415 if test "$emacs_cv_c_restrict_arr" = yes; then
15417 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15423 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15427 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15430 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15432 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15436 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15442 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15446 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15450 $as_echo "#define subprocesses 1" >>confdefs.h
15454 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15459 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15465 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15469 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15473 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15481 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15482 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15488 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15495 irix6-5 | sol2
* | unixware
)
15497 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15502 emacs_broken_SIGIO
=no
15505 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15506 emacs_broken_SIGIO
=yes
15511 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15517 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15525 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15531 darwin | freebsd | netbsd | openbsd
)
15533 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15539 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15540 *) sound_device
="/dev/dsp" ;;
15544 cat >>confdefs.h
<<_ACEOF
15545 #define DEFAULT_SOUND_DEVICE "$sound_device"
15551 darwin | gnu-linux | gnu-kfreebsd
)
15553 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15560 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15562 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15576 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15578 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15580 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15585 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15587 $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
15589 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15591 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15596 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15598 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15600 $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
15602 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15604 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15609 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15613 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15614 if test "x$ac_cv_func_grantpt" = xyes
; then
15616 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15618 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15620 $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
15622 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15623 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15625 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15627 elif test "x$ac_cv_func_getpt" = xyes
; then
15628 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15630 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15633 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15637 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15643 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15645 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15647 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15652 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15654 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15656 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15658 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15660 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15665 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15670 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15678 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15680 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15683 $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
15692 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin
)
15693 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15697 gnu-linux | gnu-kfreebsd
)
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15700 $as_echo_n "checking for signals via characters... " >&6; }
15701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15704 #include <linux/version.h>
15705 #if LINUX_VERSION_CODE < 0x20400
15706 # error "Linux version too old"
15717 if ac_fn_c_try_cpp
"$LINENO"; then :
15718 emacs_signals_via_chars
=yes
15720 emacs_signals_via_chars
=no
15722 rm -f conftest.err conftest.
$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15725 $as_echo "$emacs_signals_via_chars" >&6; }
15726 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15737 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15742 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15744 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15748 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15750 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15759 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15762 gnu | freebsd | netbsd | openbsd
)
15764 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15766 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15770 gnu-linux | gnu-kfreebsd
)
15771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15786 if ac_fn_c_try_cpp
"$LINENO"; then :
15788 $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
15791 rm -f conftest.err conftest.
$ac_ext
15796 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15806 gnu-linux | gnu-kfreebsd
)
15807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15810 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15811 || defined __alpha__ || defined __mips__ || defined __s390__ \
15812 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15813 || defined __ia64__ || defined __sh__
15816 # error "setjmp not known to work on this arch"
15827 if ac_fn_c_try_cpp
"$LINENO"; then :
15828 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15831 rm -f conftest.err conftest.
$ac_ext
15836 if test x
$GCC = xyes
; then
15837 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15841 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15842 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15848 $as_echo_n "checking for _setjmp... " >&6; }
15849 if test "${emacs_cv_func__setjmp+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
15852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 #include <setjmp.h>
15866 if ac_fn_c_try_link
"$LINENO"; then :
15867 emacs_cv_func__setjmp
=yes
15869 emacs_cv_func__setjmp
=no
15871 rm -f core conftest.err conftest.
$ac_objext \
15872 conftest
$ac_exeext conftest.
$ac_ext
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15875 $as_echo "$emacs_cv_func__setjmp" >&6; }
15876 if test $emacs_cv_func__setjmp = yes; then
15878 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15882 $as_echo_n "checking for sigsetjmp... " >&6; }
15883 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <setjmp.h>
15894 if (! sigsetjmp (j, 1))
15900 if ac_fn_c_try_link
"$LINENO"; then :
15901 emacs_cv_func_sigsetjmp
=yes
15903 emacs_cv_func_sigsetjmp
=no
15905 rm -f core conftest.err conftest.
$ac_objext \
15906 conftest
$ac_exeext conftest.
$ac_ext
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15909 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15910 if test $emacs_cv_func_sigsetjmp = yes; then
15912 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15920 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15929 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15944 $as_echo "#define USG /**/" >>confdefs.h
15946 $as_echo "#define USG5 /**/" >>confdefs.h
15948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15952 # error "_AIX not defined"
15963 if ac_fn_c_try_cpp
"$LINENO"; then :
15967 $as_echo "#define _AIX /**/" >>confdefs.h
15970 rm -f conftest.err conftest.
$ac_ext
15975 $as_echo "#define CYGWIN 1" >>confdefs.h
15980 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15983 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15989 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15993 gnu | netbsd | openbsd
)
15994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15998 # error "BSD_SYSTEM not defined"
16009 if ac_fn_c_try_cpp
"$LINENO"; then :
16012 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
16015 rm -f conftest.err conftest.
$ac_ext
16018 gnu-linux | gnu-kfreebsd
)
16019 $as_echo "#define USG /**/" >>confdefs.h
16022 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16027 $as_echo "#define USG /**/" >>confdefs.h
16029 $as_echo "#define USG5 /**/" >>confdefs.h
16032 $as_echo "#define HPUX /**/" >>confdefs.h
16037 $as_echo "#define USG /**/" >>confdefs.h
16039 $as_echo "#define USG5 /**/" >>confdefs.h
16041 $as_echo "#define USG5_4 /**/" >>confdefs.h
16044 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16049 $as_echo "#define USG /**/" >>confdefs.h
16051 $as_echo "#define USG5 /**/" >>confdefs.h
16053 $as_echo "#define USG5_4 /**/" >>confdefs.h
16056 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16061 $as_echo "#define USG /**/" >>confdefs.h
16063 $as_echo "#define USG5 /**/" >>confdefs.h
16065 $as_echo "#define USG5_4 /**/" >>confdefs.h
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16071 $as_echo_n "checking for usable FIONREAD... " >&6; }
16072 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16077 emacs_cv_usable_FIONREAD
=no
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <sys/types.h>
16084 #include <sys/ioctl.h>
16086 # include <sys/filio.h>
16092 int foo = ioctl (0, FIONREAD, &foo);
16097 if ac_fn_c_try_compile
"$LINENO"; then :
16098 emacs_cv_usable_FIONREAD
=yes
16100 emacs_cv_usable_FIONREAD
=no
16102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16107 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16108 if test $emacs_cv_usable_FIONREAD = yes; then
16110 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16113 if test $emacs_broken_SIGIO = no
; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16115 $as_echo_n "checking for usable SIGIO... " >&6; }
16116 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16122 #include <signal.h>
16127 int foo = SIGIO | F_SETFL | FASYNC;
16132 if ac_fn_c_try_compile
"$LINENO"; then :
16133 emacs_cv_usable_SIGIO
=yes
16135 emacs_cv_usable_SIGIO
=no
16137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16140 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16141 if test $emacs_cv_usable_SIGIO = yes; then
16143 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16153 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16159 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16165 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16171 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16176 # Set up the CFLAGS for real compilation, so we can substitute it.
16177 CFLAGS
="$REAL_CFLAGS"
16178 CPPFLAGS
="$REAL_CPPFLAGS"
16180 ## Hack to detect a buggy GCC version.
16181 if test "x$GCC" = xyes \
16182 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16183 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16184 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16185 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16188 version
=$PACKAGE_VERSION
16190 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16192 cat >>confdefs.h
<<_ACEOF
16193 #define COPYRIGHT "$copyright"
16198 ### Specify what sort of things we'll be editing into Makefile and config.h.
16199 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16225 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16226 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16227 ## end of LIBX_BASE, but nothing ever set it.
16232 ## Used in lwlib/Makefile.in.
16241 if test -n "${term_header}"; then
16243 cat >>confdefs.h
<<_ACEOF
16244 #define TERM_HEADER "${term_header}"
16250 cat >>confdefs.h
<<_ACEOF
16251 #define EMACS_CONFIGURATION "${canonical}"
16254 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16256 cat >>confdefs.h
<<_ACEOF
16257 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16265 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16267 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16270 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16272 if test "$HAVE_XFT" = "yes"; then
16273 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16274 elif test "$HAVE_FREETYPE" = "yes"; then
16275 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16285 if test "${USE_X_TOOLKIT}" != "none" ; then
16286 WIDGET_OBJ
=widget.o
16288 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16290 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16292 $as_echo "#define USE_LUCID 1" >>confdefs.h
16294 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16296 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16301 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16302 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16306 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16307 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16308 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16312 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16313 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16316 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16322 case "$USE_X_TOOLKIT" in
16323 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16324 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16325 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16329 if test "$USE_X_TOOLKIT" = "none"; then
16330 LIBXT_OTHER
="\$(LIBXSM)"
16331 OLDXMENU_TARGET
="really-oldXMenu"
16333 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16334 OLDXMENU_TARGET
="really-lwlib"
16338 ## The X Menu stuff is present in the X10 distribution, but missing
16339 ## from X11. If we have X10, just use the installed library;
16340 ## otherwise, use our own copy.
16341 if test "${HAVE_X11}" = "yes" ; then
16343 $as_echo "#define HAVE_X11 1" >>confdefs.h
16346 if test "$USE_X_TOOLKIT" = "none"; then
16347 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16349 OLDXMENU
="\${lwlibdir}/liblw.a"
16351 LIBXMENU
="\$(OLDXMENU)"
16352 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16353 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16355 ## For a syntactically valid Makefile; not actually used for anything.
16356 ## See comments in src/Makefile.in.
16358 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16359 if test "${HAVE_X_WINDOWS}" = "yes"; then
16368 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16381 if test "${HAVE_MENUS}" = "yes" ; then
16383 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16387 if test "${GNU_MALLOC}" = "yes" ; then
16389 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16394 if test "${REL_ALLOC}" = "yes" ; then
16396 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16399 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16403 if test "$opsys" = "cygwin"; then
16404 CYGWIN_OBJ
="sheap.o cygw32.o"
16405 ## Cygwin differs because of its unexec().
16407 POST_ALLOC_OBJ
=lastfile.o
16410 PRE_ALLOC_OBJ
=lastfile.o
16417 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16418 # it temporarily reverts them to their pre-pkg-config values,
16419 # because gnulib needs to work with both src (which uses the
16420 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16421 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16422 # and it therefore needs to run in an environment where LIBS does not
16423 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16424 # for some package unrelated to lib-src.
16425 SAVE_CFLAGS
=$CFLAGS
16427 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16428 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16440 LIBC_FATAL_STDERR_
=1
16441 export LIBC_FATAL_STDERR_
16443 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16444 # for constant arguments. Useless!
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16446 $as_echo_n "checking for working alloca.h... " >&6; }
16447 if test "${ac_cv_working_alloca_h+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 #include <alloca.h>
16456 char *p = (char *) alloca (2 * sizeof (int));
16462 if ac_fn_c_try_link
"$LINENO"; then :
16463 ac_cv_working_alloca_h
=yes
16465 ac_cv_working_alloca_h
=no
16467 rm -f core conftest.err conftest.
$ac_objext \
16468 conftest
$ac_exeext conftest.
$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16471 $as_echo "$ac_cv_working_alloca_h" >&6; }
16472 if test $ac_cv_working_alloca_h = yes; then
16474 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16479 $as_echo_n "checking for alloca... " >&6; }
16480 if test "${ac_cv_func_alloca_works+set}" = set; then :
16481 $as_echo_n "(cached) " >&6
16483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16486 # define alloca __builtin_alloca
16489 # include <malloc.h>
16490 # define alloca _alloca
16492 # ifdef HAVE_ALLOCA_H
16493 # include <alloca.h>
16498 # ifndef alloca /* predefined by HP cc +Olibcalls */
16509 char *p = (char *) alloca (1);
16515 if ac_fn_c_try_link
"$LINENO"; then :
16516 ac_cv_func_alloca_works
=yes
16518 ac_cv_func_alloca_works
=no
16520 rm -f core conftest.err conftest.
$ac_objext \
16521 conftest
$ac_exeext conftest.
$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16524 $as_echo "$ac_cv_func_alloca_works" >&6; }
16526 if test $ac_cv_func_alloca_works = yes; then
16528 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16531 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16532 # that cause trouble. Some versions do not even contain alloca or
16533 # contain a buggy version. If you still want to use their alloca,
16534 # use ar to extract alloca.o from them instead of compiling alloca.c.
16540 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16542 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16546 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16547 if test "${ac_cv_os_cray+set}" = set; then :
16548 $as_echo_n "(cached) " >&6
16550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 #if defined CRAY && ! defined CRAY2
16559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16560 $EGREP "webecray" >/dev
/null
2>&1; then :
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16569 $as_echo "$ac_cv_os_cray" >&6; }
16570 if test $ac_cv_os_cray = yes; then
16571 for ac_func
in _getb67 GETB67 getb67
; do
16572 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16573 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16574 eval as_val
=\$
$as_ac_var
16575 if test "x$as_val" = x
""yes; then :
16577 cat >>confdefs.h
<<_ACEOF
16578 #define CRAY_STACKSEG_END $ac_func
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16588 $as_echo_n "checking stack direction for C alloca... " >&6; }
16589 if test "${ac_cv_c_stack_direction+set}" = set; then :
16590 $as_echo_n "(cached) " >&6
16592 if test "$cross_compiling" = yes; then :
16593 ac_cv_c_stack_direction
=0
16595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 $ac_includes_default
16599 find_stack_direction (int *addr, int depth)
16601 int dir, dummy = 0;
16604 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16605 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16606 return dir + dummy;
16610 main (int argc, char **argv)
16612 return find_stack_direction (0, argc + !argv + 20) < 0;
16615 if ac_fn_c_try_run
"$LINENO"; then :
16616 ac_cv_c_stack_direction
=1
16618 ac_cv_c_stack_direction
=-1
16620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16626 $as_echo "$ac_cv_c_stack_direction" >&6; }
16627 cat >>confdefs.h
<<_ACEOF
16628 #define STACK_DIRECTION $ac_cv_c_stack_direction
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16638 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16639 if test "${ac_cv_c_bigendian+set}" = set; then :
16640 $as_echo_n "(cached) " >&6
16642 ac_cv_c_bigendian
=unknown
16643 # See if we're dealing with a universal compiler.
16644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 #ifndef __APPLE_CC__
16647 not a universal capable compiler
16652 if ac_fn_c_try_compile
"$LINENO"; then :
16654 # Check for potential -arch flags. It is not universal unless
16655 # there are at least two -arch flags with different values.
16658 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16659 if test -n "$ac_prev"; then
16661 i?
86 | x86_64 | ppc | ppc64
)
16662 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16665 ac_cv_c_bigendian
=universal
16671 elif test "x$ac_word" = "x-arch"; then
16676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16677 if test $ac_cv_c_bigendian = unknown
; then
16678 # See if sys/param.h defines the BYTE_ORDER macro.
16679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16681 #include <sys/types.h>
16682 #include <sys/param.h>
16687 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16688 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16690 bogus endian macros
16697 if ac_fn_c_try_compile
"$LINENO"; then :
16698 # It does; now see whether it defined to BIG_ENDIAN or not.
16699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701 #include <sys/types.h>
16702 #include <sys/param.h>
16707 #if BYTE_ORDER != BIG_ENDIAN
16715 if ac_fn_c_try_compile
"$LINENO"; then :
16716 ac_cv_c_bigendian
=yes
16718 ac_cv_c_bigendian
=no
16720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16724 if test $ac_cv_c_bigendian = unknown
; then
16725 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 #include <limits.h>
16733 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16734 bogus endian macros
16741 if ac_fn_c_try_compile
"$LINENO"; then :
16742 # It does; now see whether it defined to _BIG_ENDIAN or not.
16743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16745 #include <limits.h>
16750 #ifndef _BIG_ENDIAN
16758 if ac_fn_c_try_compile
"$LINENO"; then :
16759 ac_cv_c_bigendian
=yes
16761 ac_cv_c_bigendian
=no
16763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16767 if test $ac_cv_c_bigendian = unknown
; then
16768 # Compile a test program.
16769 if test "$cross_compiling" = yes; then :
16770 # Try to guess by grepping values from an object file.
16771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 short int ascii_mm[] =
16774 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16775 short int ascii_ii[] =
16776 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16777 int use_ascii (int i) {
16778 return ascii_mm[i] + ascii_ii[i];
16780 short int ebcdic_ii[] =
16781 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16782 short int ebcdic_mm[] =
16783 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16784 int use_ebcdic (int i) {
16785 return ebcdic_mm[i] + ebcdic_ii[i];
16792 return use_ascii (foo) == use_ebcdic (foo);
16797 if ac_fn_c_try_compile
"$LINENO"; then :
16798 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16799 ac_cv_c_bigendian
=yes
16801 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16802 if test "$ac_cv_c_bigendian" = unknown
; then
16803 ac_cv_c_bigendian
=no
16805 # finding both strings is unlikely to happen, but who knows?
16806 ac_cv_c_bigendian
=unknown
16810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16814 $ac_includes_default
16819 /* Are we little or big endian? From Harbison&Steele. */
16823 char c[sizeof (long int)];
16826 return u.c[sizeof (long int) - 1] == 1;
16832 if ac_fn_c_try_run
"$LINENO"; then :
16833 ac_cv_c_bigendian
=no
16835 ac_cv_c_bigendian
=yes
16837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16844 $as_echo "$ac_cv_c_bigendian" >&6; }
16845 case $ac_cv_c_bigendian in #(
16847 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16853 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16857 as_fn_error
"unknown endianness
16858 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16870 GNULIB_EUIDACCESS
=0;
16871 GNULIB_FACCESSAT
=0;
16874 GNULIB_FDATASYNC
=0;
16876 GNULIB_FTRUNCATE
=0;
16878 GNULIB_GETDOMAINNAME
=0;
16879 GNULIB_GETDTABLESIZE
=0;
16880 GNULIB_GETGROUPS
=0;
16881 GNULIB_GETHOSTNAME
=0;
16883 GNULIB_GETLOGIN_R
=0;
16884 GNULIB_GETPAGESIZE
=0;
16885 GNULIB_GETUSERSHELL
=0;
16886 GNULIB_GROUP_MEMBER
=0;
16898 GNULIB_READLINKAT
=0;
16900 GNULIB_SETHOSTNAME
=0;
16903 GNULIB_SYMLINKAT
=0;
16904 GNULIB_TTYNAME_R
=0;
16905 GNULIB_UNISTD_H_NONBLOCKING
=0;
16906 GNULIB_UNISTD_H_SIGPIPE
=0;
16921 HAVE_GETDTABLESIZE
=1;
16923 HAVE_GETHOSTNAME
=1;
16925 HAVE_GETPAGESIZE
=1;
16926 HAVE_GROUP_MEMBER
=1;
16936 HAVE_SETHOSTNAME
=1;
16942 HAVE_DECL_ENVIRON
=1;
16943 HAVE_DECL_FCHDIR
=1;
16944 HAVE_DECL_FDATASYNC
=1;
16945 HAVE_DECL_GETDOMAINNAME
=1;
16946 HAVE_DECL_GETLOGIN_R
=1;
16947 HAVE_DECL_GETPAGESIZE
=1;
16948 HAVE_DECL_GETUSERSHELL
=1;
16949 HAVE_DECL_SETHOSTNAME
=1;
16950 HAVE_DECL_TTYNAME_R
=1;
16952 HAVE_SYS_PARAM_H
=0;
16957 REPLACE_FCHOWNAT
=0;
16958 REPLACE_FTRUNCATE
=0;
16960 REPLACE_GETDOMAINNAME
=0;
16961 REPLACE_GETLOGIN_R
=0;
16962 REPLACE_GETGROUPS
=0;
16963 REPLACE_GETPAGESIZE
=0;
16972 REPLACE_READLINK
=0;
16976 REPLACE_TTYNAME_R
=0;
16978 REPLACE_UNLINKAT
=0;
16981 UNISTD_H_HAVE_WINSOCK2_H
=0;
16982 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16988 GNULIB_REWINDDIR
=0;
16991 GNULIB_FDOPENDIR
=0;
16993 GNULIB_ALPHASORT
=0;
16999 HAVE_DECL_FDOPENDIR
=1;
17004 REPLACE_CLOSEDIR
=0;
17006 REPLACE_FDOPENDIR
=0;
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17011 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17012 if test "${gl_cv_have_include_next+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17015 rm -rf conftestd1a conftestd1b conftestd2
17016 mkdir conftestd1a conftestd1b conftestd2
17017 cat <<EOF > conftestd1a/conftest.h
17018 #define DEFINED_IN_CONFTESTD1
17019 #include_next <conftest.h>
17020 #ifdef DEFINED_IN_CONFTESTD2
17023 #error "include_next doesn't work"
17026 cat <<EOF > conftestd1b/conftest.h
17027 #define DEFINED_IN_CONFTESTD1
17029 #include_next <conftest.h>
17030 #ifdef DEFINED_IN_CONFTESTD2
17033 #error "include_next doesn't work"
17036 cat <<EOF > conftestd2/conftest.h
17037 #ifndef DEFINED_IN_CONFTESTD1
17038 #error "include_next test doesn't work"
17040 #define DEFINED_IN_CONFTESTD2
17042 gl_save_CPPFLAGS
="$CPPFLAGS"
17043 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17046 #include <conftest.h>
17048 if ac_fn_c_try_compile
"$LINENO"; then :
17049 gl_cv_have_include_next
=yes
17051 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 #include <conftest.h>
17056 if ac_fn_c_try_compile
"$LINENO"; then :
17057 gl_cv_have_include_next
=buggy
17059 gl_cv_have_include_next
=no
17061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17065 CPPFLAGS
="$gl_save_CPPFLAGS"
17066 rm -rf conftestd1a conftestd1b conftestd2
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17070 $as_echo "$gl_cv_have_include_next" >&6; }
17071 PRAGMA_SYSTEM_HEADER
=
17072 if test $gl_cv_have_include_next = yes; then
17073 INCLUDE_NEXT
=include_next
17074 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17075 if test -n "$GCC"; then
17076 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17079 if test $gl_cv_have_include_next = buggy
; then
17080 INCLUDE_NEXT
=include
17081 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17083 INCLUDE_NEXT
=include
17084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17091 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17092 if test "${gl_cv_pragma_columns+set}" = set; then :
17093 $as_echo_n "(cached) " >&6
17095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17104 $EGREP "choke me" >/dev
/null
2>&1; then :
17105 gl_cv_pragma_columns
=yes
17107 gl_cv_pragma_columns
=no
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17114 $as_echo "$gl_cv_pragma_columns" >&6; }
17115 if test $gl_cv_pragma_columns = yes; then
17116 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17126 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17127 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17132 /* On HP-UX before 11.23, strtold returns a struct instead of
17133 long double. Reject implementations like that, by requiring
17134 compatibility with the C99 prototype. */
17135 #include <stdlib.h>
17136 static long double (*p) (char const *, char **) = strtold;
17138 test (char const *nptr, char **endptr)
17141 r = strtold (nptr, endptr);
17147 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17152 if ac_fn_c_try_link
"$LINENO"; then :
17153 gl_cv_func_c99_strtold
=yes
17155 gl_cv_func_c99_strtold
=no
17157 rm -f core conftest.err conftest.
$ac_objext \
17158 conftest
$ac_exeext conftest.
$ac_ext
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17161 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17162 if test $gl_cv_func_c99_strtold = yes; then
17164 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17176 $as_echo_n "checking if environ is properly declared... " >&6; }
17177 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17178 $as_echo_n "(cached) " >&6
17181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17184 #include <unistd.h>
17186 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17187 #include <stdlib.h>
17189 extern struct { int foo; } environ;
17198 if ac_fn_c_try_compile
"$LINENO"; then :
17199 gt_cv_var_environ_declaration
=no
17201 gt_cv_var_environ_declaration
=yes
17203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17207 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17208 if test $gt_cv_var_environ_declaration = yes; then
17210 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17215 if test $gt_cv_var_environ_declaration != yes; then
17216 HAVE_DECL_ENVIRON
=0
17228 GNULIB_NONBLOCKING
=0;
17238 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17239 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17243 cat >>confdefs.h
<<_ACEOF
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17252 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17253 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17254 $as_echo_n "(cached) " >&6
17256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17259 #include <sys/types.h>
17260 #include <sys/stat.h>
17264 struct stat s; s.st_dm_mode;
17269 if ac_fn_c_try_compile
"$LINENO"; then :
17270 ac_cv_struct_st_dm_mode
=yes
17272 ac_cv_struct_st_dm_mode
=no
17274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17277 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17279 if test $ac_cv_struct_st_dm_mode = yes; then
17281 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17286 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17287 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17293 cat >>confdefs.h
<<_ACEOF
17294 #define HAVE_DECL_STRMODE $ac_have_decl
17314 GNULIB_UTIMENSAT
=0;
17328 REPLACE_FUTIMENS
=0;
17334 REPLACE_UTIMENSAT
=0;
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17338 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17339 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17342 rm -f conftest.sym conftest.
file
17343 echo >conftest.
file
17344 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17345 if test "$cross_compiling" = yes; then :
17347 # Guess yes on glibc systems.
17348 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17349 # If we don't know, assume the worst.
17350 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 $ac_includes_default
17361 /* Linux will dereference the symlink and fail, as required by
17362 POSIX. That is better in the sense that it means we will not
17363 have to compile and use the lstat wrapper. */
17364 return lstat ("conftest.sym/", &sbuf) == 0;
17370 if ac_fn_c_try_run
"$LINENO"; then :
17371 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17373 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17380 # If the 'ln -s' command failed, then we probably don't even
17381 # have an lstat function.
17382 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17384 rm -f conftest.sym conftest.
file
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17388 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17389 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17392 cat >>confdefs.h
<<_ACEOF
17393 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17404 GNULIB_CALLOC_POSIX
=0;
17405 GNULIB_CANONICALIZE_FILE_NAME
=0;
17406 GNULIB_GETLOADAVG
=0;
17407 GNULIB_GETSUBOPT
=0;
17409 GNULIB_MALLOC_POSIX
=0;
17413 GNULIB_MKOSTEMPS
=0;
17416 GNULIB_POSIX_OPENPT
=0;
17418 GNULIB_PTSNAME_R
=0;
17422 GNULIB_REALLOC_POSIX
=0;
17425 GNULIB_SECURE_GETENV
=0;
17430 GNULIB_SYSTEM_POSIX
=0;
17436 HAVE_CANONICALIZE_FILE_NAME
=1;
17437 HAVE_DECL_GETLOADAVG
=1;
17445 HAVE_POSIX_OPENPT
=1;
17453 HAVE_SECURE_GETENV
=1;
17455 HAVE_DECL_SETENV
=1;
17459 HAVE_STRUCT_RANDOM_DATA
=1;
17460 HAVE_SYS_LOADAVG_H
=0;
17462 HAVE_DECL_UNSETENV
=1;
17464 REPLACE_CANONICALIZE_FILE_NAME
=0;
17469 REPLACE_PTSNAME_R
=0;
17471 REPLACE_RANDOM_R
=0;
17473 REPLACE_REALPATH
=0;
17476 REPLACE_UNSETENV
=0;
17494 if test $gl_cv_have_include_next = yes; then
17495 gl_cv_next_getopt_h
='<'getopt.h
'>'
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17498 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17499 if test "${gl_cv_next_getopt_h+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17503 if test $ac_cv_header_getopt_h = yes; then
17506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <getopt.h>
17512 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17513 *) gl_absname_cpp
="$ac_cpp" ;;
17518 gl_dirsep_regex
='[/\\]'
17521 gl_dirsep_regex
='\/'
17524 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17526 gl_header_literal_regex
=`echo 'getopt.h' \
17527 | sed -e "$gl_make_literal_regex_sed"`
17528 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17529 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17534 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17535 sed -n "$gl_absolute_header_sed"`'"'
17537 gl_cv_next_getopt_h
='<'getopt.h
'>'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17543 $as_echo "$gl_cv_next_getopt_h" >&6; }
17545 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17547 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive
='<'getopt.h
'>'
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17554 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17559 if test $ac_cv_header_getopt_h = yes; then
17568 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17569 for ac_header
in getopt.h
17571 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17572 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17573 cat >>confdefs.h
<<_ACEOF
17574 #define HAVE_GETOPT_H 1
17578 gl_replace_getopt
=yes
17585 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17586 for ac_func
in getopt_long_only
17588 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17589 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17590 cat >>confdefs.h
<<_ACEOF
17591 #define HAVE_GETOPT_LONG_ONLY 1
17595 gl_replace_getopt
=yes
17601 if test -z "$gl_replace_getopt"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17603 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17604 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17605 $as_echo_n "(cached) " >&6
17608 if test $cross_compiling = no
; then
17609 if test "$cross_compiling" = yes; then :
17610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17612 as_fn_error
"cannot run test program while cross compiling
17613 See \`config.log' for more details." "$LINENO" 5; }
17615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 #include <unistd.h>
17619 #include <stdlib.h>
17620 #include <string.h>
17625 static char program[] = "program";
17626 static char a[] = "-a";
17627 static char foo[] = "foo";
17628 static char bar[] = "bar";
17629 char *argv[] = { program, a, foo, bar, NULL };
17632 c = getopt (4, argv, "ab");
17635 c = getopt (4, argv, "ab");
17638 if (!(optind == 2))
17644 if ac_fn_c_try_run
"$LINENO"; then :
17645 gl_cv_func_getopt_posix
=maybe
17647 gl_cv_func_getopt_posix
=no
17649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17653 if test $gl_cv_func_getopt_posix = maybe
; then
17654 if test "$cross_compiling" = yes; then :
17655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17657 as_fn_error
"cannot run test program while cross compiling
17658 See \`config.log' for more details." "$LINENO" 5; }
17660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 #include <unistd.h>
17664 #include <stdlib.h>
17665 #include <string.h>
17670 static char program[] = "program";
17671 static char donald[] = "donald";
17672 static char p[] = "-p";
17673 static char billy[] = "billy";
17674 static char duck[] = "duck";
17675 static char a[] = "-a";
17676 static char bar[] = "bar";
17677 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17680 c = getopt (7, argv, "+abp:q:");
17683 if (!(strcmp (argv[0], "program") == 0))
17685 if (!(strcmp (argv[1], "donald") == 0))
17687 if (!(strcmp (argv[2], "-p") == 0))
17689 if (!(strcmp (argv[3], "billy") == 0))
17691 if (!(strcmp (argv[4], "duck") == 0))
17693 if (!(strcmp (argv[5], "-a") == 0))
17695 if (!(strcmp (argv[6], "bar") == 0))
17697 if (!(optind == 1))
17703 if ac_fn_c_try_run
"$LINENO"; then :
17704 gl_cv_func_getopt_posix
=maybe
17706 gl_cv_func_getopt_posix
=no
17708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17713 if test $gl_cv_func_getopt_posix = maybe
; then
17714 if test "$cross_compiling" = yes; then :
17715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17717 as_fn_error
"cannot run test program while cross compiling
17718 See \`config.log' for more details." "$LINENO" 5; }
17720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17723 #include <unistd.h>
17724 #include <stdlib.h>
17725 #include <string.h>
17730 static char program[] = "program";
17731 static char ab[] = "-ab";
17732 char *argv[3] = { program, ab, NULL };
17733 if (getopt (2, argv, "ab:") != 'a')
17735 if (getopt (2, argv, "ab:") != '?')
17745 if ac_fn_c_try_run
"$LINENO"; then :
17746 gl_cv_func_getopt_posix
=yes
17748 gl_cv_func_getopt_posix
=no
17750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17757 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17758 *) gl_cv_func_getopt_posix
="guessing yes";;
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17764 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17765 case "$gl_cv_func_getopt_posix" in
17766 *no
) gl_replace_getopt
=yes ;;
17770 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17772 $as_echo_n "checking for working GNU getopt function... " >&6; }
17773 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17776 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17777 # optstring is necessary for programs like m4 that have POSIX-mandated
17778 # semantics for supporting options interspersed with files.
17779 # Also, since getopt_long is a GNU extension, we require optind=0.
17780 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17781 # so take care to revert to the correct (non-)export state.
17782 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17783 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17784 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17785 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17786 *) gl_had_POSIXLY_CORRECT
= ;;
17789 export POSIXLY_CORRECT
17790 if test "$cross_compiling" = yes; then :
17791 gl_cv_func_getopt_gnu
="guessing no"
17794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796 #include <getopt.h>
17797 #include <stddef.h>
17798 #include <string.h>
17800 #include <stdlib.h>
17801 #if defined __MACH__ && defined __APPLE__
17802 /* Avoid a crash on Mac OS X. */
17803 #include <mach/mach.h>
17804 #include <mach/mach_error.h>
17805 #include <mach/thread_status.h>
17806 #include <mach/exception.h>
17807 #include <mach/task.h>
17808 #include <pthread.h>
17809 /* The exception port on which our thread listens. */
17810 static mach_port_t our_exception_port;
17811 /* The main function of the thread listening for exceptions of type
17814 mach_exception_thread (void *arg)
17816 /* Buffer for a message to be received. */
17818 mach_msg_header_t head;
17819 mach_msg_body_t msgh_body;
17822 mach_msg_return_t retval;
17823 /* Wait for a message on the exception port. */
17824 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17825 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17826 if (retval != MACH_MSG_SUCCESS)
17831 nocrash_init (void)
17833 mach_port_t self = mach_task_self ();
17834 /* Allocate a port on which the thread shall listen for exceptions. */
17835 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17837 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17838 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17839 MACH_MSG_TYPE_MAKE_SEND)
17841 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17843 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17844 /* Create the thread listening on the exception port. */
17845 pthread_attr_t attr;
17847 if (pthread_attr_init (&attr) == 0
17848 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17849 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17850 pthread_attr_destroy (&attr);
17851 /* Replace the exception port info for these exceptions with our own.
17852 Note that we replace the exception port for the entire task, not only
17853 for a particular thread. This has the effect that when our exception
17854 port gets the message, the thread specific exception port has already
17855 been asked, and we don't need to bother about it.
17856 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17857 task_set_exception_ports (self, mask, our_exception_port,
17858 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17863 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17864 /* Avoid a crash on native Windows. */
17865 #define WIN32_LEAN_AND_MEAN
17866 #include <windows.h>
17867 #include <winerror.h>
17869 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17871 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17873 case EXCEPTION_ACCESS_VIOLATION:
17874 case EXCEPTION_IN_PAGE_ERROR:
17875 case EXCEPTION_STACK_OVERFLOW:
17876 case EXCEPTION_GUARD_PAGE:
17877 case EXCEPTION_PRIV_INSTRUCTION:
17878 case EXCEPTION_ILLEGAL_INSTRUCTION:
17879 case EXCEPTION_DATATYPE_MISALIGNMENT:
17880 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17881 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17884 return EXCEPTION_CONTINUE_SEARCH;
17887 nocrash_init (void)
17889 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17892 /* Avoid a crash on POSIX systems. */
17893 #include <signal.h>
17894 /* A POSIX signal handler. */
17896 exception_handler (int sig)
17901 nocrash_init (void)
17904 signal (SIGSEGV, exception_handler);
17907 signal (SIGBUS, exception_handler);
17921 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17922 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17923 OSF/1 5.1, Solaris 10. */
17925 static char conftest[] = "conftest";
17926 static char plus[] = "-+";
17927 char *argv[3] = { conftest, plus, NULL };
17929 if (getopt (2, argv, "+a") != '?')
17932 /* This code succeeds on glibc 2.8, mingw,
17933 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17934 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17936 static char program[] = "program";
17937 static char p[] = "-p";
17938 static char foo[] = "foo";
17939 static char bar[] = "bar";
17940 char *argv[] = { program, p, foo, bar, NULL };
17943 if (getopt (4, argv, "p::") != 'p')
17945 else if (optarg != NULL)
17947 else if (getopt (4, argv, "p::") != -1)
17949 else if (optind != 2)
17952 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17954 static char program[] = "program";
17955 static char foo[] = "foo";
17956 static char p[] = "-p";
17957 char *argv[] = { program, foo, p, NULL };
17959 if (getopt (3, argv, "-p") != 1)
17961 else if (getopt (3, argv, "-p") != 'p')
17964 /* This code fails on glibc 2.11. */
17966 static char program[] = "program";
17967 static char b[] = "-b";
17968 static char a[] = "-a";
17969 char *argv[] = { program, b, a, NULL };
17970 optind = opterr = 0;
17971 if (getopt (3, argv, "+:a:b") != 'b')
17973 else if (getopt (3, argv, "+:a:b") != ':')
17976 /* This code dumps core on glibc 2.14. */
17978 static char program[] = "program";
17979 static char w[] = "-W";
17980 static char dummy[] = "dummy";
17981 char *argv[] = { program, w, dummy, NULL };
17982 optind = opterr = 1;
17983 if (getopt (3, argv, "W;") != 'W')
17992 if ac_fn_c_try_run
"$LINENO"; then :
17993 gl_cv_func_getopt_gnu
=yes
17995 gl_cv_func_getopt_gnu
=no
17997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17998 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18001 case $gl_had_POSIXLY_CORRECT in
18003 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
18004 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18009 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18010 if test "$gl_cv_func_getopt_gnu" != yes; then
18011 gl_replace_getopt
=yes
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18014 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18015 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18018 if test "$cross_compiling" = yes; then :
18020 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
18021 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
18025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18027 #include <getopt.h>
18028 #include <stddef.h>
18029 #include <string.h>
18034 static const struct option long_options[] =
18036 { "xtremely-",no_argument, NULL, 1003 },
18037 { "xtra", no_argument, NULL, 1001 },
18038 { "xtreme", no_argument, NULL, 1002 },
18039 { "xtremely", no_argument, NULL, 1003 },
18040 { NULL, 0, NULL, 0 }
18042 /* This code fails on OpenBSD 5.0. */
18044 static char program[] = "program";
18045 static char xtremel[] = "--xtremel";
18046 char *argv[] = { program, xtremel, NULL };
18048 optind = 1; opterr = 0;
18049 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18058 if ac_fn_c_try_run
"$LINENO"; then :
18059 gl_cv_func_getopt_long_gnu
=yes
18061 gl_cv_func_getopt_long_gnu
=no
18063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18070 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18071 case "$gl_cv_func_getopt_long_gnu" in
18073 *) gl_replace_getopt
=yes ;;
18084 if test -n "$gl_replace_getopt"; then
18088 if test $REPLACE_GETOPT = 1; then
18092 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18098 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18099 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
18105 cat >>confdefs.h
<<_ACEOF
18106 #define HAVE_DECL_GETENV $ac_have_decl
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18115 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18116 if test "${ac_cv_c_restrict+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
18119 ac_cv_c_restrict
=no
18120 # The order here caters to the fact that C++ does not require restrict.
18121 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124 typedef int * int_ptr;
18125 int foo (int_ptr $ac_kw ip) {
18132 int * $ac_kw t = s;
18139 if ac_fn_c_try_compile
"$LINENO"; then :
18140 ac_cv_c_restrict
=$ac_kw
18142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18143 test "$ac_cv_c_restrict" != no
&& break
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18148 $as_echo "$ac_cv_c_restrict" >&6; }
18150 case $ac_cv_c_restrict in
18152 no
) $as_echo "#define restrict /**/" >>confdefs.h
18154 *) cat >>confdefs.h
<<_ACEOF
18155 #define restrict $ac_cv_c_restrict
18161 GNULIB_GETTIMEOFDAY
=0;
18162 HAVE_GETTIMEOFDAY
=1;
18163 HAVE_STRUCT_TIMEVAL
=1;
18165 REPLACE_GETTIMEOFDAY
=0;
18166 REPLACE_STRUCT_TIMEVAL
=0;
18183 if test $gl_cv_have_include_next = yes; then
18184 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18187 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18188 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18189 $as_echo_n "(cached) " >&6
18192 if test $ac_cv_header_sys_time_h = yes; then
18195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h. */
18197 #include <sys/time.h>
18201 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18202 *) gl_absname_cpp
="$ac_cpp" ;;
18207 gl_dirsep_regex
='[/\\]'
18210 gl_dirsep_regex
='\/'
18213 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18215 gl_header_literal_regex
=`echo 'sys/time.h' \
18216 | sed -e "$gl_make_literal_regex_sed"`
18217 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18218 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18223 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18224 sed -n "$gl_absolute_header_sed"`'"'
18226 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18232 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18234 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
18236 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18238 gl_next_as_first_directive
='<'sys
/time.h
'>'
18240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18241 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
18243 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
18249 if test $ac_cv_header_sys_time_h != yes; then
18257 if test $ac_cv_header_sys_socket_h != yes; then
18258 for ac_header
in winsock2.h
18260 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18261 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18262 cat >>confdefs.h
<<_ACEOF
18263 #define HAVE_WINSOCK2_H 1
18271 if test "$ac_cv_header_winsock2_h" = yes; then
18273 UNISTD_H_HAVE_WINSOCK2_H
=1
18274 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18281 $as_echo_n "checking for struct timeval... " >&6; }
18282 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #if HAVE_SYS_TIME_H
18288 #include <sys/time.h>
18291 #if HAVE_WINSOCK2_H
18292 # include <winsock2.h>
18298 static struct timeval x; x.tv_sec = x.tv_usec;
18303 if ac_fn_c_try_compile
"$LINENO"; then :
18304 gl_cv_sys_struct_timeval
=yes
18306 gl_cv_sys_struct_timeval
=no
18308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18312 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18313 if test $gl_cv_sys_struct_timeval != yes; then
18314 HAVE_STRUCT_TIMEVAL
=0
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18317 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18318 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18319 $as_echo_n "(cached) " >&6
18321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323 #if HAVE_SYS_TIME_H
18324 #include <sys/time.h>
18327 #if HAVE_WINSOCK2_H
18328 # include <winsock2.h>
18334 static struct timeval x;
18335 typedef int verify_tv_sec_type[
18336 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18343 if ac_fn_c_try_compile
"$LINENO"; then :
18344 gl_cv_sys_struct_timeval_tv_sec
=yes
18346 gl_cv_sys_struct_timeval_tv_sec
=no
18348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18352 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18353 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18354 REPLACE_STRUCT_TIMEVAL
=1
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18365 $as_echo_n "checking for unsigned long long int... " >&6; }
18366 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18369 ac_cv_type_unsigned_long_long_int
=yes
18370 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18374 /* For now, do not test the preprocessor; as of 2007 there are too many
18375 implementations with broken preprocessors. Perhaps this can
18376 be revisited in 2012. In the meantime, code should not expect
18377 #if to work with literals wider than 32 bits. */
18378 /* Test literals. */
18379 long long int ll = 9223372036854775807ll;
18380 long long int nll = -9223372036854775807LL;
18381 unsigned long long int ull = 18446744073709551615ULL;
18382 /* Test constant expressions. */
18383 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18385 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18391 /* Test availability of runtime routines for shift and division. */
18392 long long int llmax = 9223372036854775807ll;
18393 unsigned long long int ullmax = 18446744073709551615ull;
18394 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18395 | (llmax / ll) | (llmax % ll)
18396 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18397 | (ullmax / ull) | (ullmax % ull));
18403 if ac_fn_c_try_link
"$LINENO"; then :
18406 ac_cv_type_unsigned_long_long_int
=no
18408 rm -f core conftest.err conftest.
$ac_objext \
18409 conftest
$ac_exeext conftest.
$ac_ext
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18413 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18414 if test $ac_cv_type_unsigned_long_long_int = yes; then
18416 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18423 $as_echo_n "checking for long long int... " >&6; }
18424 if test "${ac_cv_type_long_long_int+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18427 ac_cv_type_long_long_int
=yes
18428 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18429 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18430 if test $ac_cv_type_long_long_int = yes; then
18431 if test "$cross_compiling" = yes; then :
18434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436 #include <limits.h>
18439 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18440 # define LLONG_MAX (HALF - 1 + HALF)
18445 long long int n = 1;
18449 long long int m = n << i;
18452 if (LLONG_MAX / 2 < m)
18460 if ac_fn_c_try_run
"$LINENO"; then :
18463 ac_cv_type_long_long_int
=no
18465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18466 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18473 $as_echo "$ac_cv_type_long_long_int" >&6; }
18474 if test $ac_cv_type_long_long_int = yes; then
18476 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18485 gl_cv_c_multiarch
=no
18486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #ifndef __APPLE_CC__
18489 not a universal capable compiler
18494 if ac_fn_c_try_compile
"$LINENO"; then :
18498 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18499 if test -n "$prev"; then
18501 i?
86 | x86_64 | ppc | ppc64
)
18502 if test -z "$arch" ||
test "$arch" = "$word"; then
18505 gl_cv_c_multiarch
=yes
18511 if test "x$word" = "x-arch"; then
18518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18519 if test $gl_cv_c_multiarch = yes; then
18520 APPLE_UNIVERSAL_BUILD
=1
18522 APPLE_UNIVERSAL_BUILD
=0
18529 if test $ac_cv_type_long_long_int = yes; then
18530 HAVE_LONG_LONG_INT
=1
18532 HAVE_LONG_LONG_INT
=0
18536 if test $ac_cv_type_unsigned_long_long_int = yes; then
18537 HAVE_UNSIGNED_LONG_LONG_INT
=1
18539 HAVE_UNSIGNED_LONG_LONG_INT
=0
18544 if test $ac_cv_header_wchar_h = yes; then
18551 if test $ac_cv_header_inttypes_h = yes; then
18558 if test $ac_cv_header_sys_types_h = yes; then
18574 if test $gl_cv_have_include_next = yes; then
18575 gl_cv_next_stdint_h
='<'stdint.h
'>'
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18578 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18579 if test "${gl_cv_next_stdint_h+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18583 if test $ac_cv_header_stdint_h = yes; then
18586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588 #include <stdint.h>
18592 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18593 *) gl_absname_cpp
="$ac_cpp" ;;
18598 gl_dirsep_regex
='[/\\]'
18601 gl_dirsep_regex
='\/'
18604 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18606 gl_header_literal_regex
=`echo 'stdint.h' \
18607 | sed -e "$gl_make_literal_regex_sed"`
18608 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18609 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18614 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18615 sed -n "$gl_absolute_header_sed"`'"'
18617 gl_cv_next_stdint_h
='<'stdint.h
'>'
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18623 $as_echo "$gl_cv_next_stdint_h" >&6; }
18625 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18627 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18629 gl_next_as_first_directive
='<'stdint.h
'>'
18631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18632 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18634 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18639 if test $ac_cv_header_stdint_h = yes; then
18646 if test $ac_cv_header_stdint_h = yes; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18648 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18649 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18650 $as_echo_n "(cached) " >&6
18652 gl_cv_header_working_stdint_h
=no
18653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18657 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18658 #include <stdint.h>
18659 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18660 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18661 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18665 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18666 included before <wchar.h>. */
18667 #include <stddef.h>
18668 #include <signal.h>
18670 # include <stdio.h>
18672 # include <wchar.h>
18677 int8_t a1 = INT8_MAX;
18678 int8_t a1min = INT8_MIN;
18681 int16_t a2 = INT16_MAX;
18682 int16_t a2min = INT16_MIN;
18685 int32_t a3 = INT32_MAX;
18686 int32_t a3min = INT32_MIN;
18689 int64_t a4 = INT64_MAX;
18690 int64_t a4min = INT64_MIN;
18693 uint8_t b1 = UINT8_MAX;
18695 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18698 uint16_t b2 = UINT16_MAX;
18701 uint32_t b3 = UINT32_MAX;
18704 uint64_t b4 = UINT64_MAX;
18706 int_least8_t c1 = INT8_C (0x7f);
18707 int_least8_t c1max = INT_LEAST8_MAX;
18708 int_least8_t c1min = INT_LEAST8_MIN;
18709 int_least16_t c2 = INT16_C (0x7fff);
18710 int_least16_t c2max = INT_LEAST16_MAX;
18711 int_least16_t c2min = INT_LEAST16_MIN;
18712 int_least32_t c3 = INT32_C (0x7fffffff);
18713 int_least32_t c3max = INT_LEAST32_MAX;
18714 int_least32_t c3min = INT_LEAST32_MIN;
18715 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18716 int_least64_t c4max = INT_LEAST64_MAX;
18717 int_least64_t c4min = INT_LEAST64_MIN;
18718 uint_least8_t d1 = UINT8_C (0xff);
18719 uint_least8_t d1max = UINT_LEAST8_MAX;
18720 uint_least16_t d2 = UINT16_C (0xffff);
18721 uint_least16_t d2max = UINT_LEAST16_MAX;
18722 uint_least32_t d3 = UINT32_C (0xffffffff);
18723 uint_least32_t d3max = UINT_LEAST32_MAX;
18724 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18725 uint_least64_t d4max = UINT_LEAST64_MAX;
18726 int_fast8_t e1 = INT_FAST8_MAX;
18727 int_fast8_t e1min = INT_FAST8_MIN;
18728 int_fast16_t e2 = INT_FAST16_MAX;
18729 int_fast16_t e2min = INT_FAST16_MIN;
18730 int_fast32_t e3 = INT_FAST32_MAX;
18731 int_fast32_t e3min = INT_FAST32_MIN;
18732 int_fast64_t e4 = INT_FAST64_MAX;
18733 int_fast64_t e4min = INT_FAST64_MIN;
18734 uint_fast8_t f1 = UINT_FAST8_MAX;
18735 uint_fast16_t f2 = UINT_FAST16_MAX;
18736 uint_fast32_t f3 = UINT_FAST32_MAX;
18737 uint_fast64_t f4 = UINT_FAST64_MAX;
18739 intptr_t g = INTPTR_MAX;
18740 intptr_t gmin = INTPTR_MIN;
18743 uintptr_t h = UINTPTR_MAX;
18745 intmax_t i = INTMAX_MAX;
18746 uintmax_t j = UINTMAX_MAX;
18748 #include <limits.h> /* for CHAR_BIT */
18749 #define TYPE_MINIMUM(t) \
18750 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18751 #define TYPE_MAXIMUM(t) \
18752 ((t) ((t) 0 < (t) -1 \
18754 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18757 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18758 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18760 /* Detect bug in FreeBSD 6.0 / ia64. */
18761 int check_SIG_ATOMIC:
18762 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18763 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18765 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18767 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18768 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18770 /* Detect bug in mingw. */
18772 WINT_MIN == TYPE_MINIMUM (wint_t)
18773 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18776 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18778 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18779 int check_UINT16_C:
18780 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18782 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18784 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18787 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18790 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18793 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18795 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18796 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18797 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18798 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18799 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18800 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18801 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18802 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18803 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18804 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18805 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18816 if ac_fn_c_try_compile
"$LINENO"; then :
18817 if test "$cross_compiling" = yes; then :
18818 gl_cv_header_working_stdint_h
=yes
18821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18825 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18826 #include <stdint.h>
18829 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18830 included before <wchar.h>. */
18831 #include <stddef.h>
18832 #include <signal.h>
18834 # include <stdio.h>
18836 # include <wchar.h>
18841 #include <string.h>
18842 #define MVAL(macro) MVAL1(macro)
18843 #define MVAL1(expression) #expression
18844 static const char *macro_values[] =
18878 for (mv = macro_values; *mv != NULL; mv++)
18880 const char *value = *mv;
18881 /* Test whether it looks like a cast expression. */
18882 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18883 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18884 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18885 || strncmp (value, "((int)"/*)*/, 6) == 0
18886 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18887 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18888 return mv - macro_values + 1;
18896 if ac_fn_c_try_run
"$LINENO"; then :
18897 gl_cv_header_working_stdint_h
=yes
18899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18909 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18911 if test "$gl_cv_header_working_stdint_h" = yes; then
18914 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18916 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18918 eval as_val
=\$
$as_ac_Header
18919 if test "x$as_val" = x
""yes; then :
18920 cat >>confdefs.h
<<_ACEOF
18921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18928 if test $ac_cv_header_sys_inttypes_h = yes; then
18929 HAVE_SYS_INTTYPES_H
=1
18931 HAVE_SYS_INTTYPES_H
=0
18934 if test $ac_cv_header_sys_bitypes_h = yes; then
18935 HAVE_SYS_BITYPES_H
=1
18937 HAVE_SYS_BITYPES_H
=0
18943 if test $APPLE_UNIVERSAL_BUILD = 0; then
18946 for gltype
in ptrdiff_t size_t
; do
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18948 $as_echo_n "checking for bit size of $gltype... " >&6; }
18949 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18950 $as_echo_n "(cached) " >&6
18952 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18953 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18954 included before <wchar.h>. */
18955 #include <stddef.h>
18956 #include <signal.h>
18958 # include <stdio.h>
18960 # include <wchar.h>
18963 #include <limits.h>"; then :
18969 eval gl_cv_bitsizeof_
${gltype}=\
$result
18972 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18974 $as_echo "$ac_res" >&6; }
18975 eval result
=\
$gl_cv_bitsizeof_${gltype}
18976 if test $result = unknown
; then
18979 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18980 cat >>confdefs.h
<<_ACEOF
18981 #define BITSIZEOF_${GLTYPE} $result
18984 eval BITSIZEOF_
${GLTYPE}=\
$result
18991 for gltype
in sig_atomic_t wchar_t wint_t
; do
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18993 $as_echo_n "checking for bit size of $gltype... " >&6; }
18994 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18995 $as_echo_n "(cached) " >&6
18997 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18999 included before <wchar.h>. */
19000 #include <stddef.h>
19001 #include <signal.h>
19003 # include <stdio.h>
19005 # include <wchar.h>
19008 #include <limits.h>"; then :
19014 eval gl_cv_bitsizeof_
${gltype}=\
$result
19017 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19019 $as_echo "$ac_res" >&6; }
19020 eval result
=\
$gl_cv_bitsizeof_${gltype}
19021 if test $result = unknown
; then
19024 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19025 cat >>confdefs.h
<<_ACEOF
19026 #define BITSIZEOF_${GLTYPE} $result
19029 eval BITSIZEOF_
${GLTYPE}=\
$result
19035 for gltype
in sig_atomic_t wchar_t wint_t
; do
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19037 $as_echo_n "checking whether $gltype is signed... " >&6; }
19038 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19039 $as_echo_n "(cached) " >&6
19041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19045 included before <wchar.h>. */
19046 #include <stddef.h>
19047 #include <signal.h>
19049 # include <stdio.h>
19051 # include <wchar.h>
19054 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19063 if ac_fn_c_try_compile
"$LINENO"; then :
19068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19069 eval gl_cv_type_
${gltype}_signed
=\
$result
19072 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19074 $as_echo "$ac_res" >&6; }
19075 eval result
=\
$gl_cv_type_${gltype}_signed
19076 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19077 if test "$result" = yes; then
19078 cat >>confdefs.h
<<_ACEOF
19079 #define HAVE_SIGNED_${GLTYPE} 1
19082 eval HAVE_SIGNED_
${GLTYPE}=1
19084 eval HAVE_SIGNED_
${GLTYPE}=0
19089 gl_cv_type_ptrdiff_t_signed
=yes
19090 gl_cv_type_size_t_signed
=no
19091 if test $APPLE_UNIVERSAL_BUILD = 0; then
19094 for gltype
in ptrdiff_t size_t
; do
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19096 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19097 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19098 $as_echo_n "(cached) " >&6
19100 eval gl_cv_type_
${gltype}_suffix
=no
19101 eval result
=\
$gl_cv_type_${gltype}_signed
19102 if test "$result" = yes; then
19107 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19109 '') gltype1
='int';;
19110 l
) gltype1
='long int';;
19111 ll
) gltype1
='long long int';;
19112 i64
) gltype1
='__int64';;
19113 u
) gltype1
='unsigned int';;
19114 ul
) gltype1
='unsigned long int';;
19115 ull
) gltype1
='unsigned long long int';;
19116 ui64
)gltype1
='unsigned __int64';;
19118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19121 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19122 included before <wchar.h>. */
19123 #include <stddef.h>
19124 #include <signal.h>
19126 # include <stdio.h>
19128 # include <wchar.h>
19131 extern $gltype foo;
19132 extern $gltype1 foo;
19141 if ac_fn_c_try_compile
"$LINENO"; then :
19142 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19145 eval result
=\
$gl_cv_type_${gltype}_suffix
19146 test "$result" != no
&& break
19149 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19151 $as_echo "$ac_res" >&6; }
19152 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19153 eval result
=\
$gl_cv_type_${gltype}_suffix
19154 test "$result" = no
&& result
=
19155 eval ${GLTYPE}_SUFFIX
=\
$result
19156 cat >>confdefs.h
<<_ACEOF
19157 #define ${GLTYPE}_SUFFIX $result
19166 for gltype
in sig_atomic_t wchar_t wint_t
; do
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19168 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19169 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19170 $as_echo_n "(cached) " >&6
19172 eval gl_cv_type_
${gltype}_suffix
=no
19173 eval result
=\
$gl_cv_type_${gltype}_signed
19174 if test "$result" = yes; then
19179 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19181 '') gltype1
='int';;
19182 l
) gltype1
='long int';;
19183 ll
) gltype1
='long long int';;
19184 i64
) gltype1
='__int64';;
19185 u
) gltype1
='unsigned int';;
19186 ul
) gltype1
='unsigned long int';;
19187 ull
) gltype1
='unsigned long long int';;
19188 ui64
)gltype1
='unsigned __int64';;
19190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19194 included before <wchar.h>. */
19195 #include <stddef.h>
19196 #include <signal.h>
19198 # include <stdio.h>
19200 # include <wchar.h>
19203 extern $gltype foo;
19204 extern $gltype1 foo;
19213 if ac_fn_c_try_compile
"$LINENO"; then :
19214 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19217 eval result
=\
$gl_cv_type_${gltype}_suffix
19218 test "$result" != no
&& break
19221 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19223 $as_echo "$ac_res" >&6; }
19224 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19225 eval result
=\
$gl_cv_type_${gltype}_suffix
19226 test "$result" = no
&& result
=
19227 eval ${GLTYPE}_SUFFIX
=\
$result
19228 cat >>confdefs.h
<<_ACEOF
19229 #define ${GLTYPE}_SUFFIX $result
19236 if test $BITSIZEOF_WINT_T -lt 32; then
19237 BITSIZEOF_WINT_T
=32
19243 if test -n "$STDINT_H"; then
19244 GL_GENERATE_STDINT_H_TRUE
=
19245 GL_GENERATE_STDINT_H_FALSE
='#'
19247 GL_GENERATE_STDINT_H_TRUE
='#'
19248 GL_GENERATE_STDINT_H_FALSE
=
19257 GNULIB_STRTOIMAX
=0;
19258 GNULIB_STRTOUMAX
=0;
19259 HAVE_DECL_IMAXABS
=1;
19260 HAVE_DECL_IMAXDIV
=1;
19261 HAVE_DECL_STRTOIMAX
=1;
19262 HAVE_DECL_STRTOUMAX
=1;
19263 REPLACE_STRTOIMAX
=0;
19264 INT32_MAX_LT_INTMAX_MAX
=1;
19265 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
19266 PRI_MACROS_BROKEN
=0;
19267 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
19268 UINT32_MAX_LT_UINTMAX_MAX
=1;
19269 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
19285 if test $gl_cv_have_include_next = yes; then
19286 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19289 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19290 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19291 $as_echo_n "(cached) " >&6
19294 if test $ac_cv_header_inttypes_h = yes; then
19297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 #include <inttypes.h>
19303 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19304 *) gl_absname_cpp
="$ac_cpp" ;;
19309 gl_dirsep_regex
='[/\\]'
19312 gl_dirsep_regex
='\/'
19315 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19317 gl_header_literal_regex
=`echo 'inttypes.h' \
19318 | sed -e "$gl_make_literal_regex_sed"`
19319 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19320 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19325 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19326 sed -n "$gl_absolute_header_sed"`'"'
19328 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19334 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19336 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19338 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19340 gl_next_as_first_directive
='<'inttypes.h
'>'
19342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19343 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19345 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19360 $as_echo_n "checking for 64-bit off_t... " >&6; }
19361 if test "${gl_cv_type_off_t_64+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19366 #include <sys/types.h>
19367 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19377 if ac_fn_c_try_compile
"$LINENO"; then :
19378 gl_cv_type_off_t_64
=yes
19380 gl_cv_type_off_t_64
=no
19382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19386 $as_echo "$gl_cv_type_off_t_64" >&6; }
19387 if test $gl_cv_type_off_t_64 = no
; then
19388 WINDOWS_64_BIT_OFF_T
=1
19390 WINDOWS_64_BIT_OFF_T
=0
19392 WINDOWS_64_BIT_ST_SIZE
=1
19395 WINDOWS_64_BIT_OFF_T
=0
19396 WINDOWS_64_BIT_ST_SIZE
=0
19404 GNULIB_NANOSLEEP
=0;
19408 HAVE_DECL_LOCALTIME_R
=1;
19412 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19413 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19414 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19415 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19432 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19433 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19434 $as_echo_n "(cached) " >&6
19437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19439 #include <sys/select.h>
19448 if ac_fn_c_try_compile
"$LINENO"; then :
19449 gl_cv_header_sys_select_h_selfcontained
=yes
19451 gl_cv_header_sys_select_h_selfcontained
=no
19453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19454 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19457 #include <sys/select.h>
19461 int memset; int bzero;
19467 if ac_fn_c_try_compile
"$LINENO"; then :
19468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470 #include <sys/select.h>
19476 #define memset nonexistent_memset
19481 void *memset (void *, int, unsigned long);
19483 #define bzero nonexistent_bzero
19488 void bzero (void *, unsigned long);
19497 if ac_fn_c_try_link
"$LINENO"; then :
19500 gl_cv_header_sys_select_h_selfcontained
=no
19502 rm -f core conftest.err conftest.
$ac_objext \
19503 conftest
$ac_exeext conftest.
$ac_ext
19506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19511 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19521 if test $gl_cv_have_include_next = yes; then
19522 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19525 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19526 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19527 $as_echo_n "(cached) " >&6
19530 if test $ac_cv_header_sys_select_h = yes; then
19533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19535 #include <sys/select.h>
19539 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19540 *) gl_absname_cpp
="$ac_cpp" ;;
19545 gl_dirsep_regex
='[/\\]'
19548 gl_dirsep_regex
='\/'
19551 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19553 gl_header_literal_regex
=`echo 'sys/select.h' \
19554 | sed -e "$gl_make_literal_regex_sed"`
19555 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19556 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19561 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19562 sed -n "$gl_absolute_header_sed"`'"'
19564 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19570 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19572 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19574 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19575 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19576 gl_next_as_first_directive
='<'sys
/select.h
'>'
19578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19579 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19581 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19586 if test $ac_cv_header_sys_select_h = yes; then
19587 HAVE_SYS_SELECT_H
=1
19589 HAVE_SYS_SELECT_H
=0
19596 if test $ac_cv_header_sys_socket_h != yes; then
19597 for ac_header
in winsock2.h
19599 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19600 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19601 cat >>confdefs.h
<<_ACEOF
19602 #define HAVE_WINSOCK2_H 1
19610 if test "$ac_cv_header_winsock2_h" = yes; then
19612 UNISTD_H_HAVE_WINSOCK2_H
=1
19613 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19625 GNULIB_PTHREAD_SIGMASK
=0;
19627 GNULIB_SIGNAL_H_SIGPIPE
=0;
19628 GNULIB_SIGPROCMASK
=0;
19629 GNULIB_SIGACTION
=0;
19630 HAVE_POSIX_SIGNALBLOCKING
=1;
19631 HAVE_PTHREAD_SIGMASK
=1;
19636 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19638 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19640 HAVE_SIGHANDLER_T
=1;
19641 REPLACE_PTHREAD_SIGMASK
=0;
19650 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19651 #include <signal.h>
19652 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19653 #include <sys/types.h>
19656 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19658 cat >>confdefs.h
<<_ACEOF
19659 #define HAVE_SIGSET_T 1
19662 gl_cv_type_sigset_t
=yes
19664 gl_cv_type_sigset_t
=no
19667 if test $gl_cv_type_sigset_t != yes; then
19673 if test $ac_cv_header_sys_socket_h = no
; then
19674 for ac_header
in ws2tcpip.h
19676 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19677 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19678 cat >>confdefs.h
<<_ACEOF
19679 #define HAVE_WS2TCPIP_H 1
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19689 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19690 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19691 $as_echo_n "(cached) " >&6
19693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 #include <stdbool.h>
19698 "error: bool is not defined"
19701 "error: false is not defined"
19704 "error: false is not 0"
19707 "error: true is not defined"
19710 "error: true is not 1"
19712 #ifndef __bool_true_false_are_defined
19713 "error: __bool_true_false_are_defined is not defined"
19716 struct s { _Bool s: 1; _Bool t; } s;
19718 char a[true == 1 ? 1 : -1];
19719 char b[false == 0 ? 1 : -1];
19720 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19721 char d[(bool) 0.5 == true ? 1 : -1];
19722 /* See body of main program for 'e'. */
19723 char f[(_Bool) 0.0 == false ? 1 : -1];
19725 char h[sizeof (_Bool)];
19726 char i[sizeof s.t];
19727 enum { j = false, k = true, l = false * true, m = true * 256 };
19728 /* The following fails for
19729 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19731 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19732 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19733 /* Catch a bug in an HP-UX C compiler. See
19734 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19735 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19747 /* Refer to every declared value, to avoid compiler optimizations. */
19748 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19749 + !m + !n + !o + !p + !q + !pq);
19755 if ac_fn_c_try_compile
"$LINENO"; then :
19756 ac_cv_header_stdbool_h
=yes
19758 ac_cv_header_stdbool_h
=no
19760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19763 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19764 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19765 if test "x$ac_cv_type__Bool" = x
""yes; then :
19767 cat >>confdefs.h
<<_ACEOF
19768 #define HAVE__BOOL 1
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19781 $as_echo_n "checking for wchar_t... " >&6; }
19782 if test "${gt_cv_c_wchar_t+set}" = set; then :
19783 $as_echo_n "(cached) " >&6
19785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <stddef.h>
19788 wchar_t foo = (wchar_t)'\0';
19797 if ac_fn_c_try_compile
"$LINENO"; then :
19798 gt_cv_c_wchar_t
=yes
19802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19805 $as_echo "$gt_cv_c_wchar_t" >&6; }
19806 if test $gt_cv_c_wchar_t = yes; then
19808 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19821 GNULIB_FPRINTF_POSIX
=0;
19837 GNULIB_OBSTACK_PRINTF
=0;
19838 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19843 GNULIB_PRINTF_POSIX
=0;
19852 GNULIB_SPRINTF_POSIX
=0;
19853 GNULIB_STDIO_H_NONBLOCKING
=0;
19854 GNULIB_STDIO_H_SIGPIPE
=0;
19856 GNULIB_VASPRINTF
=0;
19861 GNULIB_VFPRINTF_POSIX
=0;
19863 GNULIB_VPRINTF_POSIX
=0;
19864 GNULIB_VSNPRINTF
=0;
19865 GNULIB_VSPRINTF_POSIX
=0;
19866 HAVE_DECL_FPURGE
=1;
19867 HAVE_DECL_FSEEKO
=1;
19868 HAVE_DECL_FTELLO
=1;
19869 HAVE_DECL_GETDELIM
=1;
19870 HAVE_DECL_GETLINE
=1;
19871 HAVE_DECL_OBSTACK_PRINTF
=1;
19872 HAVE_DECL_SNPRINTF
=1;
19873 HAVE_DECL_VSNPRINTF
=1;
19894 REPLACE_GETDELIM
=0;
19896 REPLACE_OBSTACK_PRINTF
=0;
19902 REPLACE_RENAMEAT
=0;
19903 REPLACE_SNPRINTF
=0;
19905 REPLACE_STDIO_READ_FUNCS
=0;
19906 REPLACE_STDIO_WRITE_FUNCS
=0;
19908 REPLACE_VASPRINTF
=0;
19909 REPLACE_VDPRINTF
=0;
19910 REPLACE_VFPRINTF
=0;
19912 REPLACE_VSNPRINTF
=0;
19913 REPLACE_VSPRINTF
=0;
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19916 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19917 if test "${ac_cv_struct_tm+set}" = set; then :
19918 $as_echo_n "(cached) " >&6
19920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19922 #include <sys/types.h>
19929 int *p = &tm.tm_sec;
19935 if ac_fn_c_try_compile
"$LINENO"; then :
19936 ac_cv_struct_tm
=time.h
19938 ac_cv_struct_tm
=sys
/time.h
19940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19943 $as_echo "$ac_cv_struct_tm" >&6; }
19944 if test $ac_cv_struct_tm = sys
/time.h
; then
19946 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19950 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19951 #include <$ac_cv_struct_tm>
19954 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19956 cat >>confdefs.h
<<_ACEOF
19957 #define HAVE_STRUCT_TM_TM_ZONE 1
19963 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19965 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19968 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19970 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19976 cat >>confdefs.h
<<_ACEOF
19977 #define HAVE_DECL_TZNAME $ac_have_decl
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19981 $as_echo_n "checking for tzname... " >&6; }
19982 if test "${ac_cv_var_tzname+set}" = set; then :
19983 $as_echo_n "(cached) " >&6
19985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19988 #if !HAVE_DECL_TZNAME
19989 extern char *tzname[];
19995 return tzname[0][0];
20000 if ac_fn_c_try_link
"$LINENO"; then :
20001 ac_cv_var_tzname
=yes
20003 ac_cv_var_tzname
=no
20005 rm -f core conftest.err conftest.
$ac_objext \
20006 conftest
$ac_exeext conftest.
$ac_ext
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20009 $as_echo "$ac_cv_var_tzname" >&6; }
20010 if test $ac_cv_var_tzname = yes; then
20012 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20018 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20020 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
20022 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20029 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20030 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
20036 cat >>confdefs.h
<<_ACEOF
20037 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20042 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20043 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
20049 cat >>confdefs.h
<<_ACEOF
20050 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20056 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20057 if test "${ac_cv_header_stat_broken+set}" = set; then :
20058 $as_echo_n "(cached) " >&6
20060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062 #include <sys/types.h>
20063 #include <sys/stat.h>
20065 #if defined S_ISBLK && defined S_IFDIR
20066 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20069 #if defined S_ISBLK && defined S_IFCHR
20070 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20073 #if defined S_ISLNK && defined S_IFREG
20074 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20077 #if defined S_ISSOCK && defined S_IFREG
20078 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20082 if ac_fn_c_try_compile
"$LINENO"; then :
20083 ac_cv_header_stat_broken
=no
20085 ac_cv_header_stat_broken
=yes
20087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20090 $as_echo "$ac_cv_header_stat_broken" >&6; }
20091 if test $ac_cv_header_stat_broken = yes; then
20093 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20102 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20103 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20113 static struct timespec x; x.tv_sec = x.tv_nsec;
20118 if ac_fn_c_try_compile
"$LINENO"; then :
20119 gl_cv_sys_struct_timespec_in_time_h
=yes
20121 gl_cv_sys_struct_timespec_in_time_h
=no
20123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20126 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20128 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20129 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20130 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
20131 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20132 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20135 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20136 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20137 $as_echo_n "(cached) " >&6
20139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20141 #include <sys/time.h>
20146 static struct timespec x; x.tv_sec = x.tv_nsec;
20151 if ac_fn_c_try_compile
"$LINENO"; then :
20152 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
20154 gl_cv_sys_struct_timespec_in_sys_time_h
=no
20156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20159 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20160 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20161 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20164 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20165 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170 #include <pthread.h>
20175 static struct timespec x; x.tv_sec = x.tv_nsec;
20180 if ac_fn_c_try_compile
"$LINENO"; then :
20181 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20183 gl_cv_sys_struct_timespec_in_pthread_h
=no
20185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20188 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20189 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20190 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20209 if test $gl_cv_have_include_next = yes; then
20210 gl_cv_next_time_h
='<'time.h
'>'
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20213 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20214 if test "${gl_cv_next_time_h+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h. */
20224 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20225 *) gl_absname_cpp
="$ac_cpp" ;;
20230 gl_dirsep_regex
='[/\\]'
20233 gl_dirsep_regex
='\/'
20236 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20238 gl_header_literal_regex
=`echo 'time.h' \
20239 | sed -e "$gl_make_literal_regex_sed"`
20240 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20246 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20247 sed -n "$gl_absolute_header_sed"`'"'
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20252 $as_echo "$gl_cv_next_time_h" >&6; }
20254 NEXT_TIME_H
=$gl_cv_next_time_h
20256 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20258 gl_next_as_first_directive
='<'time.h
'>'
20260 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20261 gl_next_as_first_directive
=$gl_cv_next_time_h
20263 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20278 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20279 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
20285 cat >>confdefs.h
<<_ACEOF
20286 #define HAVE_DECL_UNSETENV $ac_have_decl
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20291 $as_echo_n "checking whether the utimes function works... " >&6; }
20292 if test "${gl_cv_func_working_utimes+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20296 if test "$cross_compiling" = yes; then :
20297 gl_cv_func_working_utimes
=no
20299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 #include <sys/types.h>
20303 #include <sys/stat.h>
20305 #include <sys/time.h>
20307 #include <unistd.h>
20308 #include <stdlib.h>
20313 inorder (time_t a, time_t b, time_t c)
20315 return a <= b && b <= c;
20322 char const *file = "conftest.utimes";
20323 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20325 /* Test whether utimes() essentially works. */
20328 FILE *f = fopen (file, "w");
20331 else if (fclose (f) != 0)
20333 else if (utimes (file, timeval) != 0)
20335 else if (lstat (file, &sbuf) != 0)
20337 else if (!(sbuf.st_atime == timeval[0].tv_sec
20338 && sbuf.st_mtime == timeval[1].tv_sec))
20340 if (unlink (file) != 0)
20344 /* Test whether utimes() with a NULL argument sets the file's timestamp
20345 to the current time. Use 'fstat' as well as 'time' to
20346 determine the "current" time, to accommodate NFS file systems
20347 if there is a time skew between the host and the NFS server. */
20349 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20355 struct stat st0, st1, st2;
20356 if (time (&t0) == (time_t) -1)
20358 else if (fstat (fd, &st0) != 0)
20360 else if (utimes (file, timeval) != 0)
20362 else if (utimes (file, NULL) != 0)
20364 else if (fstat (fd, &st1) != 0)
20366 else if (write (fd, "\n", 1) != 1)
20368 else if (fstat (fd, &st2) != 0)
20370 else if (time (&t2) == (time_t) -1)
20374 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20375 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20376 if (! (st1.st_atime == st1.st_mtime))
20378 if (! (m_ok_POSIX || m_ok_NFS))
20381 if (close (fd) != 0)
20384 if (unlink (file) != 0)
20388 /* Test whether utimes() with a NULL argument works on read-only files. */
20390 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20393 else if (close (fd) != 0)
20395 else if (utimes (file, NULL) != 0)
20397 if (unlink (file) != 0)
20405 if ac_fn_c_try_run
"$LINENO"; then :
20406 gl_cv_func_working_utimes
=yes
20408 gl_cv_func_working_utimes
=no
20410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20416 $as_echo "$gl_cv_func_working_utimes" >&6; }
20418 if test $gl_cv_func_working_utimes = yes; then
20420 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20429 $as_echo_n "checking for struct utimbuf... " >&6; }
20430 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435 #if HAVE_SYS_TIME_H
20436 #include <sys/time.h>
20439 #ifdef HAVE_UTIME_H
20446 static struct utimbuf x; x.actime = x.modtime;
20451 if ac_fn_c_try_compile
"$LINENO"; then :
20452 gl_cv_sys_struct_utimbuf
=yes
20454 gl_cv_sys_struct_utimbuf
=no
20456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20459 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20461 if test $gl_cv_sys_struct_utimbuf = yes; then
20463 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20478 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20479 if test "${ac_cv_type_getgroups+set}" = set; then :
20480 $as_echo_n "(cached) " >&6
20482 if test "$cross_compiling" = yes; then :
20483 ac_cv_type_getgroups
=cross
20485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487 /* Thanks to Mike Rendell for this test. */
20488 $ac_includes_default
20491 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20496 gid_t gidset[NGID];
20498 union { gid_t gval; long int lval; } val;
20501 for (i = 0; i < NGID; i++)
20502 gidset[i] = val.gval;
20503 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20505 /* Exit non-zero if getgroups seems to require an array of ints. This
20506 happens when gid_t is short int but getgroups modifies an array
20508 return n > 0 && gidset[n] != val.gval;
20511 if ac_fn_c_try_run
"$LINENO"; then :
20512 ac_cv_type_getgroups
=gid_t
20514 ac_cv_type_getgroups
=int
20516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20520 if test $ac_cv_type_getgroups = cross
; then
20521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523 #include <unistd.h>
20526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20527 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20528 ac_cv_type_getgroups
=gid_t
20530 ac_cv_type_getgroups
=int
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20537 $as_echo "$ac_cv_type_getgroups" >&6; }
20539 cat >>confdefs.h
<<_ACEOF
20540 #define GETGROUPS_T $ac_cv_type_getgroups
20547 GL_COND_LIBTOOL_TRUE
=
20548 GL_COND_LIBTOOL_FALSE
='#'
20550 GL_COND_LIBTOOL_TRUE
='#'
20551 GL_COND_LIBTOOL_FALSE
=
20554 gl_cond_libtool
=false
20567 gl_source_base
='lib'
20570 if test $ac_cv_func_alloca_works = no
; then
20574 # Define an additional variable used in the Makefile substitution.
20575 if test $ac_cv_working_alloca_h = yes; then
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20577 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20578 if test "${gl_cv_rpl_alloca+set}" = set; then :
20579 $as_echo_n "(cached) " >&6
20582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20585 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20591 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20592 gl_cv_rpl_alloca
=yes
20594 gl_cv_rpl_alloca
=no
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20601 $as_echo "$gl_cv_rpl_alloca" >&6; }
20602 if test $gl_cv_rpl_alloca = yes; then
20604 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20614 if test -n "$ALLOCA_H"; then
20615 GL_GENERATE_ALLOCA_H_TRUE
=
20616 GL_GENERATE_ALLOCA_H_FALSE
='#'
20618 GL_GENERATE_ALLOCA_H_TRUE
='#'
20619 GL_GENERATE_ALLOCA_H_FALSE
=
20627 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20628 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20630 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20631 # programs in the package would end up linked with that potentially-shared
20632 # library, inducing unnecessary run-time overhead.
20635 gl_saved_libs
=$LIBS
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20637 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20638 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20639 $as_echo_n "(cached) " >&6
20641 ac_func_search_save_LIBS
=$LIBS
20642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20651 char clock_gettime ();
20655 return clock_gettime ();
20660 for ac_lib
in '' rt posix4
; do
20661 if test -z "$ac_lib"; then
20662 ac_res
="none required"
20665 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20667 if ac_fn_c_try_link
"$LINENO"; then :
20668 ac_cv_search_clock_gettime
=$ac_res
20670 rm -f core conftest.err conftest.
$ac_objext \
20672 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20676 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20679 ac_cv_search_clock_gettime
=no
20681 rm conftest.
$ac_ext
20682 LIBS
=$ac_func_search_save_LIBS
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20685 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20686 ac_res
=$ac_cv_search_clock_gettime
20687 if test "$ac_res" != no
; then :
20688 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20689 test "$ac_cv_search_clock_gettime" = "none required" ||
20690 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20693 for ac_func
in clock_gettime clock_settime
20695 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20696 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20697 eval as_val
=\$
$as_ac_var
20698 if test "x$as_val" = x
""yes; then :
20699 cat >>confdefs.h
<<_ACEOF
20700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20706 LIBS
=$gl_saved_libs
20713 cat >>confdefs.h
<<_ACEOF
20714 #define GNULIB_CLOSE_STREAM 1
20744 if test $gl_cv_have_include_next = yes; then
20745 gl_cv_next_dirent_h
='<'dirent.h
'>'
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20748 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20749 if test "${gl_cv_next_dirent_h+set}" = set; then :
20750 $as_echo_n "(cached) " >&6
20753 if test $ac_cv_header_dirent_h = yes; then
20756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20758 #include <dirent.h>
20762 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20763 *) gl_absname_cpp
="$ac_cpp" ;;
20768 gl_dirsep_regex
='[/\\]'
20771 gl_dirsep_regex
='\/'
20774 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20776 gl_header_literal_regex
=`echo 'dirent.h' \
20777 | sed -e "$gl_make_literal_regex_sed"`
20778 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20779 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20784 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20785 sed -n "$gl_absolute_header_sed"`'"'
20787 gl_cv_next_dirent_h
='<'dirent.h
'>'
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20793 $as_echo "$gl_cv_next_dirent_h" >&6; }
20795 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
20797 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20799 gl_next_as_first_directive
='<'dirent.h
'>'
20801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20802 gl_next_as_first_directive
=$gl_cv_next_dirent_h
20804 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
20809 if test $ac_cv_header_dirent_h = yes; then
20824 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20827 if test $HAVE_DUP2 = 1; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20829 $as_echo_n "checking whether dup2 works... " >&6; }
20830 if test "${gl_cv_func_dup2_works+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20833 if test "$cross_compiling" = yes; then :
20835 mingw
*) # on this platform, dup2 always returns 0 for success
20836 gl_cv_func_dup2_works
="guessing no" ;;
20837 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20838 gl_cv_func_dup2_works
="guessing no" ;;
20839 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20840 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20841 gl_cv_func_dup2_works
="guessing no" ;;
20842 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20843 gl_cv_func_dup2_works
="guessing no" ;;
20844 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20845 gl_cv_func_dup2_works
="guessing no" ;;
20846 *) gl_cv_func_dup2_works
="guessing yes" ;;
20849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20852 #include <unistd.h>
20860 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20863 if (dup2 (1, 1) == 0)
20866 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20870 if (dup2 (0, 0) != -1)
20872 /* Many gnulib modules require POSIX conformance of EBADF. */
20873 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20875 /* Flush out a cygwin core dump. */
20876 if (dup2 (2, -1) != -1 || errno != EBADF)
20885 if ac_fn_c_try_run
"$LINENO"; then :
20886 gl_cv_func_dup2_works
=yes
20888 gl_cv_func_dup2_works
=no
20890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20897 $as_echo "$gl_cv_func_dup2_works" >&6; }
20898 case "$gl_cv_func_dup2_works" in
20907 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20916 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20947 EXECINFO_H
='execinfo.h'
20949 if test $ac_cv_header_execinfo_h = yes; then
20950 gl_saved_libs
=$LIBS
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20952 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20953 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20956 ac_func_search_save_LIBS
=$LIBS
20957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20966 char backtrace_symbols_fd ();
20970 return backtrace_symbols_fd ();
20975 for ac_lib
in '' execinfo
; do
20976 if test -z "$ac_lib"; then
20977 ac_res
="none required"
20980 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20982 if ac_fn_c_try_link
"$LINENO"; then :
20983 ac_cv_search_backtrace_symbols_fd
=$ac_res
20985 rm -f core conftest.err conftest.
$ac_objext \
20987 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20991 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20994 ac_cv_search_backtrace_symbols_fd
=no
20996 rm conftest.
$ac_ext
20997 LIBS
=$ac_func_search_save_LIBS
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21000 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21001 ac_res
=$ac_cv_search_backtrace_symbols_fd
21002 if test "$ac_res" != no
; then :
21003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21004 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21005 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
21008 LIBS
=$gl_saved_libs
21009 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
21012 if test -n "$EXECINFO_H"; then
21021 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
21027 if test -n "$EXECINFO_H"; then
21028 GL_GENERATE_EXECINFO_H_TRUE
=
21029 GL_GENERATE_EXECINFO_H_FALSE
='#'
21031 GL_GENERATE_EXECINFO_H_TRUE
='#'
21032 GL_GENERATE_EXECINFO_H_FALSE
=
21043 if test $ac_cv_func_faccessat = no
; then
21047 if test $HAVE_FACCESSAT = 0; then
21056 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
21059 for ac_func
in access
21061 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
21062 if test "x$ac_cv_func_access" = x
""yes; then :
21063 cat >>confdefs.h
<<_ACEOF
21064 #define HAVE_ACCESS 1
21074 cat >>confdefs.h
<<_ACEOF
21075 #define GNULIB_FACCESSAT 1
21101 if test $gl_cv_have_include_next = yes; then
21102 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21105 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21106 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21107 $as_echo_n "(cached) " >&6
21110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21116 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21117 *) gl_absname_cpp
="$ac_cpp" ;;
21122 gl_dirsep_regex
='[/\\]'
21125 gl_dirsep_regex
='\/'
21128 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21130 gl_header_literal_regex
=`echo 'fcntl.h' \
21131 | sed -e "$gl_make_literal_regex_sed"`
21132 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21133 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21138 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21139 sed -n "$gl_absolute_header_sed"`'"'
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21144 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21146 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
21148 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21150 gl_next_as_first_directive
='<'fcntl.h
'>'
21152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21153 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
21155 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
21172 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21173 #include <dirent.h>
21176 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
21182 cat >>confdefs.h
<<_ACEOF
21183 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21185 if test $ac_have_decl = 1; then :
21188 HAVE_DECL_FDOPENDIR
=0
21192 if test $ac_cv_func_fdopendir = no
; then
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21196 $as_echo_n "checking whether fdopendir works... " >&6; }
21197 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21198 $as_echo_n "(cached) " >&6
21200 if test "$cross_compiling" = yes; then :
21202 # Guess yes on glibc systems.
21203 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
21204 # If we don't know, assume the worst.
21205 *) gl_cv_func_fdopendir_works
="guessing no" ;;
21209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21210 /* end confdefs.h. */
21212 #include <dirent.h>
21214 #include <unistd.h>
21215 #if !HAVE_DECL_FDOPENDIR
21217 # ifdef __cplusplus
21220 DIR *fdopendir (int);
21227 int fd = open ("conftest.c", O_RDONLY);
21228 if (fd < 0) result |= 1;
21229 if (fdopendir (fd)) result |= 2;
21230 if (close (fd)) result |= 4;
21236 if ac_fn_c_try_run
"$LINENO"; then :
21237 gl_cv_func_fdopendir_works
=yes
21239 gl_cv_func_fdopendir_works
=no
21241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21247 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21248 case "$gl_cv_func_fdopendir_works" in
21251 REPLACE_FDOPENDIR
=1
21256 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
21265 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
21281 cat >>confdefs.h
<<_ACEOF
21282 #define GNULIB_FDOPENDIR 1
21294 # include <stdio.h>
21295 # if HAVE_STDIO_EXT_H
21296 # include <stdio_ext.h>
21299 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21301 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
21307 cat >>confdefs.h
<<_ACEOF
21308 #define HAVE_DECL___FPENDING $ac_have_decl
21312 if test $ac_cv_func___fpending = no
; then
21321 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21325 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21326 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21333 'fp->_IO_write_ptr - fp->_IO_write_base' \
21335 '# traditional Unix' \
21336 'fp->_ptr - fp->_base' \
21339 'fp->_p - fp->_bf._base' \
21341 '# SCO, Unixware' \
21342 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21345 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21348 'fp->__bufp - fp->__buffer' \
21350 '# old glibc iostream?' \
21351 'fp->_pptr - fp->_pbase' \
21354 'fp->_ptr - fp->_buffer' \
21357 'fp->_ptr - fp->_buf' \
21360 'fp->wp - fp->buf' \
21363 '(*fp)->_ptr - (*fp)->_base' \
21365 '# e.g., DGUX R4.11; the info is not available' \
21369 # Skip each embedded comment.
21370 case "$ac_expr" in '#'*) continue;; esac
21372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21378 FILE *fp = stdin; (void) ($ac_expr);
21383 if ac_fn_c_try_compile
"$LINENO"; then :
21387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21388 test "$fp_done" = yes && break
21391 ac_cv_sys_pending_output_n_bytes
=$ac_expr
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21396 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21398 cat >>confdefs.h
<<_ACEOF
21399 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21410 if test $ac_cv_func_fstatat = no
; then
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21414 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21415 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21416 $as_echo_n "(cached) " >&6
21418 if test "$cross_compiling" = yes; then :
21420 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
21421 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
21425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21426 /* end confdefs.h. */
21429 #include <sys/stat.h>
21434 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21438 if ac_fn_c_try_run
"$LINENO"; then :
21439 gl_cv_func_fstatat_zero_flag
=yes
21441 gl_cv_func_fstatat_zero_flag
=no
21443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21450 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21452 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21454 *) REPLACE_FSTATAT
=1
21455 case $gl_cv_func_fstatat_zero_flag in
21458 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21466 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
21475 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
21491 # Persuade glibc <stdlib.h> to declare getloadavg().
21496 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21497 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21499 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21500 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
21503 gl_func_getloadavg_done
=no
21505 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21506 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21507 # to get the right answer into the cache.
21508 # For kstat on solaris, we need to test for libelf and libkvm to force the
21509 # definition of SVR4 below.
21510 if test $gl_func_getloadavg_done = no
; then
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21512 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21513 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21514 $as_echo_n "(cached) " >&6
21516 ac_check_lib_save_LIBS
=$LIBS
21518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21521 /* Override any GCC internal prototype to avoid an error.
21522 Use char because int might match the return type of a GCC
21523 builtin and then its argument prototype would still apply. */
21531 return elf_begin ();
21536 if ac_fn_c_try_link
"$LINENO"; then :
21537 ac_cv_lib_elf_elf_begin
=yes
21539 ac_cv_lib_elf_elf_begin
=no
21541 rm -f core conftest.err conftest.
$ac_objext \
21542 conftest
$ac_exeext conftest.
$ac_ext
21543 LIBS
=$ac_check_lib_save_LIBS
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21546 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21547 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21552 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21553 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21556 ac_check_lib_save_LIBS
=$LIBS
21558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h. */
21561 /* Override any GCC internal prototype to avoid an error.
21562 Use char because int might match the return type of a GCC
21563 builtin and then its argument prototype would still apply. */
21571 return kvm_open ();
21576 if ac_fn_c_try_link
"$LINENO"; then :
21577 ac_cv_lib_kvm_kvm_open
=yes
21579 ac_cv_lib_kvm_kvm_open
=no
21581 rm -f core conftest.err conftest.
$ac_objext \
21582 conftest
$ac_exeext conftest.
$ac_ext
21583 LIBS
=$ac_check_lib_save_LIBS
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21586 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21587 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
21591 # Check for the 4.4BSD definition of getloadavg.
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21593 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21594 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21597 ac_check_lib_save_LIBS
=$LIBS
21598 LIBS
="-lutil $LIBS"
21599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21600 /* end confdefs.h. */
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21608 char getloadavg ();
21612 return getloadavg ();
21617 if ac_fn_c_try_link
"$LINENO"; then :
21618 ac_cv_lib_util_getloadavg
=yes
21620 ac_cv_lib_util_getloadavg
=no
21622 rm -f core conftest.err conftest.
$ac_objext \
21623 conftest
$ac_exeext conftest.
$ac_ext
21624 LIBS
=$ac_check_lib_save_LIBS
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21627 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21628 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
21629 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
21634 if test $gl_func_getloadavg_done = no
; then
21635 # There is a commonly available library for RS/6000 AIX.
21636 # Since it is not a standard part of AIX, it might be installed locally.
21637 gl_getloadavg_LIBS
=$LIBS
21638 LIBS
="-L/usr/local/lib $LIBS"
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21640 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21641 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21642 $as_echo_n "(cached) " >&6
21644 ac_check_lib_save_LIBS
=$LIBS
21645 LIBS
="-lgetloadavg $LIBS"
21646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h. */
21649 /* Override any GCC internal prototype to avoid an error.
21650 Use char because int might match the return type of a GCC
21651 builtin and then its argument prototype would still apply. */
21655 char getloadavg ();
21659 return getloadavg ();
21664 if ac_fn_c_try_link
"$LINENO"; then :
21665 ac_cv_lib_getloadavg_getloadavg
=yes
21667 ac_cv_lib_getloadavg_getloadavg
=no
21669 rm -f core conftest.err conftest.
$ac_objext \
21670 conftest
$ac_exeext conftest.
$ac_ext
21671 LIBS
=$ac_check_lib_save_LIBS
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21674 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21675 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
21676 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
21678 LIBS
=$gl_getloadavg_LIBS
21683 # Set up the replacement function if necessary.
21684 if test $gl_func_getloadavg_done = no
; then
21687 # Solaris has libkstat which does not require root.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21689 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21690 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21693 ac_check_lib_save_LIBS
=$LIBS
21694 LIBS
="-lkstat $LIBS"
21695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21698 /* Override any GCC internal prototype to avoid an error.
21699 Use char because int might match the return type of a GCC
21700 builtin and then its argument prototype would still apply. */
21704 char kstat_open ();
21708 return kstat_open ();
21713 if ac_fn_c_try_link
"$LINENO"; then :
21714 ac_cv_lib_kstat_kstat_open
=yes
21716 ac_cv_lib_kstat_kstat_open
=no
21718 rm -f core conftest.err conftest.
$ac_objext \
21719 conftest
$ac_exeext conftest.
$ac_ext
21720 LIBS
=$ac_check_lib_save_LIBS
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21723 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21724 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
21725 cat >>confdefs.h
<<_ACEOF
21726 #define HAVE_LIBKSTAT 1
21729 LIBS
="-lkstat $LIBS"
21733 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
21735 # AIX has libperfstat which does not require root
21736 if test $gl_func_getloadavg_done = no
; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21738 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21739 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21742 ac_check_lib_save_LIBS
=$LIBS
21743 LIBS
="-lperfstat $LIBS"
21744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 /* Override any GCC internal prototype to avoid an error.
21748 Use char because int might match the return type of a GCC
21749 builtin and then its argument prototype would still apply. */
21753 char perfstat_cpu_total ();
21757 return perfstat_cpu_total ();
21762 if ac_fn_c_try_link
"$LINENO"; then :
21763 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
21765 ac_cv_lib_perfstat_perfstat_cpu_total
=no
21767 rm -f core conftest.err conftest.
$ac_objext \
21768 conftest
$ac_exeext conftest.
$ac_ext
21769 LIBS
=$ac_check_lib_save_LIBS
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21772 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21773 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
21774 cat >>confdefs.h
<<_ACEOF
21775 #define HAVE_LIBPERFSTAT 1
21778 LIBS
="-lperfstat $LIBS"
21782 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
21785 if test $gl_func_getloadavg_done = no
; then
21786 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21787 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
21788 gl_func_getloadavg_done
=yes
21790 $as_echo "#define DGUX 1" >>confdefs.h
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21793 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21794 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21797 ac_check_lib_save_LIBS
=$LIBS
21799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21808 char dg_sys_info ();
21812 return dg_sys_info ();
21817 if ac_fn_c_try_link
"$LINENO"; then :
21818 ac_cv_lib_dgc_dg_sys_info
=yes
21820 ac_cv_lib_dgc_dg_sys_info
=no
21822 rm -f core conftest.err conftest.
$ac_objext \
21823 conftest
$ac_exeext conftest.
$ac_ext
21824 LIBS
=$ac_check_lib_save_LIBS
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21827 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21828 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
21829 cat >>confdefs.h
<<_ACEOF
21830 #define HAVE_LIBDGC 1
21845 if test "x$gl_save_LIBS" = x
; then
21846 GETLOADAVG_LIBS
=$LIBS
21848 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21853 # Test whether the system declares getloadavg. Solaris has the function
21854 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21855 for ac_header
in sys
/loadavg.h
21857 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21858 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
21859 cat >>confdefs.h
<<_ACEOF
21860 #define HAVE_SYS_LOADAVG_H 1
21867 if test $ac_cv_header_sys_loadavg_h = yes; then
21868 HAVE_SYS_LOADAVG_H
=1
21870 HAVE_SYS_LOADAVG_H
=0
21872 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21873 # include <sys/loadavg.h>
21875 #include <stdlib.h>
21877 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
21880 HAVE_DECL_GETLOADAVG
=0
21884 if test $HAVE_GETLOADAVG = 0; then
21893 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
21896 # Figure out what our getloadavg.c needs.
21900 # On HPUX9, an unprivileged user can get load averages this way.
21901 if test $gl_func_getloadavg_done = no
; then
21902 for ac_func
in pstat_getdynamic
21904 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21905 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
21906 cat >>confdefs.h
<<_ACEOF
21907 #define HAVE_PSTAT_GETDYNAMIC 1
21909 gl_func_getloadavg_done
=yes
21915 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21916 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21917 # Irix 4.0.5F has the header but not the library.
21918 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
21919 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21920 gl_func_getloadavg_done
=yes
21922 $as_echo "#define SVR4 1" >>confdefs.h
21926 if test $gl_func_getloadavg_done = no
; then
21927 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21928 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
21929 gl_func_getloadavg_done
=yes
21931 $as_echo "#define UMAX 1" >>confdefs.h
21934 $as_echo "#define UMAX4_3 1" >>confdefs.h
21941 if test $gl_func_getloadavg_done = no
; then
21942 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21943 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
21944 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
21951 if test $gl_func_getloadavg_done = no
; then
21952 for ac_header
in mach
/mach.h
21954 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21955 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
21956 cat >>confdefs.h
<<_ACEOF
21957 #define HAVE_MACH_MACH_H 1
21966 for ac_header
in nlist.h
21968 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21969 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
21970 cat >>confdefs.h
<<_ACEOF
21971 #define HAVE_NLIST_H 1
21973 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21975 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
21977 cat >>confdefs.h
<<_ACEOF
21978 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21991 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21992 x.n_un.n_name = "";
22000 if ac_fn_c_try_link
"$LINENO"; then :
22002 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22005 rm -f core conftest.err conftest.
$ac_objext \
22006 conftest
$ac_exeext conftest.
$ac_ext
22018 GNULIB_GETLOADAVG
=1
22029 if test $REPLACE_GETOPT = 1; then
22038 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22048 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22053 GNULIB_GL_UNISTD_H_GETOPT
=1
22063 if test -n "$gl_replace_getopt"; then
22067 if test $REPLACE_GETOPT = 1; then
22071 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22077 if test $REPLACE_GETOPT = 1; then
22086 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22096 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22101 GNULIB_GL_UNISTD_H_GETOPT
=1
22115 gl_gettimeofday_timezone
=void
22116 if test $ac_cv_func_gettimeofday != yes; then
22117 HAVE_GETTIMEOFDAY
=0
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22123 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22124 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22125 $as_echo_n "(cached) " >&6
22127 if test "$cross_compiling" = yes; then :
22128 # When cross-compiling:
22130 # Guess all is fine on glibc systems.
22131 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
22132 # If we don't know, assume the worst.
22133 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
22137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h. */
22139 #include <string.h>
22140 #include <sys/time.h>
22142 #include <stdlib.h>
22150 struct tm saved_lt;
22152 lt = localtime (&t);
22154 gettimeofday (&tv, NULL);
22155 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22161 if ac_fn_c_try_run
"$LINENO"; then :
22162 gl_cv_func_gettimeofday_clobber
=no
22164 gl_cv_func_gettimeofday_clobber
=yes
22166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22172 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22174 case "$gl_cv_func_gettimeofday_clobber" in
22176 REPLACE_GETTIMEOFDAY
=1
22179 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22182 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22186 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22192 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22193 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #include <sys/time.h>
22200 int gettimeofday (struct timeval *restrict, void *restrict);
22205 /* glibc uses struct timezone * rather than the POSIX void *
22206 if _GNU_SOURCE is defined. However, since the only portable
22207 use of gettimeofday uses NULL as the second parameter, and
22208 since the glibc definition is actually more typesafe, it is
22209 not worth wrapping this to get a compliant signature. */
22210 int (*f) (struct timeval *restrict, void *restrict)
22213 return !(x | c.tv_sec | c.tv_usec);
22219 if ac_fn_c_try_compile
"$LINENO"; then :
22220 gl_cv_func_gettimeofday_posix_signature
=yes
22222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224 #include <sys/time.h>
22225 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22235 if ac_fn_c_try_compile
"$LINENO"; then :
22236 gl_cv_func_gettimeofday_posix_signature
=almost
22238 gl_cv_func_gettimeofday_posix_signature
=no
22240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22245 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22246 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
22247 gl_gettimeofday_timezone
='struct timezone'
22248 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22249 REPLACE_GETTIMEOFDAY
=1
22251 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22252 REPLACE_GETTIMEOFDAY
=1
22257 cat >>confdefs.h
<<_ACEOF
22258 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22262 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
22271 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
22274 for ac_header
in sys
/timeb.h
22276 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
22278 cat >>confdefs.h
<<_ACEOF
22279 #define HAVE_SYS_TIMEB_H 1
22286 for ac_func
in _ftime
22288 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
22289 if test "x$ac_cv_func__ftime" = x
""yes; then :
22290 cat >>confdefs.h
<<_ACEOF
22291 #define HAVE__FTIME 1
22304 GNULIB_GETTIMEOFDAY
=1
22315 if test $ac_cv_func_lstat = yes; then
22317 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22326 if test $REPLACE_LSTAT = 1; then
22335 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22356 if test $APPLE_UNIVERSAL_BUILD = 1; then
22357 # A universal build on Apple Mac OS X platforms.
22358 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22359 # But we need a configuration result that is valid in both modes.
22360 gl_cv_func_working_mktime
=no
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22363 $as_echo_n "checking for working mktime... " >&6; }
22364 if test "${gl_cv_func_working_mktime+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22367 if test "$cross_compiling" = yes; then :
22368 gl_cv_func_working_mktime
=no
22370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22372 /* Test program from Paul Eggert and Tony Leneis. */
22373 #include <limits.h>
22374 #include <stdlib.h>
22377 #ifdef HAVE_UNISTD_H
22378 # include <unistd.h>
22382 # define alarm(X) /* empty */
22385 /* Work around redefinition to rpl_putenv by other config tests. */
22388 static time_t time_t_max;
22389 static time_t time_t_min;
22391 /* Values we'll use to set the TZ environment variable. */
22392 static char *tz_strings[] = {
22393 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22394 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22396 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22398 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22399 Based on a problem report from Andreas Jaeger. */
22401 spring_forward_gap ()
22403 /* glibc (up to about 1998-10-07) failed this test. */
22406 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22407 instead of "TZ=America/Vancouver" in order to detect the bug even
22408 on systems that don't support the Olson extension, or don't have the
22409 full zoneinfo tables installed. */
22410 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22419 return mktime (&tm) != (time_t) -1;
22423 mktime_test1 (time_t now)
22426 return ! (lt = localtime (&now)) || mktime (lt) == now;
22430 mktime_test (time_t now)
22432 return (mktime_test1 (now)
22433 && mktime_test1 ((time_t) (time_t_max - now))
22434 && mktime_test1 ((time_t) (time_t_min + now)));
22440 /* Based on code from Ariel Faigon. */
22450 return tm.tm_mon == 2 && tm.tm_mday == 31;
22454 bigtime_test (int j)
22458 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22459 now = mktime (&tm);
22460 if (now != (time_t) -1)
22462 struct tm *lt = localtime (&now);
22464 && lt->tm_year == tm.tm_year
22465 && lt->tm_mon == tm.tm_mon
22466 && lt->tm_mday == tm.tm_mday
22467 && lt->tm_hour == tm.tm_hour
22468 && lt->tm_min == tm.tm_min
22469 && lt->tm_sec == tm.tm_sec
22470 && lt->tm_yday == tm.tm_yday
22471 && lt->tm_wday == tm.tm_wday
22472 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22473 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22482 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22483 ignoring leap seconds. */
22484 unsigned long int answer = 2527315200UL;
22488 tm.tm_year = 2050 - 1900;
22491 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22494 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22495 instead of "TZ=America/Vancouver" in order to detect the bug even
22496 on systems that don't support the Olson extension, or don't have the
22497 full zoneinfo tables installed. */
22498 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22502 /* Check that the result is either a failure, or close enough
22503 to the correct answer that we can assume the discrepancy is
22504 due to leap seconds. */
22505 return (t == (time_t) -1
22506 || (0 < t && answer - 120 <= t && t <= answer + 120));
22515 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22516 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22518 /* This test makes some buggy mktime implementations loop.
22519 Give up after 60 seconds; a mktime slower than that
22520 isn't worth using anyway. */
22523 time_t_max = (! time_t_signed
22525 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22527 time_t_min = (! time_t_signed
22529 : time_t_signed_magnitude
22533 delta = time_t_max / 997; /* a suitable prime number */
22534 for (i = 0; i < N_STRINGS; i++)
22537 putenv (tz_strings[i]);
22539 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22540 if (! mktime_test (t))
22542 if ((result & 2) == 0
22543 && ! (mktime_test ((time_t) 1)
22544 && mktime_test ((time_t) (60 * 60))
22545 && mktime_test ((time_t) (60 * 60 * 24))))
22548 for (j = 1; (result & 4) == 0; j <<= 1)
22550 if (! bigtime_test (j))
22552 if (INT_MAX / 2 < j)
22555 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22558 if (! irix_6_4_bug ())
22560 if (! spring_forward_gap ())
22562 if (! year_2050_test ())
22567 if ac_fn_c_try_run
"$LINENO"; then :
22568 gl_cv_func_working_mktime
=yes
22570 gl_cv_func_working_mktime
=no
22572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22579 $as_echo "$gl_cv_func_working_mktime" >&6; }
22581 if test $gl_cv_func_working_mktime = no
; then
22587 if test $REPLACE_MKTIME = 1; then
22596 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
22617 if test $ac_cv_func_pselect = yes; then
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22619 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22620 if test "${gl_cv_sig_pselect+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625 #include <sys/select.h>
22630 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22631 struct timespec const *restrict,
22632 sigset_t const *restrict) = pselect;
22638 if ac_fn_c_try_link
"$LINENO"; then :
22639 gl_cv_sig_pselect
=yes
22641 gl_cv_sig_pselect
=no
22643 rm -f core conftest.err conftest.
$ac_objext \
22644 conftest
$ac_exeext conftest.
$ac_ext
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22647 $as_echo "$gl_cv_sig_pselect" >&6; }
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22650 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22651 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22652 $as_echo_n "(cached) " >&6
22655 if test "$cross_compiling" = yes; then :
22658 # Guess yes on glibc systems.
22659 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
22660 # If we don't know, assume the worst.
22661 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
22665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22668 #include <sys/types.h>
22669 #include <sys/time.h>
22670 #if HAVE_SYS_SELECT_H
22671 # include <sys/select.h>
22673 #include <unistd.h>
22685 struct timespec timeout;
22686 timeout.tv_sec = 0;
22687 timeout.tv_nsec = 5000;
22688 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22694 if ac_fn_c_try_run
"$LINENO"; then :
22695 gl_cv_func_pselect_detects_ebadf
=yes
22697 gl_cv_func_pselect_detects_ebadf
=no
22699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22706 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22707 case $gl_cv_func_pselect_detects_ebadf in
22709 *) REPLACE_PSELECT
=1 ;;
22713 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
22717 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
22726 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
22744 LIB_PTHREAD_SIGMASK
=
22749 if test "$gl_threads_api" = posix
; then
22750 if test $ac_cv_func_pthread_sigmask = yes; then
22753 if test -n "$LIBMULTITHREAD"; then
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22755 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22756 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22757 $as_echo_n "(cached) " >&6
22759 gl_save_LIBS
="$LIBS"
22760 LIBS
="$LIBS $LIBMULTITHREAD"
22761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22762 /* end confdefs.h. */
22763 #include <pthread.h>
22764 #include <signal.h>
22769 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22775 if ac_fn_c_try_link
"$LINENO"; then :
22776 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
22778 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
22780 rm -f core conftest.err conftest.
$ac_objext \
22781 conftest
$ac_exeext conftest.
$ac_ext
22782 LIBS
="$gl_save_LIBS"
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22786 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22787 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22788 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
22790 HAVE_PTHREAD_SIGMASK
=0
22793 HAVE_PTHREAD_SIGMASK
=0
22797 if test $ac_cv_func_pthread_sigmask = yes; then
22798 REPLACE_PTHREAD_SIGMASK
=1
22800 HAVE_PTHREAD_SIGMASK
=0
22807 if test $HAVE_PTHREAD_SIGMASK = 1; then
22810 if test -z "$LIB_PTHREAD_SIGMASK"; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22812 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22813 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22817 if test "$cross_compiling" = yes; then :
22820 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
22821 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
22823 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
22827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h. */
22830 #include <pthread.h>
22831 #include <signal.h>
22832 #include <stddef.h>
22836 sigemptyset (&set);
22837 return pthread_sigmask (1729, &set, NULL) != 0;
22840 if ac_fn_c_try_run
"$LINENO"; then :
22841 gl_cv_func_pthread_sigmask_in_libc_works
=no
22843 gl_cv_func_pthread_sigmask_in_libc_works
=yes
22845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22852 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22853 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22855 REPLACE_PTHREAD_SIGMASK
=1
22857 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22864 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22865 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22869 gl_save_LIBS
="$LIBS"
22870 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
22871 if test "$cross_compiling" = yes; then :
22874 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
22876 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
22880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22883 #include <pthread.h>
22884 #include <signal.h>
22885 #include <stddef.h>
22889 sigemptyset (&set);
22890 if (pthread_sigmask (1729, &set, NULL) == -1)
22895 if ac_fn_c_try_run
"$LINENO"; then :
22896 gl_cv_func_pthread_sigmask_return_works
=yes
22898 gl_cv_func_pthread_sigmask_return_works
=no
22900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22904 LIBS
="$gl_save_LIBS"
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22908 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22909 case "$gl_cv_func_pthread_sigmask_return_works" in
22911 REPLACE_PTHREAD_SIGMASK
=1
22913 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22919 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22920 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22926 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
22928 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
22930 gl_save_LIBS
="$LIBS"
22931 LIBS
="$LIBS $LIBMULTITHREAD"
22932 if test "$cross_compiling" = yes; then :
22935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22938 #include <pthread.h>
22939 #include <signal.h>
22941 #include <stdlib.h>
22942 #include <unistd.h>
22943 static volatile int sigint_occurred;
22945 sigint_handler (int sig)
22952 int pid = getpid ();
22954 signal (SIGINT, sigint_handler);
22955 sigemptyset (&set);
22956 sigaddset (&set, SIGINT);
22957 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22959 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22960 if (!(system (command) == 0))
22963 if (!(sigint_occurred == 0))
22965 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22967 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22972 if ac_fn_c_try_run
"$LINENO"; then :
22975 gl_cv_func_pthread_sigmask_unblock_works
=no
22977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22981 LIBS
="$gl_save_LIBS"
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22985 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22986 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22988 REPLACE_PTHREAD_SIGMASK
=1
22990 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22996 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
23005 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23008 if test $HAVE_PTHREAD_SIGMASK = 1; then
23010 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23020 GNULIB_PTHREAD_SIGMASK
=1
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23029 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23030 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23033 if test "$cross_compiling" = yes; then :
23035 # Guess yes on glibc systems.
23036 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
23037 # If we don't know, assume the worst.
23038 *) gl_cv_func_svid_putenv
="guessing no" ;;
23042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23044 $ac_includes_default
23049 /* Put it in env. */
23050 if (putenv ("CONFTEST_putenv=val"))
23053 /* Try to remove it. */
23054 if (putenv ("CONFTEST_putenv"))
23057 /* Make sure it was deleted. */
23058 if (getenv ("CONFTEST_putenv") != 0)
23067 if ac_fn_c_try_run
"$LINENO"; then :
23068 gl_cv_func_svid_putenv
=yes
23070 gl_cv_func_svid_putenv
=no
23072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23079 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23080 case "$gl_cv_func_svid_putenv" in
23087 if test $REPLACE_PUTENV = 1; then
23096 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
23113 if test $ac_cv_func_readlink = no
; then
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23117 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23118 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23122 /* end confdefs.h. */
23123 #include <unistd.h>
23124 /* Cause compilation failure if original declaration has wrong type. */
23125 ssize_t readlink (const char *, char *, size_t);
23134 if ac_fn_c_try_compile
"$LINENO"; then :
23135 gl_cv_decl_readlink_works
=yes
23137 gl_cv_decl_readlink_works
=no
23139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23142 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23144 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23145 if test "${gl_cv_func_readlink_works+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23148 # We have readlink, so assume ln -s works.
23149 ln -s conftest.no-such conftest.link
23150 ln -s conftest.link conftest.lnk2
23151 if test "$cross_compiling" = yes; then :
23153 # Guess yes on glibc systems.
23154 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
23155 # If we don't know, assume the worst.
23156 *) gl_cv_func_readlink_works
="guessing no" ;;
23160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23162 #include <unistd.h>
23168 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23173 if ac_fn_c_try_run
"$LINENO"; then :
23174 gl_cv_func_readlink_works
=yes
23176 gl_cv_func_readlink_works
=no
23178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23182 rm -f conftest.link conftest.lnk2
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23185 $as_echo "$gl_cv_func_readlink_works" >&6; }
23186 case "$gl_cv_func_readlink_works" in
23188 if test "$gl_cv_decl_readlink_works" != yes; then
23194 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23201 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23210 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
23231 if test $ac_cv_func_readlinkat = no
; then
23235 if test $HAVE_READLINKAT = 0; then
23244 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
23252 GNULIB_READLINKAT
=1
23259 for ac_func
in sig2str
23261 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
23262 if test "x$ac_cv_func_sig2str" = x
""yes; then :
23263 cat >>confdefs.h
<<_ACEOF
23264 #define HAVE_SIG2STR 1
23271 if test $ac_cv_func_sig2str = no
; then
23280 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
23297 if test $gl_cv_have_include_next = yes; then
23298 gl_cv_next_signal_h
='<'signal.h
'>'
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23301 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23302 if test "${gl_cv_next_signal_h+set}" = set; then :
23303 $as_echo_n "(cached) " >&6
23306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 #include <signal.h>
23312 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23313 *) gl_absname_cpp
="$ac_cpp" ;;
23318 gl_dirsep_regex
='[/\\]'
23321 gl_dirsep_regex
='\/'
23324 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23326 gl_header_literal_regex
=`echo 'signal.h' \
23327 | sed -e "$gl_make_literal_regex_sed"`
23328 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23329 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23334 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23335 sed -n "$gl_absolute_header_sed"`'"'
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23340 $as_echo "$gl_cv_next_signal_h" >&6; }
23342 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23344 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23346 gl_next_as_first_directive
='<'signal.h
'>'
23348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23349 gl_next_as_first_directive
=$gl_cv_next_signal_h
23351 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23357 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23358 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23359 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23360 #include <signal.h>
23363 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
23366 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23375 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23376 #include <signal.h>
23379 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
23382 HAVE_SIGHANDLER_T
=0
23388 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23389 /* <sys/types.h> is not needed according to POSIX, but the
23390 <sys/socket.h> in i386-unknown-freebsd4.10 and
23391 powerpc-apple-darwin5.5 required it. */
23392 #include <sys/types.h>
23393 #if HAVE_SYS_SOCKET_H
23394 # include <sys/socket.h>
23395 #elif HAVE_WS2TCPIP_H
23396 # include <ws2tcpip.h>
23400 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23404 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23405 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23408 # Systems have either "struct sockaddr *" or
23409 # "void *" as the second argument to getpeername
23410 gl_cv_socklen_t_equiv
=
23411 for arg2
in "struct sockaddr" void
; do
23412 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23414 /* end confdefs.h. */
23415 #include <sys/types.h>
23416 #include <sys/socket.h>
23418 int getpeername (int, $arg2 *, $t *);
23423 getpeername (0, 0, &len);
23428 if ac_fn_c_try_compile
"$LINENO"; then :
23429 gl_cv_socklen_t_equiv
="$t"
23431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23432 test "$gl_cv_socklen_t_equiv" != "" && break
23434 test "$gl_cv_socklen_t_equiv" != "" && break
23439 if test "$gl_cv_socklen_t_equiv" = ""; then
23440 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23443 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23445 cat >>confdefs.h
<<_ACEOF
23446 #define socklen_t $gl_cv_socklen_t_equiv
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23453 $as_echo_n "checking for ssize_t... " >&6; }
23454 if test "${gt_cv_ssize_t+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23458 /* end confdefs.h. */
23459 #include <sys/types.h>
23463 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23469 if ac_fn_c_try_compile
"$LINENO"; then :
23474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23477 $as_echo "$gt_cv_ssize_t" >&6; }
23478 if test $gt_cv_ssize_t = no
; then
23480 $as_echo "#define ssize_t int" >>confdefs.h
23488 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>
23489 #include <sys/stat.h>
23491 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
23493 cat >>confdefs.h
<<_ACEOF
23494 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23498 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23499 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23505 #include <sys/types.h>
23506 #include <sys/stat.h>
23507 #if HAVE_SYS_TIME_H
23508 # include <sys/time.h>
23511 struct timespec ts;
23524 if ac_fn_c_try_compile
"$LINENO"; then :
23525 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
23527 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
23529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23532 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23533 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23535 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23539 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>
23540 #include <sys/stat.h>
23542 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
23544 cat >>confdefs.h
<<_ACEOF
23545 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23550 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23551 #include <sys/stat.h>
23553 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
23555 cat >>confdefs.h
<<_ACEOF
23556 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23561 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>
23562 #include <sys/stat.h>
23564 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
23566 cat >>confdefs.h
<<_ACEOF
23567 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23583 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>
23584 #include <sys/stat.h>
23586 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
23588 cat >>confdefs.h
<<_ACEOF
23589 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23594 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23595 #include <sys/stat.h>
23597 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
23599 cat >>confdefs.h
<<_ACEOF
23600 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23605 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>
23606 #include <sys/stat.h>
23608 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
23610 cat >>confdefs.h
<<_ACEOF
23611 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23624 $as_echo_n "checking for working stdalign.h... " >&6; }
23625 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23629 /* end confdefs.h. */
23630 #include <stdalign.h>
23631 #include <stddef.h>
23633 /* Test that alignof yields a result consistent with offsetof.
23634 This catches GCC bug 52023
23635 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23637 template <class t> struct alignof_helper { char a; t b; };
23638 # define ao(type) offsetof (alignof_helper<type>, b)
23640 # define ao(type) offsetof (struct { char a; type b; }, b)
23642 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23643 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23644 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23646 /* Test _Alignas only on platforms where gnulib can help. */
23648 (__GNUC__ || __IBMC__ || __IBMCPP__ \
23649 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
23650 int alignas (8) alignas_int = 1;
23651 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
23662 if ac_fn_c_try_compile
"$LINENO"; then :
23663 gl_cv_header_working_stdalign_h
=yes
23665 gl_cv_header_working_stdalign_h
=no
23667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23670 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23672 if test $gl_cv_header_working_stdalign_h = yes; then
23675 STDALIGN_H
='stdalign.h'
23679 if test -n "$STDALIGN_H"; then
23680 GL_GENERATE_STDALIGN_H_TRUE
=
23681 GL_GENERATE_STDALIGN_H_FALSE
='#'
23683 GL_GENERATE_STDALIGN_H_TRUE
='#'
23684 GL_GENERATE_STDALIGN_H_FALSE
=
23690 NEXT_STDARG_H
='<stdarg.h>'
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23692 $as_echo_n "checking for va_copy... " >&6; }
23693 if test "${gl_cv_func_va_copy+set}" = set; then :
23694 $as_echo_n "(cached) " >&6
23697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699 #include <stdarg.h>
23705 void (*func) (va_list, va_list) = va_copy;
23712 if ac_fn_c_try_compile
"$LINENO"; then :
23713 gl_cv_func_va_copy
=yes
23715 gl_cv_func_va_copy
=no
23717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23721 $as_echo "$gl_cv_func_va_copy" >&6; }
23722 if test $gl_cv_func_va_copy = no
; then
23723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 #if defined _AIX && !defined __GNUC__
23730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23731 $EGREP "vaccine" >/dev
/null
2>&1; then :
23738 if test $gl_aixcc = yes; then
23748 if test $gl_cv_have_include_next = yes; then
23749 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23752 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23753 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23754 $as_echo_n "(cached) " >&6
23757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23759 #include <stdarg.h>
23763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23764 *) gl_absname_cpp
="$ac_cpp" ;;
23769 gl_dirsep_regex
='[/\\]'
23772 gl_dirsep_regex
='\/'
23775 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23777 gl_header_literal_regex
=`echo 'stdarg.h' \
23778 | sed -e "$gl_make_literal_regex_sed"`
23779 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23785 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23786 sed -n "$gl_absolute_header_sed"`'"'
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23791 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23793 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
23795 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23797 gl_next_as_first_directive
='<'stdarg.h
'>'
23799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23800 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
23802 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
23807 if test "$gl_cv_next_stdarg_h" = '""'; then
23808 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
23809 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
23813 saved_as_echo_n
="$as_echo_n"
23815 if test "${gl_cv_func___va_copy+set}" = set; then :
23816 $as_echo_n "(cached) " >&6
23819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 #include <stdarg.h>
23834 if ac_fn_c_try_compile
"$LINENO"; then :
23835 gl_cv_func___va_copy
=yes
23837 gl_cv_func___va_copy
=no
23839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23842 as_echo_n
="$saved_as_echo_n"
23844 if test $gl_cv_func___va_copy = yes; then
23846 $as_echo "#define va_copy __va_copy" >>confdefs.h
23851 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23857 if test -n "$STDARG_H"; then
23858 GL_GENERATE_STDARG_H_TRUE
=
23859 GL_GENERATE_STDARG_H_FALSE
='#'
23861 GL_GENERATE_STDARG_H_TRUE
='#'
23862 GL_GENERATE_STDARG_H_FALSE
=
23870 # Define two additional variables used in the Makefile substitution.
23872 if test "$ac_cv_header_stdbool_h" = yes; then
23875 STDBOOL_H
='stdbool.h'
23878 if test -n "$STDBOOL_H"; then
23879 GL_GENERATE_STDBOOL_H_TRUE
=
23880 GL_GENERATE_STDBOOL_H_FALSE
='#'
23882 GL_GENERATE_STDBOOL_H_TRUE
='#'
23883 GL_GENERATE_STDBOOL_H_FALSE
=
23887 if test "$ac_cv_type__Bool" = yes; then
23898 if test $gt_cv_c_wchar_t = no
; then
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23903 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23904 if test "${gl_cv_decl_null_works+set}" = set; then :
23905 $as_echo_n "(cached) " >&6
23907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23909 #include <stddef.h>
23910 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23920 if ac_fn_c_try_compile
"$LINENO"; then :
23921 gl_cv_decl_null_works
=yes
23923 gl_cv_decl_null_works
=no
23925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23928 $as_echo "$gl_cv_decl_null_works" >&6; }
23929 if test $gl_cv_decl_null_works = no
; then
23934 if test -n "$STDDEF_H"; then
23935 GL_GENERATE_STDDEF_H_TRUE
=
23936 GL_GENERATE_STDDEF_H_FALSE
='#'
23938 GL_GENERATE_STDDEF_H_TRUE
='#'
23939 GL_GENERATE_STDDEF_H_FALSE
=
23942 if test -n "$STDDEF_H"; then
23951 if test $gl_cv_have_include_next = yes; then
23952 gl_cv_next_stddef_h
='<'stddef.h
'>'
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23955 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23956 if test "${gl_cv_next_stddef_h+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h. */
23962 #include <stddef.h>
23966 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23967 *) gl_absname_cpp
="$ac_cpp" ;;
23972 gl_dirsep_regex
='[/\\]'
23975 gl_dirsep_regex
='\/'
23978 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23980 gl_header_literal_regex
=`echo 'stddef.h' \
23981 | sed -e "$gl_make_literal_regex_sed"`
23982 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23983 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23988 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23989 sed -n "$gl_absolute_header_sed"`'"'
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23994 $as_echo "$gl_cv_next_stddef_h" >&6; }
23996 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24000 gl_next_as_first_directive
='<'stddef.h
'>'
24002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24003 gl_next_as_first_directive
=$gl_cv_next_stddef_h
24005 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24023 if test $gl_cv_have_include_next = yes; then
24024 gl_cv_next_stdio_h
='<'stdio.h
'>'
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24027 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24028 if test "${gl_cv_next_stdio_h+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24038 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24039 *) gl_absname_cpp
="$ac_cpp" ;;
24044 gl_dirsep_regex
='[/\\]'
24047 gl_dirsep_regex
='\/'
24050 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24052 gl_header_literal_regex
=`echo 'stdio.h' \
24053 | sed -e "$gl_make_literal_regex_sed"`
24054 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24055 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24060 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24061 sed -n "$gl_absolute_header_sed"`'"'
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24066 $as_echo "$gl_cv_next_stdio_h" >&6; }
24068 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24070 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24072 gl_next_as_first_directive
='<'stdio.h
'>'
24074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24075 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24077 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24086 cat >>confdefs.h
<<_ACEOF
24087 #define GNULIB_FSCANF 1
24094 cat >>confdefs.h
<<_ACEOF
24095 #define GNULIB_SCANF 1
24131 if test $gl_cv_have_include_next = yes; then
24132 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24135 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24136 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24142 #include <stdlib.h>
24146 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24147 *) gl_absname_cpp
="$ac_cpp" ;;
24152 gl_dirsep_regex
='[/\\]'
24155 gl_dirsep_regex
='\/'
24158 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24160 gl_header_literal_regex
=`echo 'stdlib.h' \
24161 | sed -e "$gl_make_literal_regex_sed"`
24162 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24168 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24169 sed -n "$gl_absolute_header_sed"`'"'
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24174 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24176 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24178 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24180 gl_next_as_first_directive
='<'stdlib.h
'>'
24182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24183 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24185 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24195 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24203 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24212 if test "$ac_cv_have_decl_strtoimax" != yes; then
24213 HAVE_DECL_STRTOIMAX
=0
24216 if test $ac_cv_func_strtoimax = yes; then
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24219 $as_echo_n "checking whether strtoimax works... " >&6; }
24220 if test "${gl_cv_func_strtoimax+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24223 if test "$cross_compiling" = yes; then :
24225 # Guess no on AIX 5.
24226 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
24227 # Guess yes otherwise.
24228 *) gl_cv_func_strtoimax
="guessing yes" ;;
24232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24233 /* end confdefs.h. */
24236 #include <string.h>
24237 #include <inttypes.h>
24240 if (sizeof (intmax_t) > sizeof (int))
24242 const char *s = "4294967295";
24246 res = strtoimax (s, &p, 10);
24247 if (p != s + strlen (s))
24251 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24256 const char *s = "2147483647";
24260 res = strtoimax (s, &p, 10);
24261 if (p != s + strlen (s))
24265 if (res != 2147483647)
24272 if ac_fn_c_try_run
"$LINENO"; then :
24273 gl_cv_func_strtoimax
=yes
24275 gl_cv_func_strtoimax
=no
24277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24284 $as_echo "$gl_cv_func_strtoimax" >&6; }
24285 case "$gl_cv_func_strtoimax" in
24286 *no
) REPLACE_STRTOIMAX
=1 ;;
24292 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24301 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
24304 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24305 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
24311 cat >>confdefs.h
<<_ACEOF
24312 #define HAVE_DECL_STRTOLL $ac_have_decl
24333 if test "$ac_cv_have_decl_strtoumax" != yes; then
24334 HAVE_DECL_STRTOUMAX
=0
24337 if test $ac_cv_func_strtoumax = no
; then
24346 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
24349 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24350 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
24356 cat >>confdefs.h
<<_ACEOF
24357 #define HAVE_DECL_STRTOULL $ac_have_decl
24376 if test $ac_cv_func_symlink = no
; then
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24380 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24381 if test "${gl_cv_func_symlink_works+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24384 if test "$cross_compiling" = yes; then :
24386 # Guess yes on glibc systems.
24387 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
24388 # If we don't know, assume the worst.
24389 *) gl_cv_func_symlink_works
="guessing no" ;;
24393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24395 #include <unistd.h>
24401 if (!symlink ("a", "conftest.link/"))
24403 if (symlink ("conftest.f", "conftest.lnk2"))
24405 else if (!symlink ("a", "conftest.lnk2/"))
24413 if ac_fn_c_try_run
"$LINENO"; then :
24414 gl_cv_func_symlink_works
=yes
24416 gl_cv_func_symlink_works
=no
24418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24422 rm -f conftest.f conftest.link conftest.lnk2
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24425 $as_echo "$gl_cv_func_symlink_works" >&6; }
24426 case "$gl_cv_func_symlink_works" in
24434 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
24443 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24461 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24462 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24467 /* end confdefs.h. */
24468 #include <sys/select.h>
24477 if ac_fn_c_try_compile
"$LINENO"; then :
24478 gl_cv_header_sys_select_h_selfcontained
=yes
24480 gl_cv_header_sys_select_h_selfcontained
=no
24482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24483 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24485 /* end confdefs.h. */
24486 #include <sys/select.h>
24490 int memset; int bzero;
24496 if ac_fn_c_try_compile
"$LINENO"; then :
24497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24498 /* end confdefs.h. */
24499 #include <sys/select.h>
24505 #define memset nonexistent_memset
24510 void *memset (void *, int, unsigned long);
24512 #define bzero nonexistent_bzero
24517 void bzero (void *, unsigned long);
24526 if ac_fn_c_try_link
"$LINENO"; then :
24529 gl_cv_header_sys_select_h_selfcontained
=no
24531 rm -f core conftest.err conftest.
$ac_objext \
24532 conftest
$ac_exeext conftest.
$ac_ext
24535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24540 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24550 if test $gl_cv_have_include_next = yes; then
24551 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24554 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24555 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24559 if test $ac_cv_header_sys_select_h = yes; then
24562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564 #include <sys/select.h>
24568 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24569 *) gl_absname_cpp
="$ac_cpp" ;;
24574 gl_dirsep_regex
='[/\\]'
24577 gl_dirsep_regex
='\/'
24580 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24582 gl_header_literal_regex
=`echo 'sys/select.h' \
24583 | sed -e "$gl_make_literal_regex_sed"`
24584 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24590 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24591 sed -n "$gl_absolute_header_sed"`'"'
24593 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24599 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24601 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
24603 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24605 gl_next_as_first_directive
='<'sys
/select.h
'>'
24607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24608 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
24610 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
24615 if test $ac_cv_header_sys_select_h = yes; then
24616 HAVE_SYS_SELECT_H
=1
24618 HAVE_SYS_SELECT_H
=0
24625 if test $ac_cv_header_sys_socket_h != yes; then
24626 for ac_header
in winsock2.h
24628 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24629 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
24630 cat >>confdefs.h
<<_ACEOF
24631 #define HAVE_WINSOCK2_H 1
24639 if test "$ac_cv_header_winsock2_h" = yes; then
24641 UNISTD_H_HAVE_WINSOCK2_H
=1
24642 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24666 if test $gl_cv_have_include_next = yes; then
24667 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24670 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24671 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
24672 $as_echo_n "(cached) " >&6
24675 if test $ac_cv_header_sys_stat_h = yes; then
24678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24680 #include <sys/stat.h>
24684 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24685 *) gl_absname_cpp
="$ac_cpp" ;;
24690 gl_dirsep_regex
='[/\\]'
24693 gl_dirsep_regex
='\/'
24696 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24698 gl_header_literal_regex
=`echo 'sys/stat.h' \
24699 | sed -e "$gl_make_literal_regex_sed"`
24700 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24706 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24707 sed -n "$gl_absolute_header_sed"`'"'
24709 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24715 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24717 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24721 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24724 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24726 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24738 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24740 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24744 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24745 #include <sys/stat.h>
24747 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
24751 $as_echo "#define nlink_t int" >>confdefs.h
24772 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24774 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
24780 cat >>confdefs.h
<<_ACEOF
24781 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24784 if test $ac_cv_have_decl_localtime_r = no
; then
24785 HAVE_DECL_LOCALTIME_R
=0
24789 if test $ac_cv_func_localtime_r = yes; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24792 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24793 if test "${gl_cv_time_r_posix+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24797 /* end confdefs.h. */
24802 /* We don't need to append 'restrict's to the argument types,
24803 even though the POSIX signature has the 'restrict's,
24804 since C99 says they can't affect type compatibility. */
24805 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24807 /* Check the return type is a pointer.
24808 On HP-UX 10 it is 'int'. */
24809 *localtime_r (0, 0);
24815 if ac_fn_c_try_compile
"$LINENO"; then :
24816 gl_cv_time_r_posix
=yes
24818 gl_cv_time_r_posix
=no
24820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24824 $as_echo "$gl_cv_time_r_posix" >&6; }
24825 if test $gl_cv_time_r_posix = yes; then
24826 REPLACE_LOCALTIME_R
=0
24828 REPLACE_LOCALTIME_R
=1
24834 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
24843 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
24867 gl_saved_libs
=$LIBS
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24869 $as_echo_n "checking for library containing timer_settime... " >&6; }
24870 if test "${ac_cv_search_timer_settime+set}" = set; then :
24871 $as_echo_n "(cached) " >&6
24873 ac_func_search_save_LIBS
=$LIBS
24874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 /* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24883 char timer_settime ();
24887 return timer_settime ();
24892 for ac_lib
in '' rt posix4
; do
24893 if test -z "$ac_lib"; then
24894 ac_res
="none required"
24897 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24899 if ac_fn_c_try_link
"$LINENO"; then :
24900 ac_cv_search_timer_settime
=$ac_res
24902 rm -f core conftest.err conftest.
$ac_objext \
24904 if test "${ac_cv_search_timer_settime+set}" = set; then :
24908 if test "${ac_cv_search_timer_settime+set}" = set; then :
24911 ac_cv_search_timer_settime
=no
24913 rm conftest.
$ac_ext
24914 LIBS
=$ac_func_search_save_LIBS
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24917 $as_echo "$ac_cv_search_timer_settime" >&6; }
24918 ac_res
=$ac_cv_search_timer_settime
24919 if test "$ac_res" != no
; then :
24920 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24921 test "$ac_cv_search_timer_settime" = "none required" ||
24922 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
24925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24926 /* end confdefs.h. */
24928 #include <features.h>
24929 #ifdef __GNU_LIBRARY__
24930 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24931 && !defined __UCLIBC__
24932 Thread emulation available
24937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24938 $EGREP "Thread" >/dev
/null
2>&1; then :
24939 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
24943 for ac_func
in timer_settime
24945 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24946 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
24947 cat >>confdefs.h
<<_ACEOF
24948 #define HAVE_TIMER_SETTIME 1
24954 LIBS
=$gl_saved_libs
24969 if test $gl_cv_have_include_next = yes; then
24970 gl_cv_next_unistd_h
='<'unistd.h
'>'
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24974 if test "${gl_cv_next_unistd_h+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24978 if test $ac_cv_header_unistd_h = yes; then
24981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24983 #include <unistd.h>
24987 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24988 *) gl_absname_cpp
="$ac_cpp" ;;
24993 gl_dirsep_regex
='[/\\]'
24996 gl_dirsep_regex
='\/'
24999 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25001 gl_header_literal_regex
=`echo 'unistd.h' \
25002 | sed -e "$gl_make_literal_regex_sed"`
25003 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25009 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25010 sed -n "$gl_absolute_header_sed"`'"'
25012 gl_cv_next_unistd_h
='<'unistd.h
'>'
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25018 $as_echo "$gl_cv_next_unistd_h" >&6; }
25020 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25022 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25024 gl_next_as_first_directive
='<'unistd.h
'>'
25026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25027 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25029 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25034 if test $ac_cv_header_unistd_h = yes; then
25050 if test $ac_cv_have_decl_unsetenv = no
; then
25051 HAVE_DECL_UNSETENV
=0
25053 for ac_func
in unsetenv
25055 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25056 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
25057 cat >>confdefs.h
<<_ACEOF
25058 #define HAVE_UNSETENV 1
25064 if test $ac_cv_func_unsetenv = no
; then
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25069 $as_echo_n "checking for unsetenv() return type... " >&6; }
25070 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25077 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25078 #include <stdlib.h>
25083 int unsetenv (const char *name);
25093 if ac_fn_c_try_compile
"$LINENO"; then :
25094 gt_cv_func_unsetenv_ret
='int'
25096 gt_cv_func_unsetenv_ret
='void'
25098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25101 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25102 if test $gt_cv_func_unsetenv_ret = 'void'; then
25104 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25110 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25111 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25114 if test "$cross_compiling" = yes; then :
25116 # Guess yes on glibc systems.
25117 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25118 # If we don't know, assume the worst.
25119 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25124 /* end confdefs.h. */
25126 #include <stdlib.h>
25128 extern char **environ;
25134 char entry1[] = "a=1";
25135 char entry2[] = "b=2";
25136 char *env[] = { entry1, entry2, NULL };
25137 if (putenv ((char *) "a=1")) return 1;
25138 if (putenv (entry2)) return 2;
25141 if (getenv ("a")) return 3;
25142 if (!unsetenv ("") || errno != EINVAL) return 4;
25145 if (!getenv ("a")) return 5;
25148 if (getenv ("a")) return 6;
25154 if ac_fn_c_try_run
"$LINENO"; then :
25155 gl_cv_func_unsetenv_works
=yes
25157 gl_cv_func_unsetenv_works
=no
25159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25165 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25166 case "$gl_cv_func_unsetenv_works" in
25174 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25183 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25207 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25209 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25210 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25211 $as_echo_n "(cached) " >&6
25213 touch conftest.
file
25214 if test "$cross_compiling" = yes; then :
25216 # Guess yes on glibc systems.
25217 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
25218 # If we don't know, assume the worst.
25219 *) gl_cv_func_futimesat_works
="guessing no" ;;
25223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25226 #include <stddef.h>
25227 #include <sys/times.h>
25233 int fd = open ("conftest.file", O_RDWR);
25234 if (fd < 0) return 1;
25235 if (futimesat (fd, NULL, NULL)) return 2;
25241 if ac_fn_c_try_run
"$LINENO"; then :
25242 gl_cv_func_futimesat_works
=yes
25244 gl_cv_func_futimesat_works
=no
25246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25247 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25250 rm -f conftest.
file
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25253 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25254 case "$gl_cv_func_futimesat_works" in
25258 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25264 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
25265 gl_gnulib_enabled_dosname
=false
25266 gl_gnulib_enabled_euidaccess
=false
25267 gl_gnulib_enabled_getgroups
=false
25268 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
25269 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
25270 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
25271 gl_gnulib_enabled_pathmax
=false
25272 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
25273 gl_gnulib_enabled_stat
=false
25274 gl_gnulib_enabled_strtoll
=false
25275 gl_gnulib_enabled_strtoull
=false
25276 gl_gnulib_enabled_verify
=false
25277 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
25278 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
25280 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25289 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
25291 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
25294 func_gl_gnulib_m4code_dosname
()
25296 if ! $gl_gnulib_enabled_dosname; then
25297 gl_gnulib_enabled_dosname
=true
25300 func_gl_gnulib_m4code_euidaccess
()
25302 if ! $gl_gnulib_enabled_euidaccess; then
25308 for ac_func
in euidaccess
25310 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25311 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
25312 cat >>confdefs.h
<<_ACEOF
25313 #define HAVE_EUIDACCESS 1
25319 if test $ac_cv_func_euidaccess = no
; then
25323 if test $HAVE_EUIDACCESS = 0; then
25332 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
25336 for ac_header
in libgen.h
25338 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25339 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
25340 cat >>confdefs.h
<<_ACEOF
25341 #define HAVE_LIBGEN_H 1
25349 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25350 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25355 # If we don't yet have getgroups, see if it's in -lbsd.
25356 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25358 if test $ac_cv_func_getgroups = no
; then
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25360 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25361 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25362 $as_echo_n "(cached) " >&6
25364 ac_check_lib_save_LIBS
=$LIBS
25366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25367 /* end confdefs.h. */
25369 /* Override any GCC internal prototype to avoid an error.
25370 Use char because int might match the return type of a GCC
25371 builtin and then its argument prototype would still apply. */
25379 return getgroups ();
25384 if ac_fn_c_try_link
"$LINENO"; then :
25385 ac_cv_lib_bsd_getgroups
=yes
25387 ac_cv_lib_bsd_getgroups
=no
25389 rm -f core conftest.err conftest.
$ac_objext \
25390 conftest
$ac_exeext conftest.
$ac_ext
25391 LIBS
=$ac_check_lib_save_LIBS
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25394 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25395 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25396 GETGROUPS_LIB
=-lbsd
25401 # Run the program to test the functionality of the system-supplied
25402 # getgroups function only if there is such a function.
25403 if test $ac_cv_func_getgroups = yes; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25405 $as_echo_n "checking for working getgroups... " >&6; }
25406 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25409 if test "$cross_compiling" = yes; then :
25410 case "$host_os" in # ((
25411 # Guess yes on glibc systems.
25412 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25413 # If we don't know, assume the worst.
25414 *) ac_cv_func_getgroups_works
="guessing no" ;;
25418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25420 $ac_includes_default
25424 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25425 return getgroups (0, 0) == -1;
25431 if ac_fn_c_try_run
"$LINENO"; then :
25432 ac_cv_func_getgroups_works
=yes
25434 ac_cv_func_getgroups_works
=no
25436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25443 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25445 ac_cv_func_getgroups_works
=no
25447 case "$ac_cv_func_getgroups_works" in
25450 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25457 # Solaris 9 and 10 need -lgen to get the eaccess function.
25458 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25459 # programs in the package would end up linked with that potentially-shared
25460 # library, inducing unnecessary run-time overhead.
25463 gl_saved_libs
=$LIBS
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25465 $as_echo_n "checking for library containing eaccess... " >&6; }
25466 if test "${ac_cv_search_eaccess+set}" = set; then :
25467 $as_echo_n "(cached) " >&6
25469 ac_func_search_save_LIBS
=$LIBS
25470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25473 /* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25488 for ac_lib
in '' gen
; do
25489 if test -z "$ac_lib"; then
25490 ac_res
="none required"
25493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25495 if ac_fn_c_try_link
"$LINENO"; then :
25496 ac_cv_search_eaccess
=$ac_res
25498 rm -f core conftest.err conftest.
$ac_objext \
25500 if test "${ac_cv_search_eaccess+set}" = set; then :
25504 if test "${ac_cv_search_eaccess+set}" = set; then :
25507 ac_cv_search_eaccess
=no
25509 rm conftest.
$ac_ext
25510 LIBS
=$ac_func_search_save_LIBS
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25513 $as_echo "$ac_cv_search_eaccess" >&6; }
25514 ac_res
=$ac_cv_search_eaccess
25515 if test "$ac_res" != no
; then :
25516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25517 test "$ac_cv_search_eaccess" = "none required" ||
25518 LIB_EACCESS
=$ac_cv_search_eaccess
25521 for ac_func
in eaccess
25523 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
25524 if test "x$ac_cv_func_eaccess" = x
""yes; then :
25525 cat >>confdefs.h
<<_ACEOF
25526 #define HAVE_EACCESS 1
25532 LIBS
=$gl_saved_libs
25540 GNULIB_EUIDACCESS
=1
25546 gl_gnulib_enabled_euidaccess
=true
25547 if test $HAVE_EUIDACCESS = 0; then
25548 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25550 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25551 if test $HAVE_EUIDACCESS = 0; then
25552 func_gl_gnulib_m4code_stat
25556 func_gl_gnulib_m4code_getgroups
()
25558 if ! $gl_gnulib_enabled_getgroups; then
25564 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25565 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25570 # If we don't yet have getgroups, see if it's in -lbsd.
25571 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25573 if test $ac_cv_func_getgroups = no
; then
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25575 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25576 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25579 ac_check_lib_save_LIBS
=$LIBS
25581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25582 /* end confdefs.h. */
25584 /* Override any GCC internal prototype to avoid an error.
25585 Use char because int might match the return type of a GCC
25586 builtin and then its argument prototype would still apply. */
25594 return getgroups ();
25599 if ac_fn_c_try_link
"$LINENO"; then :
25600 ac_cv_lib_bsd_getgroups
=yes
25602 ac_cv_lib_bsd_getgroups
=no
25604 rm -f core conftest.err conftest.
$ac_objext \
25605 conftest
$ac_exeext conftest.
$ac_ext
25606 LIBS
=$ac_check_lib_save_LIBS
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25609 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25610 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
25611 GETGROUPS_LIB
=-lbsd
25616 # Run the program to test the functionality of the system-supplied
25617 # getgroups function only if there is such a function.
25618 if test $ac_cv_func_getgroups = yes; then
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25620 $as_echo_n "checking for working getgroups... " >&6; }
25621 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25624 if test "$cross_compiling" = yes; then :
25625 case "$host_os" in # ((
25626 # Guess yes on glibc systems.
25627 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
25628 # If we don't know, assume the worst.
25629 *) ac_cv_func_getgroups_works
="guessing no" ;;
25633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25634 /* end confdefs.h. */
25635 $ac_includes_default
25639 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25640 return getgroups (0, 0) == -1;
25646 if ac_fn_c_try_run
"$LINENO"; then :
25647 ac_cv_func_getgroups_works
=yes
25649 ac_cv_func_getgroups_works
=no
25651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25658 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25660 ac_cv_func_getgroups_works
=no
25662 case "$ac_cv_func_getgroups_works" in
25665 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25671 if test $ac_cv_func_getgroups != yes; then
25674 if test "$ac_cv_type_getgroups" != gid_t \
25675 ||
{ case "$ac_cv_func_getgroups_works" in
25680 REPLACE_GETGROUPS
=1
25682 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
25686 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
25687 if test "${gl_cv_func_getgroups_works+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 if test "$cross_compiling" = yes; then :
25692 # Guess yes on glibc systems.
25693 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
25694 # If we don't know, assume the worst.
25695 *) gl_cv_func_getgroups_works
="guessing no" ;;
25699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25700 /* end confdefs.h. */
25701 $ac_includes_default
25705 int size = getgroups (0, 0);
25706 gid_t *list = malloc (size * sizeof *list);
25707 return getgroups (-1, list) != -1;
25712 if ac_fn_c_try_run
"$LINENO"; then :
25713 gl_cv_func_getgroups_works
=yes
25715 gl_cv_func_getgroups_works
=no
25717 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25718 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
25723 $as_echo "$gl_cv_func_getgroups_works" >&6; }
25724 case "$gl_cv_func_getgroups_works" in
25726 *) REPLACE_GETGROUPS
=1 ;;
25730 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
25732 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
25741 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
25755 gl_gnulib_enabled_getgroups
=true
25758 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
25760 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25763 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
25766 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
25768 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25774 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
25775 if test "x$ac_cv_func_group_member" = x
""yes; then :
25779 HAVE_GROUP_MEMBER
=0
25784 if test $HAVE_GROUP_MEMBER = 0; then
25793 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
25804 GNULIB_GROUP_MEMBER
=1
25810 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
25811 if test $HAVE_GROUP_MEMBER = 0; then
25812 func_gl_gnulib_m4code_getgroups
25814 if test $HAVE_GROUP_MEMBER = 0; then
25815 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
25819 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
25821 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
25822 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
25825 func_gl_gnulib_m4code_pathmax
()
25827 if ! $gl_gnulib_enabled_pathmax; then
25831 gl_gnulib_enabled_pathmax
=true
25834 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
25836 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25837 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
25840 func_gl_gnulib_m4code_stat
()
25842 if ! $gl_gnulib_enabled_stat; then
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25847 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25848 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
25849 $as_echo_n "(cached) " >&6
25851 if test "$cross_compiling" = yes; then :
25853 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
25854 *) gl_cv_func_stat_dir_slash
="guessing yes";;
25857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25859 #include <sys/stat.h>
25864 struct stat st; return stat (".", &st) != stat ("./", &st);
25869 if ac_fn_c_try_run
"$LINENO"; then :
25870 gl_cv_func_stat_dir_slash
=yes
25872 gl_cv_func_stat_dir_slash
=no
25874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25880 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25882 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25883 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25887 # Assume that if we have lstat, we can also check symlinks.
25888 if test $ac_cv_func_lstat = yes; then
25889 ln -s conftest.tmp conftest.lnk
25891 if test "$cross_compiling" = yes; then :
25893 # Guess yes on glibc systems.
25894 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25895 # If we don't know, assume the worst.
25896 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 #include <sys/stat.h>
25909 if (!stat ("conftest.tmp/", &st))
25912 if (!stat ("conftest.lnk/", &st))
25921 if ac_fn_c_try_run
"$LINENO"; then :
25922 gl_cv_func_stat_file_slash
=yes
25924 gl_cv_func_stat_file_slash
=no
25926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25927 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25930 rm -f conftest.tmp conftest.lnk
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25933 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25934 case $gl_cv_func_stat_dir_slash in
25935 *no
) REPLACE_STAT
=1
25937 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25940 case $gl_cv_func_stat_file_slash in
25941 *no
) REPLACE_STAT
=1
25943 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25947 if test $REPLACE_STAT = 1; then
25956 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25971 gl_gnulib_enabled_stat
=true
25972 if test $REPLACE_STAT = 1; then
25973 func_gl_gnulib_m4code_dosname
25975 if test $REPLACE_STAT = 1; then
25976 func_gl_gnulib_m4code_pathmax
25978 if test $REPLACE_STAT = 1; then
25979 func_gl_gnulib_m4code_verify
25983 func_gl_gnulib_m4code_strtoll
()
25985 if ! $gl_gnulib_enabled_strtoll; then
25989 if test "$ac_cv_type_long_long_int" = yes; then
25990 for ac_func
in strtoll
25992 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
25993 if test "x$ac_cv_func_strtoll" = x
""yes; then :
25994 cat >>confdefs.h
<<_ACEOF
25995 #define HAVE_STRTOLL 1
26001 if test $ac_cv_func_strtoll = no
; then
26006 if test $HAVE_STRTOLL = 0; then
26015 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
26032 gl_gnulib_enabled_strtoll
=true
26035 func_gl_gnulib_m4code_strtoull
()
26037 if ! $gl_gnulib_enabled_strtoull; then
26041 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26042 for ac_func
in strtoull
26044 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
26045 if test "x$ac_cv_func_strtoull" = x
""yes; then :
26046 cat >>confdefs.h
<<_ACEOF
26047 #define HAVE_STRTOULL 1
26053 if test $ac_cv_func_strtoull = no
; then
26058 if test $HAVE_STRTOULL = 0; then
26067 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
26084 gl_gnulib_enabled_strtoull
=true
26087 func_gl_gnulib_m4code_verify
()
26089 if ! $gl_gnulib_enabled_verify; then
26090 gl_gnulib_enabled_verify
=true
26093 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
26095 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26096 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
26099 if test $HAVE_FACCESSAT = 0; then
26100 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26102 if test $HAVE_FACCESSAT = 0; then
26103 func_gl_gnulib_m4code_dosname
26105 if test $HAVE_FACCESSAT = 0; then
26106 func_gl_gnulib_m4code_euidaccess
26108 if test $HAVE_FACCESSAT = 0; then
26109 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26111 if test $HAVE_FDOPENDIR = 0; then
26112 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26114 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26115 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26117 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26118 func_gl_gnulib_m4code_dosname
26120 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26121 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26123 if test $REPLACE_GETOPT = 1; then
26124 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26126 if test $REPLACE_LSTAT = 1; then
26127 func_gl_gnulib_m4code_dosname
26129 if test $REPLACE_LSTAT = 1; then
26130 func_gl_gnulib_m4code_stat
26132 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26133 func_gl_gnulib_m4code_stat
26135 if test $HAVE_READLINKAT = 0; then
26136 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26138 if test $HAVE_READLINKAT = 0; then
26139 func_gl_gnulib_m4code_dosname
26141 if test $HAVE_READLINKAT = 0; then
26142 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26144 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26145 func_gl_gnulib_m4code_strtoll
26147 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26148 func_gl_gnulib_m4code_verify
26150 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
26151 func_gl_gnulib_m4code_strtoull
26153 if test $ac_cv_func_strtoumax = no
; then
26154 func_gl_gnulib_m4code_verify
26157 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26158 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
26159 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
26161 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
26162 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
26165 if $gl_gnulib_enabled_dosname; then
26166 gl_GNULIB_ENABLED_dosname_TRUE
=
26167 gl_GNULIB_ENABLED_dosname_FALSE
='#'
26169 gl_GNULIB_ENABLED_dosname_TRUE
='#'
26170 gl_GNULIB_ENABLED_dosname_FALSE
=
26173 if $gl_gnulib_enabled_euidaccess; then
26174 gl_GNULIB_ENABLED_euidaccess_TRUE
=
26175 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
26177 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
26178 gl_GNULIB_ENABLED_euidaccess_FALSE
=
26181 if $gl_gnulib_enabled_getgroups; then
26182 gl_GNULIB_ENABLED_getgroups_TRUE
=
26183 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
26185 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
26186 gl_GNULIB_ENABLED_getgroups_FALSE
=
26189 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26190 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
26191 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
26193 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
26194 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
26197 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26198 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
26199 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
26201 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
26202 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
26205 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26206 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
26207 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
26209 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
26210 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
26213 if $gl_gnulib_enabled_pathmax; then
26214 gl_GNULIB_ENABLED_pathmax_TRUE
=
26215 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
26217 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
26218 gl_GNULIB_ENABLED_pathmax_FALSE
=
26221 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26222 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
26223 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
26225 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
26226 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
26229 if $gl_gnulib_enabled_stat; then
26230 gl_GNULIB_ENABLED_stat_TRUE
=
26231 gl_GNULIB_ENABLED_stat_FALSE
='#'
26233 gl_GNULIB_ENABLED_stat_TRUE
='#'
26234 gl_GNULIB_ENABLED_stat_FALSE
=
26237 if $gl_gnulib_enabled_strtoll; then
26238 gl_GNULIB_ENABLED_strtoll_TRUE
=
26239 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
26241 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
26242 gl_GNULIB_ENABLED_strtoll_FALSE
=
26245 if $gl_gnulib_enabled_strtoull; then
26246 gl_GNULIB_ENABLED_strtoull_TRUE
=
26247 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
26249 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
26250 gl_GNULIB_ENABLED_strtoull_FALSE
=
26253 if $gl_gnulib_enabled_verify; then
26254 gl_GNULIB_ENABLED_verify_TRUE
=
26255 gl_GNULIB_ENABLED_verify_FALSE
='#'
26257 gl_GNULIB_ENABLED_verify_TRUE
='#'
26258 gl_GNULIB_ENABLED_verify_FALSE
=
26261 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26262 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
26263 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
26265 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
26266 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
26269 # End of code from modules
26290 gl_source_base
='tests'
26291 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
26293 gl_module_indicator_condition
=$gltests_WITNESS
26304 LIBGNU_LIBDEPS
="$gl_libdeps"
26306 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26309 CFLAGS
=$SAVE_CFLAGS
26313 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26316 ## The -headerpad option tells ld (see man page) to leave room at the
26317 ## end of the header for adding load commands. Needed for dumping.
26318 ## 0x690 is the total size of 30 segment load commands (at 56
26319 ## each); under Cocoa 31 commands are required.
26320 if test "$HAVE_NS" = "yes"; then
26321 libs_nsgui
="-framework AppKit"
26322 headerpad_extra
=6C8
26325 headerpad_extra
=690
26327 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26329 ## This is here because src/Makefile.in did some extra fiddling around
26330 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26331 ## #ifndef LD_SWITCH_SYSTEM
26332 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26333 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26334 ## not using gcc, darwin.
26335 ## Because this was done in src/Makefile.in, the resulting part of
26336 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26337 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26338 ## rather than LD_SWITCH_SYSTEM.
26339 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26340 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
26343 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26344 ## find X at run-time.
26345 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26346 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26347 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26348 ## had different values in configure (in ac_link) and src/Makefile.in.
26349 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26350 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26352 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26361 ## gnu: GNU needs its own crt0.
26362 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26364 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26365 ## library search parth, i.e. it won't search /usr/lib for libc and
26366 ## friends. Using -nostartfiles instead avoids this problem, and
26367 ## will also work on earlier NetBSD releases.
26368 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
26370 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26371 ## MkLinux/LinuxPPC needs this.
26372 ## s390x-* only supports opsys = gnu-linux so it can be added here.
26374 case "$canonical" in
26375 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
26381 if test "x$ORDINARY_LINK" = "xyes"; then
26385 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
26388 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
26389 ## freebsd, gnu-* not on powerpc*|s390x*.
26390 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
26392 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26393 ## places that are difficult to figure out at make time. Fortunately,
26394 ## these same versions allow you to pass arbitrary flags on to the
26395 ## linker, so there is no reason not to use it as a linker.
26397 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26398 ## searching for libraries in its internal directories, so we have to
26399 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26400 LD_FIRSTFLAG
="-nostdlib"
26403 ## FIXME? What setting of EDIT_LDFLAGS should this have?
26404 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
26409 ## FIXME? The logic here is not precisely the same as that above.
26410 ## There is no check here for a pre-defined LD_FIRSTFLAG.
26411 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
26413 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26416 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26419 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26420 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26426 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26427 ## immediately undefine it again and redefine it to empty.
26428 ## Was the C_SWITCH_X_SITE part really necessary?
26429 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26435 ## Ask GCC where to find libgcc.a.
26436 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26440 ## Common for all window systems
26441 if test "$window_system" != "none"; then
26443 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26445 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
26452 #### Report on what we decided to do.
26453 #### Report GTK as a toolkit, even if it doesn't use Xt.
26454 #### It makes printing result more understandable as using GTK sets
26455 #### toolkit_scroll_bars to yes by default.
26456 if test "${HAVE_GTK}" = "yes"; then
26457 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
26461 Configured for \`${canonical}'.
26463 Where should the build process find the source code? ${srcdir}
26464 What compiler should emacs be built with? ${CC} ${CFLAGS}
26465 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26466 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26467 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26468 What window system should Emacs use? ${window_system}
26469 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26471 if test -n "${x_includes}"; then
26472 echo " Where do we find X Windows header files? ${x_includes}"
26474 echo " Where do we find X Windows header files? Standard dirs"
26476 if test -n "${x_libraries}"; then
26477 echo " Where do we find X Windows libraries? ${x_libraries}"
26479 echo " Where do we find X Windows libraries? Standard dirs"
26482 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26483 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26484 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26485 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26486 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26487 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26488 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26489 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26491 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26492 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26493 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26494 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26495 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26496 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26497 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26499 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26500 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26501 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26502 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26504 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26507 if test -n "${EMACSDATA}"; then
26508 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26510 if test -n "${EMACSDOC}"; then
26511 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26516 if test "$HAVE_NS" = "yes"; then
26518 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26519 The installed application will go to nextstep/Emacs.app and can be
26520 run or moved from there."
26521 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26522 echo "The application will be fully self-contained."
26524 echo "The lisp resources for the application will be installed under ${prefix}.
26525 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26526 to run if these resources are not installed."
26531 if test "${opsys}" = "cygwin"; then
26533 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26534 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26540 # Remove any trailing slashes in these variables.
26541 test "${prefix}" != NONE
&&
26542 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26543 test "${exec_prefix}" != NONE
&&
26544 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26546 if test "$HAVE_NS" = "yes"; then
26547 if test "$NS_IMPL_GNUSTEP" = yes; then
26548 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"
26551 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"
26556 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"
26558 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"
26561 opt_makefile
=test
/automated
/Makefile
26563 if test -f "$srcdir/$opt_makefile.in"; then
26564 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26565 ac_config_files
="$ac_config_files test/automated/Makefile"
26570 opt_makefile
=admin
/unidata
/Makefile
26572 if test -f "$srcdir/$opt_makefile.in"; then
26573 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
26574 ac_config_files
="$ac_config_files admin/unidata/Makefile"
26579 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26583 ac_config_commands
="$ac_config_commands mkdirs"
26586 ac_config_commands
="$ac_config_commands epaths"
26589 ac_config_commands
="$ac_config_commands gdbinit"
26592 cat >confcache
<<\_ACEOF
26593 # This file is a shell script that caches the results of configure
26594 # tests run on this system so they can be shared between configure
26595 # scripts and configure runs, see configure's option --config-cache.
26596 # It is not useful on other systems. If it contains results you don't
26597 # want to keep, you may remove or edit it.
26599 # config.status only pays attention to the cache file if you give it
26600 # the --recheck option to rerun configure.
26602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26604 # following values.
26608 # The following way of writing the cache mishandles newlines in values,
26609 # but we know of no workaround that is simple, portable, and efficient.
26610 # So, we kill variables containing newlines.
26611 # Ultrix sh set writes to stderr and can't be redirected directly,
26612 # and sets the high bit in the cache file unless we assign to the vars.
26614 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26615 eval ac_val
=\$
$ac_var
26619 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26623 _ | IFS | as_nl
) ;; #(
26624 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26625 *) { eval $ac_var=; unset $ac_var;} ;;
26631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26632 *${as_nl}ac_space
=\
*)
26633 # `set' does not quote correctly, so add quotes: double-quote
26634 # substitution turns \\\\ into \\, and sed turns \\ into \.
26637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26640 # `set' quotes correctly as required by POSIX, so do not add quotes.
26641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26654 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26655 if test -w "$cache_file"; then
26656 test "x$cache_file" != "x/dev/null" &&
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26658 $as_echo "$as_me: updating cache $cache_file" >&6;}
26659 cat confcache
>$cache_file
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26667 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26668 # Let make expand exec_prefix.
26669 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26671 DEFS
=-DHAVE_CONFIG_H
26675 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26676 # 1. Remove the extension, and $U if already installed.
26677 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26678 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26680 # will be set to the directory where LIBOBJS objects are built.
26681 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26682 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
26684 LIBOBJS
=$ac_libobjs
26686 LTLIBOBJS
=$ac_ltlibobjs
26689 if test -n "$EXEEXT"; then
26691 am__EXEEXT_FALSE
='#'
26693 am__EXEEXT_TRUE
='#'
26697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26698 as_fn_error
"conditional \"AMDEP\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26702 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
26703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26705 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26706 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
26707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26709 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26710 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26714 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
26715 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
26716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26718 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26719 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
26720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
26723 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
26724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26726 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26727 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
26728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26730 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26731 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26735 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26738 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
26739 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
26740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26742 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
26743 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
26744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26746 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
26747 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
26748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26750 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
26751 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
26752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26754 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
26755 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
26756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26758 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
26759 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
26760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26762 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
26763 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
26764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26766 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
26767 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
26768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26770 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
26771 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
26772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26774 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
26775 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
26776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26778 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
26779 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
26780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26782 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
26783 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
26784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26786 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
26787 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
26788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26790 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
26791 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
26792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26797 if test -n "$gl_LIBOBJS"; then
26798 # Remove the extension.
26799 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26800 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26801 gl_libobjs
="$gl_libobjs $i.$ac_objext"
26802 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
26805 gl_LIBOBJS
=$gl_libobjs
26807 gl_LTLIBOBJS
=$gl_ltlibobjs
26813 if test -n "$gltests_LIBOBJS"; then
26814 # Remove the extension.
26815 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26816 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26817 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
26818 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
26821 gltests_LIBOBJS
=$gltests_libobjs
26823 gltests_LTLIBOBJS
=$gltests_ltlibobjs
26827 : ${CONFIG_STATUS=./config.status}
26829 ac_clean_files_save
=$ac_clean_files
26830 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26836 # Generated by $as_me.
26837 # Run this file to recreate the current configuration.
26838 # Compiler output produced by configure, useful for debugging
26839 # configure, is in config.log if it exists.
26842 ac_cs_recheck=false
26845 SHELL=\${CONFIG_SHELL-$SHELL}
26848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26849 ## -------------------- ##
26850 ## M4sh Initialization. ##
26851 ## -------------------- ##
26853 # Be more Bourne compatible
26854 DUALCASE
=1; export DUALCASE
# for MKS sh
26855 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26859 # is contrary to our usage. Disable this feature.
26860 alias -g '${1+"$@"}'='"$@"'
26861 setopt NO_GLOB_SUBST
26863 case `(set -o) 2>/dev/null` in #(
26875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26876 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26879 # Prefer a ksh shell builtin over an external printf program on Solaris,
26880 # but without wasting forks for bash or zsh.
26881 if test -z "$BASH_VERSION$ZSH_VERSION" \
26882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26883 as_echo='print
-r --'
26884 as_echo_n='print
-rn --'
26885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26886 as_echo='printf %s
\n'
26887 as_echo_n='printf %s
'
26889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26890 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26891 as_echo_n='/usr
/ucb
/echo -n'
26893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26894 as_echo_n_body='eval
26898 expr "X$arg" : "X\\(.*\\)$as_nl";
26899 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26901 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26903 export as_echo_n_body
26904 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26906 export as_echo_body
26907 as_echo='sh
-c $as_echo_body as_echo
'
26910 # The user is always right.
26911 if test "${PATH_SEPARATOR+set}" != set; then
26913 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26914 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26921 # We need space, tab and new line, in precisely that order. Quoting is
26922 # there to prevent editors from complaining about space-tab.
26923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26924 # splitting by setting IFS to empty value.)
26927 # Find who we are. Look in the path if we contain no directory separator.
26929 *[\\/]* ) as_myself=$0 ;;
26930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26931 for as_dir in $PATH
26934 test -z "$as_dir" && as_dir=.
26935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26941 # We did not find ourselves, most probably we were run as `sh COMMAND'
26942 # in which case we are not to be found in the path.
26943 if test "x$as_myself" = x
; then
26946 if test ! -f "$as_myself"; then
26947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26951 # Unset variables that we do not need and which cause bugs (e.g. in
26952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26953 # suppresses any "Segmentation fault" message there. '((' could
26954 # trigger a bug in pdksh 5.2.14.
26955 for as_var
in BASH_ENV ENV MAIL MAILPATH
26956 do eval test x\
${$as_var+set} = xset \
26957 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26970 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26973 # as_fn_error ERROR [LINENO LOG_FD]
26974 # ---------------------------------
26975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26977 # script with status $?, using 1 if that was 0.
26980 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26982 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26985 $as_echo "$as_me: error: $1" >&2
26986 as_fn_exit
$as_status
26990 # as_fn_set_status STATUS
26991 # -----------------------
26992 # Set $? to STATUS, without forking.
26993 as_fn_set_status
()
26996 } # as_fn_set_status
26998 # as_fn_exit STATUS
26999 # -----------------
27000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27004 as_fn_set_status
$1
27010 # Portably unset VAR.
27013 { eval $1=; unset $1;}
27015 as_unset
=as_fn_unset
27016 # as_fn_append VAR VALUE
27017 # ----------------------
27018 # Append the text in VALUE to the end of the definition contained in VAR. Take
27019 # advantage of any shell optimizations that allow amortized linear growth over
27020 # repeated appends, instead of the typical quadratic growth present in naive
27022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27023 eval 'as_fn_append ()
27034 # as_fn_arith ARG...
27035 # ------------------
27036 # Perform arithmetic evaluation on the ARGs, and store the result in the
27037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27038 # must be portable across $(()) and expr.
27039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27040 eval 'as_fn_arith ()
27047 as_val
=`expr "$@" || test $? -eq 1`
27052 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27053 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27059 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27060 as_basename
=basename
27065 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27071 as_me
=`$as_basename -- "$0" ||
27072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27073 X"$0" : 'X\(//\)$' \| \
27074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27076 sed '/^.*\/\([^/][^/]*\)\/*$/{
27090 # Avoid depending upon Character Ranges.
27091 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27092 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27093 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27094 as_cr_digits
='0123456789'
27095 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27097 ECHO_C
= ECHO_N
= ECHO_T
=
27098 case `echo -n x` in #(((((
27100 case `echo 'xy\c'` in
27101 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27103 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27110 rm -f conf$$ conf$$.exe conf$$.
file
27111 if test -d conf$$.dir
; then
27112 rm -f conf$$.dir
/conf$$.
file
27115 mkdir conf$$.dir
2>/dev
/null
27117 if (echo >conf$$.
file) 2>/dev
/null
; then
27118 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27120 # ... but there are two gotchas:
27121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27123 # In both cases, we have to default to `cp -p'.
27124 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27126 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27134 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27135 rmdir conf$$.dir
2>/dev
/null
27140 # Create "$as_dir" as a directory, including parents if necessary.
27145 -*) as_dir
=.
/$as_dir;;
27147 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27151 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27152 *) as_qdir
=$as_dir;;
27154 as_dirs
="'$as_qdir' $as_dirs"
27155 as_dir
=`$as_dirname -- "$as_dir" ||
27156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157 X"$as_dir" : 'X\(//\)[^/]' \| \
27158 X"$as_dir" : 'X\(//\)$' \| \
27159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27160 $as_echo X"$as_dir" |
27161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27165 /^X\(\/\/\)[^/].*/{
27178 test -d "$as_dir" && break
27180 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27181 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27185 if mkdir
-p .
2>/dev
/null
; then
27186 as_mkdir_p
='mkdir -p "$as_dir"'
27188 test -d .
/-p && rmdir .
/-p
27192 if test -x / >/dev
/null
2>&1; then
27193 as_test_x
='test -x'
27195 if ls -dL / >/dev
/null
2>&1; then
27202 if test -d "$1"; then
27208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27209 ???[sx]*):;;*)false;;esac;fi
27213 as_executable_p
=$as_test_x
27215 # Sed expression to map a string onto a valid CPP name.
27216 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27218 # Sed expression to map a string onto a valid variable name.
27219 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27223 ## ----------------------------------- ##
27224 ## Main body of $CONFIG_STATUS script. ##
27225 ## ----------------------------------- ##
27227 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27230 # Save the log message, to keep $0 and so on meaningful, and to
27231 # report actual input values of CONFIG_FILES etc. instead of their
27232 # values after options handling.
27234 This file was extended by emacs $as_me 24.3.50, which was
27235 generated by GNU Autoconf 2.65. Invocation command line was
27237 CONFIG_FILES = $CONFIG_FILES
27238 CONFIG_HEADERS = $CONFIG_HEADERS
27239 CONFIG_LINKS = $CONFIG_LINKS
27240 CONFIG_COMMANDS = $CONFIG_COMMANDS
27243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27248 case $ac_config_files in *"
27249 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27252 case $ac_config_headers in *"
27253 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27258 # Files that config.status was made for.
27259 config_files="$ac_config_files"
27260 config_headers="$ac_config_headers"
27261 config_commands="$ac_config_commands"
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27267 \`$as_me' instantiates files and other configuration actions
27268 from templates according to the current configuration. Unless the files
27269 and actions are specified as TAGs, all are instantiated by default.
27271 Usage: $0 [OPTION]... [TAG]...
27273 -h, --help print this help, then exit
27274 -V, --version print version number and configuration settings, then exit
27275 --config print configuration, then exit
27276 -q, --quiet, --silent
27277 do not print progress messages
27278 -d, --debug don't remove temporary files
27279 --recheck update $as_me by reconfiguring in the same conditions
27280 --file=FILE[:TEMPLATE]
27281 instantiate the configuration file FILE
27282 --header=FILE[:TEMPLATE]
27283 instantiate the configuration header FILE
27285 Configuration files:
27288 Configuration headers:
27291 Configuration commands:
27294 Report bugs to the package provider."
27297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27300 emacs config.status 24.3.50
27301 configured by $0, generated by GNU Autoconf 2.65,
27302 with options \\"\$ac_cs_config\\"
27304 Copyright (C) 2009 Free Software Foundation, Inc.
27305 This config.status script is free software; the Free Software Foundation
27306 gives unlimited permission to copy, distribute and modify it."
27313 test -n "\$AWK" || AWK=awk
27316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27317 # The default lists apply if the user does not specify any file.
27323 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27324 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27335 # Handling of the options.
27336 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27338 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27339 $as_echo "$ac_cs_version"; exit ;;
27340 --config |
--confi |
--conf |
--con |
--co |
--c )
27341 $as_echo "$ac_cs_config"; exit ;;
27342 --debug |
--debu |
--deb |
--de |
--d |
-d )
27344 --file |
--fil |
--fi |
--f )
27347 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27349 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27350 ac_need_defaults
=false
;;
27351 --header |
--heade |
--head |
--hea )
27354 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27356 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27357 ac_need_defaults
=false
;;
27359 # Conflict between --help and --header
27360 as_fn_error
"ambiguous option: \`$1'
27361 Try \`$0 --help' for more information.";;
27362 --help |
--hel |
-h )
27363 $as_echo "$ac_cs_usage"; exit ;;
27364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27365 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27368 # This is an error.
27369 -*) as_fn_error
"unrecognized option: \`$1'
27370 Try \`$0 --help' for more information." ;;
27372 *) as_fn_append ac_config_targets
" $1"
27373 ac_need_defaults
=false
;;
27379 ac_configure_extra_args
=
27381 if $ac_cs_silent; then
27383 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27388 if \$ac_cs_recheck; then
27389 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27391 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27392 CONFIG_SHELL='$SHELL'
27393 export CONFIG_SHELL
27398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27403 ## Running $as_me. ##
27409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27413 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27414 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27420 # Handling of arguments.
27421 for ac_config_target
in $ac_config_targets
27423 case $ac_config_target in
27424 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27425 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27426 "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" ;;
27427 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27428 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27429 "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" ;;
27430 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27431 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
27432 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27433 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27434 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27435 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27436 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27437 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27438 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
27439 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27440 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27441 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27442 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
27443 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
27444 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
27445 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
27446 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
27447 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
27449 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27454 # If the user did not use the arguments to specify the items to instantiate,
27455 # then the envvar interface is used. Set only those that are not.
27456 # We use the long form for the default assignment because of an extremely
27457 # bizarre bug on SunOS 4.1.3.
27458 if $ac_need_defaults; then
27459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27464 # Have a temporary directory for convenience. Make it in the build tree
27465 # simply because there is no reason against having it here, and in addition,
27466 # creating and moving files from /tmp can sometimes cause problems.
27467 # Hook for its removal unless debugging.
27468 # Note that there is a small window in which the directory will not be cleaned:
27469 # after its creation but before its name has been assigned to `$tmp'.
27473 trap 'exit_status=$?
27474 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27476 trap 'as_fn_exit 1' 1 2 13 15
27478 # Create a (secure) tmp directory for tmp files.
27481 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27482 test -n "$tmp" && test -d "$tmp"
27485 tmp
=.
/conf$$
-$RANDOM
27486 (umask 077 && mkdir
"$tmp")
27487 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27489 # Set up the scripts for CONFIG_FILES section.
27490 # No need to generate them if there are no CONFIG_FILES.
27491 # This happens for instance with `./config.status config.h'.
27492 if test -n "$CONFIG_FILES"; then
27494 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27495 ac_cs_awk_getline
=:
27496 ac_cs_awk_pipe_init
=
27497 ac_cs_awk_read_file
='
27498 while ((getline aline < (F[key])) > 0)
27501 ac_cs_awk_pipe_fini
=
27503 ac_cs_awk_getline
=false
27504 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27505 ac_cs_awk_read_file
='
27507 print "cat " F[key] " &&"
27508 '$ac_cs_awk_pipe_init
27509 # The final `:' finishes the AND list.
27510 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27512 ac_cr
=`echo X | tr X '\015'`
27513 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27514 # But we know of no other shell where ac_cr would be empty at this
27515 # point, so we can use a bashism as a fallback.
27516 if test "x$ac_cr" = x
; then
27517 eval ac_cr
=\$
\'\\r
\'
27519 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27523 ac_cs_awk_cr
=$ac_cr
27526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27529 # Create commands to substitute file output variables.
27531 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27532 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27533 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27536 } >conf$
$files.sh
&&
27537 . .
/conf$
$files.sh ||
27538 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27539 rm -f conf$
$files.sh
27542 echo "cat >conf$$subs.awk <<_ACEOF" &&
27543 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27545 } >conf$$subs.sh ||
27546 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27547 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27549 for ac_last_try in false false false false false :; do
27550 . ./conf$$subs.sh ||
27551 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27553 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27554 if test $ac_delim_n = $ac_delim_num; then
27556 elif $ac_last_try; then
27557 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27559 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27562 rm -f conf$$subs.sh
27564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27565 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27569 s/^/S["/; s
/!.
*/"]=/
27579 s/\(.\{148\}\)..*/\1/
27581 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27586 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27593 s/\(.\{148\}\)..*/\1/
27595 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27599 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27604 ' <conf$$subs.awk | sed '
27609 ' >>$CONFIG_STATUS || ac_write_fail=1
27610 rm -f conf$$subs.awk
27611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27613 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27614 for (key in S) S_is_set[key] = 1
27616 \$ac_cs_awk_pipe_init
27620 nfields = split(line, field, "@
")
27622 len = length(field[1])
27623 for (i = 2; i < nfields; i++) {
27625 keylen = length(key)
27626 if (S_is_set[key]) {
27628 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27629 len += length(value) + length(field[++i])
27634 if (nfields == 3 && !substed) {
27636 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27637 \$ac_cs_awk_read_file
27643 \$ac_cs_awk_pipe_fini
27646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27647 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27648 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27651 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27652 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27657 # trailing colons and then remove the whole line if VPATH becomes empty
27658 # (actually we leave an empty line to preserve line numbers).
27659 if test "x
$srcdir" = x.; then
27660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27661 s/:*\$(srcdir):*/:/
27662 s/:*\${srcdir}:*/:/
27664 s/^\([^=]*=[ ]*\):*/\1/
27670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27671 fi # test -n "$CONFIG_FILES"
27673 # Set up the scripts for CONFIG_HEADERS section.
27674 # No need to generate them if there are no CONFIG_HEADERS.
27675 # This happens for instance with `./config.status Makefile'.
27676 if test -n "$CONFIG_HEADERS"; then
27677 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27681 # Transform confdefs.h into an awk script `defines.awk', embedded as
27682 # here-document in config.status, that substitutes the proper values into
27683 # config.h.in to produce config.h.
27685 # Create a delimiter string that does not exist in confdefs.h, to ease
27686 # handling of long lines.
27688 for ac_last_try in false false :; do
27689 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27690 if test -z "$ac_t"; then
27692 elif $ac_last_try; then
27693 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
27695 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27699 # For the awk script, D is an array of macro values keyed by name,
27700 # likewise P contains macro parameters if any. Preserve backslash
27701 # newline sequences.
27703 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27705 s/.\{148\}/&'"$ac_delim"'/g
27708 s/^[ ]*#[ ]*define[ ][ ]*/ /
27715 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27717 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27721 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27722 D["\
1"]=" \
3\\\\\\n
"\\/p
27724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27729 s/.\{148\}/&'"$ac_delim"'/g
27734 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27737 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27739 ' <confdefs.h | sed '
27740 s/'"$ac_delim"'/"\\\
27741 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27744 for (key in D) D_is_set[key] = 1
27747 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27749 split(line, arg, " ")
27750 if (arg[1] == "#") {
27754 defundef
= substr
(arg
[1], 2)
27757 split(mac1
, mac2
, "(") #)
27759 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27760 if (D_is_set
[macro
]) {
27761 # Preserve the white space surrounding the "#".
27762 print prefix
"define", macro P
[macro
] D
[macro
]
27765 # Replace #undef with comments. This is necessary, for example,
27766 # in the case of _POSIX_SOURCE, which is predefined and required
27767 # on some systems where configure will not decide to define it.
27768 if (defundef
== "undef") {
27769 print
"/*", prefix defundef
, macro
, "*/"
27777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27778 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
27779 fi # test -n "$CONFIG_HEADERS"
27782 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27787 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27789 case $ac_mode$ac_tag in
27791 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27792 :[FH
]-) ac_tag
=-:-;;
27793 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27810 -) ac_f
="$tmp/stdin";;
27811 *) # Look for the file first in the build tree, then in the source tree
27812 # (if the path is not absolute). The absolute path cannot be DOS-style,
27813 # because $ac_f cannot contain `:'.
27817 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27819 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
27821 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27822 as_fn_append ac_file_inputs
" '$ac_f'"
27825 # Let's still pretend it is `configure' which instantiates (i.e., don't
27826 # use $as_me), people would be surprised to read:
27827 # /* config.h. Generated by config.status. */
27828 configure_input
='Generated from '`
27829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27831 if test x
"$ac_file" != x-
; then
27832 configure_input
="$ac_file. $configure_input"
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27834 $as_echo "$as_me: creating $ac_file" >&6;}
27836 # Neutralize special characters interpreted by sed in replacement strings.
27837 case $configure_input in #(
27838 *\
&* |
*\|
* |
*\\* )
27839 ac_sed_conf_input
=`$as_echo "$configure_input" |
27840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27841 *) ac_sed_conf_input
=$configure_input;;
27845 *:-:* |
*:-) cat >"$tmp/stdin" \
27846 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
27851 ac_dir
=`$as_dirname -- "$ac_file" ||
27852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27853 X"$ac_file" : 'X\(//\)[^/]' \| \
27854 X"$ac_file" : 'X\(//\)$' \| \
27855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27856 $as_echo X"$ac_file" |
27857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27861 /^X\(\/\/\)[^/].*/{
27874 as_dir
="$ac_dir"; as_fn_mkdir_p
27878 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27880 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27881 # A ".." for each directory in $ac_dir_suffix.
27882 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27883 case $ac_top_builddir_sub in
27884 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27885 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27888 ac_abs_top_builddir
=$ac_pwd
27889 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27890 # for backward compatibility:
27891 ac_top_builddir
=$ac_top_build_prefix
27894 .
) # We are building in place.
27896 ac_top_srcdir
=$ac_top_builddir_sub
27897 ac_abs_top_srcdir
=$ac_pwd ;;
27898 [\\/]* | ?
:[\\/]* ) # Absolute name.
27899 ac_srcdir
=$srcdir$ac_dir_suffix;
27900 ac_top_srcdir
=$srcdir
27901 ac_abs_top_srcdir
=$srcdir ;;
27902 *) # Relative name.
27903 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27904 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27905 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27907 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27917 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27918 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27920 ac_MKDIR_P
=$MKDIR_P
27922 [\\/$
]* | ?
:[\\/]* ) ;;
27923 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
27927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27928 # If the template does not know about datarootdir, expand it.
27929 # FIXME: This hack should be removed a few years after 2.60.
27930 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27942 *datarootdir
*) ac_datarootdir_seen
=yes;;
27943 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27948 ac_datarootdir_hack='
27949 s&@datadir@&$datadir&g
27950 s&@docdir@&$docdir&g
27951 s&@infodir@&$infodir&g
27952 s&@localedir@&$localedir&g
27953 s&@mandir@&$mandir&g
27954 s&\\\${datarootdir}&$datarootdir&g' ;;
27958 # Neutralize VPATH when `$srcdir' = `.'.
27959 # Shell code in configure.ac might set extrasub.
27960 # FIXME: do we really want to maintain this feature?
27961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27962 ac_sed_extra="$ac_vpsub
27965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27967 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27968 s|@configure_input@|
$ac_sed_conf_input|
;t t
27969 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27970 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27971 s
&@srcdir@
&$ac_srcdir&;t t
27972 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27973 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27974 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27975 s
&@builddir@
&$ac_builddir&;t t
27976 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27977 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27978 s
&@INSTALL@
&$ac_INSTALL&;t t
27979 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27980 $ac_datarootdir_hack
27982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27983 if $ac_cs_awk_getline; then
27984 $AWK -f "$tmp/subs.
awk"
27986 $AWK -f "$tmp/subs.
awk" | $SHELL
27988 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27991 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27994 which seems to be undefined. Please make sure it is defined." >&5
27995 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27996 which seems to be undefined. Please make sure it is defined." >&2;}
28000 -) cat "$tmp/out" && rm -f "$tmp/out";;
28001 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28003 || as_fn_error "could not create $ac_file" "$LINENO" 5
28009 if test x"$ac_file" != x-; then
28011 $as_echo "/* $configure_input */" \
28012 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28013 } >"$tmp/config.h" \
28014 || as_fn_error "could not create $ac_file" "$LINENO" 5
28015 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28017 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28020 mv "$tmp/config.h" "$ac_file" \
28021 || as_fn_error "could not create $ac_file" "$LINENO" 5
28024 $as_echo "/* $configure_input */" \
28025 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28026 || as_fn_error "could not create -" "$LINENO" 5
28028 # Compute "$ac_file"'s index
in $config_headers.
28031 for _am_header
in $config_headers :; do
28032 case $_am_header in
28033 $_am_arg |
$_am_arg:* )
28036 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28039 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28040 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28041 X"$_am_arg" : 'X\(//\)[^/]' \| \
28042 X"$_am_arg" : 'X\(//\)$' \| \
28043 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28044 $as_echo X"$_am_arg" |
28045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28049 /^X\(\/\/\)[^/].*/{
28061 s/.*/./; q'`/stamp-h
$_am_stamp_count
28064 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28065 $as_echo "$as_me: executing $ac_file commands" >&6;}
28070 case $ac_file$ac_mode in
28071 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28072 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28073 # are listed without --file. Let's play safe and only enable the eval
28074 # if we detect the quoting.
28075 case $CONFIG_FILES in
28076 *\'*) eval set x
"$CONFIG_FILES" ;;
28077 *) set x
$CONFIG_FILES ;;
28082 # Strip MF so we end up with the name of the file.
28083 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28084 # Check whether this is an Automake generated Makefile or not.
28085 # We used to match only the files named `Makefile.in', but
28086 # some people rename them; so instead we look at the file content.
28087 # Grep'ing the first line is not enough: some people post-process
28088 # each Makefile.in and add a new line on top of each file to say so.
28089 # Grep'ing the whole file is not good either: AIX grep has a line
28090 # limit of 2048, but all sed's we know have understand at least 4000.
28091 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28092 dirpart
=`$as_dirname -- "$mf" ||
28093 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28094 X"$mf" : 'X\(//\)[^/]' \| \
28095 X"$mf" : 'X\(//\)$' \| \
28096 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28102 /^X\(\/\/\)[^/].*/{
28118 # Extract the definition of DEPDIR, am__include, and am__quote
28119 # from the Makefile without running `make'.
28120 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28121 test -z "$DEPDIR" && continue
28122 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28123 test -z "am__include" && continue
28124 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28125 # When using ansi2knr, U may be empty or an underscore; expand it
28126 U
=`sed -n 's/^U = //p' < "$mf"`
28127 # Find all dependency output files, they are included files with
28128 # $(DEPDIR) in their names. We invoke sed twice because it is the
28129 # simplest approach to changing $(DEPDIR) to its actual value in the
28131 for file in `sed -n "
28132 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28134 # Make sure the directory exists.
28135 test -f "$dirpart/$file" && continue
28136 fdir
=`$as_dirname -- "$file" ||
28137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28138 X"$file" : 'X\(//\)[^/]' \| \
28139 X"$file" : 'X\(//\)$' \| \
28140 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28141 $as_echo X"$file" |
28142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28146 /^X\(\/\/\)[^/].*/{
28159 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28160 # echo "creating $dirpart/$file"
28161 echo '# dummy' > "$dirpart/$file"
28167 for dir
in etc lisp
; do
28168 test -d ${dir} || mkdir
${dir}
28172 echo creating src
/epaths.h
28173 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
28176 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
28177 echo creating src
/.gdbinit
28178 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
28188 ac_clean_files
=$ac_clean_files_save
28190 test $ac_write_fail = 0 ||
28191 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28194 # configure is writing to config.log, and then calls config.status.
28195 # config.status does its own redirection, appending to config.log.
28196 # Unfortunately, on DOS this fails, as config.log is still kept open
28197 # by configure, so config.status won't be able to write to it; its
28198 # output is simply discarded. So we exec the FD to /dev/null,
28199 # effectively closing config.log, so it can be properly (re)opened and
28200 # appended to by config.status. When coming back to configure, we
28201 # need to make the FD available again.
28202 if test "$no_create" != yes; then
28204 ac_config_status_args
=
28205 test "$silent" = yes &&
28206 ac_config_status_args
="$ac_config_status_args --quiet"
28208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28211 # would make configure fail if this is the last instruction.
28212 $ac_cs_success || as_fn_exit $?
28214 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28216 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}