2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING
='emacs 24.1.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
609 LD_SWITCH_SYSTEM_TEMACS
642 x_default_search_path
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
670 gl_GNULIB_ENABLED_sigprocmask_FALSE
671 gl_GNULIB_ENABLED_sigprocmask_TRUE
672 gl_GNULIB_ENABLED_pathmax_FALSE
673 gl_GNULIB_ENABLED_pathmax_TRUE
675 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
676 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
677 gl_GNULIB_ENABLED_dosname_FALSE
678 gl_GNULIB_ENABLED_dosname_TRUE
682 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
686 TIME_H_DEFINES_STRUCT_TIMESPEC
687 NEXT_AS_FIRST_DIRECTIVE_TIME_H
690 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
692 WINDOWS_64_BIT_ST_SIZE
693 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
695 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
697 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
706 REPLACE_STDIO_WRITE_FUNCS
707 REPLACE_STDIO_READ_FUNCS
716 REPLACE_OBSTACK_PRINTF
738 HAVE_DECL_OBSTACK_PRINTF
744 GNULIB_VSPRINTF_POSIX
748 GNULIB_VFPRINTF_POSIX
755 GNULIB_STDIO_H_SIGPIPE
756 GNULIB_STDIO_H_NONBLOCKING
770 GNULIB_OBSTACK_PRINTF_POSIX
771 GNULIB_OBSTACK_PRINTF
795 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
797 GL_GENERATE_STDDEF_H_FALSE
798 GL_GENERATE_STDDEF_H_TRUE
803 GL_GENERATE_STDBOOL_H_FALSE
804 GL_GENERATE_STDBOOL_H_TRUE
806 GL_GENERATE_STDARG_H_FALSE
807 GL_GENERATE_STDARG_H_TRUE
809 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
813 GL_GENERATE_STDALIGN_H_FALSE
814 GL_GENERATE_STDALIGN_H_TRUE
816 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
820 REPLACE_PTHREAD_SIGMASK
822 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
823 HAVE_STRUCT_SIGACTION_SA_SIGACTION
829 HAVE_POSIX_SIGNALBLOCKING
832 GNULIB_SIGNAL_H_SIGPIPE
834 GNULIB_PTHREAD_SIGMASK
843 HAVE_DECL_LOCALTIME_R
881 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
883 UINT64_MAX_EQ_ULONG_MAX
884 UINT32_MAX_LT_UINTMAX_MAX
887 INT64_MAX_EQ_LONG_MAX
888 INT32_MAX_LT_INTMAX_MAX
898 GL_GENERATE_STDINT_H_FALSE
899 GL_GENERATE_STDINT_H_TRUE
908 HAVE_SIGNED_SIG_ATOMIC_T
911 BITSIZEOF_SIG_ATOMIC_T
914 APPLE_UNIVERSAL_BUILD
918 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
923 HAVE_UNSIGNED_LONG_LONG_INT
925 GNULIB_GL_UNISTD_H_GETOPT
928 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
932 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
947 REPLACE_CANONICALIZE_FILE_NAME
952 HAVE_STRUCT_RANDOM_DATA
974 HAVE_CANONICALIZE_FILE_NAME
1004 GNULIB_CANONICALIZE_FILE_NAME
1008 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1009 UNISTD_H_HAVE_WINSOCK2_H
1030 REPLACE_GETDOMAINNAME
1041 HAVE_DECL_SETHOSTNAME
1042 HAVE_DECL_GETUSERSHELL
1043 HAVE_DECL_GETPAGESIZE
1044 HAVE_DECL_GETLOGIN_R
1045 HAVE_DECL_GETDOMAINNAME
1082 GNULIB_UNISTD_H_SIGPIPE
1083 GNULIB_UNISTD_H_NONBLOCKING
1109 GNULIB_GETDTABLESIZE
1110 GNULIB_GETDOMAINNAME
1123 GL_GENERATE_ALLOCA_H_FALSE
1124 GL_GENERATE_ALLOCA_H_TRUE
1127 GL_COND_LIBTOOL_FALSE
1128 GL_COND_LIBTOOL_TRUE
1162 x_default_search_path
1180 >>>>>>> MERGE-SOURCE
1228 INSTALL_ARCH_INDEP_EXTRA
1230 LD_SWITCH_X_SITE_RPATH
1243 >>>>>>> MERGE-SOURCE
1302 INSTALL_STRIP_PROGRAM
1344 program_transform_name
1355 ac_subst_files
='deps_frag
1359 enable_option_checking
1382 with_toolkit_scroll_bars
1393 with_pkg_config_prog
1397 enable_ns_self_contained
1399 enable_maintainer_mode
1400 enable_locallisppath
1402 enable_use_lisp_union_type
1405 enable_dependency_tracking
1410 ac_precious_vars
='build_alias
1422 # Initialize some variables set by options.
1424 ac_init_version
=false
1425 ac_unrecognized_opts
=
1426 ac_unrecognized_sep
=
1427 # The variables have the same names as the options, with
1428 # dashes changed to underlines.
1429 cache_file
=/dev
/null
1436 program_transform_name
=s
,x
,x
,
1444 # Installation directory options.
1445 # These are left unexpanded so users can "make install exec_prefix=/foo"
1446 # and all the variables that are supposed to be based on exec_prefix
1447 # by default will actually change.
1448 # Use braces instead of parens because sh, perl, etc. also accept them.
1449 # (The list follows the same order as the GNU Coding Standards.)
1450 bindir
='${exec_prefix}/bin'
1451 sbindir
='${exec_prefix}/sbin'
1452 libexecdir
='${exec_prefix}/libexec'
1453 datarootdir
='${prefix}/share'
1454 datadir
='${datarootdir}'
1455 sysconfdir
='${prefix}/etc'
1456 sharedstatedir
='${prefix}/com'
1457 localstatedir
='${prefix}/var'
1458 includedir
='${prefix}/include'
1459 oldincludedir
='/usr/include'
1460 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1461 infodir
='${datarootdir}/info'
1466 libdir
='${exec_prefix}/lib'
1467 localedir
='${datarootdir}/locale'
1468 mandir
='${datarootdir}/man'
1474 # If the previous option needs an argument, assign it.
1475 if test -n "$ac_prev"; then
1476 eval $ac_prev=\
$ac_option
1482 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1486 # Accept the important Cygnus configure options, so we can diagnose typos.
1488 case $ac_dashdash$ac_option in
1492 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1494 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1495 bindir
=$ac_optarg ;;
1497 -build |
--build |
--buil |
--bui |
--bu)
1498 ac_prev
=build_alias
;;
1499 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1500 build_alias
=$ac_optarg ;;
1502 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1503 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1504 ac_prev
=cache_file
;;
1505 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1506 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1507 cache_file
=$ac_optarg ;;
1509 --config-cache |
-C)
1510 cache_file
=config.cache
;;
1512 -datadir |
--datadir |
--datadi |
--datad)
1514 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1515 datadir
=$ac_optarg ;;
1517 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1518 |
--dataroo |
--dataro |
--datar)
1519 ac_prev
=datarootdir
;;
1520 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1521 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1522 datarootdir
=$ac_optarg ;;
1524 -disable-* |
--disable-*)
1525 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1528 as_fn_error
"invalid feature name: $ac_useropt"
1529 ac_useropt_orig
=$ac_useropt
1530 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1531 case $ac_user_opts in
1533 "enable_
$ac_useropt"
1535 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1536 ac_unrecognized_sep
=', ';;
1538 eval enable_
$ac_useropt=no
;;
1540 -docdir |
--docdir |
--docdi |
--doc |
--do)
1542 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1543 docdir
=$ac_optarg ;;
1545 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1547 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1548 dvidir
=$ac_optarg ;;
1550 -enable-* |
--enable-*)
1551 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1552 # Reject names that are not valid shell variable names.
1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1554 as_fn_error
"invalid feature name: $ac_useropt"
1555 ac_useropt_orig
=$ac_useropt
1556 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1559 "enable_
$ac_useropt"
1561 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1562 ac_unrecognized_sep
=', ';;
1564 eval enable_
$ac_useropt=\
$ac_optarg ;;
1566 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1567 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1568 |
--exec |
--exe |
--ex)
1569 ac_prev
=exec_prefix
;;
1570 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1571 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1572 |
--exec=* |
--exe=* |
--ex=*)
1573 exec_prefix
=$ac_optarg ;;
1575 -gas |
--gas |
--ga |
--g)
1576 # Obsolete; use --with-gas.
1579 -help |
--help |
--hel |
--he |
-h)
1580 ac_init_help
=long
;;
1581 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1582 ac_init_help
=recursive
;;
1583 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1584 ac_init_help
=short
;;
1586 -host |
--host |
--hos |
--ho)
1587 ac_prev
=host_alias
;;
1588 -host=* |
--host=* |
--hos=* |
--ho=*)
1589 host_alias
=$ac_optarg ;;
1591 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1593 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1595 htmldir
=$ac_optarg ;;
1597 -includedir |
--includedir |
--includedi |
--included |
--include \
1598 |
--includ |
--inclu |
--incl |
--inc)
1599 ac_prev
=includedir
;;
1600 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1601 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1602 includedir
=$ac_optarg ;;
1604 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1606 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1607 infodir
=$ac_optarg ;;
1609 -libdir |
--libdir |
--libdi |
--libd)
1611 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1612 libdir
=$ac_optarg ;;
1614 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1615 |
--libexe |
--libex |
--libe)
1616 ac_prev
=libexecdir
;;
1617 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1618 |
--libexe=* |
--libex=* |
--libe=*)
1619 libexecdir
=$ac_optarg ;;
1621 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1622 ac_prev
=localedir
;;
1623 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1624 localedir
=$ac_optarg ;;
1626 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1627 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1628 ac_prev
=localstatedir
;;
1629 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1630 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1631 localstatedir
=$ac_optarg ;;
1633 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1635 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1636 mandir
=$ac_optarg ;;
1638 -nfp |
--nfp |
--nf)
1639 # Obsolete; use --without-fp.
1642 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1643 |
--no-cr |
--no-c |
-n)
1646 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1647 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1650 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1651 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1652 |
--oldin |
--oldi |
--old |
--ol |
--o)
1653 ac_prev
=oldincludedir
;;
1654 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1655 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1656 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1657 oldincludedir
=$ac_optarg ;;
1659 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1661 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1662 prefix
=$ac_optarg ;;
1664 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1665 |
--program-pre |
--program-pr |
--program-p)
1666 ac_prev
=program_prefix
;;
1667 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1668 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1669 program_prefix
=$ac_optarg ;;
1671 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1672 |
--program-suf |
--program-su |
--program-s)
1673 ac_prev
=program_suffix
;;
1674 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1675 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1676 program_suffix
=$ac_optarg ;;
1678 -program-transform-name |
--program-transform-name \
1679 |
--program-transform-nam |
--program-transform-na \
1680 |
--program-transform-n |
--program-transform- \
1681 |
--program-transform |
--program-transfor \
1682 |
--program-transfo |
--program-transf \
1683 |
--program-trans |
--program-tran \
1684 |
--progr-tra |
--program-tr |
--program-t)
1685 ac_prev
=program_transform_name
;;
1686 -program-transform-name=* |
--program-transform-name=* \
1687 |
--program-transform-nam=* |
--program-transform-na=* \
1688 |
--program-transform-n=* |
--program-transform-=* \
1689 |
--program-transform=* |
--program-transfor=* \
1690 |
--program-transfo=* |
--program-transf=* \
1691 |
--program-trans=* |
--program-tran=* \
1692 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1693 program_transform_name
=$ac_optarg ;;
1695 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1697 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1698 pdfdir
=$ac_optarg ;;
1700 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1702 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1705 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1706 |
-silent |
--silent |
--silen |
--sile |
--sil)
1709 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1711 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1713 sbindir
=$ac_optarg ;;
1715 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1716 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1717 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1719 ac_prev
=sharedstatedir
;;
1720 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1721 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1722 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1724 sharedstatedir
=$ac_optarg ;;
1726 -site |
--site |
--sit)
1728 -site=* |
--site=* |
--sit=*)
1731 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1733 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1734 srcdir
=$ac_optarg ;;
1736 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1737 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1738 ac_prev
=sysconfdir
;;
1739 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1740 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1741 sysconfdir
=$ac_optarg ;;
1743 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1744 ac_prev
=target_alias
;;
1745 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1746 target_alias
=$ac_optarg ;;
1748 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1751 -version |
--version |
--versio |
--versi |
--vers |
-V)
1752 ac_init_version
=: ;;
1755 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1756 # Reject names that are not valid shell variable names.
1757 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1758 as_fn_error
"invalid package name: $ac_useropt"
1759 ac_useropt_orig
=$ac_useropt
1760 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1761 case $ac_user_opts in
1765 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1766 ac_unrecognized_sep
=', ';;
1768 eval with_
$ac_useropt=\
$ac_optarg ;;
1770 -without-* |
--without-*)
1771 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1774 as_fn_error
"invalid package name: $ac_useropt"
1775 ac_useropt_orig
=$ac_useropt
1776 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1781 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1782 ac_unrecognized_sep
=', ';;
1784 eval with_
$ac_useropt=no
;;
1787 # Obsolete; use --with-x.
1790 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1791 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1792 ac_prev
=x_includes
;;
1793 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1794 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1795 x_includes
=$ac_optarg ;;
1797 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1798 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1799 ac_prev
=x_libraries
;;
1800 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1801 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1802 x_libraries
=$ac_optarg ;;
1804 -*) as_fn_error
"unrecognized option: \`$ac_option'
1805 Try \`$0 --help' for more information."
1809 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1810 # Reject names that are not valid shell variable names.
1811 case $ac_envvar in #(
1812 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1813 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1815 eval $ac_envvar=\
$ac_optarg
1816 export $ac_envvar ;;
1819 # FIXME: should be removed in autoconf 3.0.
1820 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1821 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1822 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1823 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1829 if test -n "$ac_prev"; then
1830 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1831 as_fn_error
"missing argument to $ac_option"
1834 if test -n "$ac_unrecognized_opts"; then
1835 case $enable_option_checking in
1837 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1838 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1842 # Check all directory arguments for consistency.
1843 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1844 datadir sysconfdir sharedstatedir localstatedir includedir \
1845 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1846 libdir localedir mandir
1848 eval ac_val
=\$
$ac_var
1849 # Remove trailing slashes.
1852 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1853 eval $ac_var=\
$ac_val;;
1855 # Be sure to have absolute directory names.
1857 [\\/$
]* | ?
:[\\/]* ) continue;;
1858 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1860 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1863 # There might be people who depend on the old broken behavior: `$host'
1864 # used to hold the argument of --host etc.
1865 # FIXME: To remove some day.
1868 target
=$target_alias
1870 # FIXME: To remove some day.
1871 if test "x$host_alias" != x
; then
1872 if test "x$build_alias" = x
; then
1873 cross_compiling
=maybe
1874 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1875 If a cross compiler is detected then cross compile mode will be used." >&2
1876 elif test "x$build_alias" != "x$host_alias"; then
1882 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1884 test "$silent" = yes && exec 6>/dev
/null
1887 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1888 ac_ls_di
=`ls -di .` &&
1889 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1890 as_fn_error
"working directory cannot be determined"
1891 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1892 as_fn_error
"pwd does not report name of working directory"
1895 # Find the source files, if location was not specified.
1896 if test -z "$srcdir"; then
1897 ac_srcdir_defaulted
=yes
1898 # Try the directory containing this script, then the parent directory.
1899 ac_confdir
=`$as_dirname -- "$as_myself" ||
1900 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1901 X"$as_myself" : 'X\(//\)[^/]' \| \
1902 X"$as_myself" : 'X\(//\)$' \| \
1903 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1904 $as_echo X"$as_myself" |
1905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1923 if test ! -r "$srcdir/$ac_unique_file"; then
1927 ac_srcdir_defaulted
=no
1929 if test ! -r "$srcdir/$ac_unique_file"; then
1930 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1931 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1933 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1935 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1937 # When building in place, set srcdir=.
1938 if test "$ac_abs_confdir" = "$ac_pwd"; then
1941 # Remove unnecessary trailing slashes from srcdir.
1942 # Double slashes in file names in object file debugging info
1943 # mess up M-x gdb in Emacs.
1945 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1947 for ac_var
in $ac_precious_vars; do
1948 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1949 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1950 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1951 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1955 # Report the --help message.
1957 if test "$ac_init_help" = "long"; then
1958 # Omit some internal or obsolete options to make the list less imposing.
1959 # This message is too long to be a string in the A/UX 3.1 sh.
1961 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1963 Usage: $0 [OPTION]... [VAR=VALUE]...
1965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1966 VAR=VALUE. See below for descriptions of some of the useful variables.
1968 Defaults for the options are specified in brackets.
1971 -h, --help display this help and exit
1972 --help=short display options specific to this package
1973 --help=recursive display the short help of all the included packages
1974 -V, --version display version information and exit
1975 -q, --quiet, --silent do not print \`checking...' messages
1976 --cache-file=FILE cache test results in FILE [disabled]
1977 -C, --config-cache alias for \`--cache-file=config.cache'
1978 -n, --no-create do not create output files
1979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1981 Installation directories:
1982 --prefix=PREFIX install architecture-independent files in PREFIX
1983 [$ac_default_prefix]
1984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1987 By default, \`make install' will install all the files in
1988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1990 for instance \`--prefix=\$HOME'.
1992 For better control, use the options below.
1994 Fine tuning of the installation directories:
1995 --bindir=DIR user executables [EPREFIX/bin]
1996 --sbindir=DIR system admin executables [EPREFIX/sbin]
1997 --libexecdir=DIR program executables [EPREFIX/libexec]
1998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2001 --libdir=DIR object code libraries [EPREFIX/lib]
2002 --includedir=DIR C header files [PREFIX/include]
2003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2004 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2005 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2006 --infodir=DIR info documentation [DATAROOTDIR/info]
2007 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2008 --mandir=DIR man documentation [DATAROOTDIR/man]
2009 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2010 --htmldir=DIR html documentation [DOCDIR]
2011 --dvidir=DIR dvi documentation [DOCDIR]
2012 --pdfdir=DIR pdf documentation [DOCDIR]
2013 --psdir=DIR ps documentation [DOCDIR]
2019 --program-prefix=PREFIX prepend PREFIX to installed program names
2020 --program-suffix=SUFFIX append SUFFIX to installed program names
2021 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2024 --x-includes=DIR X include files are
in DIR
2025 --x-libraries=DIR X library files are
in DIR
2028 --build=BUILD configure
for building on BUILD
[guessed
]
2029 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2033 if test -n "$ac_init_help"; then
2034 case $ac_init_help in
2035 short | recursive
) echo "Configuration of emacs 24.1.50:";;
2040 --disable-option-checking ignore unrecognized
--enable/--with options
2041 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2042 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2043 --disable-ns-self-contained
2044 disable self contained build under NeXTstep
2045 --enable-asserts compile code with asserts enabled
2046 --enable-maintainer-mode
2047 enable make rules and dependencies not useful
(and
2048 sometimes confusing
) to the casual installer
2049 --enable-locallisppath=PATH
2050 directories Emacs should search
for lisp files
2051 specific to this site
2052 --enable-checking[=LIST
]
2053 enable expensive run-time checks. With LIST
, enable
2054 only specific categories of checks. Categories are
:
2055 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2056 stringfreelist
, xmallocoverrun
, conslist
2057 --enable-use-lisp-union-type
2058 use a union
for the Lisp_Object data
type. This is
2059 only useful
for development
for catching certain
2061 --enable-profiling build emacs with profiling support. This might not
2062 work on all platforms
2063 --enable-autodepend automatically generate dependencies to .h-files.
2064 Requires GNU Make and Gcc. Enabled
if GNU Make and
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --disable-largefile omit support
for large files
2069 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2072 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2073 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2074 --without-pop don
't support POP mail retrieval with movemail
2075 --with-kerberos support Kerberos-authenticated POP
2076 --with-kerberos5 support Kerberos version 5 authenticated POP
2077 --with-hesiod support Hesiod to get the POP server host
2078 --with-mmdf support MMDF mailboxes
2079 --with-mail-unlink unlink, rather than empty, mail spool after reading
2080 --with-mailhost=HOSTNAME
2081 string giving default POP mail host
2082 --without-sound don't compile with sound support
2083 --without-sync-input process async input synchronously
2084 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2085 lucid or athena
, motif
, no
)
2086 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2087 --without-xpm don
't compile with XPM image support
2088 --without-jpeg don't compile with JPEG image support
2089 --without-tiff don
't compile with TIFF image support
2090 --without-gif don't compile with GIF image support
2091 --without-png don
't compile with PNG image support
2092 --without-rsvg don't compile with SVG image support
2093 --without-xml2 don
't compile with XML parsing support
2094 --without-imagemagick don't compile with ImageMagick image support
2095 --without-xft don
't use XFT for anti aliased fonts
2096 --without-libotf don't use libotf
for OpenType font support
2097 --without-m17n-flt don
't use m17n-flt for text shaping
2098 --without-toolkit-scroll-bars
2099 don't use Motif or Xaw3d scroll bars
2100 --without-xaw3d don
't use Xaw3d
2101 --without-xim don't use X11 XIM
2102 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2103 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2105 --without-dbus don't compile with D-Bus support
2106 --without-gconf don
't compile with GConf support
2107 --without-selinux don't compile with SELinux support
2108 --without-gnutls don
't use -lgnutls for SSL/TLS support
2109 --without-makeinfo don't require makeinfo
for building manuals
2110 --without-compress-info don
't compress the installed Info pages
2111 --with-pkg-config-prog=PATH
2112 path to pkg-config for finding GTK and librsvg
2113 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2114 /usr/lib, or /usr/lib64 on some platforms.
2115 --with-gameuser=USER user for shared game score files
2116 --with-gnustep-conf=PATH
2117 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2118 or /etc/GNUstep/GNUstep.conf
2119 --with-x use the X Window System
2121 Some influential environment variables:
2122 CC C compiler command
2123 CFLAGS C compiler flags
2124 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2125 nonstandard directory <lib dir>
2126 LIBS libraries to pass to the linker, e.g. -l<library>
2127 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2128 you have headers in a nonstandard directory <include dir>
2130 XMKMF Path to xmkmf, Makefile generator for X Window System
2132 Use these variables to override the choices made by `configure' or to
help
2133 it to
find libraries and programs with nonstandard names
/locations.
2135 Report bugs to the package provider.
2140 if test "$ac_init_help" = "recursive"; then
2141 # If there are subdirs, report their specific --help.
2142 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2143 test -d "$ac_dir" ||
2144 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2149 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2151 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2152 # A ".." for each directory in $ac_dir_suffix.
2153 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2154 case $ac_top_builddir_sub in
2155 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2156 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2159 ac_abs_top_builddir
=$ac_pwd
2160 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2161 # for backward compatibility:
2162 ac_top_builddir
=$ac_top_build_prefix
2165 .
) # We are building in place.
2167 ac_top_srcdir
=$ac_top_builddir_sub
2168 ac_abs_top_srcdir
=$ac_pwd ;;
2169 [\\/]* | ?
:[\\/]* ) # Absolute name.
2170 ac_srcdir
=$srcdir$ac_dir_suffix;
2171 ac_top_srcdir
=$srcdir
2172 ac_abs_top_srcdir
=$srcdir ;;
2174 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2175 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2176 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2178 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2180 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2181 # Check for guested configure.
2182 if test -f "$ac_srcdir/configure.gnu"; then
2184 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2185 elif test -f "$ac_srcdir/configure"; then
2187 $SHELL "$ac_srcdir/configure" --help=recursive
2189 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2191 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2195 test -n "$ac_init_help" && exit $ac_status
2196 if $ac_init_version; then
2198 emacs configure
24.1.50
2199 generated by GNU Autoconf
2.65
2201 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2202 This configure
script is free software
; the Free Software Foundation
2203 gives unlimited permission to copy
, distribute and modify it.
2208 ## ------------------------ ##
2209 ## Autoconf initialization. ##
2210 ## ------------------------ ##
2212 # ac_fn_c_try_compile LINENO
2213 # --------------------------
2214 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_c_try_compile
()
2217 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2218 rm -f conftest.
$ac_objext
2219 if { { ac_try
="$ac_compile"
2221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_compile") 2>conftest.err
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_c_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest.$ac_objext; then :
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 as_fn_set_status $ac_retval
2248 } # ac_fn_c_try_compile
2250 # ac_fn_c_try_cpp LINENO
2251 # ----------------------
2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { { ac_try="$ac_cpp conftest.$ac_ext"
2258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2259 *) ac_try_echo
=$ac_try;;
2261 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262 $as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2265 if test -s conftest.err
; then
2266 grep -v '^ *+' conftest.err
>conftest.er1
2267 cat conftest.er1
>&5
2268 mv -f conftest.er1 conftest.err
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; } >/dev
/null
&& {
2272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2273 test ! -s conftest.err
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.
$ac_ext >&5
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2283 as_fn_set_status
$ac_retval
2287 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2288 # -------------------------------------------------------
2289 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2290 # the include files in INCLUDES and setting the cache variable VAR
2292 ac_fn_c_check_header_mongrel
()
2294 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2295 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297 $as_echo_n "checking for $2... " >&6; }
2298 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2299 $as_echo_n "(cached) " >&6
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2305 # Is the header compilable?
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2307 $as_echo_n "checking $2 usability... " >&6; }
2308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2313 if ac_fn_c_try_compile
"$LINENO"; then :
2314 ac_header_compiler
=yes
2316 ac_header_compiler
=no
2318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2320 $as_echo "$ac_header_compiler" >&6; }
2322 # Is the header present?
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2324 $as_echo_n "checking $2 presence... " >&6; }
2325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2329 if ac_fn_c_try_cpp
"$LINENO"; then :
2330 ac_header_preproc
=yes
2332 ac_header_preproc
=no
2334 rm -f conftest.err conftest.
$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2336 $as_echo "$ac_header_preproc" >&6; }
2338 # So? What about this header?
2339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2342 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2348 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2350 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2352 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2354 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2356 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2364 eval "$3=\$ac_header_compiler"
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2372 } # ac_fn_c_check_header_mongrel
2374 # ac_fn_c_try_run LINENO
2375 # ----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2377 # that executables *can* be run.
2380 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2381 if { { ac_try
="$ac_link"
2383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>&5
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2392 { { case "(($ac_try" in
2393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2394 *) ac_try_echo
=$ac_try;;
2396 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_try") 2>&5
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; }; }; then :
2404 $as_echo "$as_me: program exited with status $ac_status" >&5
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2408 ac_retval
=$ac_status
2410 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2412 as_fn_set_status
$ac_retval
2416 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2417 # -------------------------------------------------------
2418 # Tests whether HEADER exists and can be compiled using the include files in
2419 # INCLUDES, setting the cache variable VAR accordingly.
2420 ac_fn_c_check_header_compile
()
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2426 $as_echo_n "(cached) " >&6
2428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2433 if ac_fn_c_try_compile
"$LINENO"; then :
2438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2445 } # ac_fn_c_check_header_compile
2447 # ac_fn_c_try_link LINENO
2448 # -----------------------
2449 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2453 rm -f conftest.
$ac_objext conftest
$ac_exeext
2454 if { { ac_try
="$ac_link"
2456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>conftest.err
2463 if test -s conftest.err; then
2464 grep -v '^ *+' conftest.err >conftest.er1
2465 cat conftest.er1 >&5
2466 mv -f conftest.er1 conftest.err
2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469 test $ac_status = 0; } && {
2470 test -z "$ac_c_werror_flag" ||
2471 test ! -s conftest.err
2472 } && test -s conftest$ac_exeext && {
2473 test "$cross_compiling" = yes ||
2474 $as_test_x conftest$ac_exeext
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2483 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2484 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2485 # interfere with the next link command; also delete a directory that is
2486 # left behind by Apple's compiler. We do this before executing the actions.
2487 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 as_fn_set_status $ac_retval
2491 } # ac_fn_c_try_link
2493 # ac_fn_c_check_decl LINENO SYMBOL VAR
2494 # ------------------------------------
2495 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2496 ac_fn_c_check_decl ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2500 $as_echo_n "checking whether $2 is declared... " >&6; }
2501 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2502 $as_echo_n "(cached) " >&6
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2518 if ac_fn_c_try_compile "$LINENO"; then :
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_c_check_decl
2532 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2533 # ----------------------------------------------
2534 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2535 ac_fn_c_check_header_preproc ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2547 if ac_fn_c_try_cpp "$LINENO"; then :
2552 rm -f conftest.err conftest.$ac_ext
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_c_check_header_preproc
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2586 if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2596 if (sizeof ac_aggr.$3)
2602 if ac_fn_c_try_compile "$LINENO"; then :
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_member
2618 # ac_fn_c_check_func LINENO FUNC VAR
2619 # ----------------------------------
2620 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2621 ac_fn_c_check_func ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2633 #define $2 innocuous_$2
2635 /* System header to define __stub macros and hopefully few prototypes,
2636 which can conflict with char $2 (); below.
2637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2638 <limits.h> exists even on freestanding compilers. */
2641 # include <limits.h>
2643 # include <assert.h>
2648 /* Override any GCC internal prototype to avoid an error.
2649 Use char because int might match the return type of a GCC
2650 builtin and then its argument prototype would still apply. */
2655 /* The GNU C library defines this for functions which it implements
2656 to always fail with ENOSYS. Some functions are actually named
2657 something starting with __ and the normal name is an alias. */
2658 #if defined __stub_$2 || defined __stub___$2
2670 if ac_fn_c_try_link "$LINENO"; then :
2675 rm -f core conftest.err conftest.$ac_objext \
2676 conftest$ac_exeext conftest.$ac_ext
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680 $as_echo "$ac_res" >&6; }
2681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2683 } # ac_fn_c_check_func
2687 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2688 # ----------------------------------------------------
2689 # Tries to find if the field MEMBER exists in type AGGR, after including
2690 # INCLUDES, setting cache variable VAR accordingly.
2691 ac_fn_c_check_member ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2695 $as_echo_n "checking for $2.$3... " >&6; }
2696 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2712 if ac_fn_c_try_compile "$LINENO"; then :
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2722 if (sizeof ac_aggr.$3)
2728 if ac_fn_c_try_compile "$LINENO"; then :
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 } # ac_fn_c_check_member
2744 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2745 # -------------------------------------------
2746 # Tests whether TYPE exists after having included INCLUDES, setting cache
2747 # variable VAR accordingly.
2748 ac_fn_c_check_type ()
2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2752 $as_echo_n "checking for $2... " >&6; }
2753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2754 $as_echo_n "(cached) " >&6
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2769 if ac_fn_c_try_compile "$LINENO"; then :
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2782 if ac_fn_c_try_compile "$LINENO"; then :
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2793 $as_echo "$ac_res" >&6; }
2794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2796 } # ac_fn_c_check_type
2798 >>>>>>> MERGE-SOURCE
2799 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2800 # --------------------------------------------
2801 # Tries to find the compile-time value of EXPR in a program that includes
2802 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2804 ac_fn_c_compute_int ()
2806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2807 if test "$cross_compiling" = yes; then
2808 # Depending upon the size, compute the lo and hi bounds.
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2815 static int test_array [1 - 2 * !(($2) >= 0)];
2822 if ac_fn_c_try_compile "$LINENO"; then :
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2831 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2838 if ac_fn_c_try_compile "$LINENO"; then :
2839 ac_hi=$ac_mid; break
2841 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2842 if test $ac_lo -le $ac_mid; then
2846 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2857 static int test_array [1 - 2 * !(($2) < 0)];
2864 if ac_fn_c_try_compile "$LINENO"; then :
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2873 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2880 if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_lo=$ac_mid; break
2883 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2884 if test $ac_mid -le $ac_hi; then
2888 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 # Binary search between lo and hi bounds.
2899 while test "x$ac_lo" != "x$ac_hi"; do
2900 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2914 if ac_fn_c_try_compile "$LINENO"; then :
2917 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2929 static long int longval () { return $2; }
2930 static unsigned long int ulongval () { return $2; }
2937 FILE *f = fopen ("conftest.val", "w");
2942 long int i = longval ();
2945 fprintf (f, "%ld", i);
2949 unsigned long int i = ulongval ();
2952 fprintf (f, "%lu", i);
2954 /* Do not output a trailing newline, as this causes \r\n confusion
2955 on some platforms. */
2956 return ferror (f) || fclose (f) != 0;
2962 if ac_fn_c_try_run "$LINENO"; then :
2963 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2968 conftest.$ac_objext conftest.beam conftest.$ac_ext
2972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2973 as_fn_set_status $ac_retval
2975 } # ac_fn_c_compute_int
2977 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2978 # -------------------------------------------
2979 # Tests whether TYPE exists after having included INCLUDES, setting cache
2980 # variable VAR accordingly.
2981 ac_fn_c_check_type ()
2983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2985 $as_echo_n "checking for $2... " >&6; }
2986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2987 $as_echo_n "(cached) " >&6
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h. */
3002 if ac_fn_c_try_compile "$LINENO"; then :
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3015 if ac_fn_c_try_compile "$LINENO"; then :
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3026 $as_echo "$ac_res" >&6; }
3027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3029 } # ac_fn_c_check_type
3030 cat >config.log <<_ACEOF
3031 This file contains any messages produced by compilers while
3032 running configure, to aid debugging if configure makes a mistake.
3034 It was created by emacs $as_me 24.1.50, which was
3035 generated by GNU Autoconf 2.65. Invocation command line was
3047 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3048 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3049 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3050 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3051 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3053 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3054 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3056 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3057 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3058 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3059 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3060 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3061 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3062 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 $as_echo "PATH: $as_dir"
3087 # Keep a trace of the command line.
3088 # Strip out --no-create and --no-recursion so they do not pile up.
3089 # Strip out --silent because we don't want to record it for future runs.
3090 # Also quote any args containing shell meta-characters.
3091 # Make two passes to allow for proper duplicate-argument suppression.
3095 ac_must_keep_next=false
3101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3103 | -silent | --silent | --silen | --sile | --sil)
3106 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3111 as_fn_append ac_configure_args1 " '$ac_arg'"
3112 if test $ac_must_keep_next = true; then
3113 ac_must_keep_next=false # Got value, back to normal.
3116 *=* | --config-cache | -C | -disable-* | --disable-* \
3117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3119 | -with-* | --with-* | -without-* | --without-* | --x)
3120 case "$ac_configure_args0 " in
3121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3124 -* ) ac_must_keep_next=true ;;
3127 as_fn_append ac_configure_args " '$ac_arg'"
3132 { ac_configure_args0=; unset ac_configure_args0;}
3133 { ac_configure_args1=; unset ac_configure_args1;}
3135 # When interrupted or exit'd, cleanup temporary files, and complete
3136 # config.log. We remove comments because anyway the quotes in there
3137 # would cause problems or look ugly.
3138 # WARNING: Use '\'' to represent an apostrophe within the trap.
3139 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3140 trap 'exit_status=$?
3141 # Save into config.log some information that might help in debugging.
3146 ## ---------------- ##
3147 ## Cache variables. ##
3148 ## ---------------- ##
3151 # The following way of writing the cache mishandles newlines in values,
3153 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3154 eval ac_val=\$$ac_var
3158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3162 _ | IFS | as_nl) ;; #(
3163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3164 *) { eval $ac_var=; unset $ac_var;} ;;
3169 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3170 *${as_nl}ac_space=\ *)
3172 "s/'\''/'\''\\\\'\'''\''/g;
3173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3184 ## ----------------- ##
3185 ## Output variables. ##
3186 ## ----------------- ##
3189 for ac_var in $ac_subst_vars
3191 eval ac_val=\$$ac_var
3193 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3195 $as_echo "$ac_var='\''$ac_val'\''"
3199 if test -n "$ac_subst_files"; then
3201 ## ------------------- ##
3202 ## File substitutions. ##
3203 ## ------------------- ##
3206 for ac_var in $ac_subst_files
3208 eval ac_val=\$$ac_var
3210 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3212 $as_echo "$ac_var='\''$ac_val'\''"
3217 if test -s confdefs.h; then
3227 test "$ac_signal" != 0 &&
3228 $as_echo "$as_me: caught signal $ac_signal"
3229 $as_echo "$as_me: exit $exit_status"
3231 rm -f core *.core core.conftest.* &&
3232 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3235 for ac_signal in 1 2 13 15; do
3236 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3241 rm -f -r conftest* confdefs.h
3243 $as_echo "/* confdefs.h */" > confdefs.h
3245 # Predefined preprocessor variables.
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE_NAME "$PACKAGE_NAME"
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_STRING "$PACKAGE_STRING"
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_URL "$PACKAGE_URL"
3272 # Let the site file select an alternate cache file if it wants to.
3273 # Prefer an explicitly selected file to automatically selected ones.
3276 if test -n "$CONFIG_SITE"; then
3277 ac_site_file1=$CONFIG_SITE
3278 elif test "x$prefix" != xNONE; then
3279 ac_site_file1=$prefix/share/config.site
3280 ac_site_file2=$prefix/etc/config.site
3282 ac_site_file1=$ac_default_prefix/share/config.site
3283 ac_site_file2=$ac_default_prefix/etc/config.site
3285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3287 test "x$ac_site_file" = xNONE && continue
3288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3291 sed 's/^/| /' "$ac_site_file" >&5
3296 if test -r "$cache_file"; then
3297 # Some versions of bash will fail to source /dev/null (special files
3298 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3299 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3301 $as_echo "$as_me: loading cache $cache_file" >&6;}
3303 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3304 *) . "./$cache_file";;
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3309 $as_echo "$as_me: creating cache $cache_file" >&6;}
3313 as_fn_append ac_header_list " sys/select.h"
3314 as_fn_append ac_header_list " sys/time.h"
3315 as_fn_append ac_header_list " utime.h"
3316 as_fn_append ac_header_list " linux/version.h"
3317 as_fn_append ac_header_list " sys/systeminfo.h"
3318 as_fn_append ac_header_list " stdio_ext.h"
3319 as_fn_append ac_header_list " fcntl.h"
3320 as_fn_append ac_header_list " coff.h"
3321 as_fn_append ac_header_list " pty.h"
3322 as_fn_append ac_header_list " sys/vlimit.h"
3323 as_fn_append ac_header_list " sys/resource.h"
3324 as_fn_append ac_header_list " sys/utsname.h"
3325 as_fn_append ac_header_list " pwd.h"
3326 as_fn_append ac_header_list " utmp.h"
3327 as_fn_append ac_header_list " dirent.h"
3328 as_fn_append ac_header_list " util.h"
3329 as_fn_append ac_header_list " sys/socket.h"
3330 as_fn_append ac_header_list " stdlib.h"
3331 as_fn_append ac_header_list " unistd.h"
3332 as_fn_append ac_header_list " sys/param.h"
3333 as_fn_append ac_header_list " pthread.h"
3334 as_fn_append ac_header_list " malloc/malloc.h"
3335 as_fn_append ac_header_list " maillock.h"
3336 as_fn_append ac_header_list " sys/un.h"
3337 as_fn_append ac_func_list " tzset"
3338 as_fn_append ac_func_list " readlinkat"
3339 gl_getopt_required=GNU
3340 as_fn_append ac_header_list " getopt.h"
3341 as_fn_append ac_header_list " wchar.h"
3342 as_fn_append ac_header_list " stdint.h"
3343 as_fn_append ac_header_list " inttypes.h"
3344 as_fn_append ac_func_list " lstat"
3345 as_fn_append ac_func_list " alarm"
3346 as_fn_append ac_func_list " readlink"
3347 as_fn_append ac_func_list " strtoimax"
3348 as_fn_append ac_func_list " strtoumax"
3349 as_fn_append ac_func_list " symlink"
3350 as_fn_append ac_header_list " sys/stat.h"
3351 as_fn_append ac_func_list " localtime_r"
3352 # Check that the precious variables saved in the cache have kept the same
3354 ac_cache_corrupted=false
3355 for ac_var in $ac_precious_vars; do
3356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3357 eval ac_new_set=\$ac_env_${ac_var}_set
3358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3359 eval ac_new_val=\$ac_env_${ac_var}_value
3360 case $ac_old_set,$ac_new_set in
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3363 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3364 ac_cache_corrupted=: ;;
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3367 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3368 ac_cache_corrupted=: ;;
3371 if test "x$ac_old_val" != "x$ac_new_val"; then
3372 # differences in whitespace do not lead to failure.
3373 ac_old_val_w=`echo x
$ac_old_val`
3374 ac_new_val_w=`echo x
$ac_new_val`
3375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3378 ac_cache_corrupted=:
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3382 eval $ac_var=\$ac_old_val
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3385 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3387 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3390 # Pass precious variables to config.status.
3391 if test "$ac_new_set" = set; then
3393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3394 *) ac_arg=$ac_var=$ac_new_val ;;
3396 case " $ac_configure_args " in
3397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3402 if $ac_cache_corrupted; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3407 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3409 ## -------------------- ##
3410 ## Main body of script. ##
3411 ## -------------------- ##
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3424 for ac_dir in build-aux "$srcdir"/build-aux; do
3425 for ac_t in install-sh install.sh shtool; do
3426 if test -f "$ac_dir/$ac_t"; then
3428 ac_install_sh="$ac_aux_dir/$ac_t -c"
3433 if test -z "$ac_aux_dir"; then
3434 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3437 # These three variables are undocumented and unsupported,
3438 # and are intended to be withdrawn in a future Autoconf release.
3439 # They can cause serious problems if a builder's source tree is in a directory
3440 # whose full name contains unusual characters.
3441 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3442 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3443 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3446 am__api_version='1.11'
3448 # Find a good install program. We prefer a C program (faster),
3449 # so one script is as good as another. But avoid the broken or
3450 # incompatible versions:
3451 # SysV /etc/install, /usr/sbin/install
3452 # SunOS /usr/etc/install
3453 # IRIX /sbin/install
3455 # AmigaOS /C/install, which installs bootblocks on floppy discs
3456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3459 # OS/2's system install, which has a completely different semantic
3460 # ./install, which can be erroneously created by make from ./install.sh.
3461 # Reject install programs that cannot install multiple files.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3464 if test -z "$INSTALL"; then
3465 if test "${ac_cv_path_install+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 # Account for people who put trailing slashes in PATH elements.
3474 case $as_dir/ in #((
3475 ./ | .// | /[cC]/* | \
3476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3480 # OSF1 and SCO ODT 3.0 have their own names for install.
3481 # Don't use installbsd from OSF since it installs stuff as root
3483 for ac_prog in ginstall scoinst install; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3486 if test $ac_prog = install &&
3487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # AIX install. It has an incompatible calling convention.
3490 elif test $ac_prog = install &&
3491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492 # program-specific install script used by HP pwplus--don't use.
3495 rm -rf conftest.one conftest.two conftest.dir
3496 echo one > conftest.one
3497 echo two > conftest.two
3499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3500 test -s conftest.one && test -s conftest.two &&
3501 test -s conftest.dir/conftest.one &&
3502 test -s conftest.dir/conftest.two
3504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3517 rm -rf conftest.one conftest.two conftest.dir
3520 if test "${ac_cv_path_install+set}" = set; then
3521 INSTALL=$ac_cv_path_install
3523 # As a last resort, use the slow shell script. Don't cache a
3524 # value for INSTALL within a source directory, because that will
3525 # break other packages using the cache if that directory is
3526 # removed, or if the value is a relative name.
3527 INSTALL=$ac_install_sh
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3531 $as_echo "$INSTALL" >&6; }
3533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3534 # It thinks the first close brace ends the variable substitution.
3535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3542 $as_echo_n "checking whether build environment is sane... " >&6; }
3545 echo timestamp > conftest.file
3546 # Reject unsafe characters in $srcdir or the absolute working directory
3547 # name. Accept space and tab only in the latter.
3551 *[\\\"\#\$\&\'\`$am_lf]*)
3552 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3555 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3556 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3559 # Do `set' in a subshell so we don't clobber the current shell's
3560 # arguments. Must try -L first in case configure is actually a
3561 # symlink; some systems play weird games with the mod time of symlinks
3562 # (eg FreeBSD returns the mod time of the symlink's containing
3565 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3566 if test "$*" = "X"; then
3568 set X
`ls -t "$srcdir/configure" conftest.file`
3571 if test "$*" != "X $srcdir/configure conftest.file" \
3572 && test "$*" != "X conftest.file $srcdir/configure"; then
3574 # If neither matched, then we have a broken ls. This can happen
3575 # if, for instance, CONFIG_SHELL is bash and it inherits a
3576 # broken ls alias from the environment. This has actually
3577 # happened. Such a system could not be considered "sane".
3578 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3579 alias in your environment" "$LINENO" 5
3582 test "$2" = conftest.
file
3588 as_fn_error
"newly created file is older than distributed files!
3589 Check your system clock" "$LINENO" 5
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 $as_echo "yes" >&6; }
3593 test "$program_prefix" != NONE
&&
3594 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3595 # Use a double $ so make ignores it.
3596 test "$program_suffix" != NONE
&&
3597 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3598 # Double any \ or $.
3599 # By default was `s,x,x', remove it if useless.
3600 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3601 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3603 # expand $ac_aux_dir to an absolute path
3604 am_aux_dir
=`cd $ac_aux_dir && pwd`
3606 if test x
"${MISSING+set}" != xset
; then
3609 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3611 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3614 # Use eval to expand $SHELL
3615 if eval "$MISSING --run true"; then
3616 am_missing_run
="$MISSING --run "
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3620 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3623 if test x
"${install_sh}" != xset
; then
3626 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3628 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3632 # Installed binaries are usually stripped using `strip' when the user
3633 # run `make install-strip'. However `strip' might not be the right
3634 # tool to use in cross-compilation environments, therefore Automake
3635 # will honor the `STRIP' environment variable to overrule this program.
3636 if test "$cross_compiling" != no
; then
3637 if test -n "$ac_tool_prefix"; then
3638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3639 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_STRIP+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$STRIP"; then
3646 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir
=.
3653 for ac_exec_ext
in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 STRIP
=$ac_cv_prog_STRIP
3666 if test -n "$STRIP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3668 $as_echo "$STRIP" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3676 if test -z "$ac_cv_prog_STRIP"; then
3678 # Extract the first word of "strip", so it can be a program name with args.
3679 set dummy strip
; ac_word
=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$ac_ct_STRIP"; then
3686 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir
=.
3693 for ac_exec_ext
in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_ac_ct_STRIP
="strip"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3706 if test -n "$ac_ct_STRIP"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3708 $as_echo "$ac_ct_STRIP" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3714 if test "x$ac_ct_STRIP" = x
; then
3717 case $cross_compiling:$ac_tool_warned in
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721 ac_tool_warned
=yes ;;
3726 STRIP
="$ac_cv_prog_STRIP"
3730 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3734 if test -z "$MKDIR_P"; then
3735 if test "${ac_cv_path_mkdir+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3739 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3742 test -z "$as_dir" && as_dir
=.
3743 for ac_prog
in mkdir gmkdir
; do
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3747 'mkdir (GNU coreutils) '* | \
3748 'mkdir (coreutils) '* | \
3749 'mkdir (fileutils) '4.1*)
3750 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3760 test -d .
/--version && rmdir .
/--version
3761 if test "${ac_cv_path_mkdir+set}" = set; then
3762 MKDIR_P
="$ac_cv_path_mkdir -p"
3764 # As a last resort, use the slow shell script. Don't cache a
3765 # value for MKDIR_P within a source directory, because that will
3766 # break other packages using the cache if that directory is
3767 # removed, or if the value is a relative name.
3768 MKDIR_P
="$ac_install_sh -d"
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3772 $as_echo "$MKDIR_P" >&6; }
3777 [\\/$
]* | ?
:[\\/]*) ;;
3778 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3781 for ac_prog
in gawk mawk nawk
awk
3783 # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy
$ac_prog; ac_word
=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_AWK+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$AWK"; then
3791 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir
=.
3798 for ac_exec_ext
in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_AWK
="$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 if test -n "$AWK"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3813 $as_echo "$AWK" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3820 test -n "$AWK" && break
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3824 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3827 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3828 $as_echo_n "(cached) " >&6
3830 cat >conftest.
make <<\_ACEOF
3833 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3840 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3844 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 SET_MAKE
="MAKE=${MAKE-make}"
3854 rm -rf .tst
2>/dev
/null
3855 mkdir .tst
2>/dev
/null
3856 if test -d .tst
; then
3861 rmdir .tst
2>/dev
/null
3863 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3864 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3865 # is not polluted with repeated "-I."
3866 am__isrc
=' -I$(srcdir)'
3867 # test to see if srcdir already configured
3868 if test -f $srcdir/config.status
; then
3869 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3873 # test whether we have cygpath
3874 if test -z "$CYGPATH_W"; then
3875 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3876 CYGPATH_W
='cygpath -w'
3883 # Define the identity of the package.
3888 cat >>confdefs.h
<<_ACEOF
3889 #define PACKAGE "$PACKAGE"
3893 cat >>confdefs.h
<<_ACEOF
3894 #define VERSION "$VERSION"
3897 # Some tools Automake needs.
3899 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3902 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3905 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3908 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3911 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3913 # We need awk for the "check" target. The system "awk" is bad on
3915 # Always define AMTAR for backward compatibility.
3917 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3919 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3928 lispdir
='${datadir}/emacs/${version}/lisp'
3929 leimdir
='${datadir}/emacs/${version}/leim'
3930 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3931 '${datadir}/emacs/site-lisp'
3932 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3933 etcdir
='${datadir}/emacs/${version}/etc'
3934 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3935 docdir
='${datadir}/emacs/${version}/etc'
3936 gamedir
='${localstatedir}/games/emacs'
3941 # Check whether --with-pop was given.
3942 if test "${with_pop+set}" = set; then :
3948 if test "$with_pop" = yes; then
3949 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3954 # Check whether --with-kerberos was given.
3955 if test "${with_kerberos+set}" = set; then :
3956 withval
=$with_kerberos;
3961 if test "$with_kerberos" != no
; then
3962 $as_echo "#define KERBEROS 1" >>confdefs.h
3967 # Check whether --with-kerberos5 was given.
3968 if test "${with_kerberos5+set}" = set; then :
3969 withval
=$with_kerberos5;
3974 if test "${with_kerberos5}" != no
; then
3975 if test "${with_kerberos}" = no
; then
3977 $as_echo "#define KERBEROS 1" >>confdefs.h
3981 $as_echo "#define KERBEROS5 1" >>confdefs.h
3986 # Check whether --with-hesiod was given.
3987 if test "${with_hesiod+set}" = set; then :
3988 withval
=$with_hesiod;
3993 if test "$with_hesiod" != no
; then
3995 $as_echo "#define HESIOD 1" >>confdefs.h
4000 # Check whether --with-mmdf was given.
4001 if test "${with_mmdf+set}" = set; then :
4007 if test "$with_mmdf" != no
; then
4009 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4014 # Check whether --with-mail-unlink was given.
4015 if test "${with_mail_unlink+set}" = set; then :
4016 withval
=$with_mail_unlink;
4021 if test "$with_mail_unlink" != no
; then
4023 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4028 # Check whether --with-mailhost was given.
4029 if test "${with_mailhost+set}" = set; then :
4030 withval
=$with_mailhost;
4031 cat >>confdefs.h
<<_ACEOF
4032 #define MAILHOST "$withval"
4039 # Check whether --with-sound was given.
4040 if test "${with_sound+set}" = set; then :
4041 withval
=$with_sound;
4048 # Check whether --with-sync-input was given.
4049 if test "${with_sync_input+set}" = set; then :
4050 withval
=$with_sync_input;
4055 if test "$with_sync_input" = yes; then
4057 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
4062 # Check whether --with-x-toolkit was given.
4063 if test "${with_x_toolkit+set}" = set; then :
4064 withval
=$with_x_toolkit; case "${withval}" in
4065 y | ye |
yes ) val
=gtk
;;
4067 l | lu | luc | luci | lucid
) val
=lucid
;;
4068 a |
at | ath | athe | athen | athena
) val
=athena
;;
4069 m | mo | mot | moti | motif
) val
=motif
;;
4070 g | gt | gtk
) val
=gtk
;;
4073 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4074 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
4075 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
4084 # Check whether --with-wide-int was given.
4085 if test "${with_wide_int+set}" = set; then :
4086 withval
=$with_wide_int;
4091 if test "$with_wide_int" = yes; then
4093 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4098 # Check whether --with-xpm was given.
4099 if test "${with_xpm+set}" = set; then :
4106 # Check whether --with-jpeg was given.
4107 if test "${with_jpeg+set}" = set; then :
4114 # Check whether --with-tiff was given.
4115 if test "${with_tiff+set}" = set; then :
4122 # Check whether --with-gif was given.
4123 if test "${with_gif+set}" = set; then :
4130 # Check whether --with-png was given.
4131 if test "${with_png+set}" = set; then :
4138 # Check whether --with-rsvg was given.
4139 if test "${with_rsvg+set}" = set; then :
4146 # Check whether --with-xml2 was given.
4147 if test "${with_xml2+set}" = set; then :
4154 # Check whether --with-imagemagick was given.
4155 if test "${with_imagemagick+set}" = set; then :
4156 withval
=$with_imagemagick;
4158 with_imagemagick
=yes
4163 # Check whether --with-xft was given.
4164 if test "${with_xft+set}" = set; then :
4171 # Check whether --with-libotf was given.
4172 if test "${with_libotf+set}" = set; then :
4173 withval
=$with_libotf;
4179 # Check whether --with-m17n-flt was given.
4180 if test "${with_m17n_flt+set}" = set; then :
4181 withval
=$with_m17n_flt;
4188 # Check whether --with-toolkit-scroll-bars was given.
4189 if test "${with_toolkit_scroll_bars+set}" = set; then :
4190 withval
=$with_toolkit_scroll_bars;
4192 with_toolkit_scroll_bars
=yes
4196 # Check whether --with-xaw3d was given.
4197 if test "${with_xaw3d+set}" = set; then :
4198 withval
=$with_xaw3d;
4204 # Check whether --with-xim was given.
4205 if test "${with_xim+set}" = set; then :
4212 # Check whether --with-ns was given.
4213 if test "${with_ns+set}" = set; then :
4221 # Check whether --with-gpm was given.
4222 if test "${with_gpm+set}" = set; then :
4229 # Check whether --with-dbus was given.
4230 if test "${with_dbus+set}" = set; then :
4237 # Check whether --with-gconf was given.
4238 if test "${with_gconf+set}" = set; then :
4239 withval
=$with_gconf;
4245 # Check whether --with-selinux was given.
4246 if test "${with_selinux+set}" = set; then :
4247 withval
=$with_selinux;
4253 # Check whether --with-gnutls was given.
4254 if test "${with_gnutls+set}" = set; then :
4255 withval
=$with_gnutls;
4261 ## For the times when you want to build Emacs but don't have
4262 ## a suitable makeinfo, and can live without the manuals.
4264 # Check whether --with-makeinfo was given.
4265 if test "${with_makeinfo+set}" = set; then :
4266 withval
=$with_makeinfo;
4272 ## This is an option because I do not know if all info/man support
4273 ## compressed files, nor how to test if they do so.
4275 # Check whether --with-compress-info was given.
4276 if test "${with_compress_info+set}" = set; then :
4277 withval
=$with_compress_info;
4279 with_compress_info
=yes
4282 if test $with_compress_info = yes; then
4290 # Check whether --with-pkg-config-prog was given.
4291 if test "${with_pkg_config_prog+set}" = set; then :
4292 withval
=$with_pkg_config_prog;
4295 if test "X${with_pkg_config_prog}" != X
; then
4296 if test "${with_pkg_config_prog}" != yes; then
4297 PKG_CONFIG
="${with_pkg_config_prog}"
4303 # Check whether --with-crt-dir was given.
4304 if test "${with_crt_dir+set}" = set; then :
4305 withval
=$with_crt_dir;
4308 CRT_DIR
="${with_crt_dir}"
4311 # Check whether --with-gameuser was given.
4312 if test "${with_gameuser+set}" = set; then :
4313 withval
=$with_gameuser;
4316 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4317 && gameuser
="${with_gameuser}"
4318 test "X$gameuser" = X
&& gameuser
=games
4321 # Check whether --with-gnustep-conf was given.
4322 if test "${with_gnustep_conf+set}" = set; then :
4323 withval
=$with_gnustep_conf;
4326 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4327 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4328 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4329 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4331 # Check whether --enable-ns-self-contained was given.
4332 if test "${enable_ns_self_contained+set}" = set; then :
4333 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4335 EN_NS_SELF_CONTAINED
=yes
4339 # Check whether --enable-asserts was given.
4340 if test "${enable_asserts+set}" = set; then :
4341 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4347 # Check whether --enable-maintainer-mode was given.
4348 if test "${enable_maintainer_mode+set}" = set; then :
4349 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4351 USE_MAINTAINER_MODE
=yes
4354 if test $USE_MAINTAINER_MODE = yes; then
4361 # Check whether --enable-locallisppath was given.
4362 if test "${enable_locallisppath+set}" = set; then :
4363 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4365 elif test "${enableval}" != "yes"; then
4366 locallisppath
=${enableval}
4371 # Check whether --enable-checking was given.
4372 if test "${enable_checking+set}" = set; then :
4373 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4376 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4377 for check
in $ac_checking_flags
4380 # these set all the flags to specific states
4381 yes) ac_enable_checking
=1 ;;
4382 no
) ac_enable_checking
= ;
4383 ac_gc_check_stringbytes
= ;
4384 ac_gc_check_string_overrun
= ;
4385 ac_gc_check_string_free_list
= ;
4386 ac_xmalloc_overrun
= ;
4387 ac_gc_check_cons_list
= ;;
4388 all
) ac_enable_checking
=1 ;
4389 ac_gc_check_stringbytes
=1 ;
4390 ac_gc_check_string_overrun
=1 ;
4391 ac_gc_check_string_free_list
=1 ;
4392 ac_xmalloc_overrun
=1 ;
4393 ac_gc_check_cons_list
=1 ;;
4394 # these enable particular checks
4395 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4396 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4397 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4398 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4399 conslist
) ac_gc_check_cons_list
=1 ;;
4400 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4405 if test x
$ac_enable_checking != x
; then
4407 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4410 if test x
$ac_gc_check_stringbytes != x
; then
4412 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4415 if test x
$ac_gc_check_string_overrun != x
; then
4417 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4420 if test x
$ac_gc_check_string_free_list != x
; then
4422 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4425 if test x
$ac_xmalloc_overrun != x
; then
4427 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4430 if test x
$ac_gc_check_cons_list != x
; then
4432 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4436 # Check whether --enable-use-lisp-union-type was given.
4437 if test "${enable_use_lisp_union_type+set}" = set; then :
4438 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4440 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4447 # Check whether --enable-profiling was given.
4448 if test "${enable_profiling+set}" = set; then :
4449 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4452 if test x
$ac_enable_profiling != x
; then
4453 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4459 # Check whether --enable-autodepend was given.
4460 if test "${enable_autodepend+set}" = set; then :
4461 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4463 ac_enable_autodepend
=yes
4467 #### Make srcdir absolute, if it isn't already. It's important to
4468 #### avoid running the path through pwd unnecessarily, since pwd can
4469 #### give you automounter prefixes, which can go away. We do all this
4470 #### so Emacs can find its files when run uninstalled.
4471 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4476 ## We may be able to use the $PWD environment variable to make this
4477 ## absolute. But sometimes PWD is inaccurate.
4478 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4479 ## but that tested only for a well-formed and valid PWD,
4480 ## it did not object when PWD was well-formed and valid but just wrong.
4481 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4485 srcdir
="`(cd ${srcdir}; pwd)`"
4488 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4491 #### Given the configuration name, set opsysfile to the
4492 #### name of s/*.h file we should use.
4494 ### Canonicalize the configuration name.
4496 # Make sure we can run config.sub.
4497 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4498 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4501 $as_echo_n "checking build system type... " >&6; }
4502 if test "${ac_cv_build+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4505 ac_build_alias
=$build_alias
4506 test "x$ac_build_alias" = x
&&
4507 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4508 test "x$ac_build_alias" = x
&&
4509 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4510 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4511 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4515 $as_echo "$ac_cv_build" >&6; }
4516 case $ac_cv_build in
4518 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4521 ac_save_IFS
=$IFS; IFS
='-'
4527 # Remember, the first character of IFS is used to create $*,
4528 # except with old shells:
4531 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4535 $as_echo_n "checking host system type... " >&6; }
4536 if test "${ac_cv_host+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4539 if test "x$host_alias" = x
; then
4540 ac_cv_host
=$ac_cv_build
4542 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4543 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4548 $as_echo "$ac_cv_host" >&6; }
4551 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4554 ac_save_IFS
=$IFS; IFS
='-'
4560 # Remember, the first character of IFS is used to create $*,
4561 # except with old shells:
4564 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4568 configuration
=${host_alias-${build_alias-$host}}
4572 ### If you add support for a new configuration, add code to this
4573 ### switch statement to recognize your configuration name and select
4574 ### the appropriate operating system file.
4576 ### You would hope that you could choose an s/*.h
4577 ### file based on the operating system portion. However, it turns out
4578 ### that each s/*.h file is pretty manufacturer-specific.
4579 ### So we basically have to have a special case for each
4580 ### configuration name.
4582 ### As far as handling version numbers on operating systems is
4583 ### concerned, make sure things will fail in a fixable way. If
4584 ### /etc/MACHINES doesn't say anything about version numbers, be
4585 ### prepared to handle anything reasonably. If version numbers
4586 ### matter, be sure /etc/MACHINES says something about it.
4588 opsys
='' unported
=no
4589 case "${canonical}" in
4591 ## GNU/Linux and similar ports
4601 ## FreeBSD kernel + glibc based userland
4616 ## Apple Darwin / Mac OS X
4618 case "${canonical}" in
4625 ## Use fink packages if available.
4626 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4627 ## if test -d /sw/include && test -d /sw/lib; then
4628 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4629 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4633 ## HP 9000 series 700 and 800, running HP/UX
4634 hppa
*-hp-hpux10.2
* )
4637 hppa
*-hp-hpux1[1-9]* )
4639 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4643 rs6000-ibm-aix4.
[23]* )
4646 powerpc-ibm-aix4.
[23]* )
4649 rs6000-ibm-aix
[56]* )
4652 powerpc-ibm-aix
[56]* )
4656 ## Silicon Graphics machines
4659 machine
=iris4d opsys
=irix6-5
4660 # Without defining _LANGUAGE_C, things get masked out in the headers
4661 # so that, for instance, grepping for `free' in stdlib.h fails and
4662 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4663 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4668 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4669 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4670 case "${canonical}" in
4672 amd64-
*-*|x86_64-
*-*) ;;
4676 case "${canonical}" in
4677 *-sunos5.6
* |
*-solaris2.6
* )
4681 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4683 emacs_check_sunpro_c
=yes
4685 *-sunos5* |
*-solaris* )
4687 emacs_check_sunpro_c
=yes
4690 ## Watch out for a compiler that we know will not work.
4691 case "${canonical}" in
4692 *-solaris* |
*-sunos5* )
4693 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4694 ## /usr/ucb/cc doesn't work;
4695 ## we should find some other compiler that does work.
4703 ## Intel 386 machines where we don't care about the manufacturer.
4705 case "${canonical}" in
4706 *-cygwin ) opsys
=cygwin
;;
4707 *-darwin* ) opsys
=darwin
;;
4708 *-sysv4.2uw
* ) opsys
=unixware
;;
4709 *-sysv5uw* ) opsys
=unixware
;;
4710 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4711 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4720 ### If the code above didn't choose an operating system, just choose
4721 ### an operating system based on the configuration name. You really
4722 ### only want to use this when you have no idea what the right
4723 ### operating system is; if you know what operating systems a machine
4724 ### runs, it's cleaner to make it explicit in the case statement
4726 if test x
"${opsys}" = x
; then
4727 case "${canonical}" in
4728 *-gnu* ) opsys
=gnu
;;
4737 if test $unported = yes; then
4738 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4739 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4742 opsysfile
="s/${opsys}.h"
4745 #### Choose a compiler.
4748 ac_cpp
='$CPP $CPPFLAGS'
4749 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4754 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC
="$CC" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4791 if test -z "$ac_cv_prog_CC"; then
4793 # Extract the first word of "gcc", so it can be a program name with args.
4794 set dummy gcc
; ac_word
=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4800 if test -n "$ac_ct_CC"; then
4801 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir
=.
4808 for ac_exec_ext
in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_ac_ct_CC
="gcc"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4821 if test -n "$ac_ct_CC"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4823 $as_echo "$ac_ct_CC" >&6; }
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4829 if test "x$ac_ct_CC" = x
; then
4832 case $cross_compiling:$ac_tool_warned in
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836 ac_tool_warned
=yes ;;
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4847 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if test "${ac_cv_prog_CC+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$CC"; then
4854 ac_cv_prog_CC
="$CC" # Let the user override the test.
4856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir
=.
4861 for ac_exec_ext
in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 if test -n "$CC"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4876 $as_echo "$CC" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4885 if test -z "$CC"; then
4886 # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc
; ac_word
=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_CC+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4893 if test -n "$CC"; then
4894 ac_cv_prog_CC
="$CC" # Let the user override the test.
4897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir
=.
4902 for ac_exec_ext
in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905 ac_prog_rejected
=yes
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 if test $ac_prog_rejected = yes; then
4917 # We found a bogon in the path, so make sure we never use it.
4918 set dummy
$ac_cv_prog_CC
4920 if test $# != 0; then
4921 # We chose a different compiler from the bogus one.
4922 # However, it has the same basename, so the bogon will be chosen
4923 # first if we set CC to just the basename; use the full file name.
4925 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4931 if test -n "$CC"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4933 $as_echo "$CC" >&6; }
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4941 if test -z "$CC"; then
4942 if test -n "$ac_tool_prefix"; then
4943 for ac_prog
in cl.exe
4945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_CC+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$CC"; then
4953 ac_cv_prog_CC
="$CC" # Let the user override the test.
4955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir
=.
4960 for ac_exec_ext
in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 if test -n "$CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 $as_echo "$CC" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$CC" && break
4985 if test -z "$CC"; then
4987 for ac_prog
in cl.exe
4989 # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy
$ac_prog; ac_word
=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4996 if test -n "$ac_ct_CC"; then
4997 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_ac_ct_CC
="$ac_prog"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5017 if test -n "$ac_ct_CC"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5019 $as_echo "$ac_ct_CC" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 test -n "$ac_ct_CC" && break
5029 if test "x$ac_ct_CC" = x
; then
5032 case $cross_compiling:$ac_tool_warned in
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned
=yes ;;
5045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 as_fn_error
"no acceptable C compiler found in \$PATH
5048 See \`config.log' for more details." "$LINENO" 5; }
5050 # Provide some information about the compiler.
5051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5054 for ac_option
in --version -v -V -qversion; do
5055 { { ac_try
="$ac_compiler $ac_option >&5"
5057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 $as_echo "$ac_try_echo"; } >&5
5062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5064 if test -s conftest.err; then
5066 ... rest of stderr output deleted ...
5067 10q' conftest.err >conftest.er1
5068 cat conftest.er1 >&5
5070 rm -f conftest.er1 conftest.err
5071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072 test $ac_status = 0; }
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5086 ac_clean_files_save=$ac_clean_files
5087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5088 # Try to create an executable without -o first, disregard a.out.
5089 # It will help us diagnose broken compilers, and finding out an intuition
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5092 $as_echo_n "checking whether the C compiler works... " >&6; }
5093 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5095 # The possible output files:
5096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5099 for ac_file in $ac_files
5102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5108 if { { ac_try="$ac_link_default"
5110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5111 *) ac_try_echo
=$ac_try;;
5113 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114 $as_echo "$ac_try_echo"; } >&5
5115 (eval "$ac_link_default") 2>&5
5117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5118 test $ac_status = 0; }; then :
5119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5122 # so that the user can short-circuit this test for compilers unknown to
5124 for ac_file
in $ac_files ''
5126 test -f "$ac_file" ||
continue
5128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5131 # We found the default executable, but exeext='' is most
5135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5137 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5139 # We set ac_cv_exeext here because the later test for it is not
5140 # safe: cross compilers may not add the suffix if given an `-o'
5141 # argument, so we may need to know it at that point already.
5142 # Even if this section looks crufty: it has the advantage of
5149 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5154 if test -z "$ac_file"; then :
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 $as_echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.
$ac_ext >&5
5160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5162 { as_fn_set_status
77
5163 as_fn_error
"C compiler cannot create executables
5164 See \`config.log' for more details." "$LINENO" 5; }; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5170 $as_echo_n "checking for C compiler default output file name... " >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5172 $as_echo "$ac_file" >&6; }
5173 ac_exeext
=$ac_cv_exeext
5175 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5176 ac_clean_files
=$ac_clean_files_save
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5178 $as_echo_n "checking for suffix of executables... " >&6; }
5179 if { { ac_try
="$ac_link"
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5185 $as_echo "$ac_try_echo"; } >&5
5186 (eval "$ac_link") 2>&5
5188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }; then :
5190 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5191 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5192 # work properly (i.e., refer to `conftest.exe'), while it won't with
5194 for ac_file
in conftest.exe conftest conftest.
*; do
5195 test -f "$ac_file" ||
continue
5197 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5198 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5207 See \`config.log' for more details." "$LINENO" 5; }
5209 rm -f conftest conftest
$ac_cv_exeext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5211 $as_echo "$ac_cv_exeext" >&6; }
5213 rm -f conftest.
$ac_ext
5214 EXEEXT
=$ac_cv_exeext
5216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5222 FILE *f = fopen ("conftest.out", "w");
5223 return ferror (f) || fclose (f) != 0;
5229 ac_clean_files
="$ac_clean_files conftest.out"
5230 # Check that the compiler produces executables we can run. If not, either
5231 # the compiler is broken, or we cross compile.
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5233 $as_echo_n "checking whether we are cross compiling... " >&6; }
5234 if test "$cross_compiling" != yes; then
5235 { { ac_try
="$ac_link"
5237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5241 $as_echo "$ac_try_echo"; } >&5
5242 (eval "$ac_link") 2>&5
5244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245 test $ac_status = 0; }
5246 if { ac_try='./conftest$ac_cv_exeext'
5247 { { case "(($ac_try" in
5248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5249 *) ac_try_echo
=$ac_try;;
5251 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 $as_echo "$ac_try_echo"; } >&5
5253 (eval "$ac_try") 2>&5
5255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }; }; then
5259 if test "$cross_compiling" = maybe
; then
5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264 as_fn_error
"cannot run C compiled programs.
5265 If you meant to cross compile, use \`--host'.
5266 See \`config.log' for more details." "$LINENO" 5; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5271 $as_echo "$cross_compiling" >&6; }
5273 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5274 ac_clean_files
=$ac_clean_files_save
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5276 $as_echo_n "checking for suffix of object files... " >&6; }
5277 if test "${ac_cv_objext+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5291 rm -f conftest.o conftest.obj
5292 if { { ac_try
="$ac_compile"
5294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_compile") 2>&5
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; then :
5303 for ac_file in conftest.o conftest.obj conftest.*; do
5304 test -f "$ac_file" || continue;
5306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5312 $as_echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5317 as_fn_error "cannot compute suffix of object files
: cannot compile
5318 See \
`config.log' for more details." "$LINENO" 5; }
5320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5323 $as_echo "$ac_cv_objext" >&6; }
5324 OBJEXT=$ac_cv_objext
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5328 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5345 if ac_fn_c_try_compile "$LINENO"; then :
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5356 if test $ac_compiler_gnu = yes; then
5361 ac_test_CFLAGS=${CFLAGS+set}
5362 ac_save_CFLAGS=$CFLAGS
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5365 if test "${ac_cv_prog_cc_g+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5368 ac_save_c_werror_flag=$ac_c_werror_flag
5369 ac_c_werror_flag=yes
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5383 if ac_fn_c_try_compile "$LINENO"; then :
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5398 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5414 if ac_fn_c_try_compile "$LINENO"; then :
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_c_werror_flag=$ac_save_c_werror_flag
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5425 $as_echo "$ac_cv_prog_cc_g" >&6; }
5426 if test "$ac_test_CFLAGS" = set; then
5427 CFLAGS=$ac_save_CFLAGS
5428 elif test $ac_cv_prog_cc_g = yes; then
5429 if test "$GCC" = yes; then
5435 if test "$GCC" = yes; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5446 ac_cv_prog_cc_c89=no
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 #include <sys/stat.h>
5454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5455 struct buf { int x; };
5456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457 static char *e (p, i)
5463 static char *f (char * (*g) (char **, int), char **p, ...)
5468 s = g (p, va_arg (v,int));
5473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5474 function prototypes and stuff, but not '\xHH' hex character constants.
5475 These don't provoke an error unfortunately, instead are silently treated
5476 as 'x'. The following induces an error, until -std is added to get
5477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5478 array size at least. It's necessary to write '\x00'==0 to get something
5479 that's true only with -std. */
5480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483 inside strings and character constants. */
5485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5487 int test (int i, double x);
5488 struct s1 {int (*f) (int a);};
5489 struct s2 {int (*f) (double a);};
5490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 CC="$ac_save_CC $ac_arg"
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_prog_cc_c89=$ac_arg
5508 rm -f core conftest.err conftest.$ac_objext
5509 test "x$ac_cv_prog_cc_c89" != "xno" && break
5511 rm -f conftest.$ac_ext
5516 case "x$ac_cv_prog_cc_c89" in
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5519 $as_echo "none needed" >&6; } ;;
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5522 $as_echo "unsupported" >&6; } ;;
5524 CC="$CC $ac_cv_prog_cc_c89"
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5528 if test "x$ac_cv_prog_cc_c89" != xno; then :
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 DEPDIR="${am__leading_dot}deps"
5539 ac_config_commands="$ac_config_commands depfiles"
5542 am_make=${MAKE-make}
5543 cat > confinc << 'END'
5545 @echo this is the am__doit target
5548 # If we don't find an include directive, just comment out the code.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5554 # First try GNU make style include.
5555 echo "include confinc" > confmf
5556 # Ignore all kinds of additional output from `make'.
5557 case `$am_make -s -f confmf 2> /dev/null` in #(
5558 *the\ am__doit\ target*)
5564 # Now try BSD make style include.
5565 if test "$am__include" = "#"; then
5566 echo '.include
"confinc"' > confmf
5567 case `$am_make -s -f confmf 2> /dev/null` in #(
5568 *the\ am__doit\ target*)
5569 am__include=.include
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5578 $as_echo "$_am_result" >&6; }
5579 rm -f confinc confmf
5581 # Check whether --enable-dependency-tracking was given.
5582 if test "${enable_dependency_tracking+set}" = set; then :
5583 enableval=$enable_dependency_tracking;
5586 if test "x$enable_dependency_tracking" != xno; then
5587 am_depcomp="$ac_aux_dir/depcomp"
5590 if test "x$enable_dependency_tracking" != xno
; then
5600 depcc
="$CC" am_compiler_list
=
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5603 $as_echo_n "checking dependency style of $depcc... " >&6; }
5604 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608 # We make a subdir and do the tests there. Otherwise we can end up
5609 # making bogus files that we don't know about and never remove. For
5610 # instance it was reported that on HP-UX the gcc test will end up
5611 # making a dummy file named `D' -- because `-MD' means `put the output
5614 # Copy depcomp to subdir because otherwise we won't find it if we're
5615 # using a relative directory.
5616 cp "$am_depcomp" conftest.dir
5618 # We will build objects and dependencies in a subdirectory because
5619 # it helps to detect inapplicable dependency modes. For instance
5620 # both Tru64's cc and ICC support -MD to output dependencies as a
5621 # side effect of compilation, but ICC will put the dependencies in
5622 # the current directory while Tru64 will put them in the object
5626 am_cv_CC_dependencies_compiler_type
=none
5627 if test "$am_compiler_list" = ""; then
5628 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5631 case " $depcc " in #(
5632 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5635 for depmode
in $am_compiler_list; do
5636 # Setup a source with many dependencies, because some compilers
5637 # like to wrap large dependency lists on column 80 (with \), and
5638 # we should not choose a depcomp mode which is confused by this.
5640 # We need to recreate these files for each test, as the compiler may
5641 # overwrite some of them when testing with obscure command lines.
5642 # This happens at least with the AIX C compiler.
5644 for i
in 1 2 3 4 5 6; do
5645 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5647 # Solaris 8's {/usr,}/bin/sh.
5648 touch sub
/conftst
$i.h
5650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5653 # mode. It turns out that the SunPro C++ compiler does not properly
5654 # handle `-M -o', and we need to detect this. Also, some Intel
5655 # versions had trouble with output in subdirs
5656 am__obj
=sub
/conftest.
${OBJEXT-o}
5657 am__minus_obj
="-o $am__obj"
5660 # This depmode causes a compiler race in universal mode.
5661 test "$am__universal" = false ||
continue
5664 # after this tag, mechanisms are not by side-effect, so they'll
5665 # only be used when explicitly requested
5666 if test "x$enable_dependency_tracking" = xyes
; then
5672 msvisualcpp | msvcmsys
)
5673 # This compiler won't grok `-c -o', but also, the minuso test has
5674 # not run yet. These depmodes are late enough in the game, and
5675 # so weak that their functioning should not be impacted.
5676 am__obj
=conftest.
${OBJEXT-o}
5681 if depmode
=$depmode \
5682 source=sub
/conftest.c object
=$am__obj \
5683 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5684 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5685 >/dev
/null
2>conftest.err
&&
5686 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5687 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5688 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5689 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5690 # icc doesn't choke on unknown options, it will just issue warnings
5691 # or remarks (even with -Werror). So we grep stderr for any message
5692 # that says an option was ignored or not supported.
5693 # When given -MP, icc 7.0 and 7.1 complain thusly:
5694 # icc: Command line warning: ignoring option '-M'; no argument required
5695 # The diagnosis changed in icc 8.0:
5696 # icc: Command line remark: option '-MP' not supported
5697 if (grep 'ignoring option' conftest.err ||
5698 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5699 am_cv_CC_dependencies_compiler_type
=$depmode
5708 am_cv_CC_dependencies_compiler_type
=none
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5713 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5714 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5717 test "x$enable_dependency_tracking" != xno \
5718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5720 am__fastdepCC_FALSE
='#'
5722 am__fastdepCC_TRUE
='#'
5723 am__fastdepCC_FALSE
=
5727 if test "x$CC" != xcc
; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5729 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5732 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5734 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5735 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5736 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5737 $as_echo_n "(cached) " >&6
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5750 # Make sure it works both with $CC and with simple cc.
5751 # We do the test twice because some compilers refuse to overwrite an
5752 # existing .o file with -o, though they will create one.
5753 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5755 if { { case "(($ac_try" in
5756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5760 $as_echo "$ac_try_echo"; } >&5
5761 (eval "$ac_try") 2>&5
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; } &&
5765 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5767 *) ac_try_echo
=$ac_try;;
5769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5770 $as_echo "$ac_try_echo"; } >&5
5771 (eval "$ac_try") 2>&5
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; };
5776 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5777 if test "x$CC" != xcc
; then
5778 # Test first that cc exists at all.
5779 if { ac_try
='cc -c conftest.$ac_ext >&5'
5780 { { case "(($ac_try" in
5781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786 (eval "$ac_try") 2>&5
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5789 test $ac_status = 0; }; }; then
5790 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5792 if { { case "(($ac_try" in
5793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5794 *) ac_try_echo
=$ac_try;;
5796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5797 $as_echo "$ac_try_echo"; } >&5
5798 (eval "$ac_try") 2>&5
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } &&
5802 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5807 $as_echo "$ac_try_echo"; } >&5
5808 (eval "$ac_try") 2>&5
5810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811 test $ac_status = 0; };
5816 # cc exists but doesn't like -o.
5817 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5822 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5824 rm -f core conftest*
5827 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5829 $as_echo "yes" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5834 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5838 # FIXME: we rely on the cache variable name because
5839 # there is no other way.
5841 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5842 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5843 if test "$am_t" != yes; then
5844 # Losing compiler, so override with the script.
5845 # FIXME: It is wrong to rewrite CC.
5846 # But if we don't then we get into trouble of one sort or another.
5847 # A longer-term fix would be to have automake use am__CC in this case,
5848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5849 CC="$am_aux_dir/compile $CC"
5854 if test x$GCC = xyes; then
5855 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5857 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5860 # Initialize gnulib right after choosing the compiler.
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5869 # On Suns, sometimes $CPP names a directory.
5870 if test -n "$CPP" && test -d "$CPP"; then
5873 if test -z "$CPP"; then
5874 if test "${ac_cv_prog_CPP+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 # Double quotes because CPP needs to be expanded
5878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5881 for ac_c_preproc_warn_flag in '' yes
5883 # Use a header file that comes with gcc, so configuring glibc
5884 # with a fresh cross-compiler works.
5885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5886 # <limits.h> exists even on freestanding compilers.
5887 # On the NeXT, cc -E runs the code through the compiler's parser,
5888 # not just through cpp. "Syntax error" is here to catch this case.
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5892 # include <limits.h>
5894 # include <assert.h>
5898 if ac_fn_c_try_cpp "$LINENO"; then :
5901 # Broken: fails on valid input.
5904 rm -f conftest.err conftest.$ac_ext
5906 # OK, works on sane cases. Now check whether nonexistent headers
5907 # can be detected and how.
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5912 if ac_fn_c_try_cpp "$LINENO"; then :
5913 # Broken: success on invalid input.
5916 # Passes both tests.
5920 rm -f conftest.err conftest.$ac_ext
5923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5924 rm -f conftest.err conftest.
$ac_ext
5925 if $ac_preproc_ok; then :
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5938 $as_echo "$CPP" >&6; }
5940 for ac_c_preproc_warn_flag
in '' yes
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 # include <limits.h>
5953 # include <assert.h>
5957 if ac_fn_c_try_cpp
"$LINENO"; then :
5960 # Broken: fails on valid input.
5963 rm -f conftest.err conftest.
$ac_ext
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5971 if ac_fn_c_try_cpp
"$LINENO"; then :
5972 # Broken: success on invalid input.
5975 # Passes both tests.
5979 rm -f conftest.err conftest.
$ac_ext
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.
$ac_ext
5984 if $ac_preproc_ok; then :
5987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5989 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5990 See \`config.log' for more details." "$LINENO" 5; }
5994 ac_cpp
='$CPP $CPPFLAGS'
5995 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6002 if test "${ac_cv_path_GREP+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6005 if test -z "$GREP"; then
6006 ac_path_GREP_found
=false
6007 # Loop through the user's path and test for each of PROGNAME-LIST
6008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6009 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6012 test -z "$as_dir" && as_dir
=.
6013 for ac_prog
in grep ggrep
; do
6014 for ac_exec_ext
in '' $ac_executable_extensions; do
6015 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6017 # Check for GNU ac_path_GREP and select it if it is found.
6018 # Check for GNU $ac_path_GREP
6019 case `"$ac_path_GREP" --version 2>&1` in
6021 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6024 $as_echo_n 0123456789 >"conftest.in"
6027 cat "conftest.in" "conftest.in" >"conftest.tmp"
6028 mv "conftest.tmp" "conftest.in"
6029 cp "conftest.in" "conftest.nl"
6030 $as_echo 'GREP' >> "conftest.nl"
6031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6032 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6033 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6035 # Best one so far, save it but keep looking for a better one
6036 ac_cv_path_GREP
="$ac_path_GREP"
6037 ac_path_GREP_max
=$ac_count
6039 # 10*(2^10) chars as input seems more than enough
6040 test $ac_count -gt 10 && break
6042 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6045 $ac_path_GREP_found && break 3
6050 if test -z "$ac_cv_path_GREP"; then
6051 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6054 ac_cv_path_GREP
=$GREP
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6059 $as_echo "$ac_cv_path_GREP" >&6; }
6060 GREP
="$ac_cv_path_GREP"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6064 $as_echo_n "checking for egrep... " >&6; }
6065 if test "${ac_cv_path_EGREP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6069 then ac_cv_path_EGREP
="$GREP -E"
6071 if test -z "$EGREP"; then
6072 ac_path_EGREP_found
=false
6073 # Loop through the user's path and test for each of PROGNAME-LIST
6074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6075 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6078 test -z "$as_dir" && as_dir
=.
6079 for ac_prog
in egrep; do
6080 for ac_exec_ext
in '' $ac_executable_extensions; do
6081 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6083 # Check for GNU ac_path_EGREP and select it if it is found.
6084 # Check for GNU $ac_path_EGREP
6085 case `"$ac_path_EGREP" --version 2>&1` in
6087 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6090 $as_echo_n 0123456789 >"conftest.in"
6093 cat "conftest.in" "conftest.in" >"conftest.tmp"
6094 mv "conftest.tmp" "conftest.in"
6095 cp "conftest.in" "conftest.nl"
6096 $as_echo 'EGREP' >> "conftest.nl"
6097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6098 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6099 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6101 # Best one so far, save it but keep looking for a better one
6102 ac_cv_path_EGREP
="$ac_path_EGREP"
6103 ac_path_EGREP_max
=$ac_count
6105 # 10*(2^10) chars as input seems more than enough
6106 test $ac_count -gt 10 && break
6108 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6111 $ac_path_EGREP_found && break 3
6116 if test -z "$ac_cv_path_EGREP"; then
6117 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6120 ac_cv_path_EGREP
=$EGREP
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6126 $as_echo "$ac_cv_path_EGREP" >&6; }
6127 EGREP
="$ac_cv_path_EGREP"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6133 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6134 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6148 gl_cv_c_amsterdam_compiler
=yes
6150 gl_cv_c_amsterdam_compiler
=no
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6157 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6158 if test -z "$AR"; then
6159 if test $gl_cv_c_amsterdam_compiler = yes; then
6161 if test -z "$ARFLAGS"; then
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6167 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_AR+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$AR"; then
6174 ac_cv_prog_AR
="$AR" # Let the user override the test.
6176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir
=.
6181 for ac_exec_ext
in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 if test -n "$AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6196 $as_echo "$AR" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_AR"; then
6206 # Extract the first word of "ar", so it can be a program name with args.
6207 set dummy
ar; ac_word
=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_AR"; then
6214 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir
=.
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_AR
="ar"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6234 if test -n "$ac_ct_AR"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6236 $as_echo "$ac_ct_AR" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_AR" = x
; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned
=yes ;;
6257 if test -z "$ARFLAGS"; then
6262 if test -z "$ARFLAGS"; then
6268 if test -z "$RANLIB"; then
6269 if test $gl_cv_c_amsterdam_compiler = yes; then
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6274 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 if test -n "$RANLIB"; then
6281 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir
=.
6288 for ac_exec_ext
in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 RANLIB
=$ac_cv_prog_RANLIB
6301 if test -n "$RANLIB"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6303 $as_echo "$RANLIB" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6311 if test -z "$ac_cv_prog_RANLIB"; then
6312 ac_ct_RANLIB
=$RANLIB
6313 # Extract the first word of "ranlib", so it can be a program name with args.
6314 set dummy ranlib
; ac_word
=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$ac_ct_RANLIB"; then
6321 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir
=.
6328 for ac_exec_ext
in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6341 if test -n "$ac_ct_RANLIB"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6343 $as_echo "$ac_ct_RANLIB" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6349 if test "x$ac_ct_RANLIB" = x
; then
6352 case $cross_compiling:$ac_tool_warned in
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned
=yes ;;
6358 RANLIB
=$ac_ct_RANLIB
6361 RANLIB
="$ac_cv_prog_RANLIB"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6369 $as_echo_n "checking for ANSI C header files... " >&6; }
6370 if test "${ac_cv_header_stdc+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6388 if ac_fn_c_try_compile
"$LINENO"; then :
6389 ac_cv_header_stdc
=yes
6391 ac_cv_header_stdc
=no
6393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 if test $ac_cv_header_stdc = yes; then
6396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 $EGREP "memchr" >/dev
/null
2>&1; then :
6406 ac_cv_header_stdc
=no
6412 if test $ac_cv_header_stdc = yes; then
6413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420 $EGREP "free" >/dev
/null
2>&1; then :
6423 ac_cv_header_stdc
=no
6429 if test $ac_cv_header_stdc = yes; then
6430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6431 if test "$cross_compiling" = yes; then :
6434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6438 #if ((' ' & 0x0FF) == 0x020)
6439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6442 # define ISLOWER(c) \
6443 (('a' <= (c) && (c) <= 'i') \
6444 || ('j' <= (c) && (c) <= 'r') \
6445 || ('s' <= (c) && (c) <= 'z'))
6446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6454 for (i = 0; i < 256; i++)
6455 if (XOR (islower (i), ISLOWER (i))
6456 || toupper (i) != TOUPPER (i))
6461 if ac_fn_c_try_run
"$LINENO"; then :
6464 ac_cv_header_stdc
=no
6466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6473 $as_echo "$ac_cv_header_stdc" >&6; }
6474 if test $ac_cv_header_stdc = yes; then
6476 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6481 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6482 inttypes.h stdint.h unistd.h
6484 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6485 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6487 eval as_val
=\$
$as_ac_Header
6488 if test "x$as_val" = x
""yes; then :
6489 cat >>confdefs.h
<<_ACEOF
6490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6502 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6509 if test "$MINIX" = yes; then
6511 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6514 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6517 $as_echo "#define _MINIX 1" >>confdefs.h
6524 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6531 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6532 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6538 # define __EXTENSIONS__ 1
6539 $ac_includes_default
6548 if ac_fn_c_try_compile
"$LINENO"; then :
6549 ac_cv_safe_to_define___extensions__
=yes
6551 ac_cv_safe_to_define___extensions__
=no
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6556 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6557 test $ac_cv_safe_to_define___extensions__ = yes &&
6558 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6560 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6562 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6564 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6566 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6568 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6577 # Check whether --enable-largefile was given.
6578 if test "${enable_largefile+set}" = set; then :
6579 enableval
=$enable_largefile;
6582 if test "$enable_largefile" != no
; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6585 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6586 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6589 ac_cv_sys_largefile_CC
=no
6590 if test "$GCC" != yes; then
6593 # IRIX 6.2 and later do not support large files by default,
6594 # so use the C compiler's -n32 option if that helps.
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 /* Check that off_t can represent 2**63 - 1 correctly.
6599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6600 since some C++ compilers masquerading as C compilers
6601 incorrectly reject 9223372036854775807. */
6602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6604 && LARGE_OFF_T % 2147483647 == 1)
6614 if ac_fn_c_try_compile
"$LINENO"; then :
6617 rm -f core conftest.err conftest.
$ac_objext
6619 if ac_fn_c_try_compile
"$LINENO"; then :
6620 ac_cv_sys_largefile_CC
=' -n32'; break
6622 rm -f core conftest.err conftest.
$ac_objext
6626 rm -f conftest.
$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6630 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6631 if test "$ac_cv_sys_largefile_CC" != no
; then
6632 CC
=$CC$ac_cv_sys_largefile_CC
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6636 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6637 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 /* Check that off_t can represent 2**63 - 1 correctly.
6645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6646 since some C++ compilers masquerading as C compilers
6647 incorrectly reject 9223372036854775807. */
6648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6650 && LARGE_OFF_T % 2147483647 == 1)
6660 if ac_fn_c_try_compile
"$LINENO"; then :
6661 ac_cv_sys_file_offset_bits
=no
; break
6663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #define _FILE_OFFSET_BITS 64
6667 #include <sys/types.h>
6668 /* Check that off_t can represent 2**63 - 1 correctly.
6669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6670 since some C++ compilers masquerading as C compilers
6671 incorrectly reject 9223372036854775807. */
6672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6674 && LARGE_OFF_T % 2147483647 == 1)
6684 if ac_fn_c_try_compile
"$LINENO"; then :
6685 ac_cv_sys_file_offset_bits
=64; break
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6688 ac_cv_sys_file_offset_bits
=unknown
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6693 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6694 case $ac_cv_sys_file_offset_bits in #(
6697 cat >>confdefs.h
<<_ACEOF
6698 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6703 if test $ac_cv_sys_file_offset_bits = unknown
; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6705 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6706 if test "${ac_cv_sys_large_files+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 /* Check that off_t can represent 2**63 - 1 correctly.
6714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6715 since some C++ compilers masquerading as C compilers
6716 incorrectly reject 9223372036854775807. */
6717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6719 && LARGE_OFF_T % 2147483647 == 1)
6729 if ac_fn_c_try_compile
"$LINENO"; then :
6730 ac_cv_sys_large_files
=no
; break
6732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #define _LARGE_FILES 1
6736 #include <sys/types.h>
6737 /* Check that off_t can represent 2**63 - 1 correctly.
6738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6739 since some C++ compilers masquerading as C compilers
6740 incorrectly reject 9223372036854775807. */
6741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6743 && LARGE_OFF_T % 2147483647 == 1)
6753 if ac_fn_c_try_compile
"$LINENO"; then :
6754 ac_cv_sys_large_files
=1; break
6756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6757 ac_cv_sys_large_files
=unknown
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6762 $as_echo "$ac_cv_sys_large_files" >&6; }
6763 case $ac_cv_sys_large_files in #(
6766 cat >>confdefs.h
<<_ACEOF
6767 #define _LARGE_FILES $ac_cv_sys_large_files
6777 case $ac_cv_prog_cc_stdc in #(
6779 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6782 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6783 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6786 ac_cv_prog_cc_c99
=no
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6791 #include <stdbool.h>
6796 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6797 #define debug(...) fprintf (stderr, __VA_ARGS__)
6798 #define showlist(...) puts (#__VA_ARGS__)
6799 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6801 test_varargs_macros (void)
6806 debug ("X = %d\n", x);
6807 showlist (The first, second, and third items.);
6808 report (x>y, "x is %d but y is %d", x, y);
6811 // Check long long types.
6812 #define BIG64 18446744073709551615ull
6813 #define BIG32 4294967295ul
6814 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6816 your preprocessor is broken;
6820 your preprocessor is broken;
6822 static long long int bignum = -9223372036854775807LL;
6823 static unsigned long long int ubignum = BIG64;
6825 struct incomplete_array
6833 const wchar_t *name;
6837 typedef const char *ccp;
6840 test_restrict (ccp restrict text)
6842 // See if C++-style comments work.
6843 // Iterate through items via the restricted pointer.
6844 // Also check for declarations in for loops.
6845 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6850 // Check varargs and va_copy.
6852 test_varargs (const char *format, ...)
6855 va_start (args, format);
6857 va_copy (args_copy, args);
6868 str = va_arg (args_copy, const char *);
6871 number = va_arg (args_copy, int);
6874 fnumber = va_arg (args_copy, double);
6889 _Bool success = false;
6892 if (test_restrict ("String literal") == 0)
6894 char *restrict newvar = "Another string";
6897 test_varargs ("s, d' f .", "string", 65, 34.234);
6898 test_varargs_macros ();
6900 // Check flexible array members.
6901 struct incomplete_array *ia =
6902 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6904 for (int i = 0; i < ia->datasize; ++i)
6905 ia->data[i] = i * 1.234;
6907 // Check named initializers.
6908 struct named_init ni = {
6910 .name = L"Test wide string",
6911 .average = 543.34343,
6916 int dynamic_array[ni.number];
6917 dynamic_array[ni.number - 1] = 543;
6919 // work around unused variable warnings
6920 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6921 || dynamic_array[ni.number - 1] != 543);
6927 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6929 CC
="$ac_save_CC $ac_arg"
6930 if ac_fn_c_try_compile
"$LINENO"; then :
6931 ac_cv_prog_cc_c99
=$ac_arg
6933 rm -f core conftest.err conftest.
$ac_objext
6934 test "x$ac_cv_prog_cc_c99" != "xno" && break
6936 rm -f conftest.
$ac_ext
6941 case "x$ac_cv_prog_cc_c99" in
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944 $as_echo "none needed" >&6; } ;;
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6947 $as_echo "unsupported" >&6; } ;;
6949 CC
="$CC $ac_cv_prog_cc_c99"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6951 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6953 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6954 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6958 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 ac_cv_prog_cc_c89
=no
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6967 #include <sys/types.h>
6968 #include <sys/stat.h>
6969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6970 struct buf { int x; };
6971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6972 static char *e (p, i)
6978 static char *f (char * (*g) (char **, int), char **p, ...)
6983 s = g (p, va_arg (v,int));
6988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6989 function prototypes and stuff, but not '\xHH' hex character constants.
6990 These don't provoke an error unfortunately, instead are silently treated
6991 as 'x'. The following induces an error, until -std is added to get
6992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6993 array size at least. It's necessary to write '\x00'==0 to get something
6994 that's true only with -std. */
6995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6998 inside strings and character constants. */
7000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7002 int test (int i, double x);
7003 struct s1 {int (*f) (int a);};
7004 struct s2 {int (*f) (double a);};
7005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7016 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7019 CC
="$ac_save_CC $ac_arg"
7020 if ac_fn_c_try_compile
"$LINENO"; then :
7021 ac_cv_prog_cc_c89
=$ac_arg
7023 rm -f core conftest.err conftest.
$ac_objext
7024 test "x$ac_cv_prog_cc_c89" != "xno" && break
7026 rm -f conftest.
$ac_ext
7031 case "x$ac_cv_prog_cc_c89" in
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7034 $as_echo "none needed" >&6; } ;;
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7037 $as_echo "unsupported" >&6; } ;;
7039 CC
="$CC $ac_cv_prog_cc_c89"
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7043 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7044 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7046 ac_cv_prog_cc_stdc
=no
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7053 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7054 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7058 case $ac_cv_prog_cc_stdc in #(
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7061 $as_echo "unsupported" >&6; } ;; #(
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: $ac_cv_prog_cc_stdc" >&5
7067 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7072 # Code from module alloca-opt:
7073 # Code from module allocator:
7074 # Code from module careadlinkat:
7075 # Code from module crypto/md5:
7076 # Code from module crypto/sha1:
7077 # Code from module crypto/sha256:
7078 # Code from module crypto/sha512:
7079 # Code from module dosname:
7080 # Code from module dtoastr:
7081 # Code from module dup2:
7082 # Code from module extensions:
7084 # Code from module filemode:
7085 # Code from module getloadavg:
7086 # Code from module getopt-gnu:
7087 # Code from module getopt-posix:
7088 # Code from module gettext-h:
7089 # Code from module ignore-value:
7090 # Code from module include_next:
7091 # Code from module intprops:
7092 # Code from module inttypes-incomplete:
7093 # Code from module largefile:
7095 # Code from module lstat:
7096 # Code from module manywarnings:
7097 # Code from module mktime:
7098 # Code from module multiarch:
7101 # Code from module nocrash:
7102 # Code from module pathmax:
7103 # Code from module pthread_sigmask:
7104 >>>>>>> MERGE-SOURCE
7105 # Code from module readlink:
7108 # Code from module signal:
7109 # Code from module sigprocmask:
7110 # Code from module snippet/_Noreturn:
7111 # Code from module snippet/arg-nonnull:
7112 # Code from module snippet/c++defs:
7113 # Code from module snippet/warn-on-use:
7114 >>>>>>> MERGE-SOURCE
7115 # Code from module socklen:
7116 # Code from module ssize_t:
7117 # Code from module stat:
7118 # Code from module stdalign:
7119 # Code from module stdarg:
7123 # Code from module stdbool:
7124 # Code from module stddef:
7125 # Code from module stdint:
7126 # Code from module stdio:
7127 # Code from module stdlib:
7128 # Code from module strftime:
7129 # Code from module strtoull:
7130 # Code from module strtoumax:
7131 # Code from module symlink:
7132 # Code from module sys_stat:
7133 # Code from module sys_types:
7134 # Code from module time:
7135 # Code from module time_r:
7136 # Code from module u64:
7137 # Code from module unistd:
7138 # Code from module verify:
7139 # Code from module warnings:
7142 # Check whether --enable-gcc-warnings was given.
7143 if test "${enable_gcc_warnings+set}" = set; then :
7144 enableval=$enable_gcc_warnings; case $enableval in
7146 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7148 gl_gcc_warnings=$enableval
7155 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7156 # ------------------------------------------------
7157 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7158 # Otherwise, run RUN-IF-NOT-FOUND.
7161 # When compiling with GCC, prefer -isystem to -I when including system
7162 # include files, to avoid generating useless diagnostics for the files.
7163 if test "$gl_gcc_warnings" != yes; then
7168 # This, $nw, is the list of warnings we disable.
7171 case $with_x_toolkit in
7172 lucid | athena | motif)
7173 # Old toolkits mishandle 'const'.
7174 nw="$nw -Wwrite-strings"
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7178 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7179 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7183 gl_save_compiler_FLAGS="$CFLAGS"
7184 as_fn_append CFLAGS " -Werror"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 gl_cv_warn_c__Werror=yes
7199 gl_cv_warn_c__Werror=no
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 CFLAGS="$gl_save_compiler_FLAGS"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7206 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7207 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7208 as_fn_append WERROR_CFLAGS " -Werror"
7216 nw="$nw -Waggregate-return" # anachronistic
7217 nw="$nw -Wlong-long" # C90 is anachronistic
7218 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7219 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7220 nw="$nw -Wtraditional" # Warns on #elif which we use often
7221 nw="$nw -Wcast-qual" # Too many warnings for now
7222 nw="$nw -Wconversion" # Too many warnings for now
7223 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7224 nw="$nw -Wsign-conversion" # Too many warnings for now
7225 nw="$nw -Woverlength-strings" # Not a problem these days
7226 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7227 nw="$nw -Wpadded" # Our structs are not padded
7228 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7229 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7230 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7231 nw="$nw -Wvla" # warnings in gettext.h
7232 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7233 nw="$nw -Wswitch-enum" # Too many warnings for now
7234 nw="$nw -Wswitch-default" # Too many warnings for now
7235 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7236 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7238 # Emacs doesn't care about shadowing; see
7239 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7242 # The following lines should be removable at some point.
7243 nw="$nw -Wstack-protector"
7244 nw="$nw -Wstrict-overflow"
7245 nw="$nw -Wsuggest-attribute=const"
7246 nw="$nw -Wsuggest-attribute=pure"
7250 if test -n "$GCC"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7253 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7254 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7258 gl_save_CFLAGS="$CFLAGS"
7259 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7271 if ac_fn_c_try_compile "$LINENO"; then :
7272 gl_cv_cc_nomfi_supported=yes
7274 gl_cv_cc_nomfi_supported=no
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 CFLAGS="$gl_save_CFLAGS"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7281 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7283 if test "$gl_cv_cc_nomfi_supported" = yes; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7285 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7286 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7290 gl_save_CFLAGS="$CFLAGS"
7291 CFLAGS="$CFLAGS -W -Werror"
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7296 typedef struct { int a; int b; } s_t;
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 gl_cv_cc_nomfi_needed=no
7311 gl_cv_cc_nomfi_needed=yes
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 CFLAGS="$gl_save_CFLAGS"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7319 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7324 for gl_manywarn_item in \
7328 -Wformat-nonliteral \
7331 -Wmissing-include-dirs \
7341 -Wtraditional-conversion \
7342 -Wdeclaration-after-statement \
7345 -Wunsafe-loop-optimizations \
7347 -Wbad-function-cast \
7355 -Waggregate-return \
7356 -Wstrict-prototypes \
7357 -Wold-style-definition \
7358 -Wmissing-prototypes \
7359 -Wmissing-declarations \
7360 -Wmissing-noreturn \
7361 -Wmissing-format-attribute \
7366 -Wunreachable-code \
7371 -Wvolatile-register-var \
7372 -Wdisabled-optimization \
7374 -Woverlength-strings \
7375 -Wbuiltin-macro-redefined \
7377 -Wpacked-bitfield-compat \
7380 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7382 # The following are not documented in the manual but are included in
7383 # output from gcc --help=warnings.
7384 for gl_manywarn_item in \
7386 -Wcoverage-mismatch \
7389 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7391 # More warnings from gcc 4.6.2 --help=warnings.
7392 for gl_manywarn_item in \
7396 -Wdeprecated-declarations \
7398 -Wdouble-promotion \
7401 -Wformat-contains-nul \
7402 -Wformat-extra-args \
7403 -Wformat-zero-length \
7408 -Wpointer-to-int-cast \
7410 -Wsuggest-attribute=const \
7411 -Wsuggest-attribute=noreturn \
7412 -Wsuggest-attribute=pure \
7415 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7418 # Disable the missing-field-initializers warning if needed
7419 if test "$gl_cv_cc_nomfi_needed" = yes; then
7420 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7431 *" $gl_warn_item "*)
7434 gl_warn_set="$gl_warn_set $gl_warn_item"
7441 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7443 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7444 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 as_fn_append CFLAGS " $w"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 eval "$as_gl_Warn=yes"
7464 eval "$as_gl_Warn=no"
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7470 eval ac_res=\$$as_gl_Warn
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7472 $as_echo "$ac_res" >&6; }
7473 eval as_val=\$$as_gl_Warn
7474 if test "x$as_val" = x""yes; then :
7475 as_fn_append WARN_CFLAGS " $w"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7481 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7482 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7486 gl_save_compiler_FLAGS="$CFLAGS"
7487 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 gl_cv_warn_c__Wno_missing_field_initializers=yes
7502 gl_cv_warn_c__Wno_missing_field_initializers=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 CFLAGS="$gl_save_compiler_FLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7509 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7510 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7511 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7516 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7517 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7521 gl_save_compiler_FLAGS="$CFLAGS"
7522 as_fn_append CFLAGS " -Wno-sign-compare"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_warn_c__Wno_sign_compare=yes
7537 gl_cv_warn_c__Wno_sign_compare=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 CFLAGS="$gl_save_compiler_FLAGS"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7544 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7545 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7546 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7549 # Too many warnings for now
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7551 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7552 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7556 gl_save_compiler_FLAGS="$CFLAGS"
7557 as_fn_append CFLAGS " -Wno-type-limits"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 gl_cv_warn_c__Wno_type_limits=yes
7572 gl_cv_warn_c__Wno_type_limits=no
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 CFLAGS="$gl_save_compiler_FLAGS"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7579 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7580 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7581 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7584 # Too many warnings for now
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7586 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7587 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7591 gl_save_compiler_FLAGS="$CFLAGS"
7592 as_fn_append CFLAGS " -Wno-switch"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 gl_cv_warn_c__Wno_switch=yes
7607 gl_cv_warn_c__Wno_switch=no
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 CFLAGS="$gl_save_compiler_FLAGS"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7614 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7615 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7616 as_fn_append WARN_CFLAGS " -Wno-switch"
7619 # Too many warnings for now
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " -Wno-unused-parameter"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gl_cv_warn_c__Wno_unused_parameter=yes
7642 gl_cv_warn_c__Wno_unused_parameter=no
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 CFLAGS="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7651 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7654 # Too many warnings for now
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7656 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7657 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7661 gl_save_compiler_FLAGS="$CFLAGS"
7662 as_fn_append CFLAGS " -Wno-format-nonliteral"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 gl_cv_warn_c__Wno_format_nonliteral=yes
7677 gl_cv_warn_c__Wno_format_nonliteral=no
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 CFLAGS="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7684 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7685 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7686 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7691 # In spite of excluding -Wlogical-op above, it is enabled, as of
7692 # gcc 4.5.0 20090517.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7699 gl_save_compiler_FLAGS="$CFLAGS"
7700 as_fn_append CFLAGS " -Wno-logical-op"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 gl_cv_warn_c__Wno_logical_op=yes
7715 gl_cv_warn_c__Wno_logical_op=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 CFLAGS="$gl_save_compiler_FLAGS"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7724 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7730 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7731 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7735 gl_save_compiler_FLAGS="$CFLAGS"
7736 as_fn_append CFLAGS " -fdiagnostics-show-option"
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 gl_cv_warn_c__fdiagnostics_show_option=yes
7751 gl_cv_warn_c__fdiagnostics_show_option=no
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 CFLAGS="$gl_save_compiler_FLAGS"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7758 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7759 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7760 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7765 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7766 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7770 gl_save_compiler_FLAGS="$CFLAGS"
7771 as_fn_append CFLAGS " -funit-at-a-time"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 gl_cv_warn_c__funit_at_a_time=yes
7786 gl_cv_warn_c__funit_at_a_time=no
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 CFLAGS="$gl_save_compiler_FLAGS"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7793 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7794 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7795 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7801 $as_echo "#define lint 1" >>confdefs.h
7804 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7807 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7810 # We use a slightly smaller set of warning options for lib/.
7811 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7813 nw="$nw -Wunused-macros"
7817 set x $WARN_CFLAGS; shift
7821 *" $gl_warn_item "*)
7824 gl_warn_set="$gl_warn_set $gl_warn_item"
7828 GNULIB_WARN_CFLAGS=$gl_warn_set
7836 # Extract the first word of "install-info", so it can be a program name with args.
7837 set dummy install-info; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7843 case $INSTALL_INFO in
7845 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7867 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7868 if test -n "$INSTALL_INFO"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7870 $as_echo "$INSTALL_INFO" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7877 # Extract the first word of "gzip", so it can be a program name with args.
7878 set dummy gzip; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7886 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 GZIP_PROG=$ac_cv_path_GZIP_PROG
7908 if test -n "$GZIP_PROG"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7910 $as_echo "$GZIP_PROG" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7919 ## Need makeinfo >= 4.7 (?) to build the manuals.
7920 # Extract the first word of "makeinfo", so it can be a program name with args.
7921 set dummy makeinfo; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7929 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7951 MAKEINFO=$ac_cv_path_MAKEINFO
7952 if test -n "$MAKEINFO"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7954 $as_echo "$MAKEINFO" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7961 if test "$MAKEINFO" != "no" && \
7962 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
7966 ## Makeinfo is unusual. For a released Emacs, the manuals are
7967 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7968 ## therefore in the category of "special tools" not normally required, which
7969 ## configure does not have to check for (eg autoconf itself).
7970 ## In a Bazaar checkout on the other hand, the manuals are not included.
7971 ## So makeinfo is a requirement to build from Bazaar, and configure
7972 ## should test for it as it does for any other build requirement.
7973 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7974 ## with pre-built manuals, from a Bazaar checkout.
7977 if test "$MAKEINFO" = "no"; then
7979 if test "x${with_makeinfo}" = "xno"; then
7981 elif test ! -e $srcdir/info/emacs; then
7982 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7983 source tree does not seem to have pre-built manuals in the \`info' directory.
7984 Either install a suitable version of makeinfo, or re-run configure
7985 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7991 INFO_OPTS=--no-split
7996 if test x$GCC = xyes; then
7997 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7998 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8000 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8001 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8005 late_LDFLAGS=$LDFLAGS
8006 if test x$GCC = xyes; then
8007 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8009 LDFLAGS="$LDFLAGS -znocombreloc"
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8013 $as_echo_n "checking for -znocombreloc... " >&6; }
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8025 if ac_fn_c_try_link "$LINENO"; then :
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8027 $as_echo "yes" >&6; }
8029 LDFLAGS=$late_LDFLAGS
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8037 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8039 your-opsys-here) CANNOT_DUMP=yes ;;
8042 test "$CANNOT_DUMP" = "yes" && \
8044 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8050 UNEXEC_OBJ=unexelf.o
8052 # MSDOS uses unexcoff.o
8053 # MSWindows uses unexw32.o
8055 UNEXEC_OBJ=unexaix.o
8061 UNEXEC_OBJ=unexmacosx.o
8064 UNEXEC_OBJ=unexhp9k800.o
8067 # Use the Solaris dldump() function, called from unexsol.c, to dump
8068 # emacs, instead of the generic ELF dump code found in unexelf.c.
8069 # The resulting binary has a complete symbol table, and is better
8070 # for debugging and other observability tools (debuggers, pstack, etc).
8072 # If you encounter a problem using dldump(), please consider sending
8073 # a message to the OpenSolaris tools-linking mailing list:
8074 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8076 # It is likely that dldump() works with older Solaris too, but this has
8077 # not been tested, so for now this change is for Solaris 10 or newer.
8078 UNEXEC_OBJ=unexsol.o
8085 ## Let `ld' find image libs and similar things in /usr/local/lib.
8086 ## The system compiler, GCC, has apparently been modified to not
8087 ## look there, contrary to what a stock GCC would do.
8088 ### It's not our place to do this. See bug#10313#17.
8089 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8094 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8095 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8099 ### It's not our place to do this. See bug#10313#17.
8100 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8105 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8106 ## otherwise Emacs dumps core on elf systems.
8107 LD_SWITCH_SYSTEM="-Z"
8112 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8114 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8115 ## which has not been defined yet. When this was handled with cpp,
8116 ## it was expanded to null when configure sourced the s/*.h file.
8117 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8118 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8119 ## (or somesuch), but because it is supposed to go at the _front_
8120 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8121 ## Compare with the gnu-linux case below, which added to the end
8122 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8123 ## LD_SWITCH_SYSTEM_TEMACS.
8126 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8133 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8134 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8138 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8139 ## With ELF, make sure that all common symbols get allocated to in the
8140 ## data section. Otherwise, the dump of temacs may miss variables in
8141 ## the shared library that have been initialized. For example, with
8142 ## GNU libc, __malloc_initialized would normally be resolved to the
8143 ## shared library's .bss section, which is fatal.
8144 if test "x$GCC" = "xyes"; then
8145 C_SWITCH_MACHINE="-fno-common"
8147 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8150 UNEXEC_OBJ=unexalpha.o
8159 ## Some programs in src produce warnings saying certain subprograms
8160 ## are too complex and need a MAXMEM value greater than 2000 for
8161 ## additional optimization. --nils@exp-math.uni-essen.de
8162 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8163 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8164 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8165 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8171 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8172 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8174 freebsd) LIBS_SYSTEM="-lutil" ;;
8176 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8178 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8180 ## Motif needs -lgen.
8181 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8186 ### Make sure subsequent tests use flags consistent with the build flags.
8188 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8189 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8191 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8194 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8198 ## If user specified a crt-dir, use that unconditionally.
8199 if test "X$CRT_DIR" = "X"; then
8201 case "$canonical" in
8202 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8203 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8204 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8205 ## For anything else (eg /usr/lib32), it is up the user to specify
8206 ## the location (bug#5655).
8207 ## Test for crtn.o, not just the directory, because sometimes the
8208 ## directory exists but does not have the relevant files (bug#1287).
8209 ## FIXME better to test for binary compatibility somehow.
8210 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8213 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8217 hpux10-20) CRT_DIR=/lib ;;
8220 ## Default is /usr/lib.
8221 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8223 ## If we're using gcc, try to determine it automatically by asking
8224 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8225 ## system-dependent default from above.]
8226 if test "x${GCC}" = xyes; then
8227 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8230 CRT_DIR=`$as_dirname -- "$crt_file" ||
8231 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8232 X"$crt_file" : 'X\(//\)[^/]' \| \
8233 X"$crt_file" : 'X\(//\)$' \| \
8234 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8235 $as_echo X"$crt_file" |
8236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8259 ## Some platforms don't use any of these files, so it is not
8260 ## appropriate to put this test outside the if block.
8261 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8262 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8275 START_FILES='pre-crt0.o'
8278 ## Adding -lm confuses the dynamic linker, so omit it.
8280 START_FILES='pre-crt0.o'
8283 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8284 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8286 gnu-linux | gnu-kfreebsd )
8287 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8288 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8290 hpux10-20 | hpux11 )
8292 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8295 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8296 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8307 for file in x $LIB_STANDARD $START_FILES; do
8309 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8313 if test "x$crt_files" != x; then
8315 ## If user specified a crt-dir, use that unconditionally.
8318 if test "X$CRT_DIR" = "X"; then
8320 CRT_DIR=/usr/lib # default
8322 case "$canonical" in
8323 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8324 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8325 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8326 ## For anything else (eg /usr/lib32), it is up the user to specify
8327 ## the location (bug#5655).
8328 ## Test for crtn.o, not just the directory, because sometimes the
8329 ## directory exists but does not have the relevant files (bug#1287).
8330 ## FIXME better to test for binary compatibility somehow.
8331 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8334 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8338 hpux10-20) CRT_DIR=/lib ;;
8341 test "x${GCC}" = xyes && crt_gcc=yes
8347 for file in $crt_files; do
8349 ## If we're using gcc, try to determine it automatically by asking
8350 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8351 ## system-dependent default from above.]
8352 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8354 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8357 CRT_DIR=`$as_dirname -- "$crt_file" ||
8358 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8359 X"$crt_file" : 'X\(//\)[^/]' \| \
8360 X"$crt_file" : 'X\(//\)$' \| \
8361 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8362 $as_echo X"$crt_file" |
8363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8386 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8389 test "x$crt_missing" = x || \
8390 as_fn_error "Required file(s) not found:$crt_missing
8391 Try using the --with-crt-dir option." "$LINENO" 5
8393 fi # crt_files != ""
8399 if test -f $CRT_DIR/crti.o; then
8401 test -f $CRT_DIR/crtn.o || \
8402 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8404 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8405 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8412 >>>>>>> MERGE-SOURCE
8414 # Extract the first word of "pkg-config", so it can be a program name with args.
8415 set dummy pkg-config; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8446 if test -n "$PKG_CONFIG"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8448 $as_echo "$PKG_CONFIG" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8456 >>>>>>> MERGE-SOURCE
8460 if test "${with_sound}" != "no"; then
8461 # Sound support for GNU/Linux and the free BSDs.
8462 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8466 eval as_val=\$$as_ac_Header
8467 if test "x$as_val" = x""yes; then :
8468 cat >>confdefs.h <<_ACEOF
8469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471 have_sound_header=yes
8476 # Emulation library used on NetBSD.
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8478 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8479 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8482 ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lossaudio $LIBS"
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8497 return _oss_ioctl ();
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 ac_cv_lib_ossaudio__oss_ioctl=yes
8505 ac_cv_lib_ossaudio__oss_ioctl=no
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8512 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8513 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8522 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8526 if test "$PKG_CONFIG" = "no" ; then
8529 PKG_CONFIG_MIN_VERSION=0.9.0
8530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8532 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8534 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8535 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8536 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8543 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8544 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8546 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8553 ## If we have a custom action on failure, don't print errors, but
8554 ## do set a variable so people can do so.
8555 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8567 if test $succeeded = yes; then
8573 if test $HAVE_ALSA = yes; then
8574 SAVE_CFLAGS="$CFLAGS"
8575 SAVE_LDFLAGS="$LDFLAGS"
8576 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8577 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <asoundlib.h>
8584 snd_lib_error_set_handler (0);
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 emacs_alsa_normal=yes
8592 emacs_alsa_normal=no
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 if test "$emacs_alsa_normal" != yes; then
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598 #include <alsa/asoundlib.h>
8602 snd_lib_error_set_handler (0);
8607 if ac_fn_c_try_compile "$LINENO"; then :
8608 emacs_alsa_subdir=yes
8610 emacs_alsa_subdir=no
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 if test "$emacs_alsa_subdir" != yes; then
8614 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8616 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8619 CFLAGS="$SAVE_CFLAGS"
8620 LDFLAGS="$SAVE_LDFLAGS"
8621 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8622 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8624 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8628 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8630 gnu-linux|freebsd|netbsd)
8632 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8644 for ac_header in $ac_header_list
8646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8649 eval as_val=\$$as_ac_Header
8650 if test "x$as_val" = x""yes; then :
8651 cat >>confdefs.h <<_ACEOF
8652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8694 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/personality.h>
8701 personality (PER_LINUX32)
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 emacs_cv_personality_linux32=yes
8709 emacs_cv_personality_linux32=no
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8713 $as_echo "$emacs_cv_personality_linux32" >&6; }
8715 if test $emacs_cv_personality_linux32 = yes; then
8717 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8721 for ac_header in term.h
8723 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8724 if test "x$ac_cv_header_term_h" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_TERM_H 1
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8734 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8735 if test "${ac_cv_header_time+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <sys/types.h>
8741 #include <sys/time.h>
8747 if ((struct tm *) 0)
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 ac_cv_header_time=yes
8756 ac_cv_header_time=no
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8761 $as_echo "$ac_cv_header_time" >&6; }
8762 if test $ac_cv_header_time = yes; then
8764 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8768 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8769 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8779 if test $ac_cv_have_decl_sys_siglist != yes; then
8780 # For Tru64, at least:
8781 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8782 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8792 if test $ac_cv_have_decl___sys_siglist = yes; then
8794 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8799 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8800 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 #include <sys/types.h>
8806 #include <sys/wait.h>
8808 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8811 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8819 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 ac_cv_header_sys_wait_h=yes
8827 ac_cv_header_sys_wait_h=no
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8832 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8833 if test $ac_cv_header_sys_wait_h = yes; then
8835 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8841 $as_echo_n "checking for struct utimbuf... " >&6; }
8842 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #ifdef TIME_WITH_SYS_TIME
8848 #include <sys/time.h>
8851 #ifdef HAVE_SYS_TIME_H
8852 #include <sys/time.h>
8863 static struct utimbuf x; x.actime = x.modtime;
8868 if ac_fn_c_try_compile "$LINENO"; then :
8869 emacs_cv_struct_utimbuf=yes
8871 emacs_cv_struct_utimbuf=no
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8876 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8877 if test $emacs_cv_struct_utimbuf = yes; then
8879 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8884 $as_echo_n "checking for speed_t... " >&6; }
8885 if test "${emacs_cv_speed_t+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 #include <termios.h>
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 emacs_cv_speed_t=yes
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8907 $as_echo "$emacs_cv_speed_t" >&6; }
8908 if test $emacs_cv_speed_t = yes; then
8910 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8915 $as_echo_n "checking for struct timeval... " >&6; }
8916 if test "${emacs_cv_struct_timeval+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #ifdef TIME_WITH_SYS_TIME
8922 #include <sys/time.h>
8925 #ifdef HAVE_SYS_TIME_H
8926 #include <sys/time.h>
8934 static struct timeval x; x.tv_sec = x.tv_usec;
8939 if ac_fn_c_try_compile "$LINENO"; then :
8940 emacs_cv_struct_timeval=yes
8942 emacs_cv_struct_timeval=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8947 $as_echo "$emacs_cv_struct_timeval" >&6; }
8948 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8949 if test $emacs_cv_struct_timeval = yes; then
8951 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8956 $as_echo_n "checking for struct exception... " >&6; }
8957 if test "${emacs_cv_struct_exception+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8966 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 emacs_cv_struct_exception=yes
8974 emacs_cv_struct_exception=no
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8979 $as_echo "$emacs_cv_struct_exception" >&6; }
8980 HAVE_EXCEPTION=$emacs_cv_struct_exception
8981 if test $emacs_cv_struct_exception != yes; then
8983 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8990 for ac_header in sys/socket.h
8992 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8993 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8994 cat >>confdefs.h <<_ACEOF
8995 #define HAVE_SYS_SOCKET_H 1
9004 >>>>>>> MERGE-SOURCE
9006 >>>>>>> MERGE-SOURCE
9007 for ac_header in net/if.h
9009 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9010 #if HAVE_SYS_SOCKET_H
9011 #include <sys/socket.h>
9014 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_NET_IF_H 1
9025 for ac_header in ifaddrs.h
9027 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9028 #if HAVE_SYS_SOCKET_H
9029 #include <sys/socket.h>
9032 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_IFADDRS_H 1
9041 for ac_header in net/if_dl.h
9043 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9044 #if HAVE_SYS_SOCKET_H
9045 #include <sys/socket.h>
9048 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_NET_IF_DL_H 1
9057 for ac_func in getifaddrs freeifaddrs
9059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9061 eval as_val=\$$as_ac_var
9062 if test "x$as_val" = x""yes; then :
9063 cat >>confdefs.h <<_ACEOF
9064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9070 >>>>>>> MERGE-SOURCE
9072 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9073 #if HAVE_SYS_SOCKET_H
9074 #include <sys/socket.h>
9080 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9088 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9089 #if HAVE_SYS_SOCKET_H
9090 #include <sys/socket.h>
9096 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9104 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9105 #if HAVE_SYS_SOCKET_H
9106 #include <sys/socket.h>
9112 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9120 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9121 #if HAVE_SYS_SOCKET_H
9122 #include <sys/socket.h>
9128 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9136 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9137 #if HAVE_SYS_SOCKET_H
9138 #include <sys/socket.h>
9144 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9154 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9155 #if HAVE_SYS_SOCKET_H
9156 #include <sys/socket.h>
9162 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9170 >>>>>>> MERGE-SOURCE
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9175 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9176 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 char __attribute__ ((__aligned__ (1 << 3))) c;
9190 if ac_fn_c_try_compile "$LINENO"; then :
9191 emacs_cv_attribute_aligned=yes
9193 emacs_cv_attribute_aligned=no
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9198 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9199 if test $emacs_cv_attribute_aligned = yes; then
9201 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9209 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9211 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9213 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9214 if test "x$testval" != x; then
9217 ac_enable_autodepend=no
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9220 $as_echo "$HAVE_GNU_MAKE" >&6; }
9221 if test $HAVE_GNU_MAKE = yes; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9223 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9224 SAVE_CFLAGS="$CFLAGS"
9225 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9237 if ac_fn_c_try_compile "$LINENO"; then :
9240 ac_enable_autodepend=no
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243 CFLAGS="$SAVE_CFLAGS"
9244 test -f deps.d || ac_enable_autodepend=no
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9247 $as_echo "$ac_enable_autodepend" >&6; }
9249 if test $ac_enable_autodepend = yes; then
9250 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9251 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9252 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9253 deps_frag=autodeps.mk
9256 deps_frag=$srcdir/src/$deps_frag
9262 lisp_frag=$srcdir/src/lisp.mk
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9267 $as_echo_n "checking for long file names... " >&6; }
9268 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9271 ac_cv_sys_long_file_names=yes
9272 # Test for long file names in all the places we know might matter:
9273 # . the current directory, where building will happen
9274 # $prefix/lib where we will be installing things
9275 # $exec_prefix/lib likewise
9276 # $TMPDIR if set, where it might want to write temporary files
9277 # /tmp where it might want to write temporary files
9280 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9281 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9282 # in the usual case where exec_prefix is '${prefix}'.
9284 . | /* | ?:[\\/]*) ;; #(
9287 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9288 ac_xdir=$ac_dir/cf$$
9289 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9290 ac_tf1=$ac_xdir/conftest9012345
9291 ac_tf2=$ac_xdir/conftest9012346
9292 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9293 ac_cv_sys_long_file_names=no
9294 rm -f -r "$ac_xdir" 2>/dev/null
9295 test $ac_cv_sys_long_file_names = no && break
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9299 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9300 if test $ac_cv_sys_long_file_names = yes; then
9302 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9307 #### Choose a window system.
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9310 $as_echo_n "checking for X... " >&6; }
9313 # Check whether --with-x was given.
9314 if test "${with_x+set}" = set; then :
9318 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9319 if test "x$with_x" = xno; then
9320 # The user explicitly disabled X.
9323 case $x_includes,$x_libraries in #(
9324 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9325 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9328 # One or both of the vars are not set, and there is no cached value.
9329 ac_x_includes=no ac_x_libraries=no
9330 rm -f -r conftest.dir
9331 if mkdir conftest.dir; then
9333 cat >Imakefile <<'_ACEOF'
9335 @echo incroot='${INCROOT}'
9337 @echo usrlibdir='${USRLIBDIR}'
9339 @echo libdir='${LIBDIR}'
9341 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9343 for ac_var in incroot usrlibdir libdir; do
9344 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9346 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9347 for ac_extension in a so sl dylib la dll; do
9348 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9349 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9350 ac_im_usrlibdir=$ac_im_libdir; break
9353 # Screen out bogus values from the imake configuration. They are
9354 # bogus both because they are the default anyway, and because
9355 # using them would break gcc on systems where it needs fixed includes.
9356 case $ac_im_incroot in
9357 /usr/include) ac_x_includes= ;;
9358 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9360 case $ac_im_usrlibdir in
9361 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9362 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9366 rm -f -r conftest.dir
9369 # Standard set of common directories for X headers.
9370 # Check X11 before X11Rn because it is often a symlink to the current release.
9384 /usr/local/X11/include
9385 /usr/local/X11R7/include
9386 /usr/local/X11R6/include
9387 /usr/local/X11R5/include
9388 /usr/local/X11R4/include
9390 /usr/local/include/X11
9391 /usr/local/include/X11R7
9392 /usr/local/include/X11R6
9393 /usr/local/include/X11R5
9394 /usr/local/include/X11R4
9398 /usr/XFree86/include/X11
9402 /usr/unsupported/include
9404 /usr/local/x11r5/include
9405 /usr/lpp/Xamples/include
9407 /usr/openwin/include
9408 /usr/openwin/share/include'
9410 if test "$ac_x_includes" = no; then
9411 # Guess where to find include files, by looking for Xlib.h.
9412 # First, try using that file with no special directory specified.
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 #include <X11/Xlib.h>
9417 if ac_fn_c_try_cpp "$LINENO"; then :
9418 # We can compile using X headers with no special include directory.
9421 for ac_dir in $ac_x_header_dirs; do
9422 if test -r "$ac_dir/X11/Xlib.h"; then
9423 ac_x_includes=$ac_dir
9428 rm -f conftest.err conftest.$ac_ext
9429 fi # $ac_x_includes = no
9431 if test "$ac_x_libraries" = no; then
9432 # Check for the libraries.
9433 # See if we find them without any special options.
9434 # Don't add to $LIBS permanently.
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 #include <X11/Xlib.h>
9448 if ac_fn_c_try_link "$LINENO"; then :
9450 # We can link X programs with no special library path.
9454 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9456 # Don't even attempt the hair of trying to link an X program!
9457 for ac_extension in a so sl dylib la dll; do
9458 if test -r "$ac_dir/libX11.$ac_extension"; then
9459 ac_x_libraries=$ac_dir
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 fi # $ac_x_libraries = no
9469 case $ac_x_includes,$ac_x_libraries in #(
9471 # Didn't find X, or a directory has "'" in its name.
9472 ac_cv_have_x="have_x=no";; #(
9474 # Record where we found X for the cache.
9475 ac_cv_have_x="have_x=yes\
9476 ac_x_includes='$ac_x_includes'\
9477 ac_x_libraries='$ac_x_libraries'"
9483 eval "$ac_cv_have_x"
9486 if test "$have_x" != yes; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9488 $as_echo "$have_x" >&6; }
9491 # If each of the values was on the command line, it overrides each guess.
9492 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9493 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9494 # Update the cache value to reflect the command line values.
9495 ac_cv_have_x="have_x=yes\
9496 ac_x_includes='$x_includes'\
9497 ac_x_libraries='$x_libraries'"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9499 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9502 if test "$no_x" = yes; then
9508 LD_SWITCH_X_SITE_RPATH=
9509 if test "${x_libraries}" != NONE; then
9510 if test -n "${x_libraries}"; then
9511 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9512 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9514 x_default_search_path=""
9515 x_search_path=${x_libraries}
9516 if test -z "${x_search_path}"; then
9517 x_search_path=/usr/lib
9519 for x_library in `echo ${x_search_path}: | \
9520 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9522 ${x_library}/X11/%L/%T/%N%C%S:\
9523 ${x_library}/X11/%l/%T/%N%C%S:\
9524 ${x_library}/X11/%T/%N%C%S:\
9525 ${x_library}/X11/%L/%T/%N%S:\
9526 ${x_library}/X11/%l/%T/%N%S:\
9527 ${x_library}/X11/%T/%N%S"
9528 if test x"${x_default_search_path}" = x; then
9529 x_default_search_path=${x_search_path}
9531 x_default_search_path="${x_search_path}:${x_default_search_path}"
9537 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9538 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9541 if test x"${x_includes}" = x; then
9542 bitmapdir=/usr/include/X11/bitmaps
9544 # accumulate include directories that have X11 bitmap subdirectories
9546 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9547 if test -d "${bmd}/X11/bitmaps"; then
9548 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9550 if test -d "${bmd}/bitmaps"; then
9551 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9554 if test ${bmd_acc} != "dummyval"; then
9555 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9562 tmp_CPPFLAGS="$CPPFLAGS"
9563 tmp_CFLAGS="$CFLAGS"
9564 CPPFLAGS="$CPPFLAGS -x objective-c"
9565 CFLAGS="$CFLAGS -x objective-c"
9566 TEMACS_LDFLAGS2="\${LDFLAGS}"
9568 if test "${with_ns}" != no; then
9569 if test "${opsys}" = darwin; then
9571 ns_appdir=`pwd`/nextstep/Emacs.app
9572 ns_appbindir=${ns_appdir}/Contents/MacOS
9573 ns_appresdir=${ns_appdir}/Contents/Resources
9574 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9575 elif test -f $GNUSTEP_CONFIG_FILE; then
9577 ns_appdir=`pwd`/nextstep/Emacs.app
9578 ns_appbindir=${ns_appdir}
9579 ns_appresdir=${ns_appdir}/Resources
9580 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9581 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9582 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9583 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9584 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9585 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9586 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9587 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9588 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9589 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9590 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9591 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9596 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9597 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <GNUstepBase/GSConfig.h>
9606 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9615 if ac_fn_c_try_compile "$LINENO"; then :
9616 emacs_cv_objc_exceptions=yes
9618 emacs_cv_objc_exceptions=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9623 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9624 if test $emacs_cv_objc_exceptions = yes; then
9626 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9628 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9632 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9634 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9635 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9638 as_fn_error "\`--with-ns' was specified, but the include
9639 files are missing or cannot be compiled." "$LINENO" 5
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <Foundation/NSObjCRuntime.h>
9654 if ac_fn_c_try_compile "$LINENO"; then :
9655 ns_have_nsinteger=yes
9657 ns_have_nsinteger=no
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 if test $ns_have_nsinteger = yes; then
9662 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9668 INSTALL_ARCH_INDEP_EXTRA=install-etc
9669 ns_self_contained=no
9673 if test "${HAVE_NS}" = yes; then
9674 if test "$with_toolkit_scroll_bars" = "no"; then
9675 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9678 window_system=nextstep
9680 # set up packaging dirs
9681 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9682 ns_self_contained=yes
9683 prefix=${ns_appresdir}
9684 exec_prefix=${ns_appbindir}
9685 libexecdir="\${ns_appbindir}/libexec"
9686 archlibdir="\${ns_appbindir}/libexec"
9687 docdir="\${ns_appresdir}/etc"
9688 etcdir="\${ns_appresdir}/etc"
9689 infodir="\${ns_appresdir}/info"
9690 mandir="\${ns_appresdir}/man"
9691 lispdir="\${ns_appresdir}/lisp"
9692 leimdir="\${ns_appresdir}/leim"
9693 INSTALL_ARCH_INDEP_EXTRA=
9695 ns_frag=$srcdir/src/ns.mk
9696 NS_OBJ="fontset.o fringe.o image.o"
9697 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9699 CFLAGS="$tmp_CFLAGS"
9700 CPPFLAGS="$tmp_CPPFLAGS"
9708 case "${window_system}" in
9712 case "${with_x_toolkit}" in
9713 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9714 motif ) USE_X_TOOLKIT=MOTIF ;;
9716 USE_X_TOOLKIT=none ;;
9717 gtk3 ) with_gtk3=yes
9718 USE_X_TOOLKIT=none ;;
9719 no ) USE_X_TOOLKIT=none ;;
9720 * ) USE_X_TOOLKIT=maybe ;;
9730 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9731 # Extract the first word of "X", so it can be a program name with args.
9732 set dummy X; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9738 if test -n "$HAVE_XSERVER"; then
9739 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_HAVE_XSERVER="true"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9759 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9760 if test -n "$HAVE_XSERVER"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9762 $as_echo "$HAVE_XSERVER" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9769 if test "$HAVE_XSERVER" = true ||
9770 test -n "$DISPLAY" ||
9771 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9772 as_fn_error "You seem to be running X, but no X development libraries
9773 were found. You should install the relevant development files for X
9774 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9775 sure you have development files for image handling, i.e.
9776 tiff, gif, jpeg, png and xpm.
9777 If you are sure you want Emacs compiled without X window support, pass
9779 to configure." "$LINENO" 5
9783 ### If we're using X11, we should use the X menu package.
9786 yes ) HAVE_MENUS=yes ;;
9789 # Does the opsystem file prohibit the use of the GNU malloc?
9790 # Assume not, until told otherwise.
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9794 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9795 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9801 static void hook (void) {}
9805 malloc_set_state (malloc_get_state ());
9806 __after_morecore_hook = hook;
9807 __malloc_initialize_hook = hook;
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 emacs_cv_var_doug_lea_malloc=yes
9815 emacs_cv_var_doug_lea_malloc=no
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9821 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9822 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9827 ## darwin ld insists on the use of malloc routines in the System framework.
9828 darwin|sol2-10) system_malloc=yes ;;
9831 if test "${system_malloc}" = "yes"; then
9833 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9837 (The GNU allocators don't work with this system configuration.)"
9841 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9842 VMLIMIT_OBJ=vm-limit.o
9847 if test "$doug_lea_malloc" = "yes" ; then
9848 if test "$GNU_MALLOC" = yes ; then
9850 (Using Doug Lea's new malloc from the GNU C Library.)"
9853 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9856 ## Use mmap directly for allocating larger buffers.
9857 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9858 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9859 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9861 gnu*) REL_ALLOC=no ;;
9865 if test x"${REL_ALLOC}" = x; then
9866 REL_ALLOC=${GNU_MALLOC}
9869 use_mmap_for_buffers=no
9871 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9881 for ac_func in getpagesize
9883 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9884 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_GETPAGESIZE 1
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9893 $as_echo_n "checking for working mmap... " >&6; }
9894 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9897 if test "$cross_compiling" = yes; then :
9898 ac_cv_func_mmap_fixed_mapped=no
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 /* malloc might have been renamed as rpl_malloc. */
9906 /* Thanks to Mike Haertel and Jim Avera for this test.
9907 Here is a matrix of mmap possibilities:
9908 mmap private not fixed
9909 mmap private fixed at somewhere currently unmapped
9910 mmap private fixed at somewhere already mapped
9911 mmap shared not fixed
9912 mmap shared fixed at somewhere currently unmapped
9913 mmap shared fixed at somewhere already mapped
9914 For private mappings, we should verify that changes cannot be read()
9915 back from the file, nor mmap's back from the file at a different
9916 address. (There have been systems where private was not correctly
9917 implemented like the infamous i386 svr4.0, and systems where the
9918 VM page cache was not coherent with the file system buffer cache
9919 like early versions of FreeBSD and possibly contemporary NetBSD.)
9920 For shared mappings, we should conversely verify that changes get
9921 propagated back to all the places they're supposed to be.
9923 Grep wants private fixed already mapped.
9924 The main things grep needs to know about mmap are:
9925 * does it exist and is it safe to write into the mmap'd area
9926 * how to use it (BSD variants) */
9929 #include <sys/mman.h>
9931 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9935 /* This mess was copied from the GNU getpagesize.h. */
9936 #ifndef HAVE_GETPAGESIZE
9937 # ifdef _SC_PAGESIZE
9938 # define getpagesize() sysconf(_SC_PAGESIZE)
9939 # else /* no _SC_PAGESIZE */
9940 # ifdef HAVE_SYS_PARAM_H
9941 # include <sys/param.h>
9942 # ifdef EXEC_PAGESIZE
9943 # define getpagesize() EXEC_PAGESIZE
9944 # else /* no EXEC_PAGESIZE */
9946 # define getpagesize() NBPG * CLSIZE
9949 # endif /* no CLSIZE */
9950 # else /* no NBPG */
9952 # define getpagesize() NBPC
9953 # else /* no NBPC */
9955 # define getpagesize() PAGESIZE
9956 # endif /* PAGESIZE */
9957 # endif /* no NBPC */
9958 # endif /* no NBPG */
9959 # endif /* no EXEC_PAGESIZE */
9960 # else /* no HAVE_SYS_PARAM_H */
9961 # define getpagesize() 8192 /* punt totally */
9962 # endif /* no HAVE_SYS_PARAM_H */
9963 # endif /* no _SC_PAGESIZE */
9965 #endif /* no HAVE_GETPAGESIZE */
9970 char *data, *data2, *data3;
9975 pagesize = getpagesize ();
9977 /* First, make a file with some known garbage in it. */
9978 data = (char *) malloc (pagesize);
9981 for (i = 0; i < pagesize; ++i)
9982 *(data + i) = rand ();
9984 fd = creat ("conftest.mmap", 0600);
9987 if (write (fd, data, pagesize) != pagesize)
9991 /* Next, check that the tail of a page is zero-filled. File must have
9992 non-zero length, otherwise we risk SIGBUS for entire page. */
9993 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9997 if (write (fd2, cdata2, 1) != 1)
9999 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10000 if (data2 == MAP_FAILED)
10002 for (i = 0; i < pagesize; ++i)
10006 if (munmap (data2, pagesize))
10009 /* Next, try to mmap the file at a fixed address which already has
10010 something else allocated at it. If we can, also make sure that
10011 we see the same garbage. */
10012 fd = open ("conftest.mmap", O_RDWR);
10015 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10016 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10018 for (i = 0; i < pagesize; ++i)
10019 if (*(data + i) != *(data2 + i))
10022 /* Finally, make sure that changes to the mapped area do not
10023 percolate back to the file as seen by read(). (This is a bug on
10024 some variants of i386 svr4.0.) */
10025 for (i = 0; i < pagesize; ++i)
10026 *(data2 + i) = *(data2 + i) + 1;
10027 data3 = (char *) malloc (pagesize);
10030 if (read (fd, data3, pagesize) != pagesize)
10032 for (i = 0; i < pagesize; ++i)
10033 if (*(data + i) != *(data3 + i))
10039 if ac_fn_c_try_run "$LINENO"; then :
10040 ac_cv_func_mmap_fixed_mapped=yes
10042 ac_cv_func_mmap_fixed_mapped=no
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10045 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10050 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10051 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10053 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10056 rm -f conftest.mmap conftest.txt
10058 if test $use_mmap_for_buffers = yes; then
10060 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10065 LIBS="$LIBS_SYSTEM $LIBS"
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10068 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10069 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10070 $as_echo_n "(cached) " >&6
10072 ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldnet $LIBS"
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10087 return dnet_ntoa ();
10092 if ac_fn_c_try_link "$LINENO"; then :
10093 ac_cv_lib_dnet_dnet_ntoa=yes
10095 ac_cv_lib_dnet_dnet_ntoa=no
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10102 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10103 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10104 cat >>confdefs.h <<_ACEOF
10105 #define HAVE_LIBDNET 1
10108 LIBS="-ldnet $LIBS"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10114 $as_echo_n "checking for main in -lXbsd... " >&6; }
10115 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10118 ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lXbsd $LIBS"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 ac_cv_lib_Xbsd_main=yes
10135 ac_cv_lib_Xbsd_main=no
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10142 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10143 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10144 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10152 if test "$ac_cv_header_pthread_h"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10154 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lpthread $LIBS"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10169 char pthread_self ();
10173 return pthread_self ();
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 ac_cv_lib_pthread_pthread_self=yes
10181 ac_cv_lib_pthread_pthread_self=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10188 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10189 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10194 if test "$HAVE_PTHREAD" = yes; then
10195 case "${canonical}" in
10197 *) LIB_PTHREAD="-lpthread"
10198 LIBS="$LIB_PTHREAD $LIBS" ;;
10201 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10207 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10208 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10211 ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-lpthreads $LIBS"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10226 return cma_open ();
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 ac_cv_lib_pthreads_cma_open=yes
10234 ac_cv_lib_pthreads_cma_open=no
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10241 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10242 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_LIBPTHREADS 1
10247 LIBS="-lpthreads $LIBS"
10252 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10253 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10254 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10255 ## added to LIBS in configure would never contain the pthreads part,
10256 ## but the value used in Makefiles might. FIXME?
10258 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10259 ## be harmless on older versions of X where it happens to exist.
10260 test "$opsys" = "aix4-2" && \
10261 test $ac_cv_lib_pthreads_cma_open = yes && \
10262 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10268 $as_echo_n "checking for -bbigtoc option... " >&6; }
10269 if test "${gdb_cv_bigtoc+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10274 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10275 *) gdb_cv_bigtoc=-bbigtoc ;;
10278 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10290 if ac_fn_c_try_link "$LINENO"; then :
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10300 $as_echo "$gdb_cv_bigtoc" >&6; }
10304 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10305 # used for the tests that follow. We set them back to REAL_CFLAGS and
10306 # REAL_CPPFLAGS later on.
10308 REAL_CFLAGS="$CFLAGS"
10309 REAL_CPPFLAGS="$CPPFLAGS"
10311 if test "${HAVE_X11}" = "yes"; then
10312 DEFS="$C_SWITCH_X_SITE $DEFS"
10313 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10315 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10316 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10318 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10319 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10320 # but it's more convenient here to set LD_RUN_PATH since this
10321 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10322 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10323 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10327 if test "${opsys}" = "gnu-linux"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10329 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10336 XOpenDisplay ("foo");
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 xgnu_linux_first_failure=no
10344 xgnu_linux_first_failure=yes
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 if test "${xgnu_linux_first_failure}" = "yes"; then
10349 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10350 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10351 OLD_CPPFLAGS="$CPPFLAGS"
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10354 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10355 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10356 LIBS="$LIBS -b i486-linuxaout"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10363 XOpenDisplay ("foo");
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 xgnu_linux_second_failure=no
10371 xgnu_linux_second_failure=yes
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 if test "${xgnu_linux_second_failure}" = "yes"; then
10376 # If we get the same failure with -b, there is no use adding -b.
10377 # So take it out. This plays safe.
10378 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10379 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10380 CPPFLAGS="$OLD_CPPFLAGS"
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386 $as_echo "yes" >&6; }
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10394 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10395 # header files included from there.
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10397 $as_echo_n "checking for Xkb... " >&6; }
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #include <X11/Xlib.h>
10401 #include <X11/XKBlib.h>
10405 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10410 if ac_fn_c_try_link "$LINENO"; then :
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10418 $as_echo "$emacs_xkb" >&6; }
10419 if test $emacs_xkb = yes; then
10421 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10425 for ac_func in XrmSetDatabase XScreenResourceString \
10426 XScreenNumberOfScreen
10428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10430 eval as_val=\$$as_ac_var
10431 if test "x$as_val" = x""yes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10441 if test "${window_system}" = "x11"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10443 $as_echo_n "checking X11 version 6... " >&6; }
10444 if test "${emacs_cv_x11_version_6+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 #include <X11/Xlib.h>
10453 #if XlibSpecificationRelease < 6
10461 if ac_fn_c_try_link "$LINENO"; then :
10462 emacs_cv_x11_version_6=yes
10464 emacs_cv_x11_version_6=no
10466 rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10470 if test $emacs_cv_x11_version_6 = yes; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10472 $as_echo "6 or newer" >&6; }
10474 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10477 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10479 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10484 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10490 $as_echo "before 6" >&6; }
10495 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10497 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10498 if test "${with_rsvg}" != "no"; then
10499 RSVG_REQUIRED=2.11.0
10500 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10505 if test "$PKG_CONFIG" = "no" ; then
10508 PKG_CONFIG_MIN_VERSION=0.9.0
10509 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10511 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10513 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10514 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10515 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10522 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10523 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10525 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10532 ## If we have a custom action on failure, don't print errors, but
10533 ## do set a variable so people can do so.
10534 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10546 if test $succeeded = yes; then
10555 if test $HAVE_RSVG = yes; then
10557 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10559 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10560 LIBS="$RSVG_LIBS $LIBS"
10565 HAVE_IMAGEMAGICK=no
10566 if test "${HAVE_X11}" = "yes"; then
10567 if test "${with_imagemagick}" != "no"; then
10568 ## 6.2.8 is the earliest version known to work, but earlier versions
10569 ## might work - let us know if you find one.
10570 ## 6.0.7 does not work. See bug#7955.
10571 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10575 if test "$PKG_CONFIG" = "no" ; then
10578 PKG_CONFIG_MIN_VERSION=0.9.0
10579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10581 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10583 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10584 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10585 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10592 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10593 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10595 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10600 IMAGEMAGICK_CFLAGS=""
10601 IMAGEMAGICK_LIBS=""
10602 ## If we have a custom action on failure, don't print errors, but
10603 ## do set a variable so people can do so.
10604 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10611 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10612 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10616 if test $succeeded = yes; then
10617 HAVE_IMAGEMAGICK=yes
10625 if test $HAVE_IMAGEMAGICK = yes; then
10627 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10629 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10630 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10631 for ac_func in MagickExportImagePixels
10633 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10634 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10635 cat >>confdefs.h <<_ACEOF
10636 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10649 if test "${with_gtk3}" = "yes"; then
10652 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10657 if test "$PKG_CONFIG" = "no" ; then
10660 PKG_CONFIG_MIN_VERSION=0.9.0
10661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10663 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10665 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10666 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10667 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10674 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10675 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10677 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10684 ## If we have a custom action on failure, don't print errors, but
10685 ## do set a variable so people can do so.
10686 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10698 if test $succeeded = yes; then
10704 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10705 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10708 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10710 GTK_OBJ=emacsgtkfixed.o
10713 if test "$pkg_check_gtk" != "yes"; then
10715 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10718 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10723 if test "$PKG_CONFIG" = "no" ; then
10726 PKG_CONFIG_MIN_VERSION=0.9.0
10727 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10729 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10731 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10732 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10733 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10740 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10741 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10743 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10750 ## If we have a custom action on failure, don't print errors, but
10751 ## do set a variable so people can do so.
10752 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10764 if test $succeeded = yes; then
10770 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10771 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10776 if test x"$pkg_check_gtk" = xyes; then
10780 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10781 CFLAGS="$CFLAGS $GTK_CFLAGS"
10782 LIBS="$GTK_LIBS $LIBS"
10784 for ac_func in gtk_main
10786 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10787 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10788 cat >>confdefs.h <<_ACEOF
10789 #define HAVE_GTK_MAIN 1
10795 if test "${GTK_COMPILES}" != "yes"; then
10796 if test "$USE_X_TOOLKIT" != "maybe"; then
10797 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10802 $as_echo "#define USE_GTK 1" >>confdefs.h
10804 GTK_OBJ="gtkutil.o $GTK_OBJ"
10806 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10810 closing open displays. This is no problem if you just use
10811 one display, but if you use more than one and close one of them
10812 Emacs may crash." >&5
10813 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10814 closing open displays. This is no problem if you just use
10815 one display, but if you use more than one and close one of them
10816 Emacs may crash." >&2;}
10825 if test "${HAVE_GTK}" = "yes"; then
10827 if test "$with_toolkit_scroll_bars" != no; then
10828 with_toolkit_scroll_bars=yes
10831 HAVE_GTK_FILE_SELECTION=no
10832 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10833 #include <gtk/gtk.h>
10835 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10836 HAVE_GTK_FILE_SELECTION=yes
10838 HAVE_GTK_FILE_SELECTION=no
10841 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10842 for ac_func in gtk_file_selection_new
10844 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10845 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_GTK_FILE_SELECTION_NEW 1
10856 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10857 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10858 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10859 gtk_orientable_set_orientation \
10860 gtk_window_set_has_resize_grip
10862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10864 eval as_val=\$$as_ac_var
10865 if test "x$as_val" = x""yes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877 if test "${with_dbus}" = "yes"; then
10881 if test "$PKG_CONFIG" = "no" ; then
10884 PKG_CONFIG_MIN_VERSION=0.9.0
10885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10887 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10889 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10891 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10898 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10899 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10901 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10908 ## If we have a custom action on failure, don't print errors, but
10909 ## do set a variable so people can do so.
10910 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10922 if test $succeeded = yes; then
10928 if test "$HAVE_DBUS" = yes; then
10929 LIBS="$LIBS $DBUS_LIBS"
10931 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10933 for ac_func in dbus_watch_get_unix_fd \
10934 dbus_validate_bus_name \
10935 dbus_validate_path \
10936 dbus_validate_interface \
10937 dbus_validate_member
10939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10941 eval as_val=\$$as_ac_var
10942 if test "x$as_val" = x""yes; then :
10943 cat >>confdefs.h <<_ACEOF
10944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10950 DBUS_OBJ=dbusbind.o
10958 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10962 if test "$PKG_CONFIG" = "no" ; then
10965 PKG_CONFIG_MIN_VERSION=0.9.0
10966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10968 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10970 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10971 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10972 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10979 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10980 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10982 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 GSETTINGS_CFLAGS=""
10989 ## If we have a custom action on failure, don't print errors, but
10990 ## do set a variable so people can do so.
10991 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11003 if test $succeeded = yes; then
11009 if test "$HAVE_GSETTINGS" = "yes"; then
11011 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11013 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11014 SETTINGS_LIBS="$GSETTINGS_LIBS"
11018 >>>>>>> MERGE-SOURCE
11020 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11024 if test "$PKG_CONFIG" = "no" ; then
11027 PKG_CONFIG_MIN_VERSION=0.9.0
11028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11030 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11032 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11033 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11034 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11041 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11042 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11044 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11051 ## If we have a custom action on failure, don't print errors, but
11052 ## do set a variable so people can do so.
11053 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11065 if test $succeeded = yes; then
11071 if test "$HAVE_GCONF" = yes; then
11073 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11075 for ac_func in g_type_init
11077 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11078 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11079 cat >>confdefs.h <<_ACEOF
11080 #define HAVE_G_TYPE_INIT 1
11091 if test "${with_selinux}" = "yes"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11093 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11094 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 ac_check_lib_save_LIBS=$LIBS
11098 LIBS="-lselinux $LIBS"
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11108 char lgetfilecon ();
11112 return lgetfilecon ();
11117 if ac_fn_c_try_link "$LINENO"; then :
11118 ac_cv_lib_selinux_lgetfilecon=yes
11120 ac_cv_lib_selinux_lgetfilecon=no
11122 rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124 LIBS=$ac_check_lib_save_LIBS
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11127 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11128 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11129 HAVE_LIBSELINUX=yes
11134 if test "$HAVE_LIBSELINUX" = yes; then
11136 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11138 LIBSELINUX_LIBS=-lselinux
11144 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11145 if test "${with_gnutls}" = "yes" ; then
11149 if test "$PKG_CONFIG" = "no" ; then
11152 PKG_CONFIG_MIN_VERSION=0.9.0
11153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11155 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11157 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11158 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11159 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11166 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11167 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11169 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 LIBGNUTLS_CFLAGS=""
11176 ## If we have a custom action on failure, don't print errors, but
11177 ## do set a variable so people can do so.
11178 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11190 if test $succeeded = yes; then
11196 if test "${HAVE_GNUTLS}" = "yes"; then
11198 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11202 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11203 LIBS="$LIBGNUTLS_LIBS $LIBS"
11204 for ac_func in gnutls_certificate_set_verify_function
11206 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11207 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11211 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11216 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11218 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11228 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11229 if test "$with_xaw3d" != no; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11231 $as_echo_n "checking for xaw3d... " >&6; }
11232 if test "${emacs_cv_xaw3d+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 #include <X11/Intrinsic.h>
11239 #include <X11/Xaw3d/Simple.h>
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11250 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11251 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-lXaw3d $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11265 char XawScrollbarSetThumb ();
11269 return XawScrollbarSetThumb ();
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11277 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11284 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11285 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11301 if test $emacs_cv_xaw3d = yes; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11303 $as_echo "yes; using Lucid toolkit" >&6; }
11304 USE_X_TOOLKIT=LUCID
11308 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11314 $as_echo_n "checking for libXaw... " >&6; }
11315 if test "${emacs_cv_xaw+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11321 #include <X11/Intrinsic.h>
11322 #include <X11/Xaw/Simple.h>
11331 if ac_fn_c_try_link "$LINENO"; then :
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11340 if test $emacs_cv_xaw = yes; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11342 $as_echo "yes; using Lucid toolkit" >&6; }
11343 USE_X_TOOLKIT=LUCID
11345 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11346 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11348 as_fn_error "No X toolkit could be found.
11349 If you are sure you want Emacs compiled without an X toolkit, pass
11350 --with-x-toolkit=no
11351 to configure. Otherwise, install the development libraries for the toolkit
11352 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11357 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11360 if test "${USE_X_TOOLKIT}" != "none"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11362 $as_echo_n "checking X11 toolkit version... " >&6; }
11363 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 #include <X11/Intrinsic.h>
11372 #if XtSpecificationRelease < 6
11380 if ac_fn_c_try_link "$LINENO"; then :
11381 emacs_cv_x11_toolkit_version_6=yes
11383 emacs_cv_x11_toolkit_version_6=no
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11389 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11390 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11392 $as_echo "6 or newer" >&6; }
11394 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11396 LIBXTR6="-lSM -lICE"
11398 ## Use libw.a along with X11R6 Xt.
11399 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11403 $as_echo "before 6" >&6; }
11407 if test x$HAVE_X11XTR6 = xyes; then
11408 LIBS="-lXt -lSM -lICE $LIBS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11413 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11414 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11417 ac_check_lib_save_LIBS=$LIBS
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11428 char XmuConvertStandardSelection ();
11432 return XmuConvertStandardSelection ();
11437 if ac_fn_c_try_link "$LINENO"; then :
11438 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11440 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11442 rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11447 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11448 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_LIBXMU 1
11457 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11463 ## These systems don't supply Xmu.
11465 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11470 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11471 if test "${HAVE_X11}" = "yes"; then
11472 if test "${USE_X_TOOLKIT}" != "none"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11474 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11475 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-lXext $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11489 char XShapeQueryExtension ();
11493 return XShapeQueryExtension ();
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_Xext_XShapeQueryExtension=yes
11501 ac_cv_lib_Xext_XShapeQueryExtension=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11508 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11509 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_LIBXEXT 1
11514 LIBS="-lXext $LIBS"
11522 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11524 $as_echo_n "checking for Motif version 2.1... " >&6; }
11525 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11534 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11537 Motif version prior to 2.1.
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544 emacs_cv_motif_version_2_1=yes
11546 emacs_cv_motif_version_2_1=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11551 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11552 if test $emacs_cv_motif_version_2_1 = yes; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11554 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11555 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_check_lib_save_LIBS=$LIBS
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11569 char XpCreateContext ();
11573 return XpCreateContext ();
11578 if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_Xp_XpCreateContext=yes
11581 ac_cv_lib_Xp_XpCreateContext=no
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11588 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11589 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11595 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11596 if test "${emacs_cv_lesstif+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11599 # We put this in CFLAGS temporarily to precede other -I options
11600 # that might be in CFLAGS temporarily.
11601 # We put this in CPPFLAGS where it precedes the other -I options.
11602 OLD_CPPFLAGS=$CPPFLAGS
11604 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11605 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11617 if ac_fn_c_try_compile "$LINENO"; then :
11618 emacs_cv_lesstif=yes
11620 emacs_cv_lesstif=no
11622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11625 $as_echo "$emacs_cv_lesstif" >&6; }
11626 if test $emacs_cv_lesstif = yes; then
11627 # Make sure this -I option remains in CPPFLAGS after it is set
11628 # back to REAL_CPPFLAGS.
11629 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11630 # have those other -I options anyway. Ultimately, having this
11631 # directory ultimately in CPPFLAGS will be enough.
11632 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11633 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11636 CPPFLAGS=$OLD_CPPFLAGS
11639 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11640 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11643 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11650 USE_TOOLKIT_SCROLL_BARS=no
11651 if test "${with_toolkit_scroll_bars}" != "no"; then
11652 if test "${USE_X_TOOLKIT}" != "none"; then
11653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11654 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11657 USE_TOOLKIT_SCROLL_BARS=yes
11658 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11659 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11661 USE_TOOLKIT_SCROLL_BARS=yes
11663 elif test "${HAVE_GTK}" = "yes"; then
11664 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11666 USE_TOOLKIT_SCROLL_BARS=yes
11667 elif test "${HAVE_NS}" = "yes"; then
11668 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11670 USE_TOOLKIT_SCROLL_BARS=yes
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11677 #include <X11/Xlib.h>
11678 #include <X11/Xresource.h>
11687 if ac_fn_c_try_compile "$LINENO"; then :
11690 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 if test "${with_xim}" != "no"; then
11700 $as_echo "#define USE_XIM 1" >>confdefs.h
11705 if test "${HAVE_XIM}" != "no"; then
11706 late_CFLAGS=$CFLAGS
11707 if test "$GCC" = yes; then
11708 CFLAGS="$CFLAGS --pedantic-errors"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 #include <X11/Xlib.h>
11714 #include <X11/Xresource.h>
11723 XPointer *client_data;
11725 /* If we're not using GCC, it's probably not XFree86, and this is
11726 probably right, but we can't use something like --pedantic-errors. */
11727 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11728 char*, XIMProc, XPointer*);
11730 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11736 if ac_fn_c_try_compile "$LINENO"; then :
11737 emacs_cv_arg6_star=yes
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 if test "$emacs_cv_arg6_star" = yes; then
11741 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11744 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11747 CFLAGS=$late_CFLAGS
11750 ### Start of font-backend (under any platform) section.
11751 # (nothing here yet -- this is a placeholder)
11752 ### End of font-backend (under any platform) section.
11754 ### Start of font-backend (under X11) section.
11755 if test "${HAVE_X11}" = "yes"; then
11759 if test "$PKG_CONFIG" = "no" ; then
11762 PKG_CONFIG_MIN_VERSION=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11765 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11767 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11768 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11769 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11776 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11777 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11779 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 FONTCONFIG_CFLAGS=""
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so.
11788 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11800 if test $succeeded = yes; then
11807 ## Use -lXft if available, unless `--with-xft=no'.
11809 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11812 if test "x${with_xft}" != "xno"; then
11817 if test "$PKG_CONFIG" = "no" ; then
11820 PKG_CONFIG_MIN_VERSION=0.9.0
11821 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11823 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11825 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11826 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11827 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11834 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11835 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11837 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11844 ## If we have a custom action on failure, don't print errors, but
11845 ## do set a variable so people can do so.
11846 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11858 if test $succeeded = yes; then
11864 ## Because xftfont.c uses XRenderQueryExtension, we also
11865 ## need to link to -lXrender.
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11868 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11869 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lXrender $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11883 char XRenderQueryExtension ();
11887 return XRenderQueryExtension ();
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11895 ac_cv_lib_Xrender_XRenderQueryExtension=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11902 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11903 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11907 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11908 OLD_CPPFLAGS="$CPPFLAGS"
11909 OLD_CFLAGS="$CFLAGS"
11911 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11912 CFLAGS="$CFLAGS $XFT_CFLAGS"
11913 XFT_LIBS="-lXrender $XFT_LIBS"
11914 LIBS="$XFT_LIBS $LIBS"
11915 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11916 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11918 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11919 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lXft $XFT_LIBS $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11933 char XftFontOpen ();
11937 return XftFontOpen ();
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_Xft_XftFontOpen=yes
11945 ac_cv_lib_Xft_XftFontOpen=no
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11952 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11953 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11961 if test "${HAVE_XFT}" = "yes"; then
11963 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11966 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11968 CPPFLAGS="$OLD_CPPFLAGS"
11969 CFLAGS="$OLD_CFLAGS"
11971 fi # "${HAVE_XFT}" = "yes"
11972 fi # "$HAVE_XFT" != no
11973 fi # "x${with_xft}" != "xno"
11975 ## We used to allow building with FreeType and without Xft.
11976 ## However, the ftx font backend driver is not in good shape.
11977 if test "$HAVE_XFT" != "yes"; then
11984 if test "$PKG_CONFIG" = "no" ; then
11987 PKG_CONFIG_MIN_VERSION=0.9.0
11988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11990 $as_echo_n "checking for freetype2... " >&6; }
11992 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11993 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11994 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12001 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12002 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12004 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12011 ## If we have a custom action on failure, don't print errors, but
12012 ## do set a variable so people can do so.
12013 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12025 if test $succeeded = yes; then
12032 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12036 if test "${HAVE_FREETYPE}" = "yes"; then
12038 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12040 if test "${with_libotf}" != "no"; then
12044 if test "$PKG_CONFIG" = "no" ; then
12047 PKG_CONFIG_MIN_VERSION=0.9.0
12048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12050 $as_echo_n "checking for libotf... " >&6; }
12052 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12053 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12054 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12061 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12062 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12064 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12071 ## If we have a custom action on failure, don't print errors, but
12072 ## do set a variable so people can do so.
12073 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12085 if test $succeeded = yes; then
12091 if test "$HAVE_LIBOTF" = "yes"; then
12093 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12096 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12097 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12100 ac_check_lib_save_LIBS=$LIBS
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12111 char OTF_get_variation_glyphs ();
12115 return OTF_get_variation_glyphs ();
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12123 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12130 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12131 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12132 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12134 HAVE_OTF_GET_VARIATION_GLYPHS=no
12137 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12139 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12147 if test "${HAVE_LIBOTF}" = yes; then
12148 if test "${with_m17n_flt}" != "no"; then
12152 if test "$PKG_CONFIG" = "no" ; then
12155 PKG_CONFIG_MIN_VERSION=0.9.0
12156 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12158 $as_echo_n "checking for m17n-flt... " >&6; }
12160 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12161 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12162 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12169 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12170 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12172 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12179 ## If we have a custom action on failure, don't print errors, but
12180 ## do set a variable so people can do so.
12181 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12193 if test $succeeded = yes; then
12199 if test "$HAVE_M17N_FLT" = "yes"; then
12201 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12213 ### End of font-backend (under X11) section.
12224 ### Use -lXpm if available, unless `--with-xpm=no'.
12227 if test "${HAVE_X11}" = "yes"; then
12228 if test "${with_xpm}" != "no"; then
12229 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12230 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12232 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12233 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lXpm -lX11 $LIBS"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12247 char XpmReadFileToPixmap ();
12251 return XpmReadFileToPixmap ();
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12259 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12261 rm -f core conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12266 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12267 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12274 if test "${HAVE_XPM}" = "yes"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12276 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279 #include "X11/xpm.h"
12280 #ifndef XpmReturnAllocPixels
12281 no_return_alloc_pixels
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12294 if test "${HAVE_XPM}" = "yes"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296 $as_echo "yes" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12304 if test "${HAVE_XPM}" = "yes"; then
12306 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12313 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12316 if test "${HAVE_X11}" = "yes"; then
12317 if test "${with_jpeg}" != "no"; then
12318 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12319 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12321 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12322 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-ljpeg $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12336 char jpeg_destroy_compress ();
12340 return jpeg_destroy_compress ();
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12348 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12355 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12356 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12365 if test "${HAVE_JPEG}" = "yes"; then
12366 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <jpeglib.h>
12371 version=JPEG_LIB_VERSION
12374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12375 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12376 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12380 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12386 if test "${HAVE_JPEG}" = "yes"; then
12392 ### Use -lpng if available, unless `--with-png=no'.
12395 if test "${HAVE_X11}" = "yes"; then
12396 if test "${with_png}" != "no"; then
12397 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12398 # in /usr/include/libpng.
12399 for ac_header in png.h libpng/png.h
12401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12403 eval as_val=\$$as_ac_Header
12404 if test "x$as_val" = x""yes; then :
12405 cat >>confdefs.h <<_ACEOF
12406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12413 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12415 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12416 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lpng -lz -lm $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 png_get_channels ();
12434 return png_get_channels ();
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_lib_png_png_get_channels=yes
12442 ac_cv_lib_png_png_get_channels=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_png_png_get_channels" >&5
12449 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12450 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12457 if test "${HAVE_PNG}" = "yes"; then
12459 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12461 LIBPNG="-lpng -lz -lm"
12466 ### Use -ltiff if available, unless `--with-tiff=no'.
12469 if test "${HAVE_X11}" = "yes"; then
12470 if test "${with_tiff}" != "no"; then
12471 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12472 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12474 # At least one tiff package requires the jpeg library.
12475 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12477 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12478 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-ltiff $tifflibs $LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12492 char TIFFGetVersion ();
12496 return TIFFGetVersion ();
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_lib_tiff_TIFFGetVersion=yes
12504 ac_cv_lib_tiff_TIFFGetVersion=no
12506 rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12511 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12512 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12521 if test "${HAVE_TIFF}" = "yes"; then
12523 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12530 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12533 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12534 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12536 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12537 # Earlier versions can crash Emacs.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12539 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12540 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12543 ac_check_lib_save_LIBS=$LIBS
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12554 char EGifPutExtensionLast ();
12558 return EGifPutExtensionLast ();
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_gif_EGifPutExtensionLast=yes
12566 ac_cv_lib_gif_EGifPutExtensionLast=no
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12573 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12574 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12584 if test "$HAVE_GIF" = yes; then
12586 elif test "$HAVE_GIF" = maybe; then
12587 # If gif_lib.h but no libgif, try libungif.
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12589 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12590 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12593 ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-lungif $LIBS"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12604 char EGifPutExtensionLast ();
12608 return EGifPutExtensionLast ();
12613 if ac_fn_c_try_link "$LINENO"; then :
12614 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12616 ac_cv_lib_ungif_EGifPutExtensionLast=no
12618 rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12623 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12624 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12630 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12633 if test "${HAVE_GIF}" = "yes"; then
12635 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12641 if test "${HAVE_X11}" = "yes"; then
12644 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12645 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12646 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12647 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12648 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12649 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12650 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12651 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12652 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12653 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12655 if test "X${MISSING}" != X; then
12656 as_fn_error "The following required libraries were not found:
12658 Maybe some development libraries/packages are missing?
12659 If you don't want to link with them give
12661 as options to configure" "$LINENO" 5
12665 ### Use -lgpm if available, unless `--with-gpm=no'.
12668 if test "${with_gpm}" != "no"; then
12669 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12670 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12672 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12673 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12676 ac_check_lib_save_LIBS=$LIBS
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12691 return Gpm_Open ();
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_gpm_Gpm_Open=yes
12699 ac_cv_lib_gpm_Gpm_Open=no
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12706 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12707 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12715 if test "${HAVE_GPM}" = "yes"; then
12717 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12729 ### Use NeXTstep API to implement GUI.
12730 if test "${HAVE_NS}" = "yes"; then
12732 $as_echo "#define HAVE_NS 1" >>confdefs.h
12734 if test "${NS_IMPL_COCOA}" = "yes"; then
12736 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12739 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12741 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12743 # See also .m.o rule in Makefile.in */
12744 # FIXME: are all these flags really needed? Document here why. */
12745 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12746 ## Extra CFLAGS applied to src/*.m files.
12747 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"
12749 # We also have mouse menus.
12755 ### Use session management (-lSM -lICE) if available
12758 if test "${HAVE_X11}" = "yes"; then
12759 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12760 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12762 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12763 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12766 ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-lSM -lICE $LIBS"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12777 char SmcOpenConnection ();
12781 return SmcOpenConnection ();
12786 if ac_fn_c_try_link "$LINENO"; then :
12787 ac_cv_lib_SM_SmcOpenConnection=yes
12789 ac_cv_lib_SM_SmcOpenConnection=no
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12796 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12797 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12805 if test "${HAVE_X_SM}" = "yes"; then
12807 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12809 LIBXSM="-lSM -lICE"
12812 *) LIBS="$LIBXSM $LIBS" ;;
12818 ### Use libxml (-lxml2) if available
12819 if test "${with_xml2}" != "no"; then
12820 ### I'm not sure what the version number should be, so I just guessed.
12824 if test "$PKG_CONFIG" = "no" ; then
12827 PKG_CONFIG_MIN_VERSION=0.9.0
12828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12830 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12832 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12833 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12834 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12841 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12842 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12844 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12851 ## If we have a custom action on failure, don't print errors, but
12852 ## do set a variable so people can do so.
12853 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12865 if test $succeeded = yes; then
12871 if test "${HAVE_LIBXML2}" = "yes"; then
12872 LIBS="$LIBXML2_LIBS $LIBS"
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12874 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12875 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-lxml2 $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12889 char htmlReadMemory ();
12893 return htmlReadMemory ();
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_xml2_htmlReadMemory=yes
12901 ac_cv_lib_xml2_htmlReadMemory=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12908 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12909 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12915 if test "${HAVE_LIBXML2}" = "yes"; then
12917 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12928 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12930 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12931 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 emacs_cv_netdb_declares_h_errno=yes
12948 emacs_cv_netdb_declares_h_errno=no
12950 rm -f core conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12954 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12955 if test $emacs_cv_netdb_declares_h_errno = yes; then
12957 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12961 # fmod, logb, and frexp are found in -lm on most systems.
12962 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12964 $as_echo_n "checking for sqrt in -lm... " >&6; }
12965 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12968 ac_check_lib_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_lib_m_sqrt=yes
12991 ac_cv_lib_m_sqrt=no
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12998 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12999 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_LIBM 1
13009 # Check for mail-locking functions in a "mail" library. Probably this should
13010 # have the same check as for liblockfile below.
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13012 $as_echo_n "checking for maillock in -lmail... " >&6; }
13013 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13016 ac_check_lib_save_LIBS=$LIBS
13017 LIBS="-lmail $LIBS"
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13021 /* Override any GCC internal prototype to avoid an error.
13022 Use char because int might match the return type of a GCC
13023 builtin and then its argument prototype would still apply. */
13031 return maillock ();
13036 if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_lib_mail_maillock=yes
13039 ac_cv_lib_mail_maillock=no
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 LIBS=$ac_check_lib_save_LIBS
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13046 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13047 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13053 if test $have_mail = yes; then
13055 LIBS="$LIBS_MAIL $LIBS"
13057 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13063 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13064 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13067 ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-llockfile $LIBS"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13082 return maillock ();
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_lib_lockfile_maillock=yes
13090 ac_cv_lib_lockfile_maillock=no
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13094 LIBS=$ac_check_lib_save_LIBS
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13097 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13098 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13104 if test $have_lockfile = yes; then
13105 LIBS_MAIL=-llockfile
13106 LIBS="$LIBS_MAIL $LIBS"
13108 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13111 # If we have the shared liblockfile, assume we must use it for mail
13112 # locking (e.g. Debian). If we couldn't link against liblockfile
13113 # (no liblockfile.a installed), ensure that we don't need to.
13114 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13115 set dummy liblockfile.so; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13121 if test -n "$liblockfile"; then
13122 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13126 for as_dir in $as_dummy
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_liblockfile="yes"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13143 liblockfile=$ac_cv_prog_liblockfile
13144 if test -n "$liblockfile"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13146 $as_echo "$liblockfile" >&6; }
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13153 if test $ac_cv_prog_liblockfile = yes; then
13154 as_fn_error "Shared liblockfile found but can't link against it.
13155 This probably means that movemail could lose mail.
13156 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13159 for ac_func in touchlock
13161 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13162 if test "x$ac_cv_func_touchlock" = x""yes; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_TOUCHLOCK 1
13175 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13176 ## interlock access to the mail spool. The alternative is a lock file named
13177 ## /usr/spool/mail/$USER.lock.
13180 aix4-2) mail_lock="lockf" ;;
13182 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13184 ## On GNU/Linux systems, both methods are used by various mail programs.
13185 ## I assume most people are using newer mailers that have heard of flock.
13186 ## Change this if you need to.
13187 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13188 ## configure gets the right answers, and that means *NOT* using flock.
13189 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13190 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13191 ## Debian maintainer hasn't provided a clean fix for Emacs.
13192 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13193 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13194 ## correct logic. -- fx
13195 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13196 ## liblockfile is a Free Software replacement for libmail, used on
13197 ## Debian systems and elsewhere. -rfr.
13200 if test $have_mail = yes || test $have_lockfile = yes; then
13201 test $ac_cv_header_maillock_h = yes && mail_lock=no
13207 case "$mail_lock" in
13209 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13213 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13216 *) BLESSMAIL_TARGET="need-blessmail" ;;
13221 for ac_func in gethostname \
13222 rename closedir mkdir rmdir getrusage get_current_dir_name \
13223 random lrand48 logb frexp fmod rint cbrt setsid \
13224 strerror fpathconf select euidaccess getpagesize setlocale \
13225 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13226 __fpending strsignal setitimer \
13227 sendto recvfrom getsockname getpeername \
13228 gai_strerror mkstemp getline getdelim fsync sync \
13229 difftime posix_memalign \
13230 getpwent endpwent getgrent endgrent \
13231 cfmakeraw cfsetspeed copysign __executable_start
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13235 eval as_val=\$$as_ac_var
13236 if test "x$as_val" = x""yes; then :
13237 cat >>confdefs.h <<_ACEOF
13238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13246 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13247 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13256 __builtin_unwind_init ();
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 emacs_cv_func___builtin_unwind_init=yes
13264 emacs_cv_func___builtin_unwind_init=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13270 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13271 if test $emacs_cv_func___builtin_unwind_init = yes; then
13273 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13282 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13283 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <sys/types.h> /* for off_t */
13294 int (*fp) (FILE *, off_t, int) = fseeko;
13295 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13300 if ac_fn_c_try_link "$LINENO"; then :
13301 ac_cv_sys_largefile_source=no; break
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #define _LARGEFILE_SOURCE 1
13308 #include <sys/types.h> /* for off_t */
13313 int (*fp) (FILE *, off_t, int) = fseeko;
13314 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 ac_cv_sys_largefile_source=1; break
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 ac_cv_sys_largefile_source=unknown
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13329 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13330 case $ac_cv_sys_largefile_source in #(
13333 cat >>confdefs.h <<_ACEOF
13334 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13340 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13341 # in glibc 2.1.3, but that breaks too many other things.
13342 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13343 if test $ac_cv_sys_largefile_source != unknown; then
13345 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13351 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13352 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13355 # Use it with a single arg.
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 $ac_includes_default
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368 ac_cv_func_getpgrp_void=no
13370 ac_cv_func_getpgrp_void=yes
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13376 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13377 if test $ac_cv_func_getpgrp_void = yes; then
13379 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13385 # Configure gnulib.
13388 for ac_func in grantpt
13390 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13391 if test "x$ac_cv_func_grantpt" = x""yes; then :
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_GRANTPT 1
13400 # PTY-related GNU extensions.
13401 for ac_func in getpt
13403 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13404 if test "x$ac_cv_func_getpt" = x""yes; then :
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_GETPT 1
13413 # Check this now, so that we will NOT find the above functions in ncurses.
13414 # That is because we have not set up to link ncurses in lib-src.
13415 # It's better to believe a function is not available
13416 # than to expect to find it in ncurses.
13417 # Also we need tputs and friends to be able to build at all.
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13419 $as_echo_n "checking for library containing tputs... " >&6; }
13420 # Run a test program that contains a call to tputs, a call that is
13421 # never executed. This tests whether a pre-'main' dynamic linker
13422 # works with the library. It's too much trouble to actually call
13423 # tputs in the test program, due to portability hassles. When
13424 # cross-compiling, assume the test program will run if it links.
13426 # Maybe curses should be tried earlier?
13427 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13428 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13430 if test -z "$tputs_library"; then
13432 msg='none required'
13434 LIBS_TERMCAP=-l$tputs_library
13436 LIBS="$LIBS_TERMCAP $LIBS"
13438 if test "$cross_compiling" = yes; then :
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13442 extern void tputs (const char *, int, int (*)(int));
13443 int main (int argc, char **argv)
13446 tputs (argv[0], 0, 0);
13451 if ac_fn_c_try_link "$LINENO"; then :
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13462 extern void tputs (const char *, int, int (*)(int));
13463 int main (int argc, char **argv)
13466 tputs (argv[0], 0, 0);
13471 if ac_fn_c_try_run "$LINENO"; then :
13476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13477 conftest.$ac_objext conftest.beam conftest.$ac_ext
13481 if test "X$msg" != Xno; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13486 $as_echo "$msg" >&6; }
13487 if test "X$msg" = Xno; then
13488 as_fn_error "The required function \`tputs' was not found in any library.
13489 The following libraries were tried (in order):
13490 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13491 Please try installing whichever of these libraries is most appropriate
13492 for your system, together with its header files.
13493 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13496 ## Use termcap instead of terminfo?
13497 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13499 ## FIXME? In the cases below where we unconditionally set
13500 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13501 ## if that was found above to have tputs.
13502 ## Should we use the gnu* logic everywhere?
13504 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13505 ## The ncurses library has been moved out of the System framework in
13506 ## Mac OS X 10.2. So if configure detects it, set the command-line
13507 ## option to use it.
13508 darwin) LIBS_TERMCAP="-lncurses" ;;
13510 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13514 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13515 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <osreldate.h>
13524 #if __FreeBSD_version < 400000
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 emacs_cv_freebsd_terminfo=yes
13535 emacs_cv_freebsd_terminfo=no
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13543 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13545 if test $emacs_cv_freebsd_terminfo = yes; then
13546 LIBS_TERMCAP="-lncurses"
13549 LIBS_TERMCAP="-ltermcap"
13554 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13556 LIBS_TERMCAP="-ltermcap"
13560 openbsd) LIBS_TERMCAP="-lncurses" ;;
13562 ## hpux: Make sure we get select from libc rather than from libcurses
13563 ## because libcurses on HPUX 10.10 has a broken version of select.
13564 ## We used to use -lc -lcurses, but this may be cleaner.
13565 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13566 # set that way, now it uses the default). Isn't this a contradiction?
13567 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13571 TERMCAP_OBJ=tparam.o
13572 if test $TERMINFO = yes; then
13574 $as_echo "#define TERMINFO 1" >>confdefs.h
13576 TERMCAP_OBJ=terminfo.o
13582 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13586 #include <netinet/in.h>
13587 #include <arpa/nameser.h>
13588 #include <resolv.h>
13597 if ac_fn_c_try_link "$LINENO"; then :
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 if test "$have_res_init" = no; then
13606 LIBS="$LIBS -lresolv"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13608 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <netinet/in.h>
13612 #include <arpa/nameser.h>
13613 #include <resolv.h>
13622 if ac_fn_c_try_link "$LINENO"; then :
13627 rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13630 $as_echo "$have_res_init" >&6; }
13631 if test "$have_res_init" = yes ; then
13637 if test "$have_res_init" = yes; then
13639 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13643 # Do we need the Hesiod library to provide the support routines?
13645 if test "$with_hesiod" != no ; then
13646 # Don't set $LIBS here -- see comments above. FIXME which comments?
13647 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13648 if test "x$ac_cv_func_res_send" = x""yes; then :
13651 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13652 if test "x$ac_cv_func___res_send" = x""yes; then :
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13656 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13657 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-lresolv $LIBS"
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13665 /* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13675 return res_send ();
13680 if ac_fn_c_try_link "$LINENO"; then :
13681 ac_cv_lib_resolv_res_send=yes
13683 ac_cv_lib_resolv_res_send=no
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13690 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13691 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13695 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13696 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lresolv $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13710 char __res_send ();
13714 return __res_send ();
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_lib_resolv___res_send=yes
13722 ac_cv_lib_resolv___res_send=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13729 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13730 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13740 if test "$resolv" = yes ; then
13745 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13746 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13750 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13751 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13752 $as_echo_n "(cached) " >&6
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lhesiod $RESOLVLIB $LIBS"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13765 char hes_getmailhost ();
13769 return hes_getmailhost ();
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_lib_hesiod_hes_getmailhost=yes
13777 ac_cv_lib_hesiod_hes_getmailhost=no
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LIBS=$ac_check_lib_save_LIBS
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13784 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13785 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13794 if test x"$hesiod" = xyes; then
13796 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13803 # Do we need libresolv (due to res_init or Hesiod)?
13804 if test "$resolv" = yes ; then
13806 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13814 # These tell us which Kerberos-related libraries to use.
13821 if test "${with_kerberos}" != no; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13823 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13824 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lcom_err $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_com_err_com_err=yes
13850 ac_cv_lib_com_err_com_err=no
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13857 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13858 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13864 if test $have_com_err = yes; then
13865 COM_ERRLIB=-lcom_err
13866 LIBS="$COM_ERRLIB $LIBS"
13868 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13872 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13873 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lcrypto $LIBS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13887 char mit_des_cbc_encrypt ();
13891 return mit_des_cbc_encrypt ();
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13899 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 LIBS=$ac_check_lib_save_LIBS
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13906 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13907 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13913 if test $have_crypto = yes; then
13915 LIBS="$CRYPTOLIB $LIBS"
13917 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13921 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13922 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lk5crypto $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13936 char mit_des_cbc_encrypt ();
13940 return mit_des_cbc_encrypt ();
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13948 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13955 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13956 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13962 if test $have_k5crypto = yes; then
13963 CRYPTOLIB=-lk5crypto
13964 LIBS="$CRYPTOLIB $LIBS"
13966 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13970 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13971 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13974 ac_check_lib_save_LIBS=$LIBS
13975 LIBS="-lkrb5 $LIBS"
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13979 /* Override any GCC internal prototype to avoid an error.
13980 Use char because int might match the return type of a GCC
13981 builtin and then its argument prototype would still apply. */
13985 char krb5_init_context ();
13989 return krb5_init_context ();
13994 if ac_fn_c_try_link "$LINENO"; then :
13995 ac_cv_lib_krb5_krb5_init_context=yes
13997 ac_cv_lib_krb5_krb5_init_context=no
13999 rm -f core conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14004 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14005 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14011 if test $have_krb5=yes; then
14013 LIBS="$KRB5LIB $LIBS"
14015 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14018 if test "${with_kerberos5}" = no; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14020 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14021 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14024 ac_check_lib_save_LIBS=$LIBS
14025 LIBS="-ldes425 $LIBS"
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14029 /* Override any GCC internal prototype to avoid an error.
14030 Use char because int might match the return type of a GCC
14031 builtin and then its argument prototype would still apply. */
14035 char des_cbc_encrypt ();
14039 return des_cbc_encrypt ();
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 ac_cv_lib_des425_des_cbc_encrypt=yes
14047 ac_cv_lib_des425_des_cbc_encrypt=no
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS=$ac_check_lib_save_LIBS
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14054 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14055 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14061 if test $have_des425 = yes; then
14063 LIBS="$DESLIB $LIBS"
14065 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14069 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14070 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14073 ac_check_lib_save_LIBS=$LIBS
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14084 char des_cbc_encrypt ();
14088 return des_cbc_encrypt ();
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_des_des_cbc_encrypt=yes
14096 ac_cv_lib_des_des_cbc_encrypt=no
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14103 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14104 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14110 if test $have_des = yes; then
14112 LIBS="$DESLIB $LIBS"
14114 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14119 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14120 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14123 ac_check_lib_save_LIBS=$LIBS
14124 LIBS="-lkrb4 $LIBS"
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14134 char krb_get_cred ();
14138 return krb_get_cred ();
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_lib_krb4_krb_get_cred=yes
14146 ac_cv_lib_krb4_krb_get_cred=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14153 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14154 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14160 if test $have_krb4 = yes; then
14162 LIBS="$KRB4LIB $LIBS"
14164 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14168 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14169 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14172 ac_check_lib_save_LIBS=$LIBS
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14183 char krb_get_cred ();
14187 return krb_get_cred ();
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_krb_krb_get_cred=yes
14195 ac_cv_lib_krb_krb_get_cred=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14202 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14203 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14209 if test $have_krb = yes; then
14211 LIBS="$KRB4LIB $LIBS"
14213 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14219 if test "${with_kerberos5}" != no; then
14220 for ac_header in krb5.h
14222 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14223 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_KRB5_H 1
14227 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14229 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_KRB5_ERROR_TEXT 1
14237 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14239 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_KRB5_ERROR_E_TEXT 1
14253 for ac_header in des.h
14255 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14256 if test "x$ac_cv_header_des_h" = x""yes; then :
14257 cat >>confdefs.h <<_ACEOF
14258 #define HAVE_DES_H 1
14262 for ac_header in kerberosIV/des.h
14264 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14265 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_KERBEROSIV_DES_H 1
14271 for ac_header in kerberos/des.h
14273 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14274 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14275 cat >>confdefs.h <<_ACEOF
14276 #define HAVE_KERBEROS_DES_H 1
14291 for ac_header in krb.h
14293 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14294 if test "x$ac_cv_header_krb_h" = x""yes; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_KRB_H 1
14300 for ac_header in kerberosIV/krb.h
14302 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_KERBEROSIV_KRB_H 1
14309 for ac_header in kerberos/krb.h
14311 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14312 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define HAVE_KERBEROS_KRB_H 1
14330 for ac_header in com_err.h
14332 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14333 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_COM_ERR_H 1
14353 for ac_func in $ac_func_list
14355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14357 eval as_val=\$$as_ac_var
14358 if test "x$as_val" = x""yes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14370 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14371 if test "${emacs_cv_localtime_cache+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14374 if test x$ac_cv_func_tzset = xyes; then
14375 if test "$cross_compiling" = yes; then :
14376 # If we have tzset, assume the worst when cross-compiling.
14377 emacs_cv_localtime_cache=yes
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14382 char TZ_GMT0[] = "TZ=GMT0";
14383 char TZ_PST8[] = "TZ=PST8";
14386 time_t now = time ((time_t *) 0);
14387 int hour_GMT0, hour_unset;
14388 if (putenv (TZ_GMT0) != 0)
14390 hour_GMT0 = localtime (&now)->tm_hour;
14392 hour_unset = localtime (&now)->tm_hour;
14393 if (putenv (TZ_PST8) != 0)
14395 if (localtime (&now)->tm_hour == hour_GMT0)
14398 if (localtime (&now)->tm_hour != hour_unset)
14403 if ac_fn_c_try_run "$LINENO"; then :
14404 emacs_cv_localtime_cache=no
14406 emacs_cv_localtime_cache=yes
14408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14409 conftest.$ac_objext conftest.beam conftest.$ac_ext
14413 # If we lack tzset, report that localtime does not cache TZ,
14414 # since we can't invalidate the cache if we don't have tzset.
14415 emacs_cv_localtime_cache=no
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14419 $as_echo "$emacs_cv_localtime_cache" >&6; }
14420 if test $emacs_cv_localtime_cache = yes; then
14422 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14426 if test "x$HAVE_TIMEVAL" = xyes; then
14427 for ac_func in gettimeofday
14429 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14430 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_GETTIMEOFDAY 1
14438 if test $ac_cv_func_gettimeofday = yes; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14440 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14441 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 #ifdef TIME_WITH_SYS_TIME
14448 #include <sys/time.h>
14451 #ifdef HAVE_SYS_TIME_H
14452 #include <sys/time.h>
14460 struct timeval time;
14461 gettimeofday (&time, 0);
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 emacs_cv_gettimeofday_two_arguments=yes
14469 emacs_cv_gettimeofday_two_arguments=no
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14474 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14475 if test $emacs_cv_gettimeofday_two_arguments = no; then
14477 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14484 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14485 if test "x$ac_cv_func_socket" = x""yes; then :
14491 if test $ok_so_far = yes; then
14492 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14493 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14501 if test $ok_so_far = yes; then
14502 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14503 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14511 if test $ok_so_far = yes; then
14513 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14517 if test -f /usr/lpp/X11/bin/smt.exp; then
14519 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14524 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14525 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14527 $as_echo "yes" >&6; }
14529 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14536 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14537 if test "x$ac_cv_type_pid_t" = x""yes; then :
14541 cat >>confdefs.h <<_ACEOF
14547 for ac_header in vfork.h
14549 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14550 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_VFORK_H 1
14559 for ac_func in fork vfork
14561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14563 eval as_val=\$$as_ac_var
14564 if test "x$as_val" = x""yes; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14572 if test "x$ac_cv_func_fork" = xyes; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14574 $as_echo_n "checking for working fork... " >&6; }
14575 if test "${ac_cv_func_fork_works+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14578 if test "$cross_compiling" = yes; then :
14579 ac_cv_func_fork_works=cross
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 $ac_includes_default
14588 /* By Ruediger Kuhlmann. */
14589 return fork () < 0;
14595 if ac_fn_c_try_run "$LINENO"; then :
14596 ac_cv_func_fork_works=yes
14598 ac_cv_func_fork_works=no
14600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14601 conftest.$ac_objext conftest.beam conftest.$ac_ext
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14606 $as_echo "$ac_cv_func_fork_works" >&6; }
14609 ac_cv_func_fork_works=$ac_cv_func_fork
14611 if test "x$ac_cv_func_fork_works" = xcross; then
14613 *-*-amigaos* | *-*-msdosdjgpp*)
14614 # Override, as these systems have only a dummy fork() stub
14615 ac_cv_func_fork_works=no
14618 ac_cv_func_fork_works=yes
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14622 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14624 ac_cv_func_vfork_works=$ac_cv_func_vfork
14625 if test "x$ac_cv_func_vfork" = xyes; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14627 $as_echo_n "checking for working vfork... " >&6; }
14628 if test "${ac_cv_func_vfork_works+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14631 if test "$cross_compiling" = yes; then :
14632 ac_cv_func_vfork_works=cross
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 /* Thanks to Paul Eggert for this test. */
14637 $ac_includes_default
14638 #include <sys/wait.h>
14639 #ifdef HAVE_VFORK_H
14640 # include <vfork.h>
14642 /* On some sparc systems, changes by the child to local and incoming
14643 argument registers are propagated back to the parent. The compiler
14644 is told about this with #include <vfork.h>, but some compilers
14645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14646 static variable whose address is put into a register that is
14647 clobbered by the vfork. */
14650 sparc_address_test (int arg)
14652 sparc_address_test (arg) int arg;
14655 static pid_t child;
14673 pid_t parent = getpid ();
14676 sparc_address_test (0);
14681 /* Here is another test for sparc vfork register problems. This
14682 test uses lots of local variables, at least as many local
14683 variables as main has allocated so far including compiler
14684 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14685 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14686 reuse the register of parent for one of the local variables,
14687 since it will think that parent can't possibly be used any more
14688 in this routine. Assigning to the local variable will thus
14689 munge parent in the parent process. */
14691 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14692 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14693 /* Convince the compiler that p..p7 are live; otherwise, it might
14694 use the same hardware register for all 8 local variables. */
14695 if (p != p1 || p != p2 || p != p3 || p != p4
14696 || p != p5 || p != p6 || p != p7)
14699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14700 from child file descriptors. If the child closes a descriptor
14701 before it execs or exits, this munges the parent's descriptor
14702 as well. Test for this by closing stdout in the child. */
14703 _exit(close(fileno(stdout)) != 0);
14708 while (wait(&status) != child)
14711 /* Was there some problem with vforking? */
14714 /* Did the child fail? (This shouldn't happen.) */
14717 /* Did the vfork/compiler bug occur? */
14718 || parent != getpid()
14720 /* Did the file descriptor bug occur? */
14721 || fstat(fileno(stdout), &st) != 0
14726 if ac_fn_c_try_run "$LINENO"; then :
14727 ac_cv_func_vfork_works=yes
14729 ac_cv_func_vfork_works=no
14731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14732 conftest.$ac_objext conftest.beam conftest.$ac_ext
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14737 $as_echo "$ac_cv_func_vfork_works" >&6; }
14740 if test "x$ac_cv_func_fork_works" = xcross; then
14741 ac_cv_func_vfork_works=$ac_cv_func_vfork
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14743 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14746 if test "x$ac_cv_func_vfork_works" = xyes; then
14748 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14752 $as_echo "#define vfork fork" >>confdefs.h
14755 if test "x$ac_cv_func_fork_works" = xyes; then
14757 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14762 for ac_func in snprintf
14764 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14765 if test "x$ac_cv_func_snprintf" = x""yes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define HAVE_SNPRINTF 1
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14775 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14776 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14777 $as_echo_n "(cached) " >&6
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 #include <langinfo.h>
14785 char* cs = nl_langinfo(CODESET);
14790 if ac_fn_c_try_link "$LINENO"; then :
14791 emacs_cv_langinfo_codeset=yes
14793 emacs_cv_langinfo_codeset=no
14795 rm -f core conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14800 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14801 if test $emacs_cv_langinfo_codeset = yes; then
14803 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14808 $as_echo_n "checking for mbstate_t... " >&6; }
14809 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814 $ac_includes_default
14815 # include <wchar.h>
14819 mbstate_t x; return sizeof x;
14824 if ac_fn_c_try_compile "$LINENO"; then :
14825 ac_cv_type_mbstate_t=yes
14827 ac_cv_type_mbstate_t=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14832 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14833 if test $ac_cv_type_mbstate_t = yes; then
14835 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14839 $as_echo "#define mbstate_t int" >>confdefs.h
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14844 $as_echo_n "checking for C restricted array declarations... " >&6; }
14845 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14846 $as_echo_n "(cached) " >&6
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850 void fred (int x[__restrict]);
14859 if ac_fn_c_try_compile "$LINENO"; then :
14860 emacs_cv_c_restrict_arr=yes
14862 emacs_cv_c_restrict_arr=no
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14867 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14868 if test "$emacs_cv_c_restrict_arr" = yes; then
14870 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14875 # Set up the CFLAGS for real compilation, so we can substitute it.
14876 CFLAGS="$REAL_CFLAGS"
14877 CPPFLAGS="$REAL_CPPFLAGS"
14879 ## Hack to detect a buggy GCC version.
14880 if test "x$GCC" = xyes \
14881 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14882 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14883 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14884 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14887 version=$PACKAGE_VERSION
14889 ### Specify what sort of things we'll be editing into Makefile and config.h.
14890 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14915 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14916 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14917 ## end of LIBX_BASE, but nothing ever set it.
14922 ## Used in lwlib/Makefile.in.
14924 S_FILE="\$(srcdir)/${opsysfile}"
14934 cat >>confdefs.h <<_ACEOF
14935 #define EMACS_CONFIGURATION "${canonical}"
14939 cat >>confdefs.h <<_ACEOF
14940 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14944 cat >>confdefs.h <<_ACEOF
14945 #define config_opsysfile "${opsysfile}"
14952 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14954 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14957 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14959 if test "$HAVE_XFT" = "yes"; then
14960 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14961 elif test "$HAVE_FREETYPE" = "yes"; then
14962 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14972 if test "${USE_X_TOOLKIT}" != "none" ; then
14973 WIDGET_OBJ=widget.o
14975 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14977 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14979 $as_echo "#define USE_LUCID 1" >>confdefs.h
14981 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14983 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14988 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14989 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14993 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14994 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14995 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14999 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15000 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15003 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15009 case "$USE_X_TOOLKIT" in
15010 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15011 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15012 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15016 if test "$USE_X_TOOLKIT" = "none"; then
15017 LIBXT_OTHER="\$(LIBXSM)"
15018 OLDXMENU_TARGET="really-oldXMenu"
15020 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15021 OLDXMENU_TARGET="really-lwlib"
15025 ## The X Menu stuff is present in the X10 distribution, but missing
15026 ## from X11. If we have X10, just use the installed library;
15027 ## otherwise, use our own copy.
15028 if test "${HAVE_X11}" = "yes" ; then
15030 $as_echo "#define HAVE_X11 1" >>confdefs.h
15033 if test "$USE_X_TOOLKIT" = "none"; then
15034 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15036 OLDXMENU="\${lwlibdir}/liblw.a"
15038 LIBXMENU="\$(OLDXMENU)"
15039 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15040 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15042 ## For a syntactically valid Makefile; not actually used for anything.
15043 ## See comments in src/Makefile.in.
15045 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15046 if test "${HAVE_X_WINDOWS}" = "yes"; then
15055 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15068 if test "${HAVE_MENUS}" = "yes" ; then
15070 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15074 if test "${GNU_MALLOC}" = "yes" ; then
15076 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15081 if test "${REL_ALLOC}" = "yes" ; then
15083 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15086 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15090 if test "$opsys" = "cygwin"; then
15091 CYGWIN_OBJ="sheap.o"
15092 ## Cygwin differs because of its unexec().
15094 POST_ALLOC_OBJ=lastfile.o
15097 PRE_ALLOC_OBJ=lastfile.o
15104 # Configure gnulib here, now that we know LIBS.
15105 >>>>>>> MERGE-SOURCE
15117 LIBC_FATAL_STDERR_=1
15118 export LIBC_FATAL_STDERR_
15120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15121 # for constant arguments. Useless!
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15123 $as_echo_n "checking for working alloca.h... " >&6; }
15124 if test "${ac_cv_working_alloca_h+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <alloca.h>
15133 char *p = (char *) alloca (2 * sizeof (int));
15139 if ac_fn_c_try_link "$LINENO"; then :
15140 ac_cv_working_alloca_h=yes
15142 ac_cv_working_alloca_h=no
15144 rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15148 $as_echo "$ac_cv_working_alloca_h" >&6; }
15149 if test $ac_cv_working_alloca_h = yes; then
15151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15156 $as_echo_n "checking for alloca... " >&6; }
15157 if test "${ac_cv_func_alloca_works+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15163 # define alloca __builtin_alloca
15166 # include <malloc.h>
15167 # define alloca _alloca
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15186 char *p = (char *) alloca (1);
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_func_alloca_works=yes
15195 ac_cv_func_alloca_works=no
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15201 $as_echo "$ac_cv_func_alloca_works" >&6; }
15203 if test $ac_cv_func_alloca_works = yes; then
15205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15208 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15209 # that cause trouble. Some versions do not even contain alloca or
15210 # contain a buggy version. If you still want to use their alloca,
15211 # use ar to extract alloca.o from them instead of compiling alloca.c.
15217 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15219 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15223 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15224 if test "${ac_cv_os_cray+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #if defined CRAY && ! defined CRAY2
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "webecray" >/dev/null 2>&1; then :
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15246 $as_echo "$ac_cv_os_cray" >&6; }
15247 if test $ac_cv_os_cray = yes; then
15248 for ac_func in _getb67 GETB67 getb67; do
15249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15251 eval as_val=\$$as_ac_var
15252 if test "x$as_val" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define CRAY_STACKSEG_END $ac_func
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15265 $as_echo_n "checking stack direction for C alloca... " >&6; }
15266 if test "${ac_cv_c_stack_direction+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15269 if test "$cross_compiling" = yes; then :
15270 ac_cv_c_stack_direction=0
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 $ac_includes_default
15276 find_stack_direction (int *addr, int depth)
15278 int dir, dummy = 0;
15281 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15282 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15283 return dir + dummy;
15287 main (int argc, char **argv)
15289 return find_stack_direction (0, argc + !argv + 20) < 0;
15292 if ac_fn_c_try_run "$LINENO"; then :
15293 ac_cv_c_stack_direction=1
15295 ac_cv_c_stack_direction=-1
15297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298 conftest.$ac_objext conftest.beam conftest.$ac_ext
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15303 $as_echo "$ac_cv_c_stack_direction" >&6; }
15304 cat >>confdefs.h <<_ACEOF
15305 #define STACK_DIRECTION $ac_cv_c_stack_direction
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15315 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15316 if test "${ac_cv_c_bigendian+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15319 ac_cv_c_bigendian=unknown
15320 # See if we're dealing with a universal compiler.
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 #ifndef __APPLE_CC__
15324 not a universal capable compiler
15329 if ac_fn_c_try_compile "$LINENO"; then :
15331 # Check for potential -arch flags. It is not universal unless
15332 # there are at least two -arch flags with different values.
15335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15336 if test -n "$ac_prev"; then
15338 i?86 | x86_64 | ppc | ppc64)
15339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15342 ac_cv_c_bigendian=universal
15348 elif test "x$ac_word" = "x-arch"; then
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 if test $ac_cv_c_bigendian = unknown; then
15355 # See if sys/param.h defines the BYTE_ORDER macro.
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #include <sys/param.h>
15364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15367 bogus endian macros
15374 if ac_fn_c_try_compile "$LINENO"; then :
15375 # It does; now see whether it defined to BIG_ENDIAN or not.
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <sys/types.h>
15379 #include <sys/param.h>
15384 #if BYTE_ORDER != BIG_ENDIAN
15392 if ac_fn_c_try_compile "$LINENO"; then :
15393 ac_cv_c_bigendian=yes
15395 ac_cv_c_bigendian=no
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15401 if test $ac_cv_c_bigendian = unknown; then
15402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 #include <limits.h>
15410 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15411 bogus endian macros
15418 if ac_fn_c_try_compile "$LINENO"; then :
15419 # It does; now see whether it defined to _BIG_ENDIAN or not.
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422 #include <limits.h>
15427 #ifndef _BIG_ENDIAN
15435 if ac_fn_c_try_compile "$LINENO"; then :
15436 ac_cv_c_bigendian=yes
15438 ac_cv_c_bigendian=no
15440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 if test $ac_cv_c_bigendian = unknown; then
15445 # Compile a test program.
15446 if test "$cross_compiling" = yes; then :
15447 # Try to guess by grepping values from an object file.
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 short int ascii_mm[] =
15451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15452 short int ascii_ii[] =
15453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15454 int use_ascii (int i) {
15455 return ascii_mm[i] + ascii_ii[i];
15457 short int ebcdic_ii[] =
15458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15459 short int ebcdic_mm[] =
15460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15461 int use_ebcdic (int i) {
15462 return ebcdic_mm[i] + ebcdic_ii[i];
15469 return use_ascii (foo) == use_ebcdic (foo);
15474 if ac_fn_c_try_compile "$LINENO"; then :
15475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15476 ac_cv_c_bigendian=yes
15478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15479 if test "$ac_cv_c_bigendian" = unknown; then
15480 ac_cv_c_bigendian=no
15482 # finding both strings is unlikely to happen, but who knows?
15483 ac_cv_c_bigendian=unknown
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 $ac_includes_default
15496 /* Are we little or big endian? From Harbison&Steele. */
15500 char c[sizeof (long int)];
15503 return u.c[sizeof (long int) - 1] == 1;
15509 if ac_fn_c_try_run "$LINENO"; then :
15510 ac_cv_c_bigendian=no
15512 ac_cv_c_bigendian=yes
15514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15515 conftest.$ac_objext conftest.beam conftest.$ac_ext
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15521 $as_echo "$ac_cv_c_bigendian" >&6; }
15522 case $ac_cv_c_bigendian in #(
15524 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15530 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15534 as_fn_error "unknown endianness
15535 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15540 $as_echo_n "checking for inline... " >&6; }
15541 if test "${ac_cv_c_inline+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15545 for ac_kw in inline __inline__ __inline; do
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #ifndef __cplusplus
15550 static $ac_kw foo_t static_foo () {return 0; }
15551 $ac_kw foo_t foo () {return 0; }
15555 if ac_fn_c_try_compile "$LINENO"; then :
15556 ac_cv_c_inline=$ac_kw
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 test "$ac_cv_c_inline" != no && break
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15564 $as_echo "$ac_cv_c_inline" >&6; }
15566 case $ac_cv_c_inline in
15569 case $ac_cv_c_inline in
15571 *) ac_val=$ac_cv_c_inline;;
15573 cat >>confdefs.h <<_ACEOF
15574 #ifndef __cplusplus
15575 #define inline $ac_val
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15583 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15584 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 /* On HP-UX before 11.23, strtold returns a struct instead of
15590 long double. Reject implementations like that, by requiring
15591 compatibility with the C99 prototype. */
15592 #include <stdlib.h>
15593 static long double (*p) (char const *, char **) = strtold;
15595 test (char const *nptr, char **endptr)
15598 r = strtold (nptr, endptr);
15604 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15609 if ac_fn_c_try_link "$LINENO"; then :
15610 gl_cv_func_c99_strtold=yes
15612 gl_cv_func_c99_strtold=no
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15618 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15619 if test $gl_cv_func_c99_strtold = yes; then
15621 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15631 GNULIB_EUIDACCESS=0;
15632 GNULIB_FACCESSAT=0;
15636 GNULIB_FTRUNCATE=0;
15638 GNULIB_GETDOMAINNAME=0;
15639 GNULIB_GETDTABLESIZE=0;
15640 GNULIB_GETGROUPS=0;
15641 GNULIB_GETHOSTNAME=0;
15643 GNULIB_GETLOGIN_R=0;
15644 GNULIB_GETPAGESIZE=0;
15645 GNULIB_GETUSERSHELL=0;
15646 GNULIB_GROUP_MEMBER=0;
15658 GNULIB_READLINKAT=0;
15660 GNULIB_SETHOSTNAME=0;
15663 GNULIB_SYMLINKAT=0;
15664 GNULIB_TTYNAME_R=0;
15665 GNULIB_UNISTD_H_NONBLOCKING=0;
15666 GNULIB_UNISTD_H_SIGPIPE=0;
15680 HAVE_GETDTABLESIZE=1;
15682 HAVE_GETHOSTNAME=1;
15684 HAVE_GETPAGESIZE=1;
15685 HAVE_GROUP_MEMBER=1;
15695 HAVE_SETHOSTNAME=1;
15701 HAVE_DECL_ENVIRON=1;
15702 HAVE_DECL_FCHDIR=1;
15703 HAVE_DECL_GETDOMAINNAME=1;
15704 HAVE_DECL_GETLOGIN_R=1;
15705 HAVE_DECL_GETPAGESIZE=1;
15706 HAVE_DECL_GETUSERSHELL=1;
15707 HAVE_DECL_SETHOSTNAME=1;
15708 HAVE_DECL_TTYNAME_R=1;
15710 HAVE_SYS_PARAM_H=0;
15715 REPLACE_FCHOWNAT=0;
15716 REPLACE_FTRUNCATE=0;
15718 REPLACE_GETDOMAINNAME=0;
15719 REPLACE_GETLOGIN_R=0;
15720 REPLACE_GETGROUPS=0;
15721 REPLACE_GETPAGESIZE=0;
15730 REPLACE_READLINK=0;
15734 REPLACE_TTYNAME_R=0;
15736 REPLACE_UNLINKAT=0;
15739 UNISTD_H_HAVE_WINSOCK2_H=0;
15740 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15744 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15745 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15751 #include <sys/types.h>
15752 #include <sys/stat.h>
15756 struct stat s; s.st_dm_mode;
15761 if ac_fn_c_try_compile "$LINENO"; then :
15762 ac_cv_struct_st_dm_mode=yes
15764 ac_cv_struct_st_dm_mode=no
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15769 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15771 if test $ac_cv_struct_st_dm_mode = yes; then
15773 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15778 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15779 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_DECL_STRMODE $ac_have_decl
15792 GNULIB_CALLOC_POSIX=0;
15793 GNULIB_CANONICALIZE_FILE_NAME=0;
15794 GNULIB_GETLOADAVG=0;
15795 GNULIB_GETSUBOPT=0;
15797 GNULIB_MALLOC_POSIX=0;
15801 GNULIB_MKOSTEMPS=0;
15804 GNULIB_POSIX_OPENPT=0;
15806 GNULIB_PTSNAME_R=0;
15810 GNULIB_REALLOC_POSIX=0;
15817 GNULIB_SYSTEM_POSIX=0;
15823 HAVE_CANONICALIZE_FILE_NAME=1;
15824 HAVE_DECL_GETLOADAVG=1;
15832 HAVE_POSIX_OPENPT=1;
15841 HAVE_DECL_SETENV=1;
15845 HAVE_STRUCT_RANDOM_DATA=1;
15846 HAVE_SYS_LOADAVG_H=0;
15848 HAVE_DECL_UNSETENV=1;
15850 REPLACE_CANONICALIZE_FILE_NAME=0;
15854 REPLACE_PTSNAME_R=0;
15856 REPLACE_RANDOM_R=0;
15858 REPLACE_REALPATH=0;
15861 REPLACE_UNSETENV=0;
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15867 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15868 if test "${gl_cv_have_include_next+set}" = set; then :
15869 $as_echo_n "(cached) " >&6
15871 rm -rf conftestd1a conftestd1b conftestd2
15872 mkdir conftestd1a conftestd1b conftestd2
15873 cat <<EOF > conftestd1a/conftest.h
15874 #define DEFINED_IN_CONFTESTD1
15875 #include_next <conftest.h>
15876 #ifdef DEFINED_IN_CONFTESTD2
15879 #error "include_next doesn't work"
15882 cat <<EOF > conftestd1b/conftest.h
15883 #define DEFINED_IN_CONFTESTD1
15885 #include_next <conftest.h>
15886 #ifdef DEFINED_IN_CONFTESTD2
15889 #error "include_next doesn't work"
15892 cat <<EOF > conftestd2/conftest.h
15893 #ifndef DEFINED_IN_CONFTESTD1
15894 #error "include_next test doesn't work"
15896 #define DEFINED_IN_CONFTESTD2
15898 gl_save_CPPFLAGS="$CPPFLAGS"
15899 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 #include <conftest.h>
15904 if ac_fn_c_try_compile "$LINENO"; then :
15905 gl_cv_have_include_next=yes
15907 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <conftest.h>
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 gl_cv_have_include_next=buggy
15915 gl_cv_have_include_next=no
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 CPPFLAGS="$gl_save_CPPFLAGS"
15922 rm -rf conftestd1a conftestd1b conftestd2
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15926 $as_echo "$gl_cv_have_include_next" >&6; }
15927 PRAGMA_SYSTEM_HEADER=
15928 if test $gl_cv_have_include_next = yes; then
15929 INCLUDE_NEXT=include_next
15930 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15931 if test -n "$GCC"; then
15932 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15935 if test $gl_cv_have_include_next = buggy; then
15936 INCLUDE_NEXT=include
15937 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15939 INCLUDE_NEXT=include
15940 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15947 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15948 if test "${gl_cv_pragma_columns+set}" = set; then :
15949 $as_echo_n "(cached) " >&6
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 $EGREP "choke me" >/dev/null 2>&1; then :
15961 gl_cv_pragma_columns=yes
15963 gl_cv_pragma_columns=no
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15970 $as_echo "$gl_cv_pragma_columns" >&6; }
15971 if test $gl_cv_pragma_columns = yes; then
15972 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15993 if test $gl_cv_have_include_next = yes; then
15994 gl_cv_next_getopt_h='<'getopt.h'>'
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15997 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15998 if test "${gl_cv_next_getopt_h+set}" = set; then :
15999 $as_echo_n "(cached) " >&6
16002 if test $ac_cv_header_getopt_h = yes; then
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <getopt.h>
16011 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16012 *) gl_absname_cpp="$ac_cpp" ;;
16017 gl_dirsep_regex='[/\\]'
16020 gl_dirsep_regex='\/'
16023 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16026 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
16027 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
16030 gl_header_literal_regex=`echo 'getopt.h' \
16031 | sed -e "$gl_make_literal_regex_sed"`
16032 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16033 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16035 >>>>>>> MERGE-SOURCE
16039 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16040 sed -n "$gl_absolute_header_sed"`'"'
16042 gl_cv_next_getopt_h='<'getopt.h'>'
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16048 $as_echo "$gl_cv_next_getopt_h" >&6; }
16050 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16052 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16054 gl_next_as_first_directive='<'getopt.h'>'
16056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16057 gl_next_as_first_directive=$gl_cv_next_getopt_h
16059 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16064 if test $ac_cv_header_getopt_h = yes; then
16073 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16074 for ac_header in getopt.h
16076 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16077 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_GETOPT_H 1
16083 gl_replace_getopt=yes
16090 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16091 for ac_func in getopt_long_only
16093 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16094 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_GETOPT_LONG_ONLY 1
16100 gl_replace_getopt=yes
16106 if test -z "$gl_replace_getopt"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16108 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16109 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #include <unistd.h>
16119 int *p = &optreset; return optreset;
16124 if ac_fn_c_try_compile "$LINENO"; then :
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #include <getopt.h>
16133 return !getopt_clip;
16138 if ac_fn_c_try_compile "$LINENO"; then :
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 gl_save_CPPFLAGS=$CPPFLAGS
16148 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16149 if test "$cross_compiling" = yes; then :
16151 mingw*) gl_cv_func_getopt_posix="guessing no";;
16152 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16153 *) gl_cv_func_getopt_posix="guessing yes";;
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16160 #include <unistd.h>
16161 #include <stdlib.h>
16162 #include <string.h>
16172 argv[argc++] = "program";
16173 argv[argc++] = "-a";
16174 argv[argc++] = "foo";
16175 argv[argc++] = "bar";
16177 optind = OPTIND_MIN;
16180 c = getopt (argc, argv, "ab");
16183 c = getopt (argc, argv, "ab");
16186 if (!(optind == 2))
16189 /* Some internal state exists at this point. */
16195 argv[argc++] = "program";
16196 argv[argc++] = "donald";
16197 argv[argc++] = "-p";
16198 argv[argc++] = "billy";
16199 argv[argc++] = "duck";
16200 argv[argc++] = "-a";
16201 argv[argc++] = "bar";
16203 optind = OPTIND_MIN;
16206 c = getopt (argc, argv, "+abp:q:");
16209 if (!(strcmp (argv[0], "program") == 0))
16211 if (!(strcmp (argv[1], "donald") == 0))
16213 if (!(strcmp (argv[2], "-p") == 0))
16215 if (!(strcmp (argv[3], "billy") == 0))
16217 if (!(strcmp (argv[4], "duck") == 0))
16219 if (!(strcmp (argv[5], "-a") == 0))
16221 if (!(strcmp (argv[6], "bar") == 0))
16223 if (!(optind == 1))
16226 /* Detect MacOS 10.5, AIX 7.1 bug. */
16228 char *argv[3] = { "program", "-ab", NULL };
16229 optind = OPTIND_MIN;
16231 if (getopt (2, argv, "ab:") != 'a')
16233 if (getopt (2, argv, "ab:") != '?')
16245 if ac_fn_c_try_run "$LINENO"; then :
16246 gl_cv_func_getopt_posix=yes
16248 gl_cv_func_getopt_posix=no
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16251 conftest.$ac_objext conftest.beam conftest.$ac_ext
16254 CPPFLAGS=$gl_save_CPPFLAGS
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16258 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16259 case "$gl_cv_func_getopt_posix" in
16260 *no) gl_replace_getopt=yes ;;
16264 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16266 $as_echo_n "checking for working GNU getopt function... " >&6; }
16267 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16270 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16271 # optstring is necessary for programs like m4 that have POSIX-mandated
16272 # semantics for supporting options interspersed with files.
16273 # Also, since getopt_long is a GNU extension, we require optind=0.
16274 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16275 # so take care to revert to the correct (non-)export state.
16276 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16277 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16278 xx) gl_had_POSIXLY_CORRECT=exported ;;
16279 x) gl_had_POSIXLY_CORRECT=yes ;;
16280 *) gl_had_POSIXLY_CORRECT= ;;
16283 export POSIXLY_CORRECT
16284 if test "$cross_compiling" = yes; then :
16285 case $host_os:$ac_cv_have_decl_optreset in
16286 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16287 *:yes) gl_cv_func_getopt_gnu=no;;
16288 *) gl_cv_func_getopt_gnu=yes;;
16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <getopt.h>
16295 #include <stddef.h>
16296 #include <string.h>
16298 #include <stdlib.h>
16299 #if defined __MACH__ && defined __APPLE__
16300 /* Avoid a crash on MacOS X. */
16301 #include <mach/mach.h>
16302 #include <mach/mach_error.h>
16303 #include <mach/thread_status.h>
16304 #include <mach/exception.h>
16305 #include <mach/task.h>
16306 #include <pthread.h>
16307 /* The exception port on which our thread listens. */
16308 static mach_port_t our_exception_port;
16309 /* The main function of the thread listening for exceptions of type
16312 mach_exception_thread (void *arg)
16314 /* Buffer for a message to be received. */
16316 mach_msg_header_t head;
16317 mach_msg_body_t msgh_body;
16320 mach_msg_return_t retval;
16321 /* Wait for a message on the exception port. */
16322 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16323 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16324 if (retval != MACH_MSG_SUCCESS)
16329 nocrash_init (void)
16331 mach_port_t self = mach_task_self ();
16332 /* Allocate a port on which the thread shall listen for exceptions. */
16333 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16335 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16336 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16337 MACH_MSG_TYPE_MAKE_SEND)
16339 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16341 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16342 /* Create the thread listening on the exception port. */
16343 pthread_attr_t attr;
16345 if (pthread_attr_init (&attr) == 0
16346 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16347 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16348 pthread_attr_destroy (&attr);
16349 /* Replace the exception port info for these exceptions with our own.
16350 Note that we replace the exception port for the entire task, not only
16351 for a particular thread. This has the effect that when our exception
16352 port gets the message, the thread specific exception port has already
16353 been asked, and we don't need to bother about it.
16354 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16355 task_set_exception_ports (self, mask, our_exception_port,
16356 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16361 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16362 /* Avoid a crash on native Windows. */
16363 #define WIN32_LEAN_AND_MEAN
16364 #include <windows.h>
16365 #include <winerror.h>
16367 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16369 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16371 case EXCEPTION_ACCESS_VIOLATION:
16372 case EXCEPTION_IN_PAGE_ERROR:
16373 case EXCEPTION_STACK_OVERFLOW:
16374 case EXCEPTION_GUARD_PAGE:
16375 case EXCEPTION_PRIV_INSTRUCTION:
16376 case EXCEPTION_ILLEGAL_INSTRUCTION:
16377 case EXCEPTION_DATATYPE_MISALIGNMENT:
16378 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16379 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16382 return EXCEPTION_CONTINUE_SEARCH;
16385 nocrash_init (void)
16387 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16390 /* Avoid a crash on POSIX systems. */
16391 #include <signal.h>
16392 /* A POSIX signal handler. */
16394 exception_handler (int sig)
16399 nocrash_init (void)
16402 signal (SIGSEGV, exception_handler);
16405 signal (SIGBUS, exception_handler);
16419 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16420 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16421 OSF/1 5.1, Solaris 10. */
16424 myargv[0] = "conftest";
16428 if (getopt (2, myargv, "+a") != '?')
16431 /* This code succeeds on glibc 2.8, mingw,
16432 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16433 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16435 char *argv[] = { "program", "-p", "foo", "bar", NULL };
16438 if (getopt (4, argv, "p::") != 'p')
16440 else if (optarg != NULL)
16442 else if (getopt (4, argv, "p::") != -1)
16444 else if (optind != 2)
16447 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16449 char *argv[] = { "program", "foo", "-p", NULL };
16451 if (getopt (3, argv, "-p") != 1)
16453 else if (getopt (3, argv, "-p") != 'p')
16456 /* This code fails on glibc 2.11. */
16458 char *argv[] = { "program", "-b", "-a", NULL };
16459 optind = opterr = 0;
16460 if (getopt (3, argv, "+:a:b") != 'b')
16462 else if (getopt (3, argv, "+:a:b") != ':')
16471 if ac_fn_c_try_run "$LINENO"; then :
16472 gl_cv_func_getopt_gnu=yes
16474 gl_cv_func_getopt_gnu=no
16476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16477 conftest.$ac_objext conftest.beam conftest.$ac_ext
16480 case $gl_had_POSIXLY_CORRECT in
16482 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16483 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16488 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16489 if test "$gl_cv_func_getopt_gnu" = "no"; then
16490 gl_replace_getopt=yes
16501 if test -n "$gl_replace_getopt"; then :
16508 if test $REPLACE_GETOPT = 1; then
16512 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16518 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16519 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DECL_GETENV $ac_have_decl
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16531 $as_echo_n "checking for unsigned long long int... " >&6; }
16532 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16533 $as_echo_n "(cached) " >&6
16535 ac_cv_type_unsigned_long_long_int=yes
16536 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16540 /* For now, do not test the preprocessor; as of 2007 there are too many
16541 implementations with broken preprocessors. Perhaps this can
16542 be revisited in 2012. In the meantime, code should not expect
16543 #if to work with literals wider than 32 bits. */
16544 /* Test literals. */
16545 long long int ll = 9223372036854775807ll;
16546 long long int nll = -9223372036854775807LL;
16547 unsigned long long int ull = 18446744073709551615ULL;
16548 /* Test constant expressions. */
16549 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16551 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16557 /* Test availability of runtime routines for shift and division. */
16558 long long int llmax = 9223372036854775807ll;
16559 unsigned long long int ullmax = 18446744073709551615ull;
16560 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16561 | (llmax / ll) | (llmax % ll)
16562 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16563 | (ullmax / ull) | (ullmax % ull));
16569 if ac_fn_c_try_link "$LINENO"; then :
16572 ac_cv_type_unsigned_long_long_int=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16579 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16580 if test $ac_cv_type_unsigned_long_long_int = yes; then
16582 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16589 $as_echo_n "checking for long long int... " >&6; }
16590 if test "${ac_cv_type_long_long_int+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16593 ac_cv_type_long_long_int=yes
16594 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16595 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16596 if test $ac_cv_type_long_long_int = yes; then
16597 if test "$cross_compiling" = yes; then :
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602 #include <limits.h>
16605 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16606 # define LLONG_MAX (HALF - 1 + HALF)
16611 long long int n = 1;
16615 long long int m = n << i;
16618 if (LLONG_MAX / 2 < m)
16626 if ac_fn_c_try_run "$LINENO"; then :
16629 ac_cv_type_long_long_int=no
16631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16632 conftest.$ac_objext conftest.beam conftest.$ac_ext
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16639 $as_echo "$ac_cv_type_long_long_int" >&6; }
16640 if test $ac_cv_type_long_long_int = yes; then
16642 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16651 gl_cv_c_multiarch=no
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #ifndef __APPLE_CC__
16655 not a universal capable compiler
16660 if ac_fn_c_try_compile "$LINENO"; then :
16664 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16665 if test -n "$prev"; then
16667 i?86 | x86_64 | ppc | ppc64)
16668 if test -z "$arch" || test "$arch" = "$word"; then
16671 gl_cv_c_multiarch=yes
16677 if test "x$word" = "x-arch"; then
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 if test $gl_cv_c_multiarch = yes; then
16686 APPLE_UNIVERSAL_BUILD=1
16688 APPLE_UNIVERSAL_BUILD=0
16695 if test $ac_cv_type_long_long_int = yes; then
16696 HAVE_LONG_LONG_INT=1
16698 HAVE_LONG_LONG_INT=0
16702 if test $ac_cv_type_unsigned_long_long_int = yes; then
16703 HAVE_UNSIGNED_LONG_LONG_INT=1
16705 HAVE_UNSIGNED_LONG_LONG_INT=0
16710 if test $ac_cv_header_wchar_h = yes; then
16717 if test $ac_cv_header_inttypes_h = yes; then
16724 if test $ac_cv_header_sys_types_h = yes; then
16740 if test $gl_cv_have_include_next = yes; then
16741 gl_cv_next_stdint_h='<'stdint.h'>'
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16744 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16745 if test "${gl_cv_next_stdint_h+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16749 if test $ac_cv_header_stdint_h = yes; then
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16754 #include <stdint.h>
16758 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16759 *) gl_absname_cpp="$ac_cpp" ;;
16764 gl_dirsep_regex='[/\\]'
16767 gl_dirsep_regex='\/'
16770 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16773 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
16774 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
16777 gl_header_literal_regex=`echo 'stdint.h' \
16778 | sed -e "$gl_make_literal_regex_sed"`
16779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16782 >>>>>>> MERGE-SOURCE
16786 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16787 sed -n "$gl_absolute_header_sed"`'"'
16789 gl_cv_next_stdint_h='<'stdint.h'>'
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16795 $as_echo "$gl_cv_next_stdint_h" >&6; }
16797 NEXT_STDINT_H=$gl_cv_next_stdint_h
16799 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16801 gl_next_as_first_directive='<'stdint.h'>'
16803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16804 gl_next_as_first_directive=$gl_cv_next_stdint_h
16806 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16811 if test $ac_cv_header_stdint_h = yes; then
16818 if test $ac_cv_header_stdint_h = yes; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16820 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16821 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16824 gl_cv_header_working_stdint_h=no
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16830 #include <stdint.h>
16831 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16832 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16833 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16838 included before <wchar.h>. */
16839 #include <stddef.h>
16840 #include <signal.h>
16842 # include <stdio.h>
16844 # include <wchar.h>
16849 int8_t a1 = INT8_MAX;
16850 int8_t a1min = INT8_MIN;
16853 int16_t a2 = INT16_MAX;
16854 int16_t a2min = INT16_MIN;
16857 int32_t a3 = INT32_MAX;
16858 int32_t a3min = INT32_MIN;
16861 int64_t a4 = INT64_MAX;
16862 int64_t a4min = INT64_MIN;
16865 uint8_t b1 = UINT8_MAX;
16867 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16870 uint16_t b2 = UINT16_MAX;
16873 uint32_t b3 = UINT32_MAX;
16876 uint64_t b4 = UINT64_MAX;
16878 int_least8_t c1 = INT8_C (0x7f);
16879 int_least8_t c1max = INT_LEAST8_MAX;
16880 int_least8_t c1min = INT_LEAST8_MIN;
16881 int_least16_t c2 = INT16_C (0x7fff);
16882 int_least16_t c2max = INT_LEAST16_MAX;
16883 int_least16_t c2min = INT_LEAST16_MIN;
16884 int_least32_t c3 = INT32_C (0x7fffffff);
16885 int_least32_t c3max = INT_LEAST32_MAX;
16886 int_least32_t c3min = INT_LEAST32_MIN;
16887 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16888 int_least64_t c4max = INT_LEAST64_MAX;
16889 int_least64_t c4min = INT_LEAST64_MIN;
16890 uint_least8_t d1 = UINT8_C (0xff);
16891 uint_least8_t d1max = UINT_LEAST8_MAX;
16892 uint_least16_t d2 = UINT16_C (0xffff);
16893 uint_least16_t d2max = UINT_LEAST16_MAX;
16894 uint_least32_t d3 = UINT32_C (0xffffffff);
16895 uint_least32_t d3max = UINT_LEAST32_MAX;
16896 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16897 uint_least64_t d4max = UINT_LEAST64_MAX;
16898 int_fast8_t e1 = INT_FAST8_MAX;
16899 int_fast8_t e1min = INT_FAST8_MIN;
16900 int_fast16_t e2 = INT_FAST16_MAX;
16901 int_fast16_t e2min = INT_FAST16_MIN;
16902 int_fast32_t e3 = INT_FAST32_MAX;
16903 int_fast32_t e3min = INT_FAST32_MIN;
16904 int_fast64_t e4 = INT_FAST64_MAX;
16905 int_fast64_t e4min = INT_FAST64_MIN;
16906 uint_fast8_t f1 = UINT_FAST8_MAX;
16907 uint_fast16_t f2 = UINT_FAST16_MAX;
16908 uint_fast32_t f3 = UINT_FAST32_MAX;
16909 uint_fast64_t f4 = UINT_FAST64_MAX;
16911 intptr_t g = INTPTR_MAX;
16912 intptr_t gmin = INTPTR_MIN;
16915 uintptr_t h = UINTPTR_MAX;
16917 intmax_t i = INTMAX_MAX;
16918 uintmax_t j = UINTMAX_MAX;
16920 #include <limits.h> /* for CHAR_BIT */
16921 #define TYPE_MINIMUM(t) \
16922 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16923 #define TYPE_MAXIMUM(t) \
16924 ((t) ((t) 0 < (t) -1 \
16926 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16929 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16930 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16932 /* Detect bug in FreeBSD 6.0 / ia64. */
16933 int check_SIG_ATOMIC:
16934 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16935 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16937 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16939 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16940 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16942 /* Detect bug in mingw. */
16944 WINT_MIN == TYPE_MINIMUM (wint_t)
16945 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16948 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16950 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16951 int check_UINT16_C:
16952 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16954 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16956 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16959 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16962 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16965 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16967 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16968 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16969 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16970 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16971 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16972 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16973 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16974 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16975 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16976 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16977 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16988 if ac_fn_c_try_compile "$LINENO"; then :
16989 if test "$cross_compiling" = yes; then :
16990 gl_cv_header_working_stdint_h=yes
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16997 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16998 #include <stdint.h>
17001 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17002 included before <wchar.h>. */
17003 #include <stddef.h>
17004 #include <signal.h>
17006 # include <stdio.h>
17008 # include <wchar.h>
17013 #include <string.h>
17014 #define MVAL(macro) MVAL1(macro)
17015 #define MVAL1(expression) #expression
17016 static const char *macro_values[] =
17050 for (mv = macro_values; *mv != NULL; mv++)
17052 const char *value = *mv;
17053 /* Test whether it looks like a cast expression. */
17054 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17055 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17056 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17057 || strncmp (value, "((int)"/*)*/, 6) == 0
17058 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17059 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17060 return mv - macro_values + 1;
17068 if ac_fn_c_try_run "$LINENO"; then :
17069 gl_cv_header_working_stdint_h=yes
17071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17072 conftest.$ac_objext conftest.beam conftest.$ac_ext
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17081 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17083 if test "$gl_cv_header_working_stdint_h" = yes; then
17086 for ac_header in sys/inttypes.h sys/bitypes.h
17088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17090 eval as_val=\$$as_ac_Header
17091 if test "x$as_val" = x""yes; then :
17092 cat >>confdefs.h <<_ACEOF
17093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17100 if test $ac_cv_header_sys_inttypes_h = yes; then
17101 HAVE_SYS_INTTYPES_H=1
17103 HAVE_SYS_INTTYPES_H=0
17106 if test $ac_cv_header_sys_bitypes_h = yes; then
17107 HAVE_SYS_BITYPES_H=1
17109 HAVE_SYS_BITYPES_H=0
17115 if test $APPLE_UNIVERSAL_BUILD = 0; then
17118 for gltype in ptrdiff_t size_t ; do
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17120 $as_echo_n "checking for bit size of $gltype... " >&6; }
17121 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17122 $as_echo_n "(cached) " >&6
17124 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17126 included before <wchar.h>. */
17127 #include <stddef.h>
17128 #include <signal.h>
17130 # include <stdio.h>
17132 # include <wchar.h>
17135 #include <limits.h>"; then :
17141 eval gl_cv_bitsizeof_${gltype}=\$result
17144 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17146 $as_echo "$ac_res" >&6; }
17147 eval result=\$gl_cv_bitsizeof_${gltype}
17148 if test $result = unknown; then
17151 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17152 cat >>confdefs.h <<_ACEOF
17153 #define BITSIZEOF_${GLTYPE} $result
17156 eval BITSIZEOF_${GLTYPE}=\$result
17163 for gltype in sig_atomic_t wchar_t wint_t ; do
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17165 $as_echo_n "checking for bit size of $gltype... " >&6; }
17166 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17167 $as_echo_n "(cached) " >&6
17169 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17170 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17171 included before <wchar.h>. */
17172 #include <stddef.h>
17173 #include <signal.h>
17175 # include <stdio.h>
17177 # include <wchar.h>
17180 #include <limits.h>"; then :
17186 eval gl_cv_bitsizeof_${gltype}=\$result
17189 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17191 $as_echo "$ac_res" >&6; }
17192 eval result=\$gl_cv_bitsizeof_${gltype}
17193 if test $result = unknown; then
17196 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17197 cat >>confdefs.h <<_ACEOF
17198 #define BITSIZEOF_${GLTYPE} $result
17201 eval BITSIZEOF_${GLTYPE}=\$result
17207 for gltype in sig_atomic_t wchar_t wint_t ; do
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17209 $as_echo_n "checking whether $gltype is signed... " >&6; }
17210 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17211 $as_echo_n "(cached) " >&6
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17216 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17217 included before <wchar.h>. */
17218 #include <stddef.h>
17219 #include <signal.h>
17221 # include <stdio.h>
17223 # include <wchar.h>
17226 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17235 if ac_fn_c_try_compile "$LINENO"; then :
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 eval gl_cv_type_${gltype}_signed=\$result
17244 eval ac_res=\$gl_cv_type_${gltype}_signed
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17246 $as_echo "$ac_res" >&6; }
17247 eval result=\$gl_cv_type_${gltype}_signed
17248 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17249 if test "$result" = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define HAVE_SIGNED_${GLTYPE} 1
17254 eval HAVE_SIGNED_${GLTYPE}=1
17256 eval HAVE_SIGNED_${GLTYPE}=0
17261 gl_cv_type_ptrdiff_t_signed=yes
17262 gl_cv_type_size_t_signed=no
17263 if test $APPLE_UNIVERSAL_BUILD = 0; then
17266 for gltype in ptrdiff_t size_t ; do
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17268 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17269 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17270 $as_echo_n "(cached) " >&6
17272 eval gl_cv_type_${gltype}_suffix=no
17273 eval result=\$gl_cv_type_${gltype}_signed
17274 if test "$result" = yes; then
17279 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17281 '') gltype1='int';;
17282 l) gltype1='long int';;
17283 ll) gltype1='long long int';;
17284 i64) gltype1='__int64';;
17285 u) gltype1='unsigned int';;
17286 ul) gltype1='unsigned long int';;
17287 ull) gltype1='unsigned long long int';;
17288 ui64)gltype1='unsigned __int64';;
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17293 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17294 included before <wchar.h>. */
17295 #include <stddef.h>
17296 #include <signal.h>
17298 # include <stdio.h>
17300 # include <wchar.h>
17303 extern $gltype foo;
17304 extern $gltype1 foo;
17313 if ac_fn_c_try_compile "$LINENO"; then :
17314 eval gl_cv_type_${gltype}_suffix=\$glsuf
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 eval result=\$gl_cv_type_${gltype}_suffix
17318 test "$result" != no && break
17321 eval ac_res=\$gl_cv_type_${gltype}_suffix
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17323 $as_echo "$ac_res" >&6; }
17324 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17325 eval result=\$gl_cv_type_${gltype}_suffix
17326 test "$result" = no && result=
17327 eval ${GLTYPE}_SUFFIX=\$result
17328 cat >>confdefs.h <<_ACEOF
17329 #define ${GLTYPE}_SUFFIX $result
17338 for gltype in sig_atomic_t wchar_t wint_t ; do
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17340 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17341 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17342 $as_echo_n "(cached) " >&6
17344 eval gl_cv_type_${gltype}_suffix=no
17345 eval result=\$gl_cv_type_${gltype}_signed
17346 if test "$result" = yes; then
17351 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17353 '') gltype1='int';;
17354 l) gltype1='long int';;
17355 ll) gltype1='long long int';;
17356 i64) gltype1='__int64';;
17357 u) gltype1='unsigned int';;
17358 ul) gltype1='unsigned long int';;
17359 ull) gltype1='unsigned long long int';;
17360 ui64)gltype1='unsigned __int64';;
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17365 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17366 included before <wchar.h>. */
17367 #include <stddef.h>
17368 #include <signal.h>
17370 # include <stdio.h>
17372 # include <wchar.h>
17375 extern $gltype foo;
17376 extern $gltype1 foo;
17385 if ac_fn_c_try_compile "$LINENO"; then :
17386 eval gl_cv_type_${gltype}_suffix=\$glsuf
17388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389 eval result=\$gl_cv_type_${gltype}_suffix
17390 test "$result" != no && break
17393 eval ac_res=\$gl_cv_type_${gltype}_suffix
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17395 $as_echo "$ac_res" >&6; }
17396 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17397 eval result=\$gl_cv_type_${gltype}_suffix
17398 test "$result" = no && result=
17399 eval ${GLTYPE}_SUFFIX=\$result
17400 cat >>confdefs.h <<_ACEOF
17401 #define ${GLTYPE}_SUFFIX $result
17411 if test -n "$STDINT_H"; then
17412 GL_GENERATE_STDINT_H_TRUE=
17413 GL_GENERATE_STDINT_H_FALSE='#'
17415 GL_GENERATE_STDINT_H_TRUE='#'
17416 GL_GENERATE_STDINT_H_FALSE=
17425 GNULIB_STRTOIMAX=0;
17426 GNULIB_STRTOUMAX=0;
17427 HAVE_DECL_IMAXABS=1;
17428 HAVE_DECL_IMAXDIV=1;
17429 HAVE_DECL_STRTOIMAX=1;
17430 HAVE_DECL_STRTOUMAX=1;
17431 REPLACE_STRTOIMAX=0;
17432 INT32_MAX_LT_INTMAX_MAX=1;
17433 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17434 PRI_MACROS_BROKEN=0;
17435 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17436 UINT32_MAX_LT_UINTMAX_MAX=1;
17437 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17453 if test $gl_cv_have_include_next = yes; then
17454 gl_cv_next_inttypes_h='<'inttypes.h'>'
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17457 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17458 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17462 if test $ac_cv_header_inttypes_h = yes; then
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 #include <inttypes.h>
17471 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17472 *) gl_absname_cpp="$ac_cpp" ;;
17477 gl_dirsep_regex='[/\\]'
17480 gl_dirsep_regex='\/'
17483 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17486 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
17487 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
17490 gl_header_literal_regex=`echo 'inttypes.h' \
17491 | sed -e "$gl_make_literal_regex_sed"`
17492 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17493 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17495 >>>>>>> MERGE-SOURCE
17499 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17500 sed -n "$gl_absolute_header_sed"`'"'
17502 gl_cv_next_inttypes_h='<'inttypes.h'>'
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17508 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17510 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17512 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17513 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17514 gl_next_as_first_directive='<'inttypes.h'>'
17516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17517 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17519 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17534 $as_echo_n "checking for 64-bit off_t... " >&6; }
17535 if test "${gl_cv_type_off_t_64+set}" = set; then :
17536 $as_echo_n "(cached) " >&6
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 #include <sys/types.h>
17541 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552 gl_cv_type_off_t_64=yes
17554 gl_cv_type_off_t_64=no
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17560 $as_echo "$gl_cv_type_off_t_64" >&6; }
17561 if test $gl_cv_type_off_t_64 = no; then
17562 WINDOWS_64_BIT_OFF_T=1
17564 WINDOWS_64_BIT_OFF_T=0
17566 WINDOWS_64_BIT_ST_SIZE=1
17569 WINDOWS_64_BIT_OFF_T=0
17570 WINDOWS_64_BIT_ST_SIZE=0
17586 GNULIB_UTIMENSAT=0;
17600 REPLACE_FUTIMENS=0;
17606 REPLACE_UTIMENSAT=0;
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17612 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17613 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17614 $as_echo_n "(cached) " >&6
17616 rm -f conftest.sym conftest.file
17617 echo >conftest.file
17618 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17619 if test "$cross_compiling" = yes; then :
17621 # Guess yes on glibc systems.
17622 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17623 # If we don't know, assume the worst.
17624 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630 $ac_includes_default
17635 /* Linux will dereference the symlink and fail, as required by
17636 POSIX. That is better in the sense that it means we will not
17637 have to compile and use the lstat wrapper. */
17638 return lstat ("conftest.sym/", &sbuf) == 0;
17644 if ac_fn_c_try_run "$LINENO"; then :
17645 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17647 gl_cv_func_lstat_dereferences_slashed_symlink=no
17649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17650 conftest.$ac_objext conftest.beam conftest.$ac_ext
17654 # If the 'ln -s' command failed, then we probably don't even
17655 # have an lstat function.
17656 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17658 rm -f conftest.sym conftest.file
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17662 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17663 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17666 cat >>confdefs.h <<_ACEOF
17667 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17675 GNULIB_NANOSLEEP=0;
17679 HAVE_DECL_LOCALTIME_R=1;
17683 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17684 REPLACE_MKTIME=GNULIB_PORTCHECK;
17685 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17686 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17697 >>>>>>> MERGE-SOURCE
17698 GNULIB_PTHREAD_SIGMASK=0;
17699 GNULIB_SIGNAL_H_SIGPIPE=0;
17700 GNULIB_SIGPROCMASK=0;
17701 GNULIB_SIGACTION=0;
17702 HAVE_POSIX_SIGNALBLOCKING=1;
17703 HAVE_PTHREAD_SIGMASK=1;
17707 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17709 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17711 HAVE_SIGHANDLER_T=1;
17712 REPLACE_PTHREAD_SIGMASK=0;
17719 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17720 #include <signal.h>
17721 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17722 #include <sys/types.h>
17725 if test "x$ac_cv_type_sigset_t" = x""yes; then :
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_SIGSET_T 1
17731 gl_cv_type_sigset_t=yes
17733 gl_cv_type_sigset_t=no
17736 if test $gl_cv_type_sigset_t != yes; then
17743 >>>>>>> MERGE-SOURCE
17747 >>>>>>> MERGE-SOURCE
17748 if test $ac_cv_header_sys_socket_h = no; then
17749 for ac_header in ws2tcpip.h
17751 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17752 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_WS2TCPIP_H 1
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17764 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17765 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17771 #include <stdbool.h>
17773 "error: bool is not defined"
17776 "error: false is not defined"
17779 "error: false is not 0"
17782 "error: true is not defined"
17785 "error: true is not 1"
17787 #ifndef __bool_true_false_are_defined
17788 "error: __bool_true_false_are_defined is not defined"
17791 struct s { _Bool s: 1; _Bool t; } s;
17793 char a[true == 1 ? 1 : -1];
17794 char b[false == 0 ? 1 : -1];
17795 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17796 char d[(bool) 0.5 == true ? 1 : -1];
17797 /* See body of main program for 'e'. */
17798 char f[(_Bool) 0.0 == false ? 1 : -1];
17800 char h[sizeof (_Bool)];
17801 char i[sizeof s.t];
17802 enum { j = false, k = true, l = false * true, m = true * 256 };
17803 /* The following fails for
17804 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17806 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17807 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17808 /* Catch a bug in an HP-UX C compiler. See
17809 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17810 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17822 /* Refer to every declared value, to avoid compiler optimizations. */
17823 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17824 + !m + !n + !o + !p + !q + !pq);
17830 if ac_fn_c_try_compile "$LINENO"; then :
17831 ac_cv_header_stdbool_h=yes
17833 ac_cv_header_stdbool_h=no
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17838 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17839 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17840 if test "x$ac_cv_type__Bool" = x""yes; then :
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE__BOOL 1
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17856 $as_echo_n "checking for wchar_t... " >&6; }
17857 if test "${gt_cv_c_wchar_t+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17862 #include <stddef.h>
17863 wchar_t foo = (wchar_t)'\0';
17872 if ac_fn_c_try_compile "$LINENO"; then :
17873 gt_cv_c_wchar_t=yes
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17880 $as_echo "$gt_cv_c_wchar_t" >&6; }
17881 if test $gt_cv_c_wchar_t = yes; then
17883 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17895 GNULIB_FPRINTF_POSIX=0;
17911 GNULIB_OBSTACK_PRINTF=0;
17912 GNULIB_OBSTACK_PRINTF_POSIX=0;
17916 GNULIB_PRINTF_POSIX=0;
17925 GNULIB_SPRINTF_POSIX=0;
17926 GNULIB_STDIO_H_NONBLOCKING=0;
17927 GNULIB_STDIO_H_SIGPIPE=0;
17929 GNULIB_VASPRINTF=0;
17934 GNULIB_VFPRINTF_POSIX=0;
17936 GNULIB_VPRINTF_POSIX=0;
17937 GNULIB_VSNPRINTF=0;
17938 GNULIB_VSPRINTF_POSIX=0;
17939 HAVE_DECL_FPURGE=1;
17940 HAVE_DECL_FSEEKO=1;
17941 HAVE_DECL_FTELLO=1;
17942 HAVE_DECL_GETDELIM=1;
17943 HAVE_DECL_GETLINE=1;
17944 HAVE_DECL_OBSTACK_PRINTF=1;
17945 HAVE_DECL_SNPRINTF=1;
17946 HAVE_DECL_VSNPRINTF=1;
17964 REPLACE_GETDELIM=0;
17966 REPLACE_OBSTACK_PRINTF=0;
17972 REPLACE_RENAMEAT=0;
17973 REPLACE_SNPRINTF=0;
17975 REPLACE_STDIO_READ_FUNCS=0;
17976 REPLACE_STDIO_WRITE_FUNCS=0;
17978 REPLACE_VASPRINTF=0;
17979 REPLACE_VDPRINTF=0;
17980 REPLACE_VFPRINTF=0;
17982 REPLACE_VSNPRINTF=0;
17983 REPLACE_VSPRINTF=0;
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17986 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17987 if test "${ac_cv_struct_tm+set}" = set; then :
17988 $as_echo_n "(cached) " >&6
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <sys/types.h>
17999 int *p = &tm.tm_sec;
18005 if ac_fn_c_try_compile "$LINENO"; then :
18006 ac_cv_struct_tm=time.h
18008 ac_cv_struct_tm=sys/time.h
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18013 $as_echo "$ac_cv_struct_tm" >&6; }
18014 if test $ac_cv_struct_tm = sys/time.h; then
18016 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18020 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18021 #include <$ac_cv_struct_tm>
18024 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_STRUCT_TM_TM_ZONE 1
18033 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18035 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18038 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18040 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_DECL_TZNAME $ac_have_decl
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18051 $as_echo_n "checking for tzname... " >&6; }
18052 if test "${ac_cv_var_tzname+set}" = set; then :
18053 $as_echo_n "(cached) " >&6
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18058 #if !HAVE_DECL_TZNAME
18059 extern char *tzname[];
18065 return tzname[0][0];
18070 if ac_fn_c_try_link "$LINENO"; then :
18071 ac_cv_var_tzname=yes
18073 ac_cv_var_tzname=no
18075 rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18079 $as_echo "$ac_cv_var_tzname" >&6; }
18080 if test $ac_cv_var_tzname = yes; then
18082 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18088 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18090 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18092 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18105 >>>>>>> MERGE-SOURCE
18106 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18107 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18119 >>>>>>> MERGE-SOURCE
18120 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18121 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18134 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18135 if test "${ac_cv_header_stat_broken+set}" = set; then :
18136 $as_echo_n "(cached) " >&6
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140 #include <sys/types.h>
18141 #include <sys/stat.h>
18143 #if defined S_ISBLK && defined S_IFDIR
18144 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18147 #if defined S_ISBLK && defined S_IFCHR
18148 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18151 #if defined S_ISLNK && defined S_IFREG
18152 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18155 #if defined S_ISSOCK && defined S_IFREG
18156 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18160 if ac_fn_c_try_compile "$LINENO"; then :
18161 ac_cv_header_stat_broken=no
18163 ac_cv_header_stat_broken=yes
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18168 $as_echo "$ac_cv_header_stat_broken" >&6; }
18169 if test $ac_cv_header_stat_broken = yes; then
18171 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18179 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18180 if test "x$ac_cv_type_mode_t" = x""yes; then :
18184 cat >>confdefs.h <<_ACEOF
18198 >>>>>>> MERGE-SOURCE
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18200 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18201 if test "${ac_cv_c_restrict+set}" = set; then :
18202 $as_echo_n "(cached) " >&6
18204 ac_cv_c_restrict=no
18205 # The order here caters to the fact that C++ does not require restrict.
18206 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209 typedef int * int_ptr;
18210 int foo (int_ptr $ac_kw ip) {
18217 int * $ac_kw t = s;
18224 if ac_fn_c_try_compile "$LINENO"; then :
18225 ac_cv_c_restrict=$ac_kw
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228 test "$ac_cv_c_restrict" != no && break
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18233 $as_echo "$ac_cv_c_restrict" >&6; }
18235 case $ac_cv_c_restrict in
18237 no) $as_echo "#define restrict /**/" >>confdefs.h
18239 *) cat >>confdefs.h <<_ACEOF
18240 #define restrict $ac_cv_c_restrict
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18248 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18249 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18259 static struct timespec x; x.tv_sec = x.tv_nsec;
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265 gl_cv_sys_struct_timespec_in_time_h=yes
18267 gl_cv_sys_struct_timespec_in_time_h=no
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18272 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18274 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18275 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18276 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18277 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18278 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18281 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18282 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <sys/time.h>
18292 static struct timespec x; x.tv_sec = x.tv_nsec;
18297 if ac_fn_c_try_compile "$LINENO"; then :
18298 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18300 gl_cv_sys_struct_timespec_in_sys_time_h=no
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18305 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18306 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18307 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18310 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18311 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18312 $as_echo_n "(cached) " >&6
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <pthread.h>
18321 static struct timespec x; x.tv_sec = x.tv_nsec;
18326 if ac_fn_c_try_compile "$LINENO"; then :
18327 gl_cv_sys_struct_timespec_in_pthread_h=yes
18329 gl_cv_sys_struct_timespec_in_pthread_h=no
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18334 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18335 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18336 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18355 if test $gl_cv_have_include_next = yes; then
18356 gl_cv_next_time_h='<'time.h'>'
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18359 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18360 if test "${gl_cv_next_time_h+set}" = set; then :
18361 $as_echo_n "(cached) " >&6
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18370 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18371 *) gl_absname_cpp="$ac_cpp" ;;
18376 gl_dirsep_regex='[/\\]'
18379 gl_dirsep_regex='\/'
18382 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18385 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
18386 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
18389 gl_header_literal_regex=`echo 'time.h' \
18390 | sed -e "$gl_make_literal_regex_sed"`
18391 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18392 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18394 >>>>>>> MERGE-SOURCE
18398 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18399 sed -n "$gl_absolute_header_sed"`'"'
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18404 $as_echo "$gl_cv_next_time_h" >&6; }
18406 NEXT_TIME_H=$gl_cv_next_time_h
18408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18410 gl_next_as_first_directive='<'time.h'>'
18412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18413 gl_next_as_first_directive=$gl_cv_next_time_h
18415 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18424 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18425 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18431 cat >>confdefs.h <<_ACEOF
18432 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18439 GL_COND_LIBTOOL_TRUE=
18440 GL_COND_LIBTOOL_FALSE='#'
18442 GL_COND_LIBTOOL_TRUE='#'
18443 GL_COND_LIBTOOL_FALSE=
18446 gl_cond_libtool=false
18459 gl_source_base='lib'
18462 if test $ac_cv_func_alloca_works = no; then
18466 # Define an additional variable used in the Makefile substitution.
18467 if test $ac_cv_working_alloca_h = yes; then
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18469 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18470 if test "${gl_cv_rpl_alloca+set}" = set; then :
18471 $as_echo_n "(cached) " >&6
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18477 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18483 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18484 gl_cv_rpl_alloca=yes
18486 gl_cv_rpl_alloca=no
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18493 $as_echo "$gl_cv_rpl_alloca" >&6; }
18494 if test $gl_cv_rpl_alloca = yes; then
18496 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18506 if test -n "$ALLOCA_H"; then
18507 GL_GENERATE_ALLOCA_H_TRUE=
18508 GL_GENERATE_ALLOCA_H_FALSE='#'
18510 GL_GENERATE_ALLOCA_H_TRUE='#'
18511 GL_GENERATE_ALLOCA_H_FALSE=
18540 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18543 if test $HAVE_DUP2 = 1; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18545 $as_echo_n "checking whether dup2 works... " >&6; }
18546 if test "${gl_cv_func_dup2_works+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18549 if test "$cross_compiling" = yes; then :
18551 mingw*) # on this platform, dup2 always returns 0 for success
18552 gl_cv_func_dup2_works="guessing no" ;;
18553 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18554 gl_cv_func_dup2_works="guessing no" ;;
18555 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18556 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18557 gl_cv_func_dup2_works="guessing no" ;;
18558 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18559 gl_cv_func_dup2_works="guessing no" ;;
18560 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18561 gl_cv_func_dup2_works="guessing no" ;;
18562 *) gl_cv_func_dup2_works="guessing yes" ;;
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h. */
18568 #include <unistd.h>
18576 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18579 if (dup2 (1, 1) == 0)
18582 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18586 if (dup2 (0, 0) != -1)
18588 /* Many gnulib modules require POSIX conformance of EBADF. */
18589 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_dup2_works=yes
18601 gl_cv_func_dup2_works=no
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18610 $as_echo "$gl_cv_func_dup2_works" >&6; }
18611 case "$gl_cv_func_dup2_works" in
18620 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
18629 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18649 # Persuade glibc <stdlib.h> to declare getloadavg().
18654 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18655 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18657 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18658 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18661 gl_func_getloadavg_done=no
18663 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18664 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18665 # to get the right answer into the cache.
18666 # For kstat on solaris, we need to test for libelf and libkvm to force the
18667 # definition of SVR4 below.
18668 if test $gl_func_getloadavg_done = no; then
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18670 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18671 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18672 $as_echo_n "(cached) " >&6
18674 ac_check_lib_save_LIBS=$LIBS
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18689 return elf_begin ();
18694 if ac_fn_c_try_link "$LINENO"; then :
18695 ac_cv_lib_elf_elf_begin=yes
18697 ac_cv_lib_elf_elf_begin=no
18699 rm -f core conftest.err conftest.$ac_objext \
18700 conftest$ac_exeext conftest.$ac_ext
18701 LIBS=$ac_check_lib_save_LIBS
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18704 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18705 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18710 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18711 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18712 $as_echo_n "(cached) " >&6
18714 ac_check_lib_save_LIBS=$LIBS
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18729 return kvm_open ();
18734 if ac_fn_c_try_link "$LINENO"; then :
18735 ac_cv_lib_kvm_kvm_open=yes
18737 ac_cv_lib_kvm_kvm_open=no
18739 rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18741 LIBS=$ac_check_lib_save_LIBS
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18744 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18745 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18749 # Check for the 4.4BSD definition of getloadavg.
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18751 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18752 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18753 $as_echo_n "(cached) " >&6
18755 ac_check_lib_save_LIBS=$LIBS
18756 LIBS="-lutil $LIBS"
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18766 char getloadavg ();
18770 return getloadavg ();
18775 if ac_fn_c_try_link "$LINENO"; then :
18776 ac_cv_lib_util_getloadavg=yes
18778 ac_cv_lib_util_getloadavg=no
18780 rm -f core conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18785 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18786 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18787 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18792 if test $gl_func_getloadavg_done = no; then
18793 # There is a commonly available library for RS/6000 AIX.
18794 # Since it is not a standard part of AIX, it might be installed locally.
18795 gl_getloadavg_LIBS=$LIBS
18796 LIBS="-L/usr/local/lib $LIBS"
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18798 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18799 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18800 $as_echo_n "(cached) " >&6
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lgetloadavg $LIBS"
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18813 char getloadavg ();
18817 return getloadavg ();
18822 if ac_fn_c_try_link "$LINENO"; then :
18823 ac_cv_lib_getloadavg_getloadavg=yes
18825 ac_cv_lib_getloadavg_getloadavg=no
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18832 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18833 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18834 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18836 LIBS=$gl_getloadavg_LIBS
18841 # Set up the replacement function if necessary.
18842 if test $gl_func_getloadavg_done = no; then
18845 # Solaris has libkstat which does not require root.
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18847 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18848 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18849 $as_echo_n "(cached) " >&6
18851 ac_check_lib_save_LIBS=$LIBS
18852 LIBS="-lkstat $LIBS"
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18856 /* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18862 char kstat_open ();
18866 return kstat_open ();
18871 if ac_fn_c_try_link "$LINENO"; then :
18872 ac_cv_lib_kstat_kstat_open=yes
18874 ac_cv_lib_kstat_kstat_open=no
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18881 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18882 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define HAVE_LIBKSTAT 1
18887 LIBS="-lkstat $LIBS"
18891 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18893 # AIX has libperfstat which does not require root
18894 if test $gl_func_getloadavg_done = no; then
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18896 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18897 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18898 $as_echo_n "(cached) " >&6
18900 ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lperfstat $LIBS"
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 /* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18911 char perfstat_cpu_total ();
18915 return perfstat_cpu_total ();
18920 if ac_fn_c_try_link "$LINENO"; then :
18921 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18923 ac_cv_lib_perfstat_perfstat_cpu_total=no
18925 rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18930 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18931 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18932 cat >>confdefs.h <<_ACEOF
18933 #define HAVE_LIBPERFSTAT 1
18936 LIBS="-lperfstat $LIBS"
18940 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18943 if test $gl_func_getloadavg_done = no; then
18944 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18945 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18946 gl_func_getloadavg_done=yes
18948 $as_echo "#define DGUX 1" >>confdefs.h
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18951 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18952 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18953 $as_echo_n "(cached) " >&6
18955 ac_check_lib_save_LIBS=$LIBS
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18960 /* Override any GCC internal prototype to avoid an error.
18961 Use char because int might match the return type of a GCC
18962 builtin and then its argument prototype would still apply. */
18966 char dg_sys_info ();
18970 return dg_sys_info ();
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 ac_cv_lib_dgc_dg_sys_info=yes
18978 ac_cv_lib_dgc_dg_sys_info=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18985 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18986 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18987 cat >>confdefs.h <<_ACEOF
18988 #define HAVE_LIBDGC 1
19003 if test "x$gl_save_LIBS" = x; then
19004 GETLOADAVG_LIBS=$LIBS
19006 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19011 # Test whether the system declares getloadavg. Solaris has the function
19012 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19013 for ac_header in sys/loadavg.h
19015 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19016 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_SYS_LOADAVG_H 1
19025 if test $ac_cv_header_sys_loadavg_h = yes; then
19026 HAVE_SYS_LOADAVG_H=1
19028 HAVE_SYS_LOADAVG_H=0
19030 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19031 # include <sys/loadavg.h>
19033 #include <stdlib.h>
19035 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19038 HAVE_DECL_GETLOADAVG=0
19042 if test $HAVE_GETLOADAVG = 0; then
19051 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19054 # Figure out what our getloadavg.c needs.
19056 # On HPUX9, an unprivileged user can get load averages this way.
19057 if test $gl_func_getloadavg_done = no; then
19058 for ac_func in pstat_getdynamic
19060 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19061 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19062 cat >>confdefs.h <<_ACEOF
19063 #define HAVE_PSTAT_GETDYNAMIC 1
19065 gl_func_getloadavg_done=yes
19071 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19072 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19073 # Irix 4.0.5F has the header but not the library.
19074 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19075 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19076 gl_func_getloadavg_done=yes
19078 $as_echo "#define SVR4 1" >>confdefs.h
19082 if test $gl_func_getloadavg_done = no; then
19083 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19084 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19085 gl_func_getloadavg_done=yes
19087 $as_echo "#define UMAX 1" >>confdefs.h
19090 $as_echo "#define UMAX4_3 1" >>confdefs.h
19097 if test $gl_func_getloadavg_done = no; then
19098 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19099 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19100 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19107 if test $gl_func_getloadavg_done = no; then
19108 for ac_header in mach/mach.h
19110 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_MACH_MACH_H 1
19122 for ac_header in nlist.h
19124 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19125 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19126 cat >>confdefs.h <<_ACEOF
19127 #define HAVE_NLIST_H 1
19129 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19131 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19147 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19148 x.n_un.n_name = "";
19156 if ac_fn_c_try_link "$LINENO"; then :
19158 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19174 GNULIB_GETLOADAVG=1
19185 if test $REPLACE_GETOPT = 1; then
19194 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19204 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19209 GNULIB_GL_UNISTD_H_GETOPT=1
19220 if test -n "$gl_replace_getopt"; then :
19227 if test $REPLACE_GETOPT = 1; then
19231 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19237 if test $REPLACE_GETOPT = 1; then
19246 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19256 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19261 GNULIB_GL_UNISTD_H_GETOPT=1
19270 if test $ac_cv_func_lstat = yes; then
19272 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19281 if test $REPLACE_LSTAT = 1; then
19290 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19314 if test $APPLE_UNIVERSAL_BUILD = 1; then
19315 # A universal build on Apple MacOS X platforms.
19316 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19317 # But we need a configuration result that is valid in both modes.
19318 gl_cv_func_working_mktime=no
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19321 $as_echo_n "checking for working mktime... " >&6; }
19322 if test "${gl_cv_func_working_mktime+set}" = set; then :
19323 $as_echo_n "(cached) " >&6
19325 if test "$cross_compiling" = yes; then :
19326 gl_cv_func_working_mktime=no
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 /* Test program from Paul Eggert and Tony Leneis. */
19331 #include <limits.h>
19332 #include <stdlib.h>
19335 #ifdef HAVE_UNISTD_H
19336 # include <unistd.h>
19340 # define alarm(X) /* empty */
19343 /* Work around redefinition to rpl_putenv by other config tests. */
19346 static time_t time_t_max;
19347 static time_t time_t_min;
19349 /* Values we'll use to set the TZ environment variable. */
19350 static char *tz_strings[] = {
19351 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19352 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19354 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19356 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19357 Based on a problem report from Andreas Jaeger. */
19359 spring_forward_gap ()
19361 /* glibc (up to about 1998-10-07) failed this test. */
19364 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19365 instead of "TZ=America/Vancouver" in order to detect the bug even
19366 on systems that don't support the Olson extension, or don't have the
19367 full zoneinfo tables installed. */
19368 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19377 return mktime (&tm) != (time_t) -1;
19381 mktime_test1 (time_t now)
19384 return ! (lt = localtime (&now)) || mktime (lt) == now;
19388 mktime_test (time_t now)
19390 return (mktime_test1 (now)
19391 && mktime_test1 ((time_t) (time_t_max - now))
19392 && mktime_test1 ((time_t) (time_t_min + now)));
19398 /* Based on code from Ariel Faigon. */
19408 return tm.tm_mon == 2 && tm.tm_mday == 31;
19412 bigtime_test (int j)
19416 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19417 now = mktime (&tm);
19418 if (now != (time_t) -1)
19420 struct tm *lt = localtime (&now);
19422 && lt->tm_year == tm.tm_year
19423 && lt->tm_mon == tm.tm_mon
19424 && lt->tm_mday == tm.tm_mday
19425 && lt->tm_hour == tm.tm_hour
19426 && lt->tm_min == tm.tm_min
19427 && lt->tm_sec == tm.tm_sec
19428 && lt->tm_yday == tm.tm_yday
19429 && lt->tm_wday == tm.tm_wday
19430 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19431 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19440 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19441 ignoring leap seconds. */
19442 unsigned long int answer = 2527315200UL;
19446 tm.tm_year = 2050 - 1900;
19449 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19452 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19453 instead of "TZ=America/Vancouver" in order to detect the bug even
19454 on systems that don't support the Olson extension, or don't have the
19455 full zoneinfo tables installed. */
19456 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19460 /* Check that the result is either a failure, or close enough
19461 to the correct answer that we can assume the discrepancy is
19462 due to leap seconds. */
19463 return (t == (time_t) -1
19464 || (0 < t && answer - 120 <= t && t <= answer + 120));
19473 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19474 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19476 /* This test makes some buggy mktime implementations loop.
19477 Give up after 60 seconds; a mktime slower than that
19478 isn't worth using anyway. */
19481 time_t_max = (! time_t_signed
19483 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19485 time_t_min = (! time_t_signed
19487 : time_t_signed_magnitude
19491 delta = time_t_max / 997; /* a suitable prime number */
19492 for (i = 0; i < N_STRINGS; i++)
19495 putenv (tz_strings[i]);
19497 for (t = 0; t <= time_t_max - delta; t += delta)
19498 if (! mktime_test (t))
19500 if (! (mktime_test ((time_t) 1)
19501 && mktime_test ((time_t) (60 * 60))
19502 && mktime_test ((time_t) (60 * 60 * 24))))
19505 for (j = 1; ; j <<= 1)
19506 if (! bigtime_test (j))
19508 else if (INT_MAX / 2 < j)
19510 if (! bigtime_test (INT_MAX))
19513 if (! irix_6_4_bug ())
19515 if (! spring_forward_gap ())
19517 if (! year_2050_test ())
19522 if ac_fn_c_try_run "$LINENO"; then :
19523 gl_cv_func_working_mktime=yes
19525 gl_cv_func_working_mktime=no
19527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19528 conftest.$ac_objext conftest.beam conftest.$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19534 $as_echo "$gl_cv_func_working_mktime" >&6; }
19536 if test $gl_cv_func_working_mktime = no; then
19542 if test $REPLACE_MKTIME = 1; then
19551 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19577 >>>>>>> MERGE-SOURCE
19578 LIB_PTHREAD_SIGMASK=
19581 if test $ac_cv_func_pthread_sigmask = yes; then
19584 HAVE_PTHREAD_SIGMASK=0
19585 REPLACE_PTHREAD_SIGMASK=1
19591 if test $HAVE_PTHREAD_SIGMASK = 1; then
19594 if test -z "$LIB_PTHREAD_SIGMASK"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19596 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19597 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19598 $as_echo_n "(cached) " >&6
19601 if test "$cross_compiling" = yes; then :
19604 freebsd* | hpux* | solaris | solaris2.[2-9]*)
19605 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
19607 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19614 #include <pthread.h>
19615 #include <signal.h>
19616 #include <stddef.h>
19620 sigemptyset (&set);
19621 return pthread_sigmask (1729, &set, NULL) != 0;
19624 if ac_fn_c_try_run "$LINENO"; then :
19625 gl_cv_func_pthread_sigmask_in_libc_works=no
19627 gl_cv_func_pthread_sigmask_in_libc_works=yes
19629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19630 conftest.$ac_objext conftest.beam conftest.$ac_ext
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19636 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19637 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19639 REPLACE_PTHREAD_SIGMASK=1
19641 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19648 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19649 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19650 $as_echo_n "(cached) " >&6
19653 gl_save_LIBS="$LIBS"
19654 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
19655 if test "$cross_compiling" = yes; then :
19658 gl_cv_func_pthread_sigmask_return_works="guessing no";;
19660 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19667 #include <pthread.h>
19668 #include <signal.h>
19669 #include <stddef.h>
19673 sigemptyset (&set);
19674 if (pthread_sigmask (1729, &set, NULL) == -1)
19679 if ac_fn_c_try_run "$LINENO"; then :
19680 gl_cv_func_pthread_sigmask_return_works=yes
19682 gl_cv_func_pthread_sigmask_return_works=no
19684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19685 conftest.$ac_objext conftest.beam conftest.$ac_ext
19688 LIBS="$gl_save_LIBS"
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19692 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19693 case "$gl_cv_func_pthread_sigmask_return_works" in
19695 REPLACE_PTHREAD_SIGMASK=1
19697 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19703 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19704 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19705 $as_echo_n "(cached) " >&6
19710 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
19712 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
19714 gl_save_LIBS="$LIBS"
19715 LIBS="$LIBS $LIBMULTITHREAD"
19716 if test "$cross_compiling" = yes; then :
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19722 #include <pthread.h>
19723 #include <signal.h>
19725 #include <stdlib.h>
19726 #include <unistd.h>
19727 static volatile int sigint_occurred;
19729 sigint_handler (int sig)
19736 int pid = getpid ();
19738 signal (SIGINT, sigint_handler);
19739 sigemptyset (&set);
19740 sigaddset (&set, SIGINT);
19741 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19743 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19744 if (!(system (command) == 0))
19747 if (!(sigint_occurred == 0))
19749 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19751 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19756 if ac_fn_c_try_run "$LINENO"; then :
19759 gl_cv_func_pthread_sigmask_unblock_works=no
19761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19762 conftest.$ac_objext conftest.beam conftest.$ac_ext
19765 LIBS="$gl_save_LIBS"
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19769 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19770 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19772 REPLACE_PTHREAD_SIGMASK=1
19774 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19780 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
19789 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19792 if test $HAVE_PTHREAD_SIGMASK = 1; then
19794 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19804 GNULIB_PTHREAD_SIGMASK=1
19812 >>>>>>> MERGE-SOURCE
19814 if test $ac_cv_func_readlink = no; then
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19818 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19819 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19820 $as_echo_n "(cached) " >&6
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824 #include <unistd.h>
19825 /* Cause compilation failure if original declaration has wrong type. */
19826 ssize_t readlink (const char *, char *, size_t);
19835 if ac_fn_c_try_compile "$LINENO"; then :
19836 gl_cv_decl_readlink_works=yes
19838 gl_cv_decl_readlink_works=no
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19843 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19845 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19846 if test "${gl_cv_func_readlink_works+set}" = set; then :
19847 $as_echo_n "(cached) " >&6
19849 # We have readlink, so assume ln -s works.
19850 ln -s conftest.no-such conftest.link
19851 ln -s conftest.link conftest.lnk2
19852 if test "$cross_compiling" = yes; then :
19854 # Guess yes on glibc systems.
19855 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
19856 # If we don't know, assume the worst.
19857 *) gl_cv_func_readlink_works="guessing no" ;;
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19863 #include <unistd.h>
19869 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19874 if ac_fn_c_try_run "$LINENO"; then :
19875 gl_cv_func_readlink_works=yes
19877 gl_cv_func_readlink_works=no
19879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19880 conftest.$ac_objext conftest.beam conftest.$ac_ext
19883 rm -f conftest.link conftest.lnk2
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19886 $as_echo "$gl_cv_func_readlink_works" >&6; }
19887 case "$gl_cv_func_readlink_works" in
19889 if test "$gl_cv_decl_readlink_works" != yes; then
19895 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19902 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19911 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19941 if test $gl_cv_have_include_next = yes; then
19942 gl_cv_next_signal_h='<'signal.h'>'
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19945 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19946 if test "${gl_cv_next_signal_h+set}" = set; then :
19947 $as_echo_n "(cached) " >&6
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19952 #include <signal.h>
19956 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19957 *) gl_absname_cpp="$ac_cpp" ;;
19962 gl_dirsep_regex='[/\\]'
19965 gl_dirsep_regex='\/'
19968 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19971 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
19972 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
19975 gl_header_literal_regex=`echo 'signal.h' \
19976 | sed -e "$gl_make_literal_regex_sed"`
19977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19980 >>>>>>> MERGE-SOURCE
19984 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19985 sed -n "$gl_absolute_header_sed"`'"'
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19990 $as_echo "$gl_cv_next_signal_h" >&6; }
19992 NEXT_SIGNAL_H=$gl_cv_next_signal_h
19994 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19996 gl_next_as_first_directive='<'signal.h'>'
19998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19999 gl_next_as_first_directive=$gl_cv_next_signal_h
20001 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20007 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20008 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20009 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20010 #include <signal.h>
20013 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20016 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20025 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20026 #include <signal.h>
20029 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20032 HAVE_SIGHANDLER_T=0
20038 >>>>>>> MERGE-SOURCE
20039 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20040 /* <sys/types.h> is not needed according to POSIX, but the
20041 <sys/socket.h> in i386-unknown-freebsd4.10 and
20042 powerpc-apple-darwin5.5 required it. */
20043 #include <sys/types.h>
20044 #if HAVE_SYS_SOCKET_H
20045 # include <sys/socket.h>
20046 #elif HAVE_WS2TCPIP_H
20047 # include <ws2tcpip.h>
20051 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20055 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20056 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20057 $as_echo_n "(cached) " >&6
20059 # Systems have either "struct sockaddr *" or
20060 # "void *" as the second argument to getpeername
20061 gl_cv_socklen_t_equiv=
20062 for arg2 in "struct sockaddr" void; do
20063 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20066 #include <sys/types.h>
20067 #include <sys/socket.h>
20069 int getpeername (int, $arg2 *, $t *);
20074 getpeername (0, 0, &len);
20079 if ac_fn_c_try_compile "$LINENO"; then :
20080 gl_cv_socklen_t_equiv="$t"
20082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083 test "$gl_cv_socklen_t_equiv" != "" && break
20085 test "$gl_cv_socklen_t_equiv" != "" && break
20090 if test "$gl_cv_socklen_t_equiv" = ""; then
20091 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20094 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20096 cat >>confdefs.h <<_ACEOF
20097 #define socklen_t $gl_cv_socklen_t_equiv
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20104 $as_echo_n "checking for ssize_t... " >&6; }
20105 if test "${gt_cv_ssize_t+set}" = set; then :
20106 $as_echo_n "(cached) " >&6
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20110 #include <sys/types.h>
20114 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20120 if ac_fn_c_try_compile "$LINENO"; then :
20125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20128 $as_echo "$gt_cv_ssize_t" >&6; }
20129 if test $gt_cv_ssize_t = no; then
20131 $as_echo "#define ssize_t int" >>confdefs.h
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20137 $as_echo_n "checking for working stdalign.h... " >&6; }
20138 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <stdalign.h>
20144 #include <stddef.h>
20146 /* Test that alignof yields a result consistent with offsetof.
20147 This catches GCC bug 52023
20148 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
20150 template <class t> struct alignof_helper { char a; t b; };
20151 # define ao(type) offsetof (alignof_helper<type>, b)
20153 # define ao(type) offsetof (struct { char a; type b; }, b)
20155 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20156 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20157 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20159 /* Test _Alignas only on platforms where gnulib can help. */
20161 (__GNUC__ || __IBMC__ || __IBMCPP__ \
20162 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
20163 int alignas (8) alignas_int = 1;
20164 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
20175 if ac_fn_c_try_compile "$LINENO"; then :
20176 gl_cv_header_working_stdalign_h=yes
20178 gl_cv_header_working_stdalign_h=no
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
20183 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
20185 if test $gl_cv_header_working_stdalign_h = yes; then
20188 STDALIGN_H='stdalign.h'
20192 if test -n "$STDALIGN_H"; then
20193 GL_GENERATE_STDALIGN_H_TRUE=
20194 GL_GENERATE_STDALIGN_H_FALSE='#'
20196 GL_GENERATE_STDALIGN_H_TRUE='#'
20197 GL_GENERATE_STDALIGN_H_FALSE=
20203 NEXT_STDARG_H='<stdarg.h>'
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20205 $as_echo_n "checking for va_copy... " >&6; }
20206 if test "${gl_cv_func_va_copy+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
20210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h. */
20212 #include <stdarg.h>
20218 void (*func) (va_list, va_list) = va_copy;
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226 gl_cv_func_va_copy=yes
20228 gl_cv_func_va_copy=no
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20234 $as_echo "$gl_cv_func_va_copy" >&6; }
20235 if test $gl_cv_func_va_copy = no; then
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #if defined _AIX && !defined __GNUC__
20243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20244 $EGREP "vaccine" >/dev/null 2>&1; then :
20251 if test $gl_aixcc = yes; then
20261 if test $gl_cv_have_include_next = yes; then
20262 gl_cv_next_stdarg_h='<'stdarg.h'>'
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20265 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20266 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20267 $as_echo_n "(cached) " >&6
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20272 #include <stdarg.h>
20276 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20277 *) gl_absname_cpp="$ac_cpp" ;;
20282 gl_dirsep_regex='[/\\]'
20285 gl_dirsep_regex='\/'
20288 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20291 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
20292 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
20295 gl_header_literal_regex=`echo 'stdarg.h' \
20296 | sed -e "$gl_make_literal_regex_sed"`
20297 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20298 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20300 >>>>>>> MERGE-SOURCE
20304 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20305 sed -n "$gl_absolute_header_sed"`'"'
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20310 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20312 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20314 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20316 gl_next_as_first_directive='<'stdarg.h'>'
20318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20319 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20321 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20326 if test "$gl_cv_next_stdarg_h" = '""'; then
20327 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20328 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20332 saved_as_echo_n="$as_echo_n"
20334 if test "${gl_cv_func___va_copy+set}" = set; then :
20335 $as_echo_n "(cached) " >&6
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <stdarg.h>
20353 if ac_fn_c_try_compile "$LINENO"; then :
20354 gl_cv_func___va_copy=yes
20356 gl_cv_func___va_copy=no
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 as_echo_n="$saved_as_echo_n"
20363 if test $gl_cv_func___va_copy = yes; then
20365 $as_echo "#define va_copy __va_copy" >>confdefs.h
20370 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20376 if test -n "$STDARG_H"; then
20377 GL_GENERATE_STDARG_H_TRUE=
20378 GL_GENERATE_STDARG_H_FALSE='#'
20380 GL_GENERATE_STDARG_H_TRUE='#'
20381 GL_GENERATE_STDARG_H_FALSE=
20389 # Define two additional variables used in the Makefile substitution.
20391 if test "$ac_cv_header_stdbool_h" = yes; then
20394 STDBOOL_H='stdbool.h'
20397 if test -n "$STDBOOL_H"; then
20398 GL_GENERATE_STDBOOL_H_TRUE=
20399 GL_GENERATE_STDBOOL_H_FALSE='#'
20401 GL_GENERATE_STDBOOL_H_TRUE='#'
20402 GL_GENERATE_STDBOOL_H_FALSE=
20406 if test "$ac_cv_type__Bool" = yes; then
20417 if test $gt_cv_c_wchar_t = no; then
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20422 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20423 if test "${gl_cv_decl_null_works+set}" = set; then :
20424 $as_echo_n "(cached) " >&6
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <stddef.h>
20429 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20439 if ac_fn_c_try_compile "$LINENO"; then :
20440 gl_cv_decl_null_works=yes
20442 gl_cv_decl_null_works=no
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20447 $as_echo "$gl_cv_decl_null_works" >&6; }
20448 if test $gl_cv_decl_null_works = no; then
20453 if test -n "$STDDEF_H"; then
20454 GL_GENERATE_STDDEF_H_TRUE=
20455 GL_GENERATE_STDDEF_H_FALSE='#'
20457 GL_GENERATE_STDDEF_H_TRUE='#'
20458 GL_GENERATE_STDDEF_H_FALSE=
20461 if test -n "$STDDEF_H"; then
20470 if test $gl_cv_have_include_next = yes; then
20471 gl_cv_next_stddef_h='<'stddef.h'>'
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20474 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20475 if test "${gl_cv_next_stddef_h+set}" = set; then :
20476 $as_echo_n "(cached) " >&6
20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480 /* end confdefs.h. */
20481 #include <stddef.h>
20485 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20486 *) gl_absname_cpp="$ac_cpp" ;;
20491 gl_dirsep_regex='[/\\]'
20494 gl_dirsep_regex='\/'
20497 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20500 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
20501 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
20504 gl_header_literal_regex=`echo 'stddef.h' \
20505 | sed -e "$gl_make_literal_regex_sed"`
20506 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20509 >>>>>>> MERGE-SOURCE
20513 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20514 sed -n "$gl_absolute_header_sed"`'"'
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20519 $as_echo "$gl_cv_next_stddef_h" >&6; }
20521 NEXT_STDDEF_H=$gl_cv_next_stddef_h
20523 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20525 gl_next_as_first_directive='<'stddef.h'>'
20527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20528 gl_next_as_first_directive=$gl_cv_next_stddef_h
20530 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
20549 if test $gl_cv_have_include_next = yes; then
20550 gl_cv_next_stdio_h='<'stdio.h'>'
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20553 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20554 if test "${gl_cv_next_stdio_h+set}" = set; then :
20555 $as_echo_n "(cached) " >&6
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20564 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20565 *) gl_absname_cpp="$ac_cpp" ;;
20570 gl_dirsep_regex='[/\\]'
20573 gl_dirsep_regex='\/'
20576 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20579 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
20580 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
20583 gl_header_literal_regex=`echo 'stdio.h' \
20584 | sed -e "$gl_make_literal_regex_sed"`
20585 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20586 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20588 >>>>>>> MERGE-SOURCE
20592 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20593 sed -n "$gl_absolute_header_sed"`'"'
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20598 $as_echo "$gl_cv_next_stdio_h" >&6; }
20600 NEXT_STDIO_H=$gl_cv_next_stdio_h
20602 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20604 gl_next_as_first_directive='<'stdio.h'>'
20606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20607 gl_next_as_first_directive=$gl_cv_next_stdio_h
20609 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20649 if test $gl_cv_have_include_next = yes; then
20650 gl_cv_next_stdlib_h='<'stdlib.h'>'
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20653 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20654 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20655 $as_echo_n "(cached) " >&6
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660 #include <stdlib.h>
20664 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20665 *) gl_absname_cpp="$ac_cpp" ;;
20670 gl_dirsep_regex='[/\\]'
20673 gl_dirsep_regex='\/'
20676 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20679 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
20680 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
20683 gl_header_literal_regex=`echo 'stdlib.h' \
20684 | sed -e "$gl_make_literal_regex_sed"`
20685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20688 >>>>>>> MERGE-SOURCE
20692 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20693 sed -n "$gl_absolute_header_sed"`'"'
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20698 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20700 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20702 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20704 gl_next_as_first_directive='<'stdlib.h'>'
20706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20707 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20709 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20719 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20727 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20738 if test "$ac_cv_have_decl_strtoimax" != yes; then
20739 HAVE_DECL_STRTOIMAX=0
20742 if test $ac_cv_func_strtoimax = yes; then
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20745 $as_echo_n "checking whether strtoimax works... " >&6; }
20746 if test "${gl_cv_func_strtoimax+set}" = set; then :
20747 $as_echo_n "(cached) " >&6
20749 if test "$cross_compiling" = yes; then :
20751 # Guess no on AIX 5.
20752 aix5*) gl_cv_func_strtoimax="guessing no" ;;
20753 # Guess yes otherwise.
20754 *) gl_cv_func_strtoimax="guessing yes" ;;
20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20759 /* end confdefs.h. */
20762 #include <string.h>
20763 #include <inttypes.h>
20766 if (sizeof (intmax_t) > sizeof (int))
20768 const char *s = "4294967295";
20772 res = strtoimax (s, &p, 10);
20773 if (p != s + strlen (s))
20777 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20782 const char *s = "2147483647";
20786 res = strtoimax (s, &p, 10);
20787 if (p != s + strlen (s))
20791 if (res != 2147483647)
20798 if ac_fn_c_try_run "$LINENO"; then :
20799 gl_cv_func_strtoimax=yes
20801 gl_cv_func_strtoimax=no
20803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20804 conftest.$ac_objext conftest.beam conftest.$ac_ext
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20810 $as_echo "$gl_cv_func_strtoimax" >&6; }
20811 case "$gl_cv_func_strtoimax" in
20812 *no) REPLACE_STRTOIMAX=1 ;;
20818 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
20827 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
20830 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20831 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_DECL_STRTOLL $ac_have_decl
20859 >>>>>>> MERGE-SOURCE
20860 if test "$ac_cv_have_decl_strtoumax" != yes; then
20861 HAVE_DECL_STRTOUMAX=0
20864 if test $ac_cv_func_strtoumax = no; then
20873 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20876 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20877 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20883 cat >>confdefs.h <<_ACEOF
20884 #define HAVE_DECL_STRTOULL $ac_have_decl
20903 if test $ac_cv_func_symlink = no; then
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20907 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20908 if test "${gl_cv_func_symlink_works+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20911 if test "$cross_compiling" = yes; then :
20913 # Guess yes on glibc systems.
20914 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
20915 # If we don't know, assume the worst.
20916 *) gl_cv_func_symlink_works="guessing no" ;;
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #include <unistd.h>
20928 if (!symlink ("a", "conftest.link/"))
20930 if (symlink ("conftest.f", "conftest.lnk2"))
20932 else if (!symlink ("a", "conftest.lnk2/"))
20940 if ac_fn_c_try_run "$LINENO"; then :
20941 gl_cv_func_symlink_works=yes
20943 gl_cv_func_symlink_works=no
20945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20946 conftest.$ac_objext conftest.beam conftest.$ac_ext
20949 rm -f conftest.f conftest.link conftest.lnk2
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20952 $as_echo "$gl_cv_func_symlink_works" >&6; }
20953 case "$gl_cv_func_symlink_works" in
20961 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20970 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21000 if test $gl_cv_have_include_next = yes; then
21001 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21004 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21005 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21006 $as_echo_n "(cached) " >&6
21009 if test $ac_cv_header_sys_stat_h = yes; then
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014 #include <sys/stat.h>
21018 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21019 *) gl_absname_cpp="$ac_cpp" ;;
21024 gl_dirsep_regex='[/\\]'
21027 gl_dirsep_regex='\/'
21030 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21033 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21034 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21037 gl_header_literal_regex=`echo 'sys/stat.h' \
21038 | sed -e "$gl_make_literal_regex_sed"`
21039 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21042 >>>>>>> MERGE-SOURCE
21046 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21047 sed -n "$gl_absolute_header_sed"`'"'
21049 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21055 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21057 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21061 gl_next_as_first_directive='<'sys/stat.h'>'
21063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21064 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21066 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21080 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
21082 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
21086 >>>>>>> MERGE-SOURCE
21087 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21088 #include <sys/stat.h>
21090 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21094 $as_echo "#define nlink_t int" >>confdefs.h
21112 if test $gl_cv_have_include_next = yes; then
21113 gl_cv_next_sys_types_h='<'sys/types.h'>'
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21116 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21117 if test "${gl_cv_next_sys_types_h+set}" = set; then :
21118 $as_echo_n "(cached) " >&6
21121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122 /* end confdefs.h. */
21123 #include <sys/types.h>
21127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21128 *) gl_absname_cpp="$ac_cpp" ;;
21133 gl_dirsep_regex='[/\\]'
21136 gl_dirsep_regex='\/'
21139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21141 gl_header_literal_regex=`echo 'sys/types.h' \
21142 | sed -e "$gl_make_literal_regex_sed"`
21143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21149 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21150 sed -n "$gl_absolute_header_sed"`'"'
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21155 $as_echo "$gl_cv_next_sys_types_h" >&6; }
21157 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21159 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21161 gl_next_as_first_directive='<'sys/types.h'>'
21163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21164 gl_next_as_first_directive=$gl_cv_next_sys_types_h
21166 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21189 if test $ac_cv_have_decl_localtime_r = no; then
21190 HAVE_DECL_LOCALTIME_R=0
21194 if test $ac_cv_func_localtime_r = yes; then
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21197 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21198 if test "${gl_cv_time_r_posix+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h. */
21207 /* We don't need to append 'restrict's to the argument types,
21208 even though the POSIX signature has the 'restrict's,
21209 since C99 says they can't affect type compatibility. */
21210 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21212 /* Check the return type is a pointer.
21213 On HP-UX 10 it is 'int'. */
21214 *localtime_r (0, 0);
21220 if ac_fn_c_try_compile "$LINENO"; then :
21221 gl_cv_time_r_posix=yes
21223 gl_cv_time_r_posix=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21229 $as_echo "$gl_cv_time_r_posix" >&6; }
21230 if test $gl_cv_time_r_posix = yes; then
21231 REPLACE_LOCALTIME_R=0
21233 REPLACE_LOCALTIME_R=1
21239 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21248 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21279 if test $gl_cv_have_include_next = yes; then
21280 gl_cv_next_unistd_h='<'unistd.h'>'
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21283 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21284 if test "${gl_cv_next_unistd_h+set}" = set; then :
21285 $as_echo_n "(cached) " >&6
21288 if test $ac_cv_header_unistd_h = yes; then
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21293 #include <unistd.h>
21297 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21298 *) gl_absname_cpp="$ac_cpp" ;;
21303 gl_dirsep_regex='[/\\]'
21306 gl_dirsep_regex='\/'
21309 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21312 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21313 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21316 gl_header_literal_regex=`echo 'unistd.h' \
21317 | sed -e "$gl_make_literal_regex_sed"`
21318 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21319 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21321 >>>>>>> MERGE-SOURCE
21325 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21326 sed -n "$gl_absolute_header_sed"`'"'
21328 gl_cv_next_unistd_h='<'unistd.h'>'
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21334 $as_echo "$gl_cv_next_unistd_h" >&6; }
21336 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21338 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21340 gl_next_as_first_directive='<'unistd.h'>'
21342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21343 gl_next_as_first_directive=$gl_cv_next_unistd_h
21345 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21350 if test $ac_cv_header_unistd_h = yes; then
21363 gl_gnulib_enabled_dosname=false
21364 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21367 gl_gnulib_enabled_pathmax=false
21368 gl_gnulib_enabled_sigprocmask=false
21369 >>>>>>> MERGE-SOURCE
21370 gl_gnulib_enabled_stat=false
21371 gl_gnulib_enabled_strtoull=false
21372 gl_gnulib_enabled_verify=false
21373 func_gl_gnulib_m4code_dosname ()
21375 if ! $gl_gnulib_enabled_dosname; then
21376 gl_gnulib_enabled_dosname=true
21379 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21381 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21384 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21391 func_gl_gnulib_m4code_pathmax ()
21393 if ! $gl_gnulib_enabled_pathmax; then
21397 gl_gnulib_enabled_pathmax=true
21400 >>>>>>> MERGE-SOURCE
21401 func_gl_gnulib_m4code_sigprocmask ()
21403 if ! $gl_gnulib_enabled_sigprocmask; then
21407 if test $gl_cv_type_sigset_t = yes; then
21408 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21409 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21410 gl_cv_func_sigprocmask=1
21414 if test -z "$gl_cv_func_sigprocmask"; then
21415 HAVE_POSIX_SIGNALBLOCKING=0
21418 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21427 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21436 GNULIB_SIGPROCMASK=1
21442 gl_gnulib_enabled_sigprocmask=true
21445 >>>>>>> MERGE-SOURCE
21446 func_gl_gnulib_m4code_stat ()
21448 if ! $gl_gnulib_enabled_stat; then
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21453 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21454 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21455 $as_echo_n "(cached) " >&6
21457 if test "$cross_compiling" = yes; then :
21459 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21460 *) gl_cv_func_stat_dir_slash="guessing yes";;
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21465 #include <sys/stat.h>
21470 struct stat st; return stat (".", &st) != stat ("./", &st);
21475 if ac_fn_c_try_run "$LINENO"; then :
21476 gl_cv_func_stat_dir_slash=yes
21478 gl_cv_func_stat_dir_slash=no
21480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21481 conftest.$ac_objext conftest.beam conftest.$ac_ext
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21486 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21488 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21489 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21490 $as_echo_n "(cached) " >&6
21493 # Assume that if we have lstat, we can also check symlinks.
21494 if test $ac_cv_func_lstat = yes; then
21495 ln -s conftest.tmp conftest.lnk
21497 if test "$cross_compiling" = yes; then :
21499 # Guess yes on glibc systems.
21500 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21501 # If we don't know, assume the worst.
21502 *) gl_cv_func_stat_file_slash="guessing no" ;;
21506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21507 /* end confdefs.h. */
21508 #include <sys/stat.h>
21515 if (!stat ("conftest.tmp/", &st))
21518 if (!stat ("conftest.lnk/", &st))
21527 if ac_fn_c_try_run "$LINENO"; then :
21528 gl_cv_func_stat_file_slash=yes
21530 gl_cv_func_stat_file_slash=no
21532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21533 conftest.$ac_objext conftest.beam conftest.$ac_ext
21536 rm -f conftest.tmp conftest.lnk
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21539 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21540 case $gl_cv_func_stat_dir_slash in
21541 *no) REPLACE_STAT=1
21543 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21546 case $gl_cv_func_stat_file_slash in
21547 *no) REPLACE_STAT=1
21549 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21553 if test $REPLACE_STAT = 1; then
21562 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21580 gl_gnulib_enabled_stat=true
21581 if test $REPLACE_STAT = 1; then
21582 func_gl_gnulib_m4code_dosname
21585 if $condition; then
21587 if test $REPLACE_STAT = 1; then
21589 >>>>>>> MERGE-SOURCE
21591 func_gl_gnulib_m4code_pathmax
21593 if test $REPLACE_STAT = 1; then
21594 >>>>>>> MERGE-SOURCE
21595 func_gl_gnulib_m4code_verify
21601 func_gl_gnulib_m4code_strtoll ()
21603 if ! $gl_gnulib_enabled_strtoll; then
21607 if test "$ac_cv_type_long_long_int" = yes; then
21608 for ac_func in strtoll
21610 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21611 if test "x$ac_cv_func_strtoll" = x""yes; then :
21612 cat >>confdefs.h <<_ACEOF
21613 #define HAVE_STRTOLL 1
21619 if test $ac_cv_func_strtoll = no; then
21624 if test $HAVE_STRTOLL = 0; then
21633 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21650 gl_gnulib_enabled_strtoll=true
21653 >>>>>>> MERGE-SOURCE
21654 func_gl_gnulib_m4code_strtoull ()
21656 if ! $gl_gnulib_enabled_strtoull; then
21660 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21661 for ac_func in strtoull
21663 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21664 if test "x$ac_cv_func_strtoull" = x""yes; then :
21665 cat >>confdefs.h <<_ACEOF
21666 #define HAVE_STRTOULL 1
21672 if test $ac_cv_func_strtoull = no; then
21677 if test $HAVE_STRTOULL = 0; then
21686 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21703 gl_gnulib_enabled_strtoull=true
21706 func_gl_gnulib_m4code_verify ()
21708 if ! $gl_gnulib_enabled_verify; then
21709 gl_gnulib_enabled_verify=true
21712 if test $REPLACE_GETOPT = 1; then
21713 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21715 if test $REPLACE_LSTAT = 1; then
21716 func_gl_gnulib_m4code_dosname
21718 if test $REPLACE_LSTAT = 1; then
21719 func_gl_gnulib_m4code_stat
21721 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21722 func_gl_gnulib_m4code_stat
21726 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
21728 if test $ac_cv_func_strtoimax = no; then
21729 func_gl_gnulib_m4code_verify
21731 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
21733 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21734 >>>>>>> MERGE-SOURCE
21735 func_gl_gnulib_m4code_strtoll
21738 if test $ac_cv_func_strtoumax = no; then
21739 >>>>>>> MERGE-SOURCE
21741 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
21742 >>>>>>> MERGE-SOURCE
21743 func_gl_gnulib_m4code_verify
21745 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21746 func_gl_gnulib_m4code_strtoull
21748 if test $ac_cv_func_strtoumax = no; then
21749 func_gl_gnulib_m4code_verify
21752 if $gl_gnulib_enabled_dosname; then
21753 gl_GNULIB_ENABLED_dosname_TRUE=
21754 gl_GNULIB_ENABLED_dosname_FALSE='#'
21756 gl_GNULIB_ENABLED_dosname_TRUE='#'
21757 gl_GNULIB_ENABLED_dosname_FALSE=
21760 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21761 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21762 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21764 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21765 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21770 if $gl_gnulib_enabled_pathmax; then
21771 gl_GNULIB_ENABLED_pathmax_TRUE=
21772 gl_GNULIB_ENABLED_pathmax_FALSE='#'
21774 gl_GNULIB_ENABLED_pathmax_TRUE='#'
21775 gl_GNULIB_ENABLED_pathmax_FALSE=
21778 if $gl_gnulib_enabled_sigprocmask; then
21779 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21780 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21782 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21783 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21786 >>>>>>> MERGE-SOURCE
21787 if $gl_gnulib_enabled_stat; then
21788 gl_GNULIB_ENABLED_stat_TRUE=
21789 gl_GNULIB_ENABLED_stat_FALSE='#'
21791 gl_GNULIB_ENABLED_stat_TRUE='#'
21792 gl_GNULIB_ENABLED_stat_FALSE=
21795 if $gl_gnulib_enabled_strtoull; then
21796 gl_GNULIB_ENABLED_strtoull_TRUE=
21797 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21799 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21800 gl_GNULIB_ENABLED_strtoull_FALSE=
21803 if $gl_gnulib_enabled_verify; then
21804 gl_GNULIB_ENABLED_verify_TRUE=
21805 gl_GNULIB_ENABLED_verify_FALSE='#'
21807 gl_GNULIB_ENABLED_verify_TRUE='#'
21808 gl_GNULIB_ENABLED_verify_FALSE=
21811 # End of code from modules
21832 gl_source_base='tests'
21833 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
21835 gl_module_indicator_condition=$gltests_WITNESS
21846 LIBGNU_LIBDEPS="$gl_libdeps"
21848 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
21853 for ac_func in grantpt
21855 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21856 if test "x$ac_cv_func_grantpt" = x""yes; then :
21857 cat >>confdefs.h <<_ACEOF
21858 #define HAVE_GRANTPT 1
21865 # PTY-related GNU extensions.
21866 for ac_func in getpt
21868 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21869 if test "x$ac_cv_func_getpt" = x""yes; then :
21870 cat >>confdefs.h <<_ACEOF
21871 #define HAVE_GETPT 1
21878 # Check this now, so that we will NOT find the above functions in ncurses.
21879 # That is because we have not set up to link ncurses in lib-src.
21880 # It's better to believe a function is not available
21881 # than to expect to find it in ncurses.
21882 # Also we need tputs and friends to be able to build at all.
21883 have_tputs_et_al=true
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21885 $as_echo_n "checking for library containing tputs... " >&6; }
21886 if test "${ac_cv_search_tputs+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21889 ac_func_search_save_LIBS=$LIBS
21890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21891 /* end confdefs.h. */
21893 /* Override any GCC internal prototype to avoid an error.
21894 Use char because int might match the return type of a GCC
21895 builtin and then its argument prototype would still apply. */
21908 for ac_lib in '' ncurses terminfo termcap; do
21909 if test -z "$ac_lib"; then
21910 ac_res="none required"
21913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21915 if ac_fn_c_try_link "$LINENO"; then :
21916 ac_cv_search_tputs=$ac_res
21918 rm -f core conftest.err conftest.$ac_objext \
21920 if test "${ac_cv_search_tputs+set}" = set; then :
21924 if test "${ac_cv_search_tputs+set}" = set; then :
21927 ac_cv_search_tputs=no
21929 rm conftest.$ac_ext
21930 LIBS=$ac_func_search_save_LIBS
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
21933 $as_echo "$ac_cv_search_tputs" >&6; }
21934 ac_res=$ac_cv_search_tputs
21935 if test "$ac_res" != no; then :
21936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21939 have_tputs_et_al=false
21942 if test "$have_tputs_et_al" != true; then
21943 as_fn_error "I couldn't find termcap functions (tputs and friends).
21944 Maybe some development libraries/packages are missing? Try installing
21945 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
21947 # Must define this when any termcap library is found.
21949 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
21951 ## FIXME This was the cpp logic, but I am not sure it is right.
21952 ## The above test has not necessarily found libncurses.
21953 HAVE_LIBNCURSES=yes
21955 ## Use terminfo instead of termcap?
21956 ## Note only system files NOT using terminfo are:
21957 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21958 ## darwin|gnu without ncurses.
21962 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21963 ## hpux10-20: Use the system provided termcap(3) library.
21964 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21965 ## is necessary. Otherwise Emacs dumps core when run -nw.
21966 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21968 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21969 ## The ncurses library has been moved out of the System framework in
21970 ## Mac OS X 10.2. So if configure detects it, set the command-line
21971 ## option to use it.
21973 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21974 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21976 LIBS_TERMCAP="-lncurses"
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21982 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21983 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #include <osreldate.h>
21992 #if __FreeBSD_version < 400000
22000 if ac_fn_c_try_link "$LINENO"; then :
22001 emacs_cv_freebsd_terminfo=yes
22003 emacs_cv_freebsd_terminfo=no
22005 rm -f core conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22011 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22013 if test $emacs_cv_freebsd_terminfo = yes; then
22015 LIBS_TERMCAP="-lncurses"
22017 LIBS_TERMCAP="-ltermcap"
22022 if test $ac_cv_search_tputs = -lterminfo; then
22024 LIBS_TERMCAP="-lterminfo"
22026 LIBS_TERMCAP="-ltermcap"
22033 ## hpux: Make sure we get select from libc rather than from libcurses
22034 ## because libcurses on HPUX 10.10 has a broken version of select.
22035 ## We used to use -lc -lcurses, but this may be cleaner.
22036 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22038 openbsd) LIBS_TERMCAP="-lncurses" ;;
22040 ## Must use system termcap, if we use any termcap. It does special things.
22041 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22044 TERMCAP_OBJ=tparam.o
22045 if test $TERMINFO = yes; then
22047 $as_echo "#define TERMINFO 1" >>confdefs.h
22050 ## Default used to be -ltermcap. Add a case above if need something else.
22051 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22053 TERMCAP_OBJ=terminfo.o
22059 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <netinet/in.h>
22064 #include <arpa/nameser.h>
22065 #include <resolv.h>
22074 if ac_fn_c_try_link "$LINENO"; then :
22079 rm -f core conftest.err conftest.$ac_objext \
22080 conftest$ac_exeext conftest.$ac_ext
22081 if test "$have_res_init" = no; then
22083 LIBS="$LIBS -lresolv"
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22085 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #include <netinet/in.h>
22089 #include <arpa/nameser.h>
22090 #include <resolv.h>
22099 if ac_fn_c_try_link "$LINENO"; then :
22104 rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22107 $as_echo "$have_res_init" >&6; }
22108 if test "$have_res_init" = yes ; then
22114 if test "$have_res_init" = yes; then
22116 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22120 # Do we need the Hesiod library to provide the support routines?
22122 if test "$with_hesiod" != no ; then
22123 # Don't set $LIBS here -- see comments above. FIXME which comments?
22124 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22125 if test "x$ac_cv_func_res_send" = x""yes; then :
22128 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22129 if test "x$ac_cv_func___res_send" = x""yes; then :
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22133 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22134 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lresolv $LIBS"
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22142 /* Override any GCC internal prototype to avoid an error.
22143 Use char because int might match the return type of a GCC
22144 builtin and then its argument prototype would still apply. */
22152 return res_send ();
22157 if ac_fn_c_try_link "$LINENO"; then :
22158 ac_cv_lib_resolv_res_send=yes
22160 ac_cv_lib_resolv_res_send=no
22162 rm -f core conftest.err conftest.$ac_objext \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22167 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22168 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22172 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22173 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22174 $as_echo_n "(cached) " >&6
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lresolv $LIBS"
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22181 /* Override any GCC internal prototype to avoid an error.
22182 Use char because int might match the return type of a GCC
22183 builtin and then its argument prototype would still apply. */
22187 char __res_send ();
22191 return __res_send ();
22196 if ac_fn_c_try_link "$LINENO"; then :
22197 ac_cv_lib_resolv___res_send=yes
22199 ac_cv_lib_resolv___res_send=no
22201 rm -f core conftest.err conftest.$ac_objext \
22202 conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22206 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22207 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22217 if test "$resolv" = yes ; then
22222 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22223 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22227 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22228 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22229 $as_echo_n "(cached) " >&6
22231 ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-lhesiod $RESOLVLIB $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22236 /* Override any GCC internal prototype to avoid an error.
22237 Use char because int might match the return type of a GCC
22238 builtin and then its argument prototype would still apply. */
22242 char hes_getmailhost ();
22246 return hes_getmailhost ();
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 ac_cv_lib_hesiod_hes_getmailhost=yes
22254 ac_cv_lib_hesiod_hes_getmailhost=no
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22261 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22262 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22271 if test x"$hesiod" = xyes; then
22273 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22280 # Do we need libresolv (due to res_init or Hesiod)?
22281 if test "$resolv" = yes ; then
22283 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22291 # These tell us which Kerberos-related libraries to use.
22298 if test "${with_kerberos}" != no; then
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22300 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22301 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
22304 ac_check_lib_save_LIBS=$LIBS
22305 LIBS="-lcom_err $LIBS"
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22309 /* Override any GCC internal prototype to avoid an error.
22310 Use char because int might match the return type of a GCC
22311 builtin and then its argument prototype would still apply. */
22324 if ac_fn_c_try_link "$LINENO"; then :
22325 ac_cv_lib_com_err_com_err=yes
22327 ac_cv_lib_com_err_com_err=no
22329 rm -f core conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22331 LIBS=$ac_check_lib_save_LIBS
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22334 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22335 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22341 if test $have_com_err = yes; then
22342 COM_ERRLIB=-lcom_err
22343 LIBS="$COM_ERRLIB $LIBS"
22345 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22349 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22350 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22353 ac_check_lib_save_LIBS=$LIBS
22354 LIBS="-lcrypto $LIBS"
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22364 char mit_des_cbc_encrypt ();
22368 return mit_des_cbc_encrypt ();
22373 if ac_fn_c_try_link "$LINENO"; then :
22374 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22376 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22378 rm -f core conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380 LIBS=$ac_check_lib_save_LIBS
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22383 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22384 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22390 if test $have_crypto = yes; then
22392 LIBS="$CRYPTOLIB $LIBS"
22394 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22398 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22399 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22400 $as_echo_n "(cached) " >&6
22402 ac_check_lib_save_LIBS=$LIBS
22403 LIBS="-lk5crypto $LIBS"
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22413 char mit_des_cbc_encrypt ();
22417 return mit_des_cbc_encrypt ();
22422 if ac_fn_c_try_link "$LINENO"; then :
22423 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22425 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 LIBS=$ac_check_lib_save_LIBS
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22432 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22433 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22439 if test $have_k5crypto = yes; then
22440 CRYPTOLIB=-lk5crypto
22441 LIBS="$CRYPTOLIB $LIBS"
22443 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22447 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22448 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22451 ac_check_lib_save_LIBS=$LIBS
22452 LIBS="-lkrb5 $LIBS"
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22456 /* Override any GCC internal prototype to avoid an error.
22457 Use char because int might match the return type of a GCC
22458 builtin and then its argument prototype would still apply. */
22462 char krb5_init_context ();
22466 return krb5_init_context ();
22471 if ac_fn_c_try_link "$LINENO"; then :
22472 ac_cv_lib_krb5_krb5_init_context=yes
22474 ac_cv_lib_krb5_krb5_init_context=no
22476 rm -f core conftest.err conftest.$ac_objext \
22477 conftest$ac_exeext conftest.$ac_ext
22478 LIBS=$ac_check_lib_save_LIBS
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22481 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22482 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22488 if test $have_krb5=yes; then
22490 LIBS="$KRB5LIB $LIBS"
22492 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22495 if test "${with_kerberos5}" = no; then
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22497 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22498 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22499 $as_echo_n "(cached) " >&6
22501 ac_check_lib_save_LIBS=$LIBS
22502 LIBS="-ldes425 $LIBS"
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22506 /* Override any GCC internal prototype to avoid an error.
22507 Use char because int might match the return type of a GCC
22508 builtin and then its argument prototype would still apply. */
22512 char des_cbc_encrypt ();
22516 return des_cbc_encrypt ();
22521 if ac_fn_c_try_link "$LINENO"; then :
22522 ac_cv_lib_des425_des_cbc_encrypt=yes
22524 ac_cv_lib_des425_des_cbc_encrypt=no
22526 rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22528 LIBS=$ac_check_lib_save_LIBS
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22531 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22532 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22538 if test $have_des425 = yes; then
22540 LIBS="$DESLIB $LIBS"
22542 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22546 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22547 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22550 ac_check_lib_save_LIBS=$LIBS
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22555 /* Override any GCC internal prototype to avoid an error.
22556 Use char because int might match the return type of a GCC
22557 builtin and then its argument prototype would still apply. */
22561 char des_cbc_encrypt ();
22565 return des_cbc_encrypt ();
22570 if ac_fn_c_try_link "$LINENO"; then :
22571 ac_cv_lib_des_des_cbc_encrypt=yes
22573 ac_cv_lib_des_des_cbc_encrypt=no
22575 rm -f core conftest.err conftest.$ac_objext \
22576 conftest$ac_exeext conftest.$ac_ext
22577 LIBS=$ac_check_lib_save_LIBS
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22580 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22581 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22587 if test $have_des = yes; then
22589 LIBS="$DESLIB $LIBS"
22591 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22596 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22597 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22598 $as_echo_n "(cached) " >&6
22600 ac_check_lib_save_LIBS=$LIBS
22601 LIBS="-lkrb4 $LIBS"
22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h. */
22605 /* Override any GCC internal prototype to avoid an error.
22606 Use char because int might match the return type of a GCC
22607 builtin and then its argument prototype would still apply. */
22611 char krb_get_cred ();
22615 return krb_get_cred ();
22620 if ac_fn_c_try_link "$LINENO"; then :
22621 ac_cv_lib_krb4_krb_get_cred=yes
22623 ac_cv_lib_krb4_krb_get_cred=no
22625 rm -f core conftest.err conftest.$ac_objext \
22626 conftest$ac_exeext conftest.$ac_ext
22627 LIBS=$ac_check_lib_save_LIBS
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22630 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22631 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22637 if test $have_krb4 = yes; then
22639 LIBS="$KRB4LIB $LIBS"
22641 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22645 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22646 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22649 ac_check_lib_save_LIBS=$LIBS
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22654 /* Override any GCC internal prototype to avoid an error.
22655 Use char because int might match the return type of a GCC
22656 builtin and then its argument prototype would still apply. */
22660 char krb_get_cred ();
22664 return krb_get_cred ();
22669 if ac_fn_c_try_link "$LINENO"; then :
22670 ac_cv_lib_krb_krb_get_cred=yes
22672 ac_cv_lib_krb_krb_get_cred=no
22674 rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22679 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22680 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22686 if test $have_krb = yes; then
22688 LIBS="$KRB4LIB $LIBS"
22690 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22696 if test "${with_kerberos5}" != no; then
22697 for ac_header in krb5.h
22699 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22700 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_KRB5_H 1
22704 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22706 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22708 cat >>confdefs.h <<_ACEOF
22709 #define HAVE_KRB5_ERROR_TEXT 1
22714 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22716 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22718 cat >>confdefs.h <<_ACEOF
22719 #define HAVE_KRB5_ERROR_E_TEXT 1
22730 for ac_header in des.h
22732 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22733 if test "x$ac_cv_header_des_h" = x""yes; then :
22734 cat >>confdefs.h <<_ACEOF
22735 #define HAVE_DES_H 1
22739 for ac_header in kerberosIV/des.h
22741 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22742 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_KERBEROSIV_DES_H 1
22748 for ac_header in kerberos/des.h
22750 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22751 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
22752 cat >>confdefs.h <<_ACEOF
22753 #define HAVE_KERBEROS_DES_H 1
22768 for ac_header in krb.h
22770 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22771 if test "x$ac_cv_header_krb_h" = x""yes; then :
22772 cat >>confdefs.h <<_ACEOF
22773 #define HAVE_KRB_H 1
22777 for ac_header in kerberosIV/krb.h
22779 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22780 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22781 cat >>confdefs.h <<_ACEOF
22782 #define HAVE_KERBEROSIV_KRB_H 1
22786 for ac_header in kerberos/krb.h
22788 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22789 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22790 cat >>confdefs.h <<_ACEOF
22791 #define HAVE_KERBEROS_KRB_H 1
22807 for ac_header in com_err.h
22809 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22810 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_COM_ERR_H 1
22827 # Solaris requires -lintl if you want strerror (which calls dgettext)
22828 # to return localized messages.
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
22830 $as_echo_n "checking for dgettext in -lintl... " >&6; }
22831 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
22832 $as_echo_n "(cached) " >&6
22834 ac_check_lib_save_LIBS=$LIBS
22835 LIBS="-lintl $LIBS"
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22839 /* Override any GCC internal prototype to avoid an error.
22840 Use char because int might match the return type of a GCC
22841 builtin and then its argument prototype would still apply. */
22849 return dgettext ();
22854 if ac_fn_c_try_link "$LINENO"; then :
22855 ac_cv_lib_intl_dgettext=yes
22857 ac_cv_lib_intl_dgettext=no
22859 rm -f core conftest.err conftest.$ac_objext \
22860 conftest$ac_exeext conftest.$ac_ext
22861 LIBS=$ac_check_lib_save_LIBS
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
22864 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
22865 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE_LIBINTL 1
22870 LIBS="-lintl $LIBS"
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22876 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22877 if test "${emacs_cv_localtime_cache+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22880 if test x$ac_cv_func_tzset = xyes; then
22881 if test "$cross_compiling" = yes; then :
22882 # If we have tzset, assume the worst when cross-compiling.
22883 emacs_cv_localtime_cache=yes
22885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886 /* end confdefs.h. */
22888 char TZ_GMT0[] = "TZ=GMT0";
22889 char TZ_PST8[] = "TZ=PST8";
22892 time_t now = time ((time_t *) 0);
22893 int hour_GMT0, hour_unset;
22894 if (putenv (TZ_GMT0) != 0)
22896 hour_GMT0 = localtime (&now)->tm_hour;
22898 hour_unset = localtime (&now)->tm_hour;
22899 if (putenv (TZ_PST8) != 0)
22901 if (localtime (&now)->tm_hour == hour_GMT0)
22904 if (localtime (&now)->tm_hour != hour_unset)
22909 if ac_fn_c_try_run "$LINENO"; then :
22910 emacs_cv_localtime_cache=no
22912 emacs_cv_localtime_cache=yes
22914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22915 conftest.$ac_objext conftest.beam conftest.$ac_ext
22919 # If we lack tzset, report that localtime does not cache TZ,
22920 # since we can't invalidate the cache if we don't have tzset.
22921 emacs_cv_localtime_cache=no
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22925 $as_echo "$emacs_cv_localtime_cache" >&6; }
22926 if test $emacs_cv_localtime_cache = yes; then
22928 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22932 if test "x$HAVE_TIMEVAL" = xyes; then
22933 for ac_func in gettimeofday
22935 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22936 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
22937 cat >>confdefs.h <<_ACEOF
22938 #define HAVE_GETTIMEOFDAY 1
22944 if test $ac_cv_func_gettimeofday = yes; then
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
22946 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
22947 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
22948 $as_echo_n "(cached) " >&6
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 #ifdef TIME_WITH_SYS_TIME
22954 #include <sys/time.h>
22957 #ifdef HAVE_SYS_TIME_H
22958 #include <sys/time.h>
22966 struct timeval time;
22967 gettimeofday (&time, 0);
22972 if ac_fn_c_try_compile "$LINENO"; then :
22973 emacs_cv_gettimeofday_two_arguments=yes
22975 emacs_cv_gettimeofday_two_arguments=no
22977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
22980 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
22981 if test $emacs_cv_gettimeofday_two_arguments = no; then
22983 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
22990 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22991 if test "x$ac_cv_func_socket" = x""yes; then :
22997 if test $ok_so_far = yes; then
22998 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22999 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23007 if test $ok_so_far = yes; then
23008 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23009 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23017 if test $ok_so_far = yes; then
23019 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23023 if test -f /usr/lpp/X11/bin/smt.exp; then
23025 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23030 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23031 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23033 $as_echo "yes" >&6; }
23035 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23039 $as_echo "no" >&6; }
23042 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23043 if test "x$ac_cv_type_pid_t" = x""yes; then :
23047 cat >>confdefs.h <<_ACEOF
23053 for ac_header in vfork.h
23055 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23056 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23057 cat >>confdefs.h <<_ACEOF
23058 #define HAVE_VFORK_H 1
23065 for ac_func in fork vfork
23067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23069 eval as_val=\$$as_ac_var
23070 if test "x$as_val" = x""yes; then :
23071 cat >>confdefs.h <<_ACEOF
23072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23078 if test "x$ac_cv_func_fork" = xyes; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23080 $as_echo_n "checking for working fork... " >&6; }
23081 if test "${ac_cv_func_fork_works+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23084 if test "$cross_compiling" = yes; then :
23085 ac_cv_func_fork_works=cross
23087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23089 $ac_includes_default
23094 /* By Ruediger Kuhlmann. */
23095 return fork () < 0;
23101 if ac_fn_c_try_run "$LINENO"; then :
23102 ac_cv_func_fork_works=yes
23104 ac_cv_func_fork_works=no
23106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23107 conftest.$ac_objext conftest.beam conftest.$ac_ext
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23112 $as_echo "$ac_cv_func_fork_works" >&6; }
23115 ac_cv_func_fork_works=$ac_cv_func_fork
23117 if test "x$ac_cv_func_fork_works" = xcross; then
23119 *-*-amigaos* | *-*-msdosdjgpp*)
23120 # Override, as these systems have only a dummy fork() stub
23121 ac_cv_func_fork_works=no
23124 ac_cv_func_fork_works=yes
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23128 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23130 ac_cv_func_vfork_works=$ac_cv_func_vfork
23131 if test "x$ac_cv_func_vfork" = xyes; then
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23133 $as_echo_n "checking for working vfork... " >&6; }
23134 if test "${ac_cv_func_vfork_works+set}" = set; then :
23135 $as_echo_n "(cached) " >&6
23137 if test "$cross_compiling" = yes; then :
23138 ac_cv_func_vfork_works=cross
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 /* Thanks to Paul Eggert for this test. */
23143 $ac_includes_default
23144 #include <sys/wait.h>
23145 #ifdef HAVE_VFORK_H
23146 # include <vfork.h>
23148 /* On some sparc systems, changes by the child to local and incoming
23149 argument registers are propagated back to the parent. The compiler
23150 is told about this with #include <vfork.h>, but some compilers
23151 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23152 static variable whose address is put into a register that is
23153 clobbered by the vfork. */
23156 sparc_address_test (int arg)
23158 sparc_address_test (arg) int arg;
23161 static pid_t child;
23179 pid_t parent = getpid ();
23182 sparc_address_test (0);
23187 /* Here is another test for sparc vfork register problems. This
23188 test uses lots of local variables, at least as many local
23189 variables as main has allocated so far including compiler
23190 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23191 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23192 reuse the register of parent for one of the local variables,
23193 since it will think that parent can't possibly be used any more
23194 in this routine. Assigning to the local variable will thus
23195 munge parent in the parent process. */
23197 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23198 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23199 /* Convince the compiler that p..p7 are live; otherwise, it might
23200 use the same hardware register for all 8 local variables. */
23201 if (p != p1 || p != p2 || p != p3 || p != p4
23202 || p != p5 || p != p6 || p != p7)
23205 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23206 from child file descriptors. If the child closes a descriptor
23207 before it execs or exits, this munges the parent's descriptor
23208 as well. Test for this by closing stdout in the child. */
23209 _exit(close(fileno(stdout)) != 0);
23214 while (wait(&status) != child)
23217 /* Was there some problem with vforking? */
23220 /* Did the child fail? (This shouldn't happen.) */
23223 /* Did the vfork/compiler bug occur? */
23224 || parent != getpid()
23226 /* Did the file descriptor bug occur? */
23227 || fstat(fileno(stdout), &st) != 0
23232 if ac_fn_c_try_run "$LINENO"; then :
23233 ac_cv_func_vfork_works=yes
23235 ac_cv_func_vfork_works=no
23237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23238 conftest.$ac_objext conftest.beam conftest.$ac_ext
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23243 $as_echo "$ac_cv_func_vfork_works" >&6; }
23246 if test "x$ac_cv_func_fork_works" = xcross; then
23247 ac_cv_func_vfork_works=$ac_cv_func_vfork
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23249 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23252 if test "x$ac_cv_func_vfork_works" = xyes; then
23254 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23258 $as_echo "#define vfork fork" >>confdefs.h
23261 if test "x$ac_cv_func_fork_works" = xyes; then
23263 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23269 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23270 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274 /* end confdefs.h. */
23275 #include <langinfo.h>
23279 char* cs = nl_langinfo(CODESET);
23284 if ac_fn_c_try_link "$LINENO"; then :
23285 emacs_cv_langinfo_codeset=yes
23287 emacs_cv_langinfo_codeset=no
23289 rm -f core conftest.err conftest.$ac_objext \
23290 conftest$ac_exeext conftest.$ac_ext
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23294 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23295 if test $emacs_cv_langinfo_codeset = yes; then
23297 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23302 $as_echo_n "checking for mbstate_t... " >&6; }
23303 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 $ac_includes_default
23309 # include <wchar.h>
23313 mbstate_t x; return sizeof x;
23318 if ac_fn_c_try_compile "$LINENO"; then :
23319 ac_cv_type_mbstate_t=yes
23321 ac_cv_type_mbstate_t=no
23323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23326 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23327 if test $ac_cv_type_mbstate_t = yes; then
23329 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23333 $as_echo "#define mbstate_t int" >>confdefs.h
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23338 $as_echo_n "checking for C restricted array declarations... " >&6; }
23339 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23344 void fred (int x[__restrict]);
23353 if ac_fn_c_try_compile "$LINENO"; then :
23354 emacs_cv_c_restrict_arr=yes
23356 emacs_cv_c_restrict_arr=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23361 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23362 if test "$emacs_cv_c_restrict_arr" = yes; then
23364 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23370 # Set up the CFLAGS for real compilation, so we can substitute it.
23371 CFLAGS="$REAL_CFLAGS"
23372 CPPFLAGS="$REAL_CPPFLAGS"
23374 ## Hack to detect a buggy GCC version.
23375 if test "x$GCC" = xyes \
23376 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23377 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23378 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23379 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23382 version=$PACKAGE_VERSION
23384 ### Specify what sort of things we'll be editing into Makefile and config.h.
23385 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23409 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23410 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23411 ## end of LIBX_BASE, but nothing ever set it.
23416 ## Used in lwlib/Makefile.in.
23418 if test -n "${machfile}"; then
23419 M_FILE="\$(srcdir)/${machfile}"
23423 S_FILE="\$(srcdir)/${opsysfile}"
23434 cat >>confdefs.h <<_ACEOF
23435 #define EMACS_CONFIGURATION "${canonical}"
23439 cat >>confdefs.h <<_ACEOF
23440 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23443 if test -n "$machfile"; then
23445 cat >>confdefs.h <<_ACEOF
23446 #define config_machfile "${machfile}"
23451 cat >>confdefs.h <<_ACEOF
23452 #define config_opsysfile "${opsysfile}"
23459 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23461 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23464 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23466 if test "$HAVE_XFT" = "yes"; then
23467 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23468 elif test "$HAVE_FREETYPE" = "yes"; then
23469 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23479 if test "${USE_X_TOOLKIT}" != "none" ; then
23480 WIDGET_OBJ=widget.o
23482 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23484 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23486 $as_echo "#define USE_LUCID 1" >>confdefs.h
23488 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23490 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23495 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23496 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23500 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23501 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23502 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23506 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23507 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23510 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23516 case "$USE_X_TOOLKIT" in
23517 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23518 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23519 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
23523 if test "$USE_X_TOOLKIT" = "none"; then
23524 LIBXT_OTHER="\$(LIBXSM)"
23525 OLDXMENU_TARGET="really-oldXMenu"
23527 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
23528 OLDXMENU_TARGET="really-lwlib"
23532 ## The X Menu stuff is present in the X10 distribution, but missing
23533 ## from X11. If we have X10, just use the installed library;
23534 ## otherwise, use our own copy.
23535 if test "${HAVE_X11}" = "yes" ; then
23537 $as_echo "#define HAVE_X11 1" >>confdefs.h
23540 if test "$USE_X_TOOLKIT" = "none"; then
23541 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
23543 OLDXMENU="\${lwlibdir}/liblw.a"
23545 LIBXMENU="\$(OLDXMENU)"
23546 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
23547 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
23549 ## For a syntactically valid Makefile; not actually used for anything.
23550 ## See comments in src/Makefile.in.
23552 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
23553 if test "${HAVE_X_WINDOWS}" = "yes"; then
23562 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
23575 if test "${HAVE_MENUS}" = "yes" ; then
23577 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
23581 if test "${GNU_MALLOC}" = "yes" ; then
23583 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
23588 if test "${REL_ALLOC}" = "yes" ; then
23590 $as_echo "#define REL_ALLOC 1" >>confdefs.h
23593 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
23597 if test "$opsys" = "cygwin"; then
23598 CYGWIN_OBJ="sheap.o"
23599 ## Cygwin differs because of its unexec().
23601 POST_ALLOC_OBJ=lastfile.o
23604 PRE_ALLOC_OBJ=lastfile.o
23613 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23616 ## The -headerpad option tells ld (see man page) to leave room at the
23617 ## end of the header for adding load commands. Needed for dumping.
23618 ## 0x690 is the total size of 30 segment load commands (at 56
23619 ## each); under Cocoa 31 commands are required.
23620 if test "$HAVE_NS" = "yes"; then
23621 libs_nsgui="-framework AppKit"
23622 headerpad_extra=6C8
23625 headerpad_extra=690
23627 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23629 ## This is here because src/Makefile.in did some extra fiddling around
23630 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23631 ## #ifndef LD_SWITCH_SYSTEM
23632 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23633 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23634 ## not using gcc, darwin.
23635 ## Because this was done in src/Makefile.in, the resulting part of
23636 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23637 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23638 ## rather than LD_SWITCH_SYSTEM.
23639 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23640 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23643 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23644 ## find X at run-time.
23645 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23646 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23647 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23648 ## had different values in configure (in ac_link) and src/Makefile.in.
23649 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23650 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23652 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23655 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23656 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23665 ## gnu: GNU needs its own crt0.
23666 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23668 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23669 ## library search parth, i.e. it won't search /usr/lib for libc and
23670 ## friends. Using -nostartfiles instead avoids this problem, and
23671 ## will also work on earlier NetBSD releases.
23672 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23674 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23675 ## MkLinux/LinuxPPC needs this.
23676 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23678 case "$canonical" in
23679 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
23685 if test "x$ORDINARY_LINK" = "xyes"; then
23689 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23692 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23693 ## freebsd, gnu-* not on powerpc*|s390x*.
23694 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23696 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23697 ## places that are difficult to figure out at make time. Fortunately,
23698 ## these same versions allow you to pass arbitrary flags on to the
23699 ## linker, so there is no reason not to use it as a linker.
23701 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23702 ## searching for libraries in its internal directories, so we have to
23703 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23704 LD_FIRSTFLAG="-nostdlib"
23707 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23708 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
23713 ## FIXME? The logic here is not precisely the same as that above.
23714 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23715 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23717 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23720 freebsd|netbsd|openbsd) LIB_GCC= ;;
23723 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23724 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23730 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23731 ## immediately undefine it again and redefine it to empty.
23732 ## Was the C_SWITCH_X_SITE part really necessary?
23733 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23739 ## Ask GCC where to find libgcc.a.
23740 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23745 ## If we're using X11/GNUstep, define some consequences.
23746 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
23748 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23751 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23758 #### Report on what we decided to do.
23759 #### Report GTK as a toolkit, even if it doesn't use Xt.
23760 #### It makes printing result more understandable as using GTK sets
23761 #### toolkit_scroll_bars to yes by default.
23762 if test "${HAVE_GTK}" = "yes"; then
23767 Configured for \`${canonical}'.
23769 Where should the build process find the source code? ${srcdir}
23770 What operating system file should Emacs use?
23772 What compiler should emacs be built with? ${CC} ${CFLAGS}
23773 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23774 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23775 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23776 What window system should Emacs use? ${window_system}
23777 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23779 if test -n "${x_includes}"; then
23780 echo " Where do we find X Windows header files? ${x_includes}"
23782 echo " Where do we find X Windows header files? Standard dirs"
23784 if test -n "${x_libraries}"; then
23785 echo " Where do we find X Windows libraries? ${x_libraries}"
23787 echo " Where do we find X Windows libraries? Standard dirs"
23790 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23791 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23792 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23793 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23794 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23795 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23796 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23797 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23799 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23800 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23801 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23802 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23803 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23804 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23806 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23807 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23808 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23809 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23811 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23814 if test -n "${EMACSDATA}"; then
23815 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23817 if test -n "${EMACSDOC}"; then
23818 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23821 if test $USE_XASSERTS = yes; then
23822 echo " Compiling with asserts turned on."
23823 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23828 if test "$HAVE_NS" = "yes"; then
23830 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23831 The installed application will go to nextstep/Emacs.app and can be
23832 run or moved from there."
23833 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23834 echo "The application will be fully self-contained."
23836 echo "The lisp resources for the application will be installed under ${prefix}.
23837 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23838 to run if these resources are not installed."
23843 if test "${opsys}" = "cygwin"; then
23845 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23846 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23852 # Remove any trailing slashes in these variables.
23853 test "${prefix}" != NONE &&
23854 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23855 test "${exec_prefix}" != NONE &&
23856 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23858 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"
23860 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"
23863 opt_makefile=test/automated/Makefile
23865 if test -f $srcdir/${opt_makefile}.in; then
23866 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23867 ac_config_files="$ac_config_files test/automated/Makefile"
23872 opt_makefile=admin/unidata/Makefile
23874 if test -f $srcdir/${opt_makefile}.in; then
23875 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23876 ac_config_files="$ac_config_files admin/unidata/Makefile"
23881 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23885 ac_config_commands="$ac_config_commands mkdirs"
23888 ac_config_commands="$ac_config_commands epaths"
23891 ac_config_commands="$ac_config_commands gdbinit"
23894 cat >confcache <<\_ACEOF
23895 # This file is a shell script that caches the results of configure
23896 # tests run on this system so they can be shared between configure
23897 # scripts and configure runs, see configure's option --config-cache.
23898 # It is not useful on other systems. If it contains results you don't
23899 # want to keep, you may remove or edit it.
23901 # config.status only pays attention to the cache file if you give it
23902 # the --recheck option to rerun configure.
23904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23906 # following values.
23910 # The following way of writing the cache mishandles newlines in values,
23911 # but we know of no workaround that is simple, portable, and efficient.
23912 # So, we kill variables containing newlines.
23913 # Ultrix sh set writes to stderr and can't be redirected directly,
23914 # and sets the high bit in the cache file unless we assign to the vars.
23916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23917 eval ac_val=\$$ac_var
23921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23925 _ | IFS | as_nl) ;; #(
23926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23927 *) { eval $ac_var=; unset $ac_var;} ;;
23933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23934 *${as_nl}ac_space=\ *)
23935 # `set' does not quote correctly, so add quotes: double-quote
23936 # substitution turns \\\\ into \\, and sed turns \\ into \.
23939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23942 # `set' quotes correctly as required by POSIX, so do not add quotes.
23943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23957 if test -w "$cache_file"; then
23958 test "x$cache_file" != "x/dev/null" &&
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23960 $as_echo "$as_me: updating cache $cache_file" >&6;}
23961 cat confcache >$cache_file
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23964 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23970 # Let make expand exec_prefix.
23971 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23973 DEFS=-DHAVE_CONFIG_H
23977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23978 # 1. Remove the extension, and $U if already installed.
23979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23982 # will be set to the directory where LIBOBJS objects are built.
23983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23986 LIBOBJS=$ac_libobjs
23988 LTLIBOBJS=$ac_ltlibobjs
23991 if test -n "$EXEEXT"; then
23993 am__EXEEXT_FALSE='#'
23995 am__EXEEXT_TRUE='#'
23999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24000 as_fn_error "conditional \"AMDEP\" was never defined.
24001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24003 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24004 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24007 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24008 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24011 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24012 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24016 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24017 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24020 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24021 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24024 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24025 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24028 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24029 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24032 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24033 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24036 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24037 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24040 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24041 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24048 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24049 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24052 >>>>>>> MERGE-SOURCE
24053 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24054 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24057 >>>>>>> MERGE-SOURCE
24058 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24059 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24064 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24065 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24068 >>>>>>> MERGE-SOURCE
24069 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24070 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24073 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24074 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24080 if test -n "$gl_LIBOBJS"; then
24081 # Remove the extension.
24082 sed_drop_objext='s/\.o$//;s/\.obj$//'
24083 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24084 gl_libobjs="$gl_libobjs $i.$ac_objext"
24085 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24088 gl_LIBOBJS=$gl_libobjs
24090 gl_LTLIBOBJS=$gl_ltlibobjs
24096 if test -n "$gltests_LIBOBJS"; then
24097 # Remove the extension.
24098 sed_drop_objext='s/\.o$//;s/\.obj$//'
24099 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24100 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24101 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24104 gltests_LIBOBJS=$gltests_libobjs
24106 gltests_LTLIBOBJS=$gltests_ltlibobjs
24110 : ${CONFIG_STATUS=./config.status}
24112 ac_clean_files_save=$ac_clean_files
24113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24119 # Generated by $as_me.
24120 # Run this file to recreate the current configuration.
24121 # Compiler output produced by configure, useful for debugging
24122 # configure, is in config.log if it exists.
24125 ac_cs_recheck=false
24128 SHELL=\${CONFIG_SHELL-$SHELL}
24131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24132 ## -------------------- ##
24133 ## M4sh Initialization. ##
24134 ## -------------------- ##
24136 # Be more Bourne compatible
24137 DUALCASE=1; export DUALCASE # for MKS sh
24138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24142 # is contrary to our usage. Disable this feature.
24143 alias -g '${1+"$@"}'='"$@"'
24144 setopt NO_GLOB_SUBST
24146 case `(set -o) 2>/dev/null` in #(
24158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24162 # Prefer a ksh shell builtin over an external printf program on Solaris,
24163 # but without wasting forks for bash or zsh.
24164 if test -z "$BASH_VERSION$ZSH_VERSION" \
24165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24166 as_echo='print -r --'
24167 as_echo_n='print -rn --'
24168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24169 as_echo='printf %s\n'
24170 as_echo_n='printf %s'
24172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24174 as_echo_n='/usr/ucb/echo -n'
24176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24177 as_echo_n_body='eval
24181 expr "X$arg" : "X\\(.*\\)$as_nl";
24182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24186 export as_echo_n_body
24187 as_echo_n='sh -c $as_echo_n_body as_echo'
24189 export as_echo_body
24190 as_echo='sh -c $as_echo_body as_echo'
24193 # The user is always right.
24194 if test "${PATH_SEPARATOR+set}" != set; then
24196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24204 # We need space, tab and new line, in precisely that order. Quoting is
24205 # there to prevent editors from complaining about space-tab.
24206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24207 # splitting by setting IFS to empty value.)
24210 # Find who we are. Look in the path if we contain no directory separator.
24212 *[\\/]* ) as_myself=$0 ;;
24213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24214 for as_dir in $PATH
24217 test -z "$as_dir" && as_dir=.
24218 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24224 # We did not find ourselves, most probably we were run as `sh COMMAND'
24225 # in which case we are not to be found in the path.
24226 if test "x$as_myself" = x; then
24229 if test ! -f "$as_myself"; then
24230 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24234 # Unset variables that we do not need and which cause bugs (e.g. in
24235 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24236 # suppresses any "Segmentation fault" message there. '((' could
24237 # trigger a bug in pdksh 5.2.14.
24238 for as_var in BASH_ENV ENV MAIL MAILPATH
24239 do eval test x\${$as_var+set} = xset \
24240 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24253 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24256 # as_fn_error ERROR [LINENO LOG_FD]
24257 # ---------------------------------
24258 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24259 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24260 # script with status $?, using 1 if that was 0.
24263 as_status=$?; test $as_status -eq 0 && as_status=1
24265 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24266 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24268 $as_echo "$as_me: error: $1" >&2
24269 as_fn_exit $as_status
24273 # as_fn_set_status STATUS
24274 # -----------------------
24275 # Set $? to STATUS, without forking.
24276 as_fn_set_status ()
24279 } # as_fn_set_status
24281 # as_fn_exit STATUS
24282 # -----------------
24283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24287 as_fn_set_status $1
24293 # Portably unset VAR.
24296 { eval $1=; unset $1;}
24298 as_unset=as_fn_unset
24299 # as_fn_append VAR VALUE
24300 # ----------------------
24301 # Append the text in VALUE to the end of the definition contained in VAR. Take
24302 # advantage of any shell optimizations that allow amortized linear growth over
24303 # repeated appends, instead of the typical quadratic growth present in naive
24305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24306 eval 'as_fn_append ()
24317 # as_fn_arith ARG...
24318 # ------------------
24319 # Perform arithmetic evaluation on the ARGs, and store the result in the
24320 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24321 # must be portable across $(()) and expr.
24322 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24323 eval 'as_fn_arith ()
24330 as_val=`expr "$@" || test $? -eq 1`
24335 if expr a : '\(a\)' >/dev/null 2>&1 &&
24336 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24343 as_basename=basename
24348 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24354 as_me=`$as_basename -- "$0" ||
24355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24356 X"$0" : 'X\(//\)$' \| \
24357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24359 sed '/^.*\/\([^/][^/]*\)\/*$/{
24373 # Avoid depending upon Character Ranges.
24374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24377 as_cr_digits='0123456789'
24378 as_cr_alnum=$as_cr_Letters$as_cr_digits
24380 ECHO_C= ECHO_N= ECHO_T=
24381 case `echo -n x` in #(((((
24383 case `echo 'xy\c'` in
24384 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24386 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24393 rm -f conf$$ conf$$.exe conf$$.file
24394 if test -d conf$$.dir; then
24395 rm -f conf$$.dir/conf$$.file
24398 mkdir conf$$.dir 2>/dev/null
24400 if (echo >conf$$.file) 2>/dev/null; then
24401 if ln -s conf$$.file conf$$ 2>/dev/null; then
24403 # ... but there are two gotchas:
24404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24406 # In both cases, we have to default to `cp -p'.
24407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24409 elif ln conf$$.file conf$$ 2>/dev/null; then
24417 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24418 rmdir conf$$.dir 2>/dev/null
24423 # Create "$as_dir" as a directory, including parents if necessary.
24428 -*) as_dir=./$as_dir;;
24430 test -d "$as_dir" || eval $as_mkdir_p || {
24434 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24435 *) as_qdir=$as_dir;;
24437 as_dirs="'$as_qdir' $as_dirs"
24438 as_dir=`$as_dirname -- "$as_dir" ||
24439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24440 X"$as_dir" : 'X\(//\)[^/]' \| \
24441 X"$as_dir" : 'X\(//\)$' \| \
24442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24443 $as_echo X"$as_dir" |
24444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24448 /^X\(\/\/\)[^/].*/{
24461 test -d "$as_dir" && break
24463 test -z "$as_dirs" || eval "mkdir $as_dirs"
24464 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24468 if mkdir -p . 2>/dev/null; then
24469 as_mkdir_p='mkdir -p "$as_dir"'
24471 test -d ./-p && rmdir ./-p
24475 if test -x / >/dev/null 2>&1; then
24476 as_test_x='test -x'
24478 if ls -dL / >/dev/null 2>&1; then
24485 if test -d "$1"; then
24491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24492 ???[sx]*):;;*)false;;esac;fi
24496 as_executable_p=$as_test_x
24498 # Sed expression to map a string onto a valid CPP name.
24499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24501 # Sed expression to map a string onto a valid variable name.
24502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24506 ## ----------------------------------- ##
24507 ## Main body of $CONFIG_STATUS script. ##
24508 ## ----------------------------------- ##
24510 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24513 # Save the log message, to keep $0 and so on meaningful, and to
24514 # report actual input values of CONFIG_FILES etc. instead of their
24515 # values after options handling.
24517 This file was extended by emacs $as_me 24.1.50, which was
24518 generated by GNU Autoconf 2.65. Invocation command line was
24520 CONFIG_FILES = $CONFIG_FILES
24521 CONFIG_HEADERS = $CONFIG_HEADERS
24522 CONFIG_LINKS = $CONFIG_LINKS
24523 CONFIG_COMMANDS = $CONFIG_COMMANDS
24526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24531 case $ac_config_files in *"
24532 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24535 case $ac_config_headers in *"
24536 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24541 # Files that config.status was made for.
24542 config_files="$ac_config_files"
24543 config_headers="$ac_config_headers"
24544 config_commands="$ac_config_commands"
24548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24550 \`$as_me' instantiates files and other configuration actions
24551 from templates according to the current configuration. Unless the files
24552 and actions are specified as TAGs, all are instantiated by default.
24554 Usage: $0 [OPTION]... [TAG]...
24556 -h, --help print this help, then exit
24557 -V, --version print version number and configuration settings, then exit
24558 --config print configuration, then exit
24559 -q, --quiet, --silent
24560 do not print progress messages
24561 -d, --debug don't remove temporary files
24562 --recheck update $as_me by reconfiguring in the same conditions
24563 --file=FILE[:TEMPLATE]
24564 instantiate the configuration file FILE
24565 --header=FILE[:TEMPLATE]
24566 instantiate the configuration header FILE
24568 Configuration files:
24571 Configuration headers:
24574 Configuration commands:
24577 Report bugs to the package provider."
24580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24581 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24583 emacs config.status 24.1.50
24584 configured by $0, generated by GNU Autoconf 2.65,
24585 with options \\"\$ac_cs_config\\"
24587 Copyright (C) 2009 Free Software Foundation, Inc.
24588 This config.status script is free software; the Free Software Foundation
24589 gives unlimited permission to copy, distribute and modify it."
24596 test -n "\$AWK" || AWK=awk
24599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24600 # The default lists apply if the user does not specify any file.
24606 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24607 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24618 # Handling of the options.
24619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24621 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24622 $as_echo "$ac_cs_version"; exit ;;
24623 --config | --confi | --conf | --con | --co | --c )
24624 $as_echo "$ac_cs_config"; exit ;;
24625 --debug | --debu | --deb | --de | --d | -d )
24627 --file | --fil | --fi | --f )
24630 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24632 as_fn_append CONFIG_FILES " '$ac_optarg'"
24633 ac_need_defaults=false;;
24634 --header | --heade | --head | --hea )
24637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24640 ac_need_defaults=false;;
24642 # Conflict between --help and --header
24643 as_fn_error "ambiguous option: \`$1'
24644 Try \`$0 --help' for more information.";;
24645 --help | --hel | -h )
24646 $as_echo "$ac_cs_usage"; exit ;;
24647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24651 # This is an error.
24652 -*) as_fn_error "unrecognized option: \`$1'
24653 Try \`$0 --help' for more information." ;;
24655 *) as_fn_append ac_config_targets " $1"
24656 ac_need_defaults=false ;;
24662 ac_configure_extra_args=
24664 if $ac_cs_silent; then
24666 ac_configure_extra_args="$ac_configure_extra_args --silent"
24670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24671 if \$ac_cs_recheck; then
24672 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24675 CONFIG_SHELL='$SHELL'
24676 export CONFIG_SHELL
24681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24686 ## Running $as_me. ##
24692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24697 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24703 # Handling of arguments.
24704 for ac_config_target in $ac_config_targets
24706 case $ac_config_target in
24707 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24709 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24710 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24711 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
24712 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24713 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24714 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24715 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24716 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24717 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24718 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24719 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24720 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24721 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
24722 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
24723 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24724 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
24725 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
24727 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24732 # If the user did not use the arguments to specify the items to instantiate,
24733 # then the envvar interface is used. Set only those that are not.
24734 # We use the long form for the default assignment because of an extremely
24735 # bizarre bug on SunOS 4.1.3.
24736 if $ac_need_defaults; then
24737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24742 # Have a temporary directory for convenience. Make it in the build tree
24743 # simply because there is no reason against having it here, and in addition,
24744 # creating and moving files from /tmp can sometimes cause problems.
24745 # Hook for its removal unless debugging.
24746 # Note that there is a small window in which the directory will not be cleaned:
24747 # after its creation but before its name has been assigned to `$tmp'.
24751 trap 'exit_status=$?
24752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24754 trap 'as_fn_exit 1' 1 2 13 15
24756 # Create a (secure) tmp directory for tmp files.
24759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24760 test -n "$tmp" && test -d "$tmp"
24763 tmp=./conf$$-$RANDOM
24764 (umask 077 && mkdir "$tmp")
24765 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
24767 # Set up the scripts for CONFIG_FILES section.
24768 # No need to generate them if there are no CONFIG_FILES.
24769 # This happens for instance with `./config.status config.h'.
24770 if test -n "$CONFIG_FILES"; then
24772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
24773 ac_cs_awk_getline=:
24774 ac_cs_awk_pipe_init=
24775 ac_cs_awk_read_file='
24776 while ((getline aline < (F[key])) > 0)
24779 ac_cs_awk_pipe_fini=
24781 ac_cs_awk_getline=false
24782 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
24783 ac_cs_awk_read_file='
24785 print "cat " F[key] " &&"
24786 '$ac_cs_awk_pipe_init
24787 # The final `:' finishes the AND list.
24788 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
24790 ac_cr=`echo X | tr X '\015'`
24791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24792 # But we know of no other shell where ac_cr would be empty at this
24793 # point, so we can use a bashism as a fallback.
24794 if test "x$ac_cr" = x; then
24795 eval ac_cr=\$\'\\r\'
24797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24801 ac_cs_awk_cr=$ac_cr
24804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24807 # Create commands to substitute file output variables.
24809 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24810 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24811 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
24814 } >conf$$files.sh &&
24815 . ./conf$$files.sh ||
24816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24817 rm -f conf$$files.sh
24820 echo "cat >conf$$subs.awk <<_ACEOF" &&
24821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24823 } >conf$$subs.sh ||
24824 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24827 for ac_last_try in false false false false false :; do
24828 . ./conf$$subs.sh ||
24829 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24832 if test $ac_delim_n = $ac_delim_num; then
24834 elif $ac_last_try; then
24835 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24840 rm -f conf$$subs.sh
24842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24843 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24847 s/^/S["/; s/!.*/"]=/
24857 s/\(.\{148\}\)..*/\1/
24859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24871 s/\(.\{148\}\)..*/\1/
24873 s/["\\]/\\&/g; s/^/"/; s/$/"/
24877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24882 ' <conf$$subs.awk | sed '
24887 ' >>$CONFIG_STATUS || ac_write_fail=1
24888 rm -f conf$$subs.awk
24889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24891 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24892 for (key in S) S_is_set[key] = 1
24894 \$ac_cs_awk_pipe_init
24898 nfields = split(line, field, "@")
24900 len = length(field[1])
24901 for (i = 2; i < nfields; i++) {
24903 keylen = length(key)
24904 if (S_is_set[key]) {
24906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24907 len += length(value) + length(field[++i])
24912 if (nfields == 3 && !substed) {
24914 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24915 \$ac_cs_awk_read_file
24921 \$ac_cs_awk_pipe_fini
24924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24929 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24930 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24935 # trailing colons and then remove the whole line if VPATH becomes empty
24936 # (actually we leave an empty line to preserve line numbers).
24937 if test "x$srcdir" = x.; then
24938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24939 s/:*\$(srcdir):*/:/
24940 s/:*\${srcdir}:*/:/
24942 s/^\([^=]*=[ ]*\):*/\1/
24948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24949 fi # test -n "$CONFIG_FILES"
24951 # Set up the scripts for CONFIG_HEADERS section.
24952 # No need to generate them if there are no CONFIG_HEADERS.
24953 # This happens for instance with `./config.status Makefile'.
24954 if test -n "$CONFIG_HEADERS"; then
24955 cat >"$tmp/defines.awk" <<\_ACAWK ||
24959 # Transform confdefs.h into an awk script `defines.awk', embedded as
24960 # here-document in config.status, that substitutes the proper values into
24961 # config.h.in to produce config.h.
24963 # Create a delimiter string that does not exist in confdefs.h, to ease
24964 # handling of long lines.
24966 for ac_last_try in false false :; do
24967 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24968 if test -z "$ac_t"; then
24970 elif $ac_last_try; then
24971 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24977 # For the awk script, D is an array of macro values keyed by name,
24978 # likewise P contains macro parameters if any. Preserve backslash
24979 # newline sequences.
24981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24983 s/.\{148\}/&'"$ac_delim"'/g
24986 s/^[ ]*#[ ]*define[ ][ ]*/ /
24993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25000 D["\1"]=" \3\\\\\\n"\\/p
25002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25007 s/.\{148\}/&'"$ac_delim"'/g
25012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25017 ' <confdefs.h | sed '
25018 s/'"$ac_delim"'/"\\\
25019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25022 for (key in D) D_is_set[key] = 1
25025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25027 split(line, arg, " ")
25028 if (arg[1] == "#") {
25032 defundef = substr(arg[1], 2)
25035 split(mac1, mac2, "(") #)
25037 prefix = substr(line, 1, index(line, defundef) - 1)
25038 if (D_is_set[macro]) {
25039 # Preserve the white space surrounding the "#".
25040 print prefix "define", macro P[macro] D[macro]
25043 # Replace #undef with comments. This is necessary, for example,
25044 # in the case of _POSIX_SOURCE, which is predefined and required
25045 # on some systems where configure will not decide to define it.
25046 if (defundef == "undef") {
25047 print "/*", prefix defundef, macro, "*/"
25055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25056 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25057 fi # test -n "$CONFIG_HEADERS"
25060 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25065 :[FHLC]) ac_mode=$ac_tag; continue;;
25067 case $ac_mode$ac_tag in
25069 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25070 :[FH]-) ac_tag=-:-;;
25071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25088 -) ac_f="$tmp/stdin";;
25089 *) # Look for the file first in the build tree, then in the source tree
25090 # (if the path is not absolute). The absolute path cannot be DOS-style,
25091 # because $ac_f cannot contain `:'.
25095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25097 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25099 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25100 as_fn_append ac_file_inputs " '$ac_f'"
25103 # Let's still pretend it is `configure' which instantiates (i.e., don't
25104 # use $as_me), people would be surprised to read:
25105 # /* config.h. Generated by config.status. */
25106 configure_input='Generated from '`
25107 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25109 if test x"$ac_file" != x-; then
25110 configure_input="$ac_file. $configure_input"
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25112 $as_echo "$as_me: creating $ac_file" >&6;}
25114 # Neutralize special characters interpreted by sed in replacement strings.
25115 case $configure_input in #(
25116 *\&* | *\|* | *\\* )
25117 ac_sed_conf_input=`$as_echo "$configure_input" |
25118 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25119 *) ac_sed_conf_input=$configure_input;;
25123 *:-:* | *:-) cat >"$tmp/stdin" \
25124 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25129 ac_dir=`$as_dirname -- "$ac_file" ||
25130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25131 X"$ac_file" : 'X\(//\)[^/]' \| \
25132 X"$ac_file" : 'X\(//\)$' \| \
25133 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25134 $as_echo X"$ac_file" |
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25139 /^X\(\/\/\)[^/].*/{
25152 as_dir="$ac_dir"; as_fn_mkdir_p
25156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25158 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25159 # A ".." for each directory in $ac_dir_suffix.
25160 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25161 case $ac_top_builddir_sub in
25162 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25163 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25166 ac_abs_top_builddir=$ac_pwd
25167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25168 # for backward compatibility:
25169 ac_top_builddir=$ac_top_build_prefix
25172 .) # We are building in place.
25174 ac_top_srcdir=$ac_top_builddir_sub
25175 ac_abs_top_srcdir=$ac_pwd ;;
25176 [\\/]* | ?:[\\/]* ) # Absolute name.
25177 ac_srcdir=$srcdir$ac_dir_suffix;
25178 ac_top_srcdir=$srcdir
25179 ac_abs_top_srcdir=$srcdir ;;
25180 *) # Relative name.
25181 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25182 ac_top_srcdir=$ac_top_build_prefix$srcdir
25183 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25196 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25198 ac_MKDIR_P=$MKDIR_P
25200 [\\/$]* | ?:[\\/]* ) ;;
25201 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25206 # If the template does not know about datarootdir, expand it.
25207 # FIXME: This hack should be removed a few years after 2.60.
25208 ac_datarootdir_hack=; ac_datarootdir_seen=
25219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25220 *datarootdir*) ac_datarootdir_seen=yes;;
25221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25226 ac_datarootdir_hack='
25227 s&@datadir@&$datadir&g
25228 s&@docdir@&$docdir&g
25229 s&@infodir@&$infodir&g
25230 s&@localedir@&$localedir&g
25231 s&@mandir@&$mandir&g
25232 s&\\\${datarootdir}&$datarootdir&g' ;;
25236 # Neutralize VPATH when `$srcdir' = `.'.
25237 # Shell code in configure.ac might set extrasub.
25238 # FIXME: do we really want to maintain this feature?
25239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25240 ac_sed_extra="$ac_vpsub
25243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25246 s|@configure_input@|$ac_sed_conf_input|;t t
25247 s&@top_builddir@&$ac_top_builddir_sub&;t t
25248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25249 s&@srcdir@&$ac_srcdir&;t t
25250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25251 s&@top_srcdir@&$ac_top_srcdir&;t t
25252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25253 s&@builddir@&$ac_builddir&;t t
25254 s&@abs_builddir@&$ac_abs_builddir&;t t
25255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25256 s&@INSTALL@&$ac_INSTALL&;t t
25257 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25258 $ac_datarootdir_hack
25260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25261 if $ac_cs_awk_getline; then
25262 $AWK -f "$tmp/subs.awk"
25264 $AWK -f "$tmp/subs.awk" | $SHELL
25266 || as_fn_error "could not create $ac_file" "$LINENO" 5
25268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25269 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25272 which seems to be undefined. Please make sure it is defined." >&5
25273 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25274 which seems to be undefined. Please make sure it is defined." >&2;}
25278 -) cat "$tmp/out" && rm -f "$tmp/out";;
25279 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25281 || as_fn_error "could not create $ac_file" "$LINENO" 5
25287 if test x"$ac_file" != x-; then
25289 $as_echo "/* $configure_input */" \
25290 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25291 } >"$tmp/config.h" \
25292 || as_fn_error "could not create $ac_file" "$LINENO" 5
25293 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25295 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25298 mv "$tmp/config.h" "$ac_file" \
25299 || as_fn_error "could not create $ac_file" "$LINENO" 5
25302 $as_echo "/* $configure_input */" \
25303 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25304 || as_fn_error "could not create -" "$LINENO" 5
25306 # Compute "$ac_file"'s index in $config_headers.
25309 for _am_header in $config_headers :; do
25310 case $_am_header in
25311 $_am_arg | $_am_arg:* )
25314 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25317 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25318 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25319 X"$_am_arg" : 'X\(//\)[^/]' \| \
25320 X"$_am_arg" : 'X\(//\)$' \| \
25321 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25322 $as_echo X"$_am_arg" |
25323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25327 /^X\(\/\/\)[^/].*/{
25339 s/.*/./; q'`/stamp-h$_am_stamp_count
25342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25343 $as_echo "$as_me: executing $ac_file commands" >&6;}
25348 case $ac_file$ac_mode in
25349 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25350 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25351 # are listed without --file. Let's play safe and only enable the eval
25352 # if we detect the quoting.
25353 case $CONFIG_FILES in
25354 *\'*) eval set x "$CONFIG_FILES" ;;
25355 *) set x $CONFIG_FILES ;;
25360 # Strip MF so we end up with the name of the file.
25361 mf=`echo "$mf" | sed -e 's/:.*$//'`
25362 # Check whether this is an Automake generated Makefile or not.
25363 # We used to match only the files named `Makefile.in', but
25364 # some people rename them; so instead we look at the file content.
25365 # Grep'ing the first line is not enough: some people post-process
25366 # each Makefile.in and add a new line on top of each file to say so.
25367 # Grep'ing the whole file is not good either: AIX grep has a line
25368 # limit of 2048, but all sed's we know have understand at least 4000.
25369 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25370 dirpart=`$as_dirname -- "$mf" ||
25371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25372 X"$mf" : 'X\(//\)[^/]' \| \
25373 X"$mf" : 'X\(//\)$' \| \
25374 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25380 /^X\(\/\/\)[^/].*/{
25396 # Extract the definition of DEPDIR, am__include, and am__quote
25397 # from the Makefile without running `make'.
25398 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25399 test -z "$DEPDIR" && continue
25400 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25401 test -z "am__include" && continue
25402 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25403 # When using ansi2knr, U may be empty or an underscore; expand it
25404 U=`sed -n 's/^U = //p' < "$mf"`
25405 # Find all dependency output files, they are included files with
25406 # $(DEPDIR) in their names. We invoke sed twice because it is the
25407 # simplest approach to changing $(DEPDIR) to its actual value in the
25409 for file in `sed -n "
25410 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25411 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25412 # Make sure the directory exists.
25413 test -f "$dirpart/$file" && continue
25414 fdir=`$as_dirname -- "$file" ||
25415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$file" : 'X\(//\)[^/]' \| \
25417 X"$file" : 'X\(//\)$' \| \
25418 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25419 $as_echo X"$file" |
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25424 /^X\(\/\/\)[^/].*/{
25437 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25438 # echo "creating $dirpart/$file"
25439 echo '# dummy' > "$dirpart/$file"
25445 for dir in etc lisp ; do
25446 test -d ${dir} || mkdir ${dir}
25450 echo creating src/epaths.h
25451 ${MAKE-make} epaths-force
25454 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25455 echo creating src/.gdbinit
25456 echo source $srcdir/src/.gdbinit > src/.gdbinit
25466 ac_clean_files=$ac_clean_files_save
25468 test $ac_write_fail = 0 ||
25469 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25472 # configure is writing to config.log, and then calls config.status.
25473 # config.status does its own redirection, appending to config.log.
25474 # Unfortunately, on DOS this fails, as config.log is still kept open
25475 # by configure, so config.status won't be able to write to it; its
25476 # output is simply discarded. So we exec the FD to /dev/null,
25477 # effectively closing config.log, so it can be properly (re)opened and
25478 # appended to by config.status. When coming back to configure, we
25479 # need to make the FD available again.
25480 if test "$no_create" != yes; then
25482 ac_config_status_args=
25483 test "$silent" = yes &&
25484 ac_config_status_args="$ac_config_status_args --quiet"
25486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25489 # would make configure fail if this is the last instruction.
25490 $ac_cs_success || as_fn_exit $?
25492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25494 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}