2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.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.0.50'
553 PACKAGE_STRING
='emacs 24.0.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
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
660 REPLACE_OBSTACK_PRINTF
682 HAVE_DECL_OBSTACK_PRINTF
688 GNULIB_VSPRINTF_POSIX
692 GNULIB_VFPRINTF_POSIX
699 GNULIB_STDIO_H_SIGPIPE
700 GNULIB_STDIO_H_NONBLOCKING
714 GNULIB_OBSTACK_PRINTF_POSIX
715 GNULIB_OBSTACK_PRINTF
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
742 GL_GENERATE_STDDEF_H_FALSE
743 GL_GENERATE_STDDEF_H_TRUE
748 GL_GENERATE_STDBOOL_H_FALSE
749 GL_GENERATE_STDBOOL_H_TRUE
751 GL_GENERATE_STDARG_H_FALSE
752 GL_GENERATE_STDARG_H_TRUE
754 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
756 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
758 REPLACE_PTHREAD_SIGMASK
760 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
761 HAVE_STRUCT_SIGACTION_SA_SIGACTION
766 HAVE_POSIX_SIGNALBLOCKING
769 GNULIB_SIGNAL_H_SIGPIPE
770 GNULIB_PTHREAD_SIGMASK
779 HAVE_DECL_LOCALTIME_R
817 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
819 UINT64_MAX_EQ_ULONG_MAX
820 UINT32_MAX_LT_UINTMAX_MAX
823 INT64_MAX_EQ_LONG_MAX
824 INT32_MAX_LT_INTMAX_MAX
833 GL_GENERATE_STDINT_H_FALSE
834 GL_GENERATE_STDINT_H_TRUE
843 HAVE_SIGNED_SIG_ATOMIC_T
846 BITSIZEOF_SIG_ATOMIC_T
849 APPLE_UNIVERSAL_BUILD
853 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
858 HAVE_UNSIGNED_LONG_LONG_INT
862 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
866 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
879 REPLACE_CANONICALIZE_FILE_NAME
884 HAVE_STRUCT_RANDOM_DATA
903 HAVE_CANONICALIZE_FILE_NAME
930 GNULIB_CANONICALIZE_FILE_NAME
934 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
935 UNISTD_H_HAVE_WINSOCK2_H
955 REPLACE_GETDOMAINNAME
965 HAVE_DECL_GETUSERSHELL
966 HAVE_DECL_GETPAGESIZE
968 HAVE_DECL_GETDOMAINNAME
1004 GNULIB_UNISTD_H_SIGPIPE
1005 GNULIB_UNISTD_H_NONBLOCKING
1006 GNULIB_UNISTD_H_GETOPT
1030 GNULIB_GETDTABLESIZE
1031 GNULIB_GETDOMAINNAME
1044 GL_GENERATE_ALLOCA_H_FALSE
1045 GL_GENERATE_ALLOCA_H_TRUE
1048 GL_COND_LIBTOOL_FALSE
1049 GL_COND_LIBTOOL_TRUE
1082 x_default_search_path
1150 LD_SWITCH_X_SITE_AUX_RPATH
1151 LD_SWITCH_X_SITE_AUX
1212 INSTALL_STRIP_PROGRAM
1254 program_transform_name
1265 ac_subst_files
='deps_frag
1269 enable_option_checking
1292 with_toolkit_scroll_bars
1304 with_pkg_config_prog
1308 enable_ns_self_contained
1310 enable_maintainer_mode
1311 enable_locallisppath
1313 enable_use_lisp_union_type
1316 enable_dependency_tracking
1320 ac_precious_vars
='build_alias
1332 # Initialize some variables set by options.
1334 ac_init_version
=false
1335 ac_unrecognized_opts
=
1336 ac_unrecognized_sep
=
1337 # The variables have the same names as the options, with
1338 # dashes changed to underlines.
1339 cache_file
=/dev
/null
1346 program_transform_name
=s
,x
,x
,
1354 # Installation directory options.
1355 # These are left unexpanded so users can "make install exec_prefix=/foo"
1356 # and all the variables that are supposed to be based on exec_prefix
1357 # by default will actually change.
1358 # Use braces instead of parens because sh, perl, etc. also accept them.
1359 # (The list follows the same order as the GNU Coding Standards.)
1360 bindir
='${exec_prefix}/bin'
1361 sbindir
='${exec_prefix}/sbin'
1362 libexecdir
='${exec_prefix}/libexec'
1363 datarootdir
='${prefix}/share'
1364 datadir
='${datarootdir}'
1365 sysconfdir
='${prefix}/etc'
1366 sharedstatedir
='${prefix}/com'
1367 localstatedir
='${prefix}/var'
1368 includedir
='${prefix}/include'
1369 oldincludedir
='/usr/include'
1370 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1371 infodir
='${datarootdir}/info'
1376 libdir
='${exec_prefix}/lib'
1377 localedir
='${datarootdir}/locale'
1378 mandir
='${datarootdir}/man'
1384 # If the previous option needs an argument, assign it.
1385 if test -n "$ac_prev"; then
1386 eval $ac_prev=\
$ac_option
1392 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1396 # Accept the important Cygnus configure options, so we can diagnose typos.
1398 case $ac_dashdash$ac_option in
1402 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1404 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1405 bindir
=$ac_optarg ;;
1407 -build |
--build |
--buil |
--bui |
--bu)
1408 ac_prev
=build_alias
;;
1409 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1410 build_alias
=$ac_optarg ;;
1412 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1413 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1414 ac_prev
=cache_file
;;
1415 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1416 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1417 cache_file
=$ac_optarg ;;
1419 --config-cache |
-C)
1420 cache_file
=config.cache
;;
1422 -datadir |
--datadir |
--datadi |
--datad)
1424 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1425 datadir
=$ac_optarg ;;
1427 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1428 |
--dataroo |
--dataro |
--datar)
1429 ac_prev
=datarootdir
;;
1430 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1431 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1432 datarootdir
=$ac_optarg ;;
1434 -disable-* |
--disable-*)
1435 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1438 as_fn_error
"invalid feature name: $ac_useropt"
1439 ac_useropt_orig
=$ac_useropt
1440 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1443 "enable_
$ac_useropt"
1445 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1446 ac_unrecognized_sep
=', ';;
1448 eval enable_
$ac_useropt=no
;;
1450 -docdir |
--docdir |
--docdi |
--doc |
--do)
1452 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1453 docdir
=$ac_optarg ;;
1455 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1457 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1458 dvidir
=$ac_optarg ;;
1460 -enable-* |
--enable-*)
1461 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1464 as_fn_error
"invalid feature name: $ac_useropt"
1465 ac_useropt_orig
=$ac_useropt
1466 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1469 "enable_
$ac_useropt"
1471 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1472 ac_unrecognized_sep
=', ';;
1474 eval enable_
$ac_useropt=\
$ac_optarg ;;
1476 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1477 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1478 |
--exec |
--exe |
--ex)
1479 ac_prev
=exec_prefix
;;
1480 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1481 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1482 |
--exec=* |
--exe=* |
--ex=*)
1483 exec_prefix
=$ac_optarg ;;
1485 -gas |
--gas |
--ga |
--g)
1486 # Obsolete; use --with-gas.
1489 -help |
--help |
--hel |
--he |
-h)
1490 ac_init_help
=long
;;
1491 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1492 ac_init_help
=recursive
;;
1493 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1494 ac_init_help
=short
;;
1496 -host |
--host |
--hos |
--ho)
1497 ac_prev
=host_alias
;;
1498 -host=* |
--host=* |
--hos=* |
--ho=*)
1499 host_alias
=$ac_optarg ;;
1501 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1503 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1505 htmldir
=$ac_optarg ;;
1507 -includedir |
--includedir |
--includedi |
--included |
--include \
1508 |
--includ |
--inclu |
--incl |
--inc)
1509 ac_prev
=includedir
;;
1510 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1511 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1512 includedir
=$ac_optarg ;;
1514 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1516 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1517 infodir
=$ac_optarg ;;
1519 -libdir |
--libdir |
--libdi |
--libd)
1521 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1522 libdir
=$ac_optarg ;;
1524 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1525 |
--libexe |
--libex |
--libe)
1526 ac_prev
=libexecdir
;;
1527 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1528 |
--libexe=* |
--libex=* |
--libe=*)
1529 libexecdir
=$ac_optarg ;;
1531 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1532 ac_prev
=localedir
;;
1533 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1534 localedir
=$ac_optarg ;;
1536 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1537 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1538 ac_prev
=localstatedir
;;
1539 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1540 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1541 localstatedir
=$ac_optarg ;;
1543 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1545 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1546 mandir
=$ac_optarg ;;
1548 -nfp |
--nfp |
--nf)
1549 # Obsolete; use --without-fp.
1552 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1553 |
--no-cr |
--no-c |
-n)
1556 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1557 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1560 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1561 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1562 |
--oldin |
--oldi |
--old |
--ol |
--o)
1563 ac_prev
=oldincludedir
;;
1564 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1565 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1566 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1567 oldincludedir
=$ac_optarg ;;
1569 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1571 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1572 prefix
=$ac_optarg ;;
1574 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1575 |
--program-pre |
--program-pr |
--program-p)
1576 ac_prev
=program_prefix
;;
1577 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1578 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1579 program_prefix
=$ac_optarg ;;
1581 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1582 |
--program-suf |
--program-su |
--program-s)
1583 ac_prev
=program_suffix
;;
1584 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1585 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1586 program_suffix
=$ac_optarg ;;
1588 -program-transform-name |
--program-transform-name \
1589 |
--program-transform-nam |
--program-transform-na \
1590 |
--program-transform-n |
--program-transform- \
1591 |
--program-transform |
--program-transfor \
1592 |
--program-transfo |
--program-transf \
1593 |
--program-trans |
--program-tran \
1594 |
--progr-tra |
--program-tr |
--program-t)
1595 ac_prev
=program_transform_name
;;
1596 -program-transform-name=* |
--program-transform-name=* \
1597 |
--program-transform-nam=* |
--program-transform-na=* \
1598 |
--program-transform-n=* |
--program-transform-=* \
1599 |
--program-transform=* |
--program-transfor=* \
1600 |
--program-transfo=* |
--program-transf=* \
1601 |
--program-trans=* |
--program-tran=* \
1602 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1603 program_transform_name
=$ac_optarg ;;
1605 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1607 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1608 pdfdir
=$ac_optarg ;;
1610 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1612 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1615 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1616 |
-silent |
--silent |
--silen |
--sile |
--sil)
1619 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1621 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1623 sbindir
=$ac_optarg ;;
1625 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1626 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1627 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1629 ac_prev
=sharedstatedir
;;
1630 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1631 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1632 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1634 sharedstatedir
=$ac_optarg ;;
1636 -site |
--site |
--sit)
1638 -site=* |
--site=* |
--sit=*)
1641 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1643 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1644 srcdir
=$ac_optarg ;;
1646 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1647 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1648 ac_prev
=sysconfdir
;;
1649 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1650 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1651 sysconfdir
=$ac_optarg ;;
1653 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1654 ac_prev
=target_alias
;;
1655 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1656 target_alias
=$ac_optarg ;;
1658 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1661 -version |
--version |
--versio |
--versi |
--vers |
-V)
1662 ac_init_version
=: ;;
1665 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1666 # Reject names that are not valid shell variable names.
1667 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1668 as_fn_error
"invalid package name: $ac_useropt"
1669 ac_useropt_orig
=$ac_useropt
1670 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671 case $ac_user_opts in
1675 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1676 ac_unrecognized_sep
=', ';;
1678 eval with_
$ac_useropt=\
$ac_optarg ;;
1680 -without-* |
--without-*)
1681 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1684 as_fn_error
"invalid package name: $ac_useropt"
1685 ac_useropt_orig
=$ac_useropt
1686 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1691 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1692 ac_unrecognized_sep
=', ';;
1694 eval with_
$ac_useropt=no
;;
1697 # Obsolete; use --with-x.
1700 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1701 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1702 ac_prev
=x_includes
;;
1703 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1704 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1705 x_includes
=$ac_optarg ;;
1707 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1708 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1709 ac_prev
=x_libraries
;;
1710 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1711 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1712 x_libraries
=$ac_optarg ;;
1714 -*) as_fn_error
"unrecognized option: \`$ac_option'
1715 Try \`$0 --help' for more information."
1719 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1720 # Reject names that are not valid shell variable names.
1721 case $ac_envvar in #(
1722 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1723 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1725 eval $ac_envvar=\
$ac_optarg
1726 export $ac_envvar ;;
1729 # FIXME: should be removed in autoconf 3.0.
1730 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1731 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1732 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1733 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1739 if test -n "$ac_prev"; then
1740 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1741 as_fn_error
"missing argument to $ac_option"
1744 if test -n "$ac_unrecognized_opts"; then
1745 case $enable_option_checking in
1747 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1748 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1752 # Check all directory arguments for consistency.
1753 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1754 datadir sysconfdir sharedstatedir localstatedir includedir \
1755 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1756 libdir localedir mandir
1758 eval ac_val
=\$
$ac_var
1759 # Remove trailing slashes.
1762 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1763 eval $ac_var=\
$ac_val;;
1765 # Be sure to have absolute directory names.
1767 [\\/$
]* | ?
:[\\/]* ) continue;;
1768 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1770 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1773 # There might be people who depend on the old broken behavior: `$host'
1774 # used to hold the argument of --host etc.
1775 # FIXME: To remove some day.
1778 target
=$target_alias
1780 # FIXME: To remove some day.
1781 if test "x$host_alias" != x
; then
1782 if test "x$build_alias" = x
; then
1783 cross_compiling
=maybe
1784 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1785 If a cross compiler is detected then cross compile mode will be used." >&2
1786 elif test "x$build_alias" != "x$host_alias"; then
1792 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1794 test "$silent" = yes && exec 6>/dev
/null
1797 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1798 ac_ls_di
=`ls -di .` &&
1799 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1800 as_fn_error
"working directory cannot be determined"
1801 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1802 as_fn_error
"pwd does not report name of working directory"
1805 # Find the source files, if location was not specified.
1806 if test -z "$srcdir"; then
1807 ac_srcdir_defaulted
=yes
1808 # Try the directory containing this script, then the parent directory.
1809 ac_confdir
=`$as_dirname -- "$as_myself" ||
1810 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1811 X"$as_myself" : 'X\(//\)[^/]' \| \
1812 X"$as_myself" : 'X\(//\)$' \| \
1813 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1814 $as_echo X"$as_myself" |
1815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1833 if test ! -r "$srcdir/$ac_unique_file"; then
1837 ac_srcdir_defaulted
=no
1839 if test ! -r "$srcdir/$ac_unique_file"; then
1840 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1841 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1843 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1845 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1847 # When building in place, set srcdir=.
1848 if test "$ac_abs_confdir" = "$ac_pwd"; then
1851 # Remove unnecessary trailing slashes from srcdir.
1852 # Double slashes in file names in object file debugging info
1853 # mess up M-x gdb in Emacs.
1855 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1857 for ac_var
in $ac_precious_vars; do
1858 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1859 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1860 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1861 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1865 # Report the --help message.
1867 if test "$ac_init_help" = "long"; then
1868 # Omit some internal or obsolete options to make the list less imposing.
1869 # This message is too long to be a string in the A/UX 3.1 sh.
1871 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1873 Usage: $0 [OPTION]... [VAR=VALUE]...
1875 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1876 VAR=VALUE. See below for descriptions of some of the useful variables.
1878 Defaults for the options are specified in brackets.
1881 -h, --help display this help and exit
1882 --help=short display options specific to this package
1883 --help=recursive display the short help of all the included packages
1884 -V, --version display version information and exit
1885 -q, --quiet, --silent do not print \`checking...' messages
1886 --cache-file=FILE cache test results in FILE [disabled]
1887 -C, --config-cache alias for \`--cache-file=config.cache'
1888 -n, --no-create do not create output files
1889 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891 Installation directories:
1892 --prefix=PREFIX install architecture-independent files in PREFIX
1893 [$ac_default_prefix]
1894 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1897 By default, \`make install' will install all the files in
1898 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1899 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1900 for instance \`--prefix=\$HOME'.
1902 For better control, use the options below.
1904 Fine tuning of the installation directories:
1905 --bindir=DIR user executables [EPREFIX/bin]
1906 --sbindir=DIR system admin executables [EPREFIX/sbin]
1907 --libexecdir=DIR program executables [EPREFIX/libexec]
1908 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1909 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1910 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1911 --libdir=DIR object code libraries [EPREFIX/lib]
1912 --includedir=DIR C header files [PREFIX/include]
1913 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1914 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1915 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1916 --infodir=DIR info documentation [DATAROOTDIR/info]
1917 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1918 --mandir=DIR man documentation [DATAROOTDIR/man]
1919 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1920 --htmldir=DIR html documentation [DOCDIR]
1921 --dvidir=DIR dvi documentation [DOCDIR]
1922 --pdfdir=DIR pdf documentation [DOCDIR]
1923 --psdir=DIR ps documentation [DOCDIR]
1929 --program-prefix=PREFIX prepend PREFIX to installed program names
1930 --program-suffix=SUFFIX append SUFFIX to installed program names
1931 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1934 --x-includes=DIR X include files are
in DIR
1935 --x-libraries=DIR X library files are
in DIR
1938 --build=BUILD configure
for building on BUILD
[guessed
]
1939 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1943 if test -n "$ac_init_help"; then
1944 case $ac_init_help in
1945 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1950 --disable-option-checking ignore unrecognized
--enable/--with options
1951 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1952 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1953 --disable-ns-self-contained
1954 disable self contained build under NeXTstep
1955 --enable-asserts compile code with asserts enabled
1956 --disable-maintainer-mode
1957 disable
make rules and dependencies not useful
(and
1958 sometimes confusing
) to the casual installer
1959 --enable-locallisppath=PATH
1960 directories Emacs should search
for lisp files
1961 specific to this site
1962 --enable-checking[=LIST
]
1963 enable expensive run-time checks. With LIST
, enable
1964 only specific categories of checks. Categories are
:
1965 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1966 stringfreelist
, xmallocoverrun
, conslist
1967 --enable-use-lisp-union-type
1968 use a union
for the Lisp_Object data
type. This is
1969 only useful
for development
for catching certain
1971 --enable-profiling build emacs with profiling support. This might not
1972 work on all platforms
1973 --enable-autodepend automatically generate dependencies to .h-files.
1974 Requires GNU Make and Gcc. Enabled
if GNU Make and
1976 --disable-dependency-tracking speeds up one-time build
1977 --enable-dependency-tracking do not reject slow dependency extractors
1978 --disable-largefile omit support
for large files
1981 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1982 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1983 --without-pop don
't support POP mail retrieval with movemail
1984 --with-kerberos support Kerberos-authenticated POP
1985 --with-kerberos5 support Kerberos version 5 authenticated POP
1986 --with-hesiod support Hesiod to get the POP server host
1987 --with-mmdf support MMDF mailboxes
1988 --with-mail-unlink unlink, rather than empty, mail spool after reading
1989 --with-mailhost=HOSTNAME
1990 string giving default POP mail host
1991 --without-sound don't compile with sound support
1992 --without-sync-input process async input synchronously
1993 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1994 lucid or athena
, motif
, no
)
1995 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1996 --without-xpm don
't compile with XPM image support
1997 --without-jpeg don't compile with JPEG image support
1998 --without-tiff don
't compile with TIFF image support
1999 --without-gif don't compile with GIF image support
2000 --without-png don
't compile with PNG image support
2001 --without-rsvg don't compile with SVG image support
2002 --without-xml2 don
't compile with XML parsing support
2003 --without-imagemagick don't compile with ImageMagick image support
2004 --without-xft don
't use XFT for anti aliased fonts
2005 --without-libotf don't use libotf
for OpenType font support
2006 --without-m17n-flt don
't use m17n-flt for text shaping
2007 --without-toolkit-scroll-bars
2008 don't use Motif or Xaw3d scroll bars
2009 --without-xaw3d don
't use Xaw3d
2010 --without-xim don't use X11 XIM
2011 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2012 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2014 --without-dbus don't compile with D-Bus support
2015 --without-gconf don
't compile with GConf support
2016 --without-gsettings don't compile with GSettings support
2017 --without-selinux don
't compile with SELinux support
2018 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2019 --without-makeinfo don
't require makeinfo for building manuals
2020 --without-compress-info don't
compress the installed Info pages
2021 --with-pkg-config-prog=PATH
2022 path to pkg-config
for finding GTK and librsvg
2023 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2024 /usr
/lib
, or
/usr
/lib64 on some platforms.
2025 --with-gameuser=USER user
for shared game score files
2026 --with-gnustep-conf=PATH
2027 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2028 or
/etc
/GNUstep
/GNUstep.conf
2029 --with-x use the X Window System
2031 Some influential environment variables
:
2032 CC C compiler
command
2033 CFLAGS C compiler flags
2034 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2035 nonstandard directory
<lib dir
>
2036 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2037 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2038 you have headers
in a nonstandard directory
<include dir
>
2040 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2042 Use these variables to override the choices made by
`configure' or to help
2043 it to find libraries and programs with nonstandard names/locations.
2045 Report bugs to the package provider.
2050 if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 ac_abs_top_builddir=$ac_pwd
2070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071 # for backward compatibility:
2072 ac_top_builddir=$ac_top_build_prefix
2075 .) # We are building in place.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2105 test -n "$ac_init_help" && exit $ac_status
2106 if $ac_init_version; then
2108 emacs configure 24.0.50
2109 generated by GNU Autoconf 2.65
2111 Copyright (C) 2009 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2118 ## ------------------------ ##
2119 ## Autoconf initialization. ##
2120 ## ------------------------ ##
2122 # ac_fn_c_try_compile LINENO
2123 # --------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_c_try_compile ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2132 *) ac_try_echo
=$ac_try;;
2134 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2138 if test -s conftest.err
; then
2139 grep -v '^ *+' conftest.err
>conftest.er1
2140 cat conftest.er1
>&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.
$ac_objext; then :
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.
$ac_ext >&5
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2156 as_fn_set_status
$ac_retval
2158 } # ac_fn_c_try_compile
2160 # ac_fn_c_try_cpp LINENO
2161 # ----------------------
2162 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2166 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2187 $as_echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2197 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198 # -------------------------------------------------------
2199 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200 # the include files in INCLUDES and setting the cache variable VAR
2202 ac_fn_c_check_header_mongrel ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2215 # Is the header compilable?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217 $as_echo_n "checking $2 usability... " >&6; }
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2226 ac_header_compiler=no
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230 $as_echo "$ac_header_compiler" >&6; }
2232 # Is the header present?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234 $as_echo_n "checking $2 presence... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2242 ac_header_preproc=no
2244 rm -f conftest.err conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246 $as_echo "$ac_header_preproc" >&6; }
2248 # So? What about this header?
2249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2274 eval "$3=\$ac_header_compiler"
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 } # ac_fn_c_check_header_mongrel
2284 # ac_fn_c_try_run LINENO
2285 # ----------------------
2286 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2287 # that executables *can* be run.
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 if { { ac_try="$ac_link"
2293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2294 *) ac_try_echo
=$ac_try;;
2296 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_link") 2>&5
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2302 { { case "(($ac_try" in
2303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_try") 2>&5
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; }; }; then :
2314 $as_echo "$as_me: program exited with status $ac_status" >&5
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 ac_retval=$ac_status
2320 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 as_fn_set_status $ac_retval
2326 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2327 # -------------------------------------------------------
2328 # Tests whether HEADER exists and can be compiled using the include files in
2329 # INCLUDES, setting the cache variable VAR accordingly.
2330 ac_fn_c_check_header_compile ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2336 $as_echo_n "(cached) " >&6
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2343 if ac_fn_c_try_compile "$LINENO"; then :
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_check_header_compile
2357 # ac_fn_c_try_link LINENO
2358 # -----------------------
2359 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2367 *) ac_try_echo
=$ac_try;;
2369 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370 $as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2373 if test -s conftest.err
; then
2374 grep -v '^ *+' conftest.err
>conftest.er1
2375 cat conftest.er1
>&5
2376 mv -f conftest.er1 conftest.err
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest
$ac_exeext && {
2383 test "$cross_compiling" = yes ||
2384 $as_test_x conftest
$ac_exeext
2388 $as_echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.
$ac_ext >&5
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2399 as_fn_set_status
$ac_retval
2401 } # ac_fn_c_try_link
2403 # ac_fn_c_check_decl LINENO SYMBOL VAR
2404 # ------------------------------------
2405 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2406 ac_fn_c_check_decl
()
2408 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2410 $as_echo_n "checking whether $2 is declared... " >&6; }
2411 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2428 if ac_fn_c_try_compile
"$LINENO"; then :
2433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2440 } # ac_fn_c_check_decl
2442 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2443 # ----------------------------------------------
2444 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2445 ac_fn_c_check_header_preproc
()
2447 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 if ac_fn_c_try_cpp
"$LINENO"; then :
2462 rm -f conftest.err conftest.
$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2469 } # ac_fn_c_check_header_preproc
2471 # ac_fn_c_check_func LINENO FUNC VAR
2472 # ----------------------------------
2473 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2474 ac_fn_c_check_func
()
2476 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 $as_echo_n "(cached) " >&6
2482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2486 #define $2 innocuous_$2
2488 /* System header to define __stub macros and hopefully few prototypes,
2489 which can conflict with char $2 (); below.
2490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2491 <limits.h> exists even on freestanding compilers. */
2494 # include <limits.h>
2496 # include <assert.h>
2501 /* Override any GCC internal prototype to avoid an error.
2502 Use char because int might match the return type of a GCC
2503 builtin and then its argument prototype would still apply. */
2508 /* The GNU C library defines this for functions which it implements
2509 to always fail with ENOSYS. Some functions are actually named
2510 something starting with __ and the normal name is an alias. */
2511 #if defined __stub_$2 || defined __stub___$2
2523 if ac_fn_c_try_link
"$LINENO"; then :
2528 rm -f core conftest.err conftest.
$ac_objext \
2529 conftest
$ac_exeext conftest.
$ac_ext
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2536 } # ac_fn_c_check_func
2538 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2539 # ----------------------------------------------------
2540 # Tries to find if the field MEMBER exists in type AGGR, after including
2541 # INCLUDES, setting cache variable VAR accordingly.
2542 ac_fn_c_check_member
()
2544 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2546 $as_echo_n "checking for $2.$3... " >&6; }
2547 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2563 if ac_fn_c_try_compile
"$LINENO"; then :
2566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2573 if (sizeof ac_aggr.$3)
2579 if ac_fn_c_try_compile
"$LINENO"; then :
2584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590 $as_echo "$ac_res" >&6; }
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2593 } # ac_fn_c_check_member
2595 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2596 # -------------------------------------------
2597 # Tests whether TYPE exists after having included INCLUDES, setting cache
2598 # variable VAR accordingly.
2599 ac_fn_c_check_type
()
2601 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2620 if ac_fn_c_try_compile
"$LINENO"; then :
2621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2633 if ac_fn_c_try_compile
"$LINENO"; then :
2638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2647 } # ac_fn_c_check_type
2649 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2650 # --------------------------------------------
2651 # Tries to find the compile-time value of EXPR in a program that includes
2652 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2654 ac_fn_c_compute_int
()
2656 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2657 if test "$cross_compiling" = yes; then
2658 # Depending upon the size, compute the lo and hi bounds.
2659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2665 static int test_array [1 - 2 * !(($2) >= 0)];
2672 if ac_fn_c_try_compile
"$LINENO"; then :
2675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2681 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2688 if ac_fn_c_try_compile
"$LINENO"; then :
2689 ac_hi
=$ac_mid; break
2691 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2692 if test $ac_lo -le $ac_mid; then
2696 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2707 static int test_array [1 - 2 * !(($2) < 0)];
2714 if ac_fn_c_try_compile
"$LINENO"; then :
2717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2723 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2730 if ac_fn_c_try_compile
"$LINENO"; then :
2731 ac_lo
=$ac_mid; break
2733 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2734 if test $ac_mid -le $ac_hi; then
2738 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2748 # Binary search between lo and hi bounds.
2749 while test "x$ac_lo" != "x$ac_hi"; do
2750 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2757 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2764 if ac_fn_c_try_compile
"$LINENO"; then :
2767 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2779 static long int longval () { return $2; }
2780 static unsigned long int ulongval () { return $2; }
2787 FILE *f = fopen ("conftest.val", "w");
2792 long int i = longval ();
2795 fprintf (f, "%ld", i);
2799 unsigned long int i = ulongval ();
2802 fprintf (f, "%lu", i);
2804 /* Do not output a trailing newline, as this causes \r\n confusion
2805 on some platforms. */
2806 return ferror (f) || fclose (f) != 0;
2812 if ac_fn_c_try_run
"$LINENO"; then :
2813 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2823 as_fn_set_status
$ac_retval
2825 } # ac_fn_c_compute_int
2826 cat >config.log
<<_ACEOF
2827 This file contains any messages produced by compilers while
2828 running configure, to aid debugging if configure makes a mistake.
2830 It was created by emacs $as_me 24.0.50, which was
2831 generated by GNU Autoconf 2.65. Invocation command line was
2843 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2844 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2845 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2846 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2847 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2849 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2850 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2852 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2853 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2854 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2855 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2856 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2857 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2858 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 $as_echo "PATH: $as_dir"
2883 # Keep a trace of the command line.
2884 # Strip out --no-create and --no-recursion so they do not pile up.
2885 # Strip out --silent because we don't want to record it for future runs.
2886 # Also quote any args containing shell meta-characters.
2887 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_must_keep_next
=false
2897 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2898 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2899 |
-silent |
--silent |
--silen |
--sile |
--sil)
2902 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2905 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2907 as_fn_append ac_configure_args1
" '$ac_arg'"
2908 if test $ac_must_keep_next = true
; then
2909 ac_must_keep_next
=false
# Got value, back to normal.
2912 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2913 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2914 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2915 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2916 case "$ac_configure_args0 " in
2917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2920 -* ) ac_must_keep_next
=true
;;
2923 as_fn_append ac_configure_args
" '$ac_arg'"
2928 { ac_configure_args0
=; unset ac_configure_args0
;}
2929 { ac_configure_args1
=; unset ac_configure_args1
;}
2931 # When interrupted or exit'd, cleanup temporary files, and complete
2932 # config.log. We remove comments because anyway the quotes in there
2933 # would cause problems or look ugly.
2934 # WARNING: Use '\'' to represent an apostrophe within the trap.
2935 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2936 trap 'exit_status=$?
2937 # Save into config.log some information that might help in debugging.
2942 ## ---------------- ##
2943 ## Cache variables. ##
2944 ## ---------------- ##
2947 # The following way of writing the cache mishandles newlines in values,
2949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2950 eval ac_val=\$$ac_var
2954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2958 _ | IFS | as_nl) ;; #(
2959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2960 *) { eval $ac_var=; unset $ac_var;} ;;
2965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2966 *${as_nl}ac_space=\ *)
2968 "s/'\''/'\''\\\\'\'''\''/g;
2969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2980 ## ----------------- ##
2981 ## Output variables. ##
2982 ## ----------------- ##
2985 for ac_var in $ac_subst_vars
2987 eval ac_val=\$$ac_var
2989 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2991 $as_echo "$ac_var='\''$ac_val'\''"
2995 if test -n "$ac_subst_files"; then
2997 ## ------------------- ##
2998 ## File substitutions. ##
2999 ## ------------------- ##
3002 for ac_var
in $ac_subst_files
3004 eval ac_val
=\$
$ac_var
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3008 $as_echo "$ac_var='\''$ac_val'\''"
3013 if test -s confdefs.h; then
3023 test "$ac_signal" != 0 &&
3024 $as_echo "$as_me: caught signal $ac_signal"
3025 $as_echo "$as_me: exit $exit_status"
3027 rm -f core *.core core.conftest.* &&
3028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3031 for ac_signal
in 1 2 13 15; do
3032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3037 rm -f -r conftest
* confdefs.h
3039 $as_echo "/* confdefs.h */" > confdefs.h
3041 # Predefined preprocessor variables.
3043 cat >>confdefs.h
<<_ACEOF
3044 #define PACKAGE_NAME "$PACKAGE_NAME"
3047 cat >>confdefs.h
<<_ACEOF
3048 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3051 cat >>confdefs.h
<<_ACEOF
3052 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3055 cat >>confdefs.h
<<_ACEOF
3056 #define PACKAGE_STRING "$PACKAGE_STRING"
3059 cat >>confdefs.h
<<_ACEOF
3060 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3063 cat >>confdefs.h
<<_ACEOF
3064 #define PACKAGE_URL "$PACKAGE_URL"
3068 # Let the site file select an alternate cache file if it wants to.
3069 # Prefer an explicitly selected file to automatically selected ones.
3072 if test -n "$CONFIG_SITE"; then
3073 ac_site_file1
=$CONFIG_SITE
3074 elif test "x$prefix" != xNONE
; then
3075 ac_site_file1
=$prefix/share
/config.site
3076 ac_site_file2
=$prefix/etc
/config.site
3078 ac_site_file1
=$ac_default_prefix/share
/config.site
3079 ac_site_file2
=$ac_default_prefix/etc
/config.site
3081 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3083 test "x$ac_site_file" = xNONE
&& continue
3084 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3086 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3087 sed 's/^/| /' "$ac_site_file" >&5
3092 if test -r "$cache_file"; then
3093 # Some versions of bash will fail to source /dev/null (special files
3094 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3095 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3097 $as_echo "$as_me: loading cache $cache_file" >&6;}
3099 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3100 *) .
"./$cache_file";;
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3105 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 as_fn_append ac_header_list
" stdlib.h"
3110 as_fn_append ac_header_list
" unistd.h"
3111 as_fn_append ac_header_list
" sys/param.h"
3112 as_fn_append ac_func_list
" readlinkat"
3113 as_fn_append ac_func_list
" dup2"
3114 gl_getopt_required
=GNU
3115 as_fn_append ac_header_list
" getopt.h"
3116 as_fn_append ac_header_list
" wchar.h"
3117 as_fn_append ac_header_list
" stdint.h"
3118 as_fn_append ac_header_list
" inttypes.h"
3119 as_fn_append ac_func_list
" lstat"
3120 as_fn_append ac_func_list
" alarm"
3121 as_fn_append ac_func_list
" pthread_sigmask"
3122 as_fn_append ac_func_list
" readlink"
3123 as_fn_append ac_header_list
" sys/socket.h"
3124 as_fn_append ac_func_list
" tzset"
3125 as_fn_append ac_func_list
" symlink"
3126 as_fn_append ac_header_list
" sys/stat.h"
3127 as_fn_append ac_header_list
" sys/time.h"
3128 as_fn_append ac_func_list
" localtime_r"
3129 # Check that the precious variables saved in the cache have kept the same
3131 ac_cache_corrupted
=false
3132 for ac_var
in $ac_precious_vars; do
3133 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3134 eval ac_new_set
=\
$ac_env_${ac_var}_set
3135 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3136 eval ac_new_val
=\
$ac_env_${ac_var}_value
3137 case $ac_old_set,$ac_new_set in
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3141 ac_cache_corrupted
=: ;;
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3145 ac_cache_corrupted
=: ;;
3148 if test "x$ac_old_val" != "x$ac_new_val"; then
3149 # differences in whitespace do not lead to failure.
3150 ac_old_val_w
=`echo x $ac_old_val`
3151 ac_new_val_w
=`echo x $ac_new_val`
3152 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3155 ac_cache_corrupted
=:
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3159 eval $ac_var=\
$ac_old_val
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3162 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3164 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3167 # Pass precious variables to config.status.
3168 if test "$ac_new_set" = set; then
3170 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3171 *) ac_arg
=$ac_var=$ac_new_val ;;
3173 case " $ac_configure_args " in
3174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3175 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3179 if $ac_cache_corrupted; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3184 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3186 ## -------------------- ##
3187 ## Main body of script. ##
3188 ## -------------------- ##
3191 ac_cpp
='$CPP $CPPFLAGS'
3192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3197 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3200 am__api_version
='1.11'
3203 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3204 for ac_t
in install-sh
install.sh shtool
; do
3205 if test -f "$ac_dir/$ac_t"; then
3207 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3212 if test -z "$ac_aux_dir"; then
3213 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3216 # These three variables are undocumented and unsupported,
3217 # and are intended to be withdrawn in a future Autoconf release.
3218 # They can cause serious problems if a builder's source tree is in a directory
3219 # whose full name contains unusual characters.
3220 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3221 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3222 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3225 # Find a good install program. We prefer a C program (faster),
3226 # so one script is as good as another. But avoid the broken or
3227 # incompatible versions:
3228 # SysV /etc/install, /usr/sbin/install
3229 # SunOS /usr/etc/install
3230 # IRIX /sbin/install
3232 # AmigaOS /C/install, which installs bootblocks on floppy discs
3233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3236 # OS/2's system install, which has a completely different semantic
3237 # ./install, which can be erroneously created by make from ./install.sh.
3238 # Reject install programs that cannot install multiple files.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3240 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3241 if test -z "$INSTALL"; then
3242 if test "${ac_cv_path_install+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir
=.
3250 # Account for people who put trailing slashes in PATH elements.
3251 case $as_dir/ in #((
3252 .
/ | .
// |
/[cC
]/* | \
3253 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3254 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3257 # OSF1 and SCO ODT 3.0 have their own names for install.
3258 # Don't use installbsd from OSF since it installs stuff as root
3260 for ac_prog
in ginstall scoinst
install; do
3261 for ac_exec_ext
in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3263 if test $ac_prog = install &&
3264 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3265 # AIX install. It has an incompatible calling convention.
3267 elif test $ac_prog = install &&
3268 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3269 # program-specific install script used by HP pwplus--don't use.
3272 rm -rf conftest.one conftest.two conftest.dir
3273 echo one
> conftest.one
3274 echo two
> conftest.two
3276 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3277 test -s conftest.one
&& test -s conftest.two
&&
3278 test -s conftest.dir
/conftest.one
&&
3279 test -s conftest.dir
/conftest.two
3281 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3294 rm -rf conftest.one conftest.two conftest.dir
3297 if test "${ac_cv_path_install+set}" = set; then
3298 INSTALL
=$ac_cv_path_install
3300 # As a last resort, use the slow shell script. Don't cache a
3301 # value for INSTALL within a source directory, because that will
3302 # break other packages using the cache if that directory is
3303 # removed, or if the value is a relative name.
3304 INSTALL
=$ac_install_sh
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3308 $as_echo "$INSTALL" >&6; }
3310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3311 # It thinks the first close brace ends the variable substitution.
3312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3316 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3319 $as_echo_n "checking whether build environment is sane... " >&6; }
3322 echo timestamp
> conftest.
file
3323 # Reject unsafe characters in $srcdir or the absolute working directory
3324 # name. Accept space and tab only in the latter.
3328 *[\\\"\
#\$\&\'\`$am_lf]*)
3329 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3332 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3333 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3336 # Do `set' in a subshell so we don't clobber the current shell's
3337 # arguments. Must try -L first in case configure is actually a
3338 # symlink; some systems play weird games with the mod time of symlinks
3339 # (eg FreeBSD returns the mod time of the symlink's containing
3342 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3343 if test "$*" = "X"; then
3345 set X
`ls -t "$srcdir/configure" conftest.file`
3348 if test "$*" != "X $srcdir/configure conftest.file" \
3349 && test "$*" != "X conftest.file $srcdir/configure"; then
3351 # If neither matched, then we have a broken ls. This can happen
3352 # if, for instance, CONFIG_SHELL is bash and it inherits a
3353 # broken ls alias from the environment. This has actually
3354 # happened. Such a system could not be considered "sane".
3355 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3356 alias in your environment" "$LINENO" 5
3359 test "$2" = conftest.
file
3365 as_fn_error
"newly created file is older than distributed files!
3366 Check your system clock" "$LINENO" 5
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370 test "$program_prefix" != NONE
&&
3371 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3372 # Use a double $ so make ignores it.
3373 test "$program_suffix" != NONE
&&
3374 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3375 # Double any \ or $.
3376 # By default was `s,x,x', remove it if useless.
3377 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3378 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3380 # expand $ac_aux_dir to an absolute path
3381 am_aux_dir
=`cd $ac_aux_dir && pwd`
3383 if test x
"${MISSING+set}" != xset
; then
3386 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3388 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3391 # Use eval to expand $SHELL
3392 if eval "$MISSING --run true"; then
3393 am_missing_run
="$MISSING --run "
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3397 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3400 if test x
"${install_sh}" != xset
; then
3403 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3405 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3409 # Installed binaries are usually stripped using `strip' when the user
3410 # run `make install-strip'. However `strip' might not be the right
3411 # tool to use in cross-compilation environments, therefore Automake
3412 # will honor the `STRIP' environment variable to overrule this program.
3413 if test "$cross_compiling" != no
; then
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3416 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_STRIP+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$STRIP"; then
3423 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir
=.
3430 for ac_exec_ext
in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 STRIP
=$ac_cv_prog_STRIP
3443 if test -n "$STRIP"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3445 $as_echo "$STRIP" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3453 if test -z "$ac_cv_prog_STRIP"; then
3455 # Extract the first word of "strip", so it can be a program name with args.
3456 set dummy strip
; ac_word
=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$ac_ct_STRIP"; then
3463 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir
=.
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_ac_ct_STRIP
="strip"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3483 if test -n "$ac_ct_STRIP"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3485 $as_echo "$ac_ct_STRIP" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3491 if test "x$ac_ct_STRIP" = x
; then
3494 case $cross_compiling:$ac_tool_warned in
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned
=yes ;;
3503 STRIP
="$ac_cv_prog_STRIP"
3507 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3510 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3511 if test -z "$MKDIR_P"; then
3512 if test "${ac_cv_path_mkdir+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3516 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_prog
in mkdir gmkdir
; do
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3523 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3524 'mkdir (GNU coreutils) '* | \
3525 'mkdir (coreutils) '* | \
3526 'mkdir (fileutils) '4.1*)
3527 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3537 test -d .
/--version && rmdir .
/--version
3538 if test "${ac_cv_path_mkdir+set}" = set; then
3539 MKDIR_P
="$ac_cv_path_mkdir -p"
3541 # As a last resort, use the slow shell script. Don't cache a
3542 # value for MKDIR_P within a source directory, because that will
3543 # break other packages using the cache if that directory is
3544 # removed, or if the value is a relative name.
3545 MKDIR_P
="$ac_install_sh -d"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3549 $as_echo "$MKDIR_P" >&6; }
3554 [\\/$
]* | ?
:[\\/]*) ;;
3555 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3558 for ac_prog
in gawk mawk nawk
awk
3560 # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy
$ac_prog; ac_word
=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if test "${ac_cv_prog_AWK+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3567 if test -n "$AWK"; then
3568 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir
=.
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_AWK
="$ac_prog"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 if test -n "$AWK"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3590 $as_echo "$AWK" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3597 test -n "$AWK" && break
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3601 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3603 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3604 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3605 $as_echo_n "(cached) " >&6
3607 cat >conftest.
make <<\_ACEOF
3610 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3613 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3615 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3617 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3621 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3623 $as_echo "yes" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 SET_MAKE
="MAKE=${MAKE-make}"
3631 rm -rf .tst
2>/dev
/null
3632 mkdir .tst
2>/dev
/null
3633 if test -d .tst
; then
3638 rmdir .tst
2>/dev
/null
3640 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3641 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3642 # is not polluted with repeated "-I."
3643 am__isrc
=' -I$(srcdir)'
3644 # test to see if srcdir already configured
3645 if test -f $srcdir/config.status
; then
3646 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3650 # test whether we have cygpath
3651 if test -z "$CYGPATH_W"; then
3652 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3653 CYGPATH_W
='cygpath -w'
3660 # Define the identity of the package.
3665 cat >>confdefs.h
<<_ACEOF
3666 #define PACKAGE "$PACKAGE"
3670 cat >>confdefs.h
<<_ACEOF
3671 #define VERSION "$VERSION"
3674 # Some tools Automake needs.
3676 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3679 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3682 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3685 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3688 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3690 # We need awk for the "check" target. The system "awk" is bad on
3692 # Always define AMTAR for backward compatibility.
3694 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3696 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3705 lispdir
='${datadir}/emacs/${version}/lisp'
3706 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3707 '${datadir}/emacs/site-lisp'
3708 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3709 etcdir
='${datadir}/emacs/${version}/etc'
3710 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3711 docdir
='${datadir}/emacs/${version}/etc'
3712 gamedir
='${localstatedir}/games/emacs'
3717 # Check whether --with-pop was given.
3718 if test "${with_pop+set}" = set; then :
3724 if test "$with_pop" = yes; then
3725 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3730 # Check whether --with-kerberos was given.
3731 if test "${with_kerberos+set}" = set; then :
3732 withval
=$with_kerberos;
3737 if test "$with_kerberos" != no
; then
3738 $as_echo "#define KERBEROS 1" >>confdefs.h
3743 # Check whether --with-kerberos5 was given.
3744 if test "${with_kerberos5+set}" = set; then :
3745 withval
=$with_kerberos5;
3750 if test "${with_kerberos5}" != no
; then
3751 if test "${with_kerberos}" = no
; then
3753 $as_echo "#define KERBEROS 1" >>confdefs.h
3757 $as_echo "#define KERBEROS5 1" >>confdefs.h
3762 # Check whether --with-hesiod was given.
3763 if test "${with_hesiod+set}" = set; then :
3764 withval
=$with_hesiod;
3769 if test "$with_hesiod" != no
; then
3771 $as_echo "#define HESIOD 1" >>confdefs.h
3776 # Check whether --with-mmdf was given.
3777 if test "${with_mmdf+set}" = set; then :
3783 if test "$with_mmdf" != no
; then
3785 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3790 # Check whether --with-mail-unlink was given.
3791 if test "${with_mail_unlink+set}" = set; then :
3792 withval
=$with_mail_unlink;
3797 if test "$with_mail_unlink" != no
; then
3799 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3804 # Check whether --with-mailhost was given.
3805 if test "${with_mailhost+set}" = set; then :
3806 withval
=$with_mailhost;
3807 cat >>confdefs.h
<<_ACEOF
3808 #define MAILHOST "$withval"
3815 # Check whether --with-sound was given.
3816 if test "${with_sound+set}" = set; then :
3817 withval
=$with_sound;
3824 # Check whether --with-sync-input was given.
3825 if test "${with_sync_input+set}" = set; then :
3826 withval
=$with_sync_input;
3831 if test "$with_sync_input" = yes; then
3833 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3838 # Check whether --with-x-toolkit was given.
3839 if test "${with_x_toolkit+set}" = set; then :
3840 withval
=$with_x_toolkit; case "${withval}" in
3841 y | ye |
yes ) val
=gtk
;;
3843 l | lu | luc | luci | lucid
) val
=lucid
;;
3844 a |
at | ath | athe | athen | athena
) val
=athena
;;
3845 m | mo | mot | moti | motif
) val
=motif
;;
3846 g | gt | gtk
) val
=gtk
;;
3849 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3850 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3851 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3860 # Check whether --with-wide-int was given.
3861 if test "${with_wide_int+set}" = set; then :
3862 withval
=$with_wide_int;
3867 if test "$with_wide_int" = yes; then
3869 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3874 # Check whether --with-xpm was given.
3875 if test "${with_xpm+set}" = set; then :
3882 # Check whether --with-jpeg was given.
3883 if test "${with_jpeg+set}" = set; then :
3890 # Check whether --with-tiff was given.
3891 if test "${with_tiff+set}" = set; then :
3898 # Check whether --with-gif was given.
3899 if test "${with_gif+set}" = set; then :
3906 # Check whether --with-png was given.
3907 if test "${with_png+set}" = set; then :
3914 # Check whether --with-rsvg was given.
3915 if test "${with_rsvg+set}" = set; then :
3922 # Check whether --with-xml2 was given.
3923 if test "${with_xml2+set}" = set; then :
3930 # Check whether --with-imagemagick was given.
3931 if test "${with_imagemagick+set}" = set; then :
3932 withval
=$with_imagemagick;
3934 with_imagemagick
=yes
3939 # Check whether --with-xft was given.
3940 if test "${with_xft+set}" = set; then :
3947 # Check whether --with-libotf was given.
3948 if test "${with_libotf+set}" = set; then :
3949 withval
=$with_libotf;
3955 # Check whether --with-m17n-flt was given.
3956 if test "${with_m17n_flt+set}" = set; then :
3957 withval
=$with_m17n_flt;
3964 # Check whether --with-toolkit-scroll-bars was given.
3965 if test "${with_toolkit_scroll_bars+set}" = set; then :
3966 withval
=$with_toolkit_scroll_bars;
3968 with_toolkit_scroll_bars
=yes
3972 # Check whether --with-xaw3d was given.
3973 if test "${with_xaw3d+set}" = set; then :
3974 withval
=$with_xaw3d;
3980 # Check whether --with-xim was given.
3981 if test "${with_xim+set}" = set; then :
3988 # Check whether --with-ns was given.
3989 if test "${with_ns+set}" = set; then :
3997 # Check whether --with-gpm was given.
3998 if test "${with_gpm+set}" = set; then :
4005 # Check whether --with-dbus was given.
4006 if test "${with_dbus+set}" = set; then :
4013 # Check whether --with-gconf was given.
4014 if test "${with_gconf+set}" = set; then :
4015 withval
=$with_gconf;
4021 # Check whether --with-gsettings was given.
4022 if test "${with_gsettings+set}" = set; then :
4023 withval
=$with_gsettings;
4029 # Check whether --with-selinux was given.
4030 if test "${with_selinux+set}" = set; then :
4031 withval
=$with_selinux;
4037 # Check whether --with-gnutls was given.
4038 if test "${with_gnutls+set}" = set; then :
4039 withval
=$with_gnutls;
4045 ## For the times when you want to build Emacs but don't have
4046 ## a suitable makeinfo, and can live without the manuals.
4048 # Check whether --with-makeinfo was given.
4049 if test "${with_makeinfo+set}" = set; then :
4050 withval
=$with_makeinfo;
4056 ## This is an option because I do not know if all info/man support
4057 ## compressed files, nor how to test if they do so.
4059 # Check whether --with-compress-info was given.
4060 if test "${with_compress_info+set}" = set; then :
4061 withval
=$with_compress_info;
4063 with_compress_info
=yes
4066 if test $with_compress_info = yes; then
4074 # Check whether --with-pkg-config-prog was given.
4075 if test "${with_pkg_config_prog+set}" = set; then :
4076 withval
=$with_pkg_config_prog;
4079 if test "X${with_pkg_config_prog}" != X
; then
4080 if test "${with_pkg_config_prog}" != yes; then
4081 PKG_CONFIG
="${with_pkg_config_prog}"
4087 # Check whether --with-crt-dir was given.
4088 if test "${with_crt_dir+set}" = set; then :
4089 withval
=$with_crt_dir;
4092 CRT_DIR
="${with_crt_dir}"
4095 # Check whether --with-gameuser was given.
4096 if test "${with_gameuser+set}" = set; then :
4097 withval
=$with_gameuser;
4100 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4101 && gameuser
="${with_gameuser}"
4102 test "X$gameuser" = X
&& gameuser
=games
4105 # Check whether --with-gnustep-conf was given.
4106 if test "${with_gnustep_conf+set}" = set; then :
4107 withval
=$with_gnustep_conf;
4110 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4111 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4112 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4113 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4115 # Check whether --enable-ns-self-contained was given.
4116 if test "${enable_ns_self_contained+set}" = set; then :
4117 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4119 EN_NS_SELF_CONTAINED
=yes
4123 # Check whether --enable-asserts was given.
4124 if test "${enable_asserts+set}" = set; then :
4125 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4131 # Check whether --enable-maintainer-mode was given.
4132 if test "${enable_maintainer_mode+set}" = set; then :
4133 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4135 USE_MAINTAINER_MODE
=yes
4138 if test $USE_MAINTAINER_MODE = yes; then
4145 # Check whether --enable-locallisppath was given.
4146 if test "${enable_locallisppath+set}" = set; then :
4147 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4149 elif test "${enableval}" != "yes"; then
4150 locallisppath
=${enableval}
4155 # Check whether --enable-checking was given.
4156 if test "${enable_checking+set}" = set; then :
4157 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4160 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4161 for check
in $ac_checking_flags
4164 # these set all the flags to specific states
4165 yes) ac_enable_checking
=1 ;;
4166 no
) ac_enable_checking
= ;
4167 ac_gc_check_stringbytes
= ;
4168 ac_gc_check_string_overrun
= ;
4169 ac_gc_check_string_free_list
= ;
4170 ac_xmalloc_overrun
= ;
4171 ac_gc_check_cons_list
= ;;
4172 all
) ac_enable_checking
=1 ;
4173 ac_gc_check_stringbytes
=1 ;
4174 ac_gc_check_string_overrun
=1 ;
4175 ac_gc_check_string_free_list
=1 ;
4176 ac_xmalloc_overrun
=1 ;
4177 ac_gc_check_cons_list
=1 ;;
4178 # these enable particular checks
4179 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4180 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4181 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4182 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4183 conslist
) ac_gc_check_cons_list
=1 ;;
4184 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4189 if test x
$ac_enable_checking != x
; then
4191 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4194 if test x
$ac_gc_check_stringbytes != x
; then
4196 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4199 if test x
$ac_gc_check_string_overrun != x
; then
4201 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4204 if test x
$ac_gc_check_string_free_list != x
; then
4206 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4209 if test x
$ac_xmalloc_overrun != x
; then
4211 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4214 if test x
$ac_gc_check_cons_list != x
; then
4216 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4220 # Check whether --enable-use-lisp-union-type was given.
4221 if test "${enable_use_lisp_union_type+set}" = set; then :
4222 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4224 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4231 # Check whether --enable-profiling was given.
4232 if test "${enable_profiling+set}" = set; then :
4233 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4236 if test x
$ac_enable_profiling != x
; then
4237 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4243 # Check whether --enable-autodepend was given.
4244 if test "${enable_autodepend+set}" = set; then :
4245 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4247 ac_enable_autodepend
=yes
4251 #### Make srcdir absolute, if it isn't already. It's important to
4252 #### avoid running the path through pwd unnecessarily, since pwd can
4253 #### give you automounter prefixes, which can go away. We do all this
4254 #### so Emacs can find its files when run uninstalled.
4255 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4260 ## We may be able to use the $PWD environment variable to make this
4261 ## absolute. But sometimes PWD is inaccurate.
4262 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4263 ## but that tested only for a well-formed and valid PWD,
4264 ## it did not object when PWD was well-formed and valid but just wrong.
4265 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4269 srcdir
="`(cd ${srcdir}; pwd)`"
4272 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4275 #### Given the configuration name, set machfile and opsysfile to the
4276 #### names of the m/*.h and s/*.h files we should use.
4278 ### Canonicalize the configuration name.
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4282 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if test "${ac_cv_build+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4289 ac_build_alias
=$build_alias
4290 test "x$ac_build_alias" = x
&&
4291 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x
&&
4293 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4302 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4305 ac_save_IFS
=$IFS; IFS
='-'
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4315 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if test "${ac_cv_host+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 if test "x$host_alias" = x
; then
4324 ac_cv_host
=$ac_cv_build
4326 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4335 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4338 ac_save_IFS
=$IFS; IFS
='-'
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4348 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4352 configuration
=${host_alias-${build_alias-$host}}
4356 ### If you add support for a new configuration, add code to this
4357 ### switch statement to recognize your configuration name and select
4358 ### the appropriate operating system and machine description files.
4360 ### You would hope that you could choose an m/*.h file pretty much
4361 ### based on the machine portion of the configuration name, and an s/*.h
4362 ### file based on the operating system portion. However, it turns out
4363 ### that each m/*.h file is pretty manufacturer-specific - for
4364 ### example mips.h is MIPS
4365 ### So we basically have to have a special case for each
4366 ### configuration name.
4368 ### As far as handling version numbers on operating systems is
4369 ### concerned, make sure things will fail in a fixable way. If
4370 ### /etc/MACHINES doesn't say anything about version numbers, be
4371 ### prepared to handle anything reasonably. If version numbers
4372 ### matter, be sure /etc/MACHINES says something about it.
4374 machine
='' opsys
='' unported
=no
4375 case "${canonical}" in
4380 case ${canonical} in
4381 alpha
*) machine
=alpha
;;
4382 s390-
*) machine
=ibms390
;;
4383 s390x-
*) machine
=ibms390x
;;
4384 powerpc
*) machine
=macppc
;;
4385 sparc
*) machine
=sparc
;;
4386 ia64
*) machine
=ia64
;;
4387 m68k
*) machine
=m68k
;;
4388 x86_64
*) machine
=amdx86-64
;;
4395 case "${canonical}" in
4396 alpha
*) machine
=alpha
;;
4397 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4398 ia64-
*) machine
=ia64
;;
4399 i
[3456]86-*) machine
=intel386
;;
4400 powerpc-
*) machine
=macppc
;;
4401 sparc-
*) machine
=sparc
;;
4402 sparc64-
*) machine
=sparc
;;
4406 ## FreeBSD kernel + glibc based userland
4409 case "${canonical}" in
4410 alpha
*) machine
=alpha
;;
4411 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4412 ia64-
*) machine
=ia64
;;
4413 i
[3456]86-*) machine
=intel386
;;
4414 powerpc-
*) machine
=macppc
;;
4415 sparc-
*) machine
=sparc
;;
4416 sparc64-
*) machine
=sparc
;;
4423 case "${canonical}" in
4424 alpha
*) machine
=alpha
;;
4425 x86_64-
*) machine
=amdx86-64
;;
4426 i
[3456]86-*) machine
=intel386
;;
4427 m68k-
*) machine
=m68k
;;
4428 powerpc-
*) machine
=macppc
;;
4429 sparc
*-) machine
=sparc
;;
4430 vax-
*) machine
=vax
;;
4437 case "${canonical}" in
4438 alpha
*) machine
=alpha
;;
4439 x86_64-
*) machine
=amdx86-64
;;
4440 i386-
*) machine
=intel386
;;
4441 powerpc-
*) machine
=macppc
;;
4442 sparc
*) machine
=sparc
;;
4443 vax-
*) machine
=vax
;;
4447 ## Apple Darwin / Mac OS X
4449 case "${canonical}" in
4450 i
[3456]86-* ) machine
=intel386
;;
4451 powerpc-
* ) machine
=macppc
;;
4452 x86_64-
* ) machine
=amdx86-64
;;
4456 # Define CPP as follows to make autoconf work correctly.
4457 CPP
="${CC-cc} -E -no-cpp-precomp"
4458 # Use fink packages if available.
4459 if test -d /sw
/include
&& test -d /sw
/lib
; then
4460 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4461 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4462 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4466 ## HP 9000 series 700 and 800, running HP/UX
4467 hppa
*-hp-hpux10.2
* )
4470 hppa
*-hp-hpux1[1-9]* )
4472 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4475 ia64
*-hp-hpux1[1-9]* )
4476 machine
=hp800 opsys
=hpux11
4477 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4478 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4482 hppa
*-*-linux-gnu* )
4483 machine
=hp800 opsys
=gnu-linux
4487 rs6000-ibm-aix4.
[23]* )
4488 machine
=ibmrs6000 opsys
=aix4-2
4490 powerpc-ibm-aix4.
[23]* )
4491 machine
=ibmrs6000 opsys
=aix4-2
4493 rs6000-ibm-aix
[56]* )
4494 machine
=ibmrs6000 opsys
=aix4-2
4496 powerpc-ibm-aix
[56]* )
4497 machine
=ibmrs6000 opsys
=aix4-2
4500 ## Silicon Graphics machines
4504 # Without defining _LANGUAGE_C, things get masked out in the headers
4505 # so that, for instance, grepping for `free' in stdlib.h fails and
4506 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4507 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4508 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4513 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4514 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4515 case "${canonical}" in
4516 i
[3456]86-*-* ) machine
=intel386
;;
4517 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4518 sparc
* ) machine
=sparc
;;
4521 case "${canonical}" in
4522 *-sunos5.6
* |
*-solaris2.6
* )
4524 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4527 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4529 emacs_check_sunpro_c
=yes
4530 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4532 *-sunos5* |
*-solaris* )
4534 emacs_check_sunpro_c
=yes
4535 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4538 ## Watch out for a compiler that we know will not work.
4539 case "${canonical}" in
4540 *-solaris* |
*-sunos5* )
4541 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4542 ## /usr/ucb/cc doesn't work;
4543 ## we should find some other compiler that does work.
4551 ## Intel 386 machines where we don't care about the manufacturer.
4554 case "${canonical}" in
4555 *-cygwin ) opsys
=cygwin
;;
4556 *-darwin* ) opsys
=darwin
4557 CPP
="${CC-cc} -E -no-cpp-precomp"
4559 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4560 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4561 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4562 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4571 ### If the code above didn't choose an operating system, just choose
4572 ### an operating system based on the configuration name. You really
4573 ### only want to use this when you have no idea what the right
4574 ### operating system is; if you know what operating systems a machine
4575 ### runs, it's cleaner to make it explicit in the case statement
4577 if test x
"${opsys}" = x
; then
4578 case "${canonical}" in
4579 *-gnu* ) opsys
=gnu
;;
4588 if test $unported = yes; then
4589 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4590 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4593 if test -n "$machine"; then
4594 machfile
="m/${machine}.h"
4598 opsysfile
="s/${opsys}.h"
4601 #### Choose a compiler.
4602 test -n "$CC" && cc_specified
=yes
4604 # Save the value of CFLAGS that the user specified.
4605 SPECIFIED_CFLAGS
="$CFLAGS"
4608 ac_cpp
='$CPP $CPPFLAGS'
4609 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4614 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC
="$CC" # Let the user override the test.
4623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir
=.
4628 for ac_exec_ext
in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643 $as_echo "$CC" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4651 if test -z "$ac_cv_prog_CC"; then
4653 # Extract the first word of "gcc", so it can be a program name with args.
4654 set dummy gcc
; ac_word
=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$ac_ct_CC"; then
4661 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir
=.
4668 for ac_exec_ext
in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_ac_ct_CC
="gcc"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4681 if test -n "$ac_ct_CC"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4683 $as_echo "$ac_ct_CC" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4689 if test "x$ac_ct_CC" = x
; then
4692 case $cross_compiling:$ac_tool_warned in
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned
=yes ;;
4704 if test -z "$CC"; then
4705 if test -n "$ac_tool_prefix"; then
4706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4707 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_CC+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC
="$CC" # Let the user override the test.
4716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir
=.
4721 for ac_exec_ext
in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 if test -n "$CC"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4736 $as_echo "$CC" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4745 if test -z "$CC"; then
4746 # Extract the first word of "cc", so it can be a program name with args.
4747 set dummy cc
; ac_word
=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_CC+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$CC"; then
4754 ac_cv_prog_CC
="$CC" # Let the user override the test.
4757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir
=.
4762 for ac_exec_ext
in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4765 ac_prog_rejected
=yes
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 if test $ac_prog_rejected = yes; then
4777 # We found a bogon in the path, so make sure we never use it.
4778 set dummy
$ac_cv_prog_CC
4780 if test $# != 0; then
4781 # We chose a different compiler from the bogus one.
4782 # However, it has the same basename, so the bogon will be chosen
4783 # first if we set CC to just the basename; use the full file name.
4785 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4791 if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793 $as_echo "$CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4801 if test -z "$CC"; then
4802 if test -n "$ac_tool_prefix"; then
4803 for ac_prog
in cl.exe
4805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4806 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_CC+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$CC"; then
4813 ac_cv_prog_CC
="$CC" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$CC"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4835 $as_echo "$CC" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$CC" && break
4845 if test -z "$CC"; then
4847 for ac_prog
in cl.exe
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy
$ac_prog; ac_word
=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$ac_ct_CC"; then
4857 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir
=.
4864 for ac_exec_ext
in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_CC
="$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4877 if test -n "$ac_ct_CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4879 $as_echo "$ac_ct_CC" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$ac_ct_CC" && break
4889 if test "x$ac_ct_CC" = x
; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned
=yes ;;
4905 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4907 as_fn_error
"no acceptable C compiler found in \$PATH
4908 See \`config.log' for more details." "$LINENO" 5; }
4910 # Provide some information about the compiler.
4911 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4914 for ac_option
in --version -v -V -qversion; do
4915 { { ac_try
="$ac_compiler $ac_option >&5"
4917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4921 $as_echo "$ac_try_echo"; } >&5
4922 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4924 if test -s conftest.err; then
4926 ... rest of stderr output deleted ...
4927 10q' conftest.err >conftest.er1
4928 cat conftest.er1 >&5
4930 rm -f conftest.er1 conftest.err
4931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932 test $ac_status = 0; }
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4946 ac_clean_files_save=$ac_clean_files
4947 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4948 # Try to create an executable without -o first, disregard a.out.
4949 # It will help us diagnose broken compilers, and finding out an intuition
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4952 $as_echo_n "checking whether the C compiler works... " >&6; }
4953 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4955 # The possible output files:
4956 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4959 for ac_file in $ac_files
4962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4963 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4968 if { { ac_try="$ac_link_default"
4970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4971 *) ac_try_echo
=$ac_try;;
4973 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975 (eval "$ac_link_default") 2>&5
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }; then :
4979 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4980 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4981 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4982 # so that the user can short-circuit this test for compilers unknown to
4984 for ac_file
in $ac_files ''
4986 test -f "$ac_file" ||
continue
4988 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4991 # We found the default executable, but exeext='' is most
4995 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4997 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4999 # We set ac_cv_exeext here because the later test for it is not
5000 # safe: cross compilers may not add the suffix if given an `-o'
5001 # argument, so we may need to know it at that point already.
5002 # Even if this section looks crufty: it has the advantage of
5009 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5014 if test -z "$ac_file"; then :
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 $as_echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.
$ac_ext >&5
5020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022 { as_fn_set_status
77
5023 as_fn_error
"C compiler cannot create executables
5024 See \`config.log' for more details." "$LINENO" 5; }; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5030 $as_echo_n "checking for C compiler default output file name... " >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5032 $as_echo "$ac_file" >&6; }
5033 ac_exeext
=$ac_cv_exeext
5035 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5036 ac_clean_files
=$ac_clean_files_save
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5038 $as_echo_n "checking for suffix of executables... " >&6; }
5039 if { { ac_try
="$ac_link"
5041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_link") 2>&5
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }; then :
5050 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5051 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5052 # work properly (i.e., refer to `conftest.exe'), while it won't with
5054 for ac_file
in conftest.exe conftest conftest.
*; do
5055 test -f "$ac_file" ||
continue
5057 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5058 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5067 See \`config.log' for more details." "$LINENO" 5; }
5069 rm -f conftest conftest
$ac_cv_exeext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5071 $as_echo "$ac_cv_exeext" >&6; }
5073 rm -f conftest.
$ac_ext
5074 EXEEXT
=$ac_cv_exeext
5076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5082 FILE *f = fopen ("conftest.out", "w");
5083 return ferror (f) || fclose (f) != 0;
5089 ac_clean_files
="$ac_clean_files conftest.out"
5090 # Check that the compiler produces executables we can run. If not, either
5091 # the compiler is broken, or we cross compile.
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5093 $as_echo_n "checking whether we are cross compiling... " >&6; }
5094 if test "$cross_compiling" != yes; then
5095 { { ac_try
="$ac_link"
5097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 $as_echo "$ac_try_echo"; } >&5
5102 (eval "$ac_link") 2>&5
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5106 if { ac_try='./conftest$ac_cv_exeext'
5107 { { case "(($ac_try" in
5108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5109 *) ac_try_echo
=$ac_try;;
5111 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5112 $as_echo "$ac_try_echo"; } >&5
5113 (eval "$ac_try") 2>&5
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }; }; then
5119 if test "$cross_compiling" = maybe
; then
5122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 as_fn_error
"cannot run C compiled programs.
5125 If you meant to cross compile, use \`--host'.
5126 See \`config.log' for more details." "$LINENO" 5; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5131 $as_echo "$cross_compiling" >&6; }
5133 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5134 ac_clean_files
=$ac_clean_files_save
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5136 $as_echo_n "checking for suffix of object files... " >&6; }
5137 if test "${ac_cv_objext+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5151 rm -f conftest.o conftest.obj
5152 if { { ac_try
="$ac_compile"
5154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5158 $as_echo "$ac_try_echo"; } >&5
5159 (eval "$ac_compile") 2>&5
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }; then :
5163 for ac_file in conftest.o conftest.obj conftest.*; do
5164 test -f "$ac_file" || continue;
5166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5172 $as_echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5177 as_fn_error "cannot compute suffix of object files
: cannot compile
5178 See \
`config.log' for more details." "$LINENO" 5; }
5180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5183 $as_echo "$ac_cv_objext" >&6; }
5184 OBJEXT=$ac_cv_objext
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5188 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5205 if ac_fn_c_try_compile "$LINENO"; then :
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5216 if test $ac_compiler_gnu = yes; then
5221 ac_test_CFLAGS=${CFLAGS+set}
5222 ac_save_CFLAGS=$CFLAGS
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5225 if test "${ac_cv_prog_cc_g+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5228 ac_save_c_werror_flag=$ac_c_werror_flag
5229 ac_c_werror_flag=yes
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5243 if ac_fn_c_try_compile "$LINENO"; then :
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5258 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_c_werror_flag=$ac_save_c_werror_flag
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5274 if ac_fn_c_try_compile "$LINENO"; then :
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_c_werror_flag=$ac_save_c_werror_flag
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5285 $as_echo "$ac_cv_prog_cc_g" >&6; }
5286 if test "$ac_test_CFLAGS" = set; then
5287 CFLAGS=$ac_save_CFLAGS
5288 elif test $ac_cv_prog_cc_g = yes; then
5289 if test "$GCC" = yes; then
5295 if test "$GCC" = yes; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5303 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 ac_cv_prog_cc_c89=no
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 #include <sys/types.h>
5313 #include <sys/stat.h>
5314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5315 struct buf { int x; };
5316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5317 static char *e (p, i)
5323 static char *f (char * (*g) (char **, int), char **p, ...)
5328 s = g (p, va_arg (v,int));
5333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5334 function prototypes and stuff, but not '\xHH' hex character constants.
5335 These don't provoke an error unfortunately, instead are silently treated
5336 as 'x'. The following induces an error, until -std is added to get
5337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5338 array size at least. It's necessary to write '\x00'==0 to get something
5339 that's true only with -std. */
5340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5342 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5343 inside strings and character constants. */
5345 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5347 int test (int i, double x);
5348 struct s1 {int (*f) (int a);};
5349 struct s2 {int (*f) (double a);};
5350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5361 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5364 CC="$ac_save_CC $ac_arg"
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_prog_cc_c89=$ac_arg
5368 rm -f core conftest.err conftest.$ac_objext
5369 test "x$ac_cv_prog_cc_c89" != "xno" && break
5371 rm -f conftest.$ac_ext
5376 case "x$ac_cv_prog_cc_c89" in
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5379 $as_echo "none needed" >&6; } ;;
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5382 $as_echo "unsupported" >&6; } ;;
5384 CC="$CC $ac_cv_prog_cc_c89"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5386 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5388 if test "x$ac_cv_prog_cc_c89" != xno; then :
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 DEPDIR="${am__leading_dot}deps"
5399 ac_config_commands="$ac_config_commands depfiles"
5402 am_make=${MAKE-make}
5403 cat > confinc << 'END'
5405 @echo this is the am__doit target
5408 # If we don't find an include directive, just comment out the code.
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5410 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5414 # First try GNU make style include.
5415 echo "include confinc" > confmf
5416 # Ignore all kinds of additional output from `make'.
5417 case `$am_make -s -f confmf 2> /dev/null` in #(
5418 *the\ am__doit\ target*)
5424 # Now try BSD make style include.
5425 if test "$am__include" = "#"; then
5426 echo '.include
"confinc"' > confmf
5427 case `$am_make -s -f confmf 2> /dev/null` in #(
5428 *the\ am__doit\ target*)
5429 am__include=.include
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5438 $as_echo "$_am_result" >&6; }
5439 rm -f confinc confmf
5441 # Check whether --enable-dependency-tracking was given.
5442 if test "${enable_dependency_tracking+set}" = set; then :
5443 enableval=$enable_dependency_tracking;
5446 if test "x$enable_dependency_tracking" != xno; then
5447 am_depcomp="$ac_aux_dir/depcomp"
5450 if test "x$enable_dependency_tracking" != xno
; then
5460 depcc
="$CC" am_compiler_list
=
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5463 $as_echo_n "checking dependency style of $depcc... " >&6; }
5464 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5468 # We make a subdir and do the tests there. Otherwise we can end up
5469 # making bogus files that we don't know about and never remove. For
5470 # instance it was reported that on HP-UX the gcc test will end up
5471 # making a dummy file named `D' -- because `-MD' means `put the output
5474 # Copy depcomp to subdir because otherwise we won't find it if we're
5475 # using a relative directory.
5476 cp "$am_depcomp" conftest.dir
5478 # We will build objects and dependencies in a subdirectory because
5479 # it helps to detect inapplicable dependency modes. For instance
5480 # both Tru64's cc and ICC support -MD to output dependencies as a
5481 # side effect of compilation, but ICC will put the dependencies in
5482 # the current directory while Tru64 will put them in the object
5486 am_cv_CC_dependencies_compiler_type
=none
5487 if test "$am_compiler_list" = ""; then
5488 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5491 case " $depcc " in #(
5492 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5495 for depmode
in $am_compiler_list; do
5496 # Setup a source with many dependencies, because some compilers
5497 # like to wrap large dependency lists on column 80 (with \), and
5498 # we should not choose a depcomp mode which is confused by this.
5500 # We need to recreate these files for each test, as the compiler may
5501 # overwrite some of them when testing with obscure command lines.
5502 # This happens at least with the AIX C compiler.
5504 for i
in 1 2 3 4 5 6; do
5505 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5506 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5507 # Solaris 8's {/usr,}/bin/sh.
5508 touch sub
/conftst
$i.h
5510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5513 # mode. It turns out that the SunPro C++ compiler does not properly
5514 # handle `-M -o', and we need to detect this. Also, some Intel
5515 # versions had trouble with output in subdirs
5516 am__obj
=sub
/conftest.
${OBJEXT-o}
5517 am__minus_obj
="-o $am__obj"
5520 # This depmode causes a compiler race in universal mode.
5521 test "$am__universal" = false ||
continue
5524 # after this tag, mechanisms are not by side-effect, so they'll
5525 # only be used when explicitly requested
5526 if test "x$enable_dependency_tracking" = xyes
; then
5532 msvisualcpp | msvcmsys
)
5533 # This compiler won't grok `-c -o', but also, the minuso test has
5534 # not run yet. These depmodes are late enough in the game, and
5535 # so weak that their functioning should not be impacted.
5536 am__obj
=conftest.
${OBJEXT-o}
5541 if depmode
=$depmode \
5542 source=sub
/conftest.c object
=$am__obj \
5543 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5544 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5545 >/dev
/null
2>conftest.err
&&
5546 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5547 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5548 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5549 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5550 # icc doesn't choke on unknown options, it will just issue warnings
5551 # or remarks (even with -Werror). So we grep stderr for any message
5552 # that says an option was ignored or not supported.
5553 # When given -MP, icc 7.0 and 7.1 complain thusly:
5554 # icc: Command line warning: ignoring option '-M'; no argument required
5555 # The diagnosis changed in icc 8.0:
5556 # icc: Command line remark: option '-MP' not supported
5557 if (grep 'ignoring option' conftest.err ||
5558 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5559 am_cv_CC_dependencies_compiler_type
=$depmode
5568 am_cv_CC_dependencies_compiler_type
=none
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5573 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5574 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5577 test "x$enable_dependency_tracking" != xno \
5578 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5580 am__fastdepCC_FALSE
='#'
5582 am__fastdepCC_TRUE
='#'
5583 am__fastdepCC_FALSE
=
5587 if test "x$CC" != xcc
; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5589 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5592 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5594 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5595 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5596 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5597 $as_echo_n "(cached) " >&6
5599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5610 # Make sure it works both with $CC and with simple cc.
5611 # We do the test twice because some compilers refuse to overwrite an
5612 # existing .o file with -o, though they will create one.
5613 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5615 if { { case "(($ac_try" in
5616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5620 $as_echo "$ac_try_echo"; } >&5
5621 (eval "$ac_try") 2>&5
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; } &&
5625 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5627 *) ac_try_echo
=$ac_try;;
5629 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5630 $as_echo "$ac_try_echo"; } >&5
5631 (eval "$ac_try") 2>&5
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; };
5636 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5637 if test "x$CC" != xcc
; then
5638 # Test first that cc exists at all.
5639 if { ac_try
='cc -c conftest.$ac_ext >&5'
5640 { { case "(($ac_try" in
5641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5645 $as_echo "$ac_try_echo"; } >&5
5646 (eval "$ac_try") 2>&5
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }; }; then
5650 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5652 if { { case "(($ac_try" in
5653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5654 *) ac_try_echo
=$ac_try;;
5656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5657 $as_echo "$ac_try_echo"; } >&5
5658 (eval "$ac_try") 2>&5
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; } &&
5662 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667 $as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; };
5676 # cc exists but doesn't like -o.
5677 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5684 rm -f core conftest*
5687 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5694 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5698 # FIXME: we rely on the cache variable name because
5699 # there is no other way.
5701 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5702 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5703 if test "$am_t" != yes; then
5704 # Losing compiler, so override with the script.
5705 # FIXME: It is wrong to rewrite CC.
5706 # But if we don't then we get into trouble of one sort or another.
5707 # A longer-term fix would be to have automake use am__CC in this case,
5708 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5709 CC="$am_aux_dir/compile $CC"
5714 # Initialize gnulib right after verifying that the C compiler works.
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$RANLIB"; then
5724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 RANLIB=$ac_cv_prog_RANLIB
5744 if test -n "$RANLIB"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5746 $as_echo "$RANLIB" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_RANLIB"; then
5755 ac_ct_RANLIB=$RANLIB
5756 # Extract the first word of "ranlib", so it can be a program name with args.
5757 set dummy ranlib; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$ac_ct_RANLIB"; then
5764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_RANLIB="ranlib"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5784 if test -n "$ac_ct_RANLIB"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5786 $as_echo "$ac_ct_RANLIB" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_RANLIB" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5801 RANLIB=$ac_ct_RANLIB
5804 RANLIB="$ac_cv_prog_RANLIB"
5809 ac_cpp='$CPP $CPPFLAGS'
5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5815 # On Suns, sometimes $CPP names a directory.
5816 if test -n "$CPP" && test -d "$CPP"; then
5819 if test -z "$CPP"; then
5820 if test "${ac_cv_prog_CPP+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5823 # Double quotes because CPP needs to be expanded
5824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827 for ac_c_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5838 # include <limits.h>
5840 # include <assert.h>
5844 if ac_fn_c_try_cpp "$LINENO"; then :
5847 # Broken: fails on valid input.
5850 rm -f conftest.err conftest.$ac_ext
5852 # OK, works on sane cases. Now check whether nonexistent headers
5853 # can be detected and how.
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if ac_fn_c_try_cpp "$LINENO"; then :
5859 # Broken: success on invalid input.
5862 # Passes both tests.
5866 rm -f conftest.err conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.
$ac_ext
5871 if $ac_preproc_ok; then :
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5884 $as_echo "$CPP" >&6; }
5886 for ac_c_preproc_warn_flag
in '' yes
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 # include <limits.h>
5899 # include <assert.h>
5903 if ac_fn_c_try_cpp
"$LINENO"; then :
5906 # Broken: fails on valid input.
5909 rm -f conftest.err conftest.
$ac_ext
5911 # OK, works on sane cases. Now check whether nonexistent headers
5912 # can be detected and how.
5913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <ac_nonexistent.h>
5917 if ac_fn_c_try_cpp
"$LINENO"; then :
5918 # Broken: success on invalid input.
5921 # Passes both tests.
5925 rm -f conftest.err conftest.
$ac_ext
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.err conftest.
$ac_ext
5930 if $ac_preproc_ok; then :
5933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5935 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5936 See \`config.log' for more details." "$LINENO" 5; }
5940 ac_cpp
='$CPP $CPPFLAGS'
5941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5948 if test "${ac_cv_path_GREP+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5951 if test -z "$GREP"; then
5952 ac_path_GREP_found
=false
5953 # Loop through the user's path and test for each of PROGNAME-LIST
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5955 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_prog
in grep ggrep
; do
5960 for ac_exec_ext
in '' $ac_executable_extensions; do
5961 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5962 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5963 # Check for GNU ac_path_GREP and select it if it is found.
5964 # Check for GNU $ac_path_GREP
5965 case `"$ac_path_GREP" --version 2>&1` in
5967 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5970 $as_echo_n 0123456789 >"conftest.in"
5973 cat "conftest.in" "conftest.in" >"conftest.tmp"
5974 mv "conftest.tmp" "conftest.in"
5975 cp "conftest.in" "conftest.nl"
5976 $as_echo 'GREP' >> "conftest.nl"
5977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5978 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5979 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5981 # Best one so far, save it but keep looking for a better one
5982 ac_cv_path_GREP
="$ac_path_GREP"
5983 ac_path_GREP_max
=$ac_count
5985 # 10*(2^10) chars as input seems more than enough
5986 test $ac_count -gt 10 && break
5988 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5991 $ac_path_GREP_found && break 3
5996 if test -z "$ac_cv_path_GREP"; then
5997 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6000 ac_cv_path_GREP
=$GREP
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6005 $as_echo "$ac_cv_path_GREP" >&6; }
6006 GREP
="$ac_cv_path_GREP"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6010 $as_echo_n "checking for egrep... " >&6; }
6011 if test "${ac_cv_path_EGREP+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6015 then ac_cv_path_EGREP
="$GREP -E"
6017 if test -z "$EGREP"; then
6018 ac_path_EGREP_found
=false
6019 # Loop through the user's path and test for each of PROGNAME-LIST
6020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6021 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6024 test -z "$as_dir" && as_dir
=.
6025 for ac_prog
in egrep; do
6026 for ac_exec_ext
in '' $ac_executable_extensions; do
6027 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6028 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6029 # Check for GNU ac_path_EGREP and select it if it is found.
6030 # Check for GNU $ac_path_EGREP
6031 case `"$ac_path_EGREP" --version 2>&1` in
6033 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6036 $as_echo_n 0123456789 >"conftest.in"
6039 cat "conftest.in" "conftest.in" >"conftest.tmp"
6040 mv "conftest.tmp" "conftest.in"
6041 cp "conftest.in" "conftest.nl"
6042 $as_echo 'EGREP' >> "conftest.nl"
6043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6044 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6045 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6047 # Best one so far, save it but keep looking for a better one
6048 ac_cv_path_EGREP
="$ac_path_EGREP"
6049 ac_path_EGREP_max
=$ac_count
6051 # 10*(2^10) chars as input seems more than enough
6052 test $ac_count -gt 10 && break
6054 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6057 $ac_path_EGREP_found && break 3
6062 if test -z "$ac_cv_path_EGREP"; then
6063 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6066 ac_cv_path_EGREP
=$EGREP
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6072 $as_echo "$ac_cv_path_EGREP" >&6; }
6073 EGREP
="$ac_cv_path_EGREP"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6077 $as_echo_n "checking for ANSI C header files... " >&6; }
6078 if test "${ac_cv_header_stdc+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6096 if ac_fn_c_try_compile
"$LINENO"; then :
6097 ac_cv_header_stdc
=yes
6099 ac_cv_header_stdc
=no
6101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6103 if test $ac_cv_header_stdc = yes; then
6104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "memchr" >/dev
/null
2>&1; then :
6114 ac_cv_header_stdc
=no
6120 if test $ac_cv_header_stdc = yes; then
6121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "free" >/dev
/null
2>&1; then :
6131 ac_cv_header_stdc
=no
6137 if test $ac_cv_header_stdc = yes; then
6138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6139 if test "$cross_compiling" = yes; then :
6142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6146 #if ((' ' & 0x0FF) == 0x020)
6147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6150 # define ISLOWER(c) \
6151 (('a' <= (c) && (c) <= 'i') \
6152 || ('j' <= (c) && (c) <= 'r') \
6153 || ('s' <= (c) && (c) <= 'z'))
6154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6162 for (i = 0; i < 256; i++)
6163 if (XOR (islower (i), ISLOWER (i))
6164 || toupper (i) != TOUPPER (i))
6169 if ac_fn_c_try_run
"$LINENO"; then :
6172 ac_cv_header_stdc
=no
6174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6181 $as_echo "$ac_cv_header_stdc" >&6; }
6182 if test $ac_cv_header_stdc = yes; then
6184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6189 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6190 inttypes.h stdint.h unistd.h
6192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6195 eval as_val
=\$
$as_ac_Header
6196 if test "x$as_val" = x
""yes; then :
6197 cat >>confdefs.h
<<_ACEOF
6198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6210 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6217 if test "$MINIX" = yes; then
6219 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6222 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6225 $as_echo "#define _MINIX 1" >>confdefs.h
6232 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6239 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6240 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6246 # define __EXTENSIONS__ 1
6247 $ac_includes_default
6256 if ac_fn_c_try_compile
"$LINENO"; then :
6257 ac_cv_safe_to_define___extensions__
=yes
6259 ac_cv_safe_to_define___extensions__
=no
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6264 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6265 test $ac_cv_safe_to_define___extensions__ = yes &&
6266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6283 case $ac_cv_prog_cc_stdc in #(
6285 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6288 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6289 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6292 ac_cv_prog_cc_c99
=no
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6297 #include <stdbool.h>
6302 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6303 #define debug(...) fprintf (stderr, __VA_ARGS__)
6304 #define showlist(...) puts (#__VA_ARGS__)
6305 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6307 test_varargs_macros (void)
6312 debug ("X = %d\n", x);
6313 showlist (The first, second, and third items.);
6314 report (x>y, "x is %d but y is %d", x, y);
6317 // Check long long types.
6318 #define BIG64 18446744073709551615ull
6319 #define BIG32 4294967295ul
6320 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6322 your preprocessor is broken;
6326 your preprocessor is broken;
6328 static long long int bignum = -9223372036854775807LL;
6329 static unsigned long long int ubignum = BIG64;
6331 struct incomplete_array
6339 const wchar_t *name;
6343 typedef const char *ccp;
6346 test_restrict (ccp restrict text)
6348 // See if C++-style comments work.
6349 // Iterate through items via the restricted pointer.
6350 // Also check for declarations in for loops.
6351 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6356 // Check varargs and va_copy.
6358 test_varargs (const char *format, ...)
6361 va_start (args, format);
6363 va_copy (args_copy, args);
6374 str = va_arg (args_copy, const char *);
6377 number = va_arg (args_copy, int);
6380 fnumber = va_arg (args_copy, double);
6395 _Bool success = false;
6398 if (test_restrict ("String literal") == 0)
6400 char *restrict newvar = "Another string";
6403 test_varargs ("s, d' f .", "string", 65, 34.234);
6404 test_varargs_macros ();
6406 // Check flexible array members.
6407 struct incomplete_array *ia =
6408 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6410 for (int i = 0; i < ia->datasize; ++i)
6411 ia->data[i] = i * 1.234;
6413 // Check named initializers.
6414 struct named_init ni = {
6416 .name = L"Test wide string",
6417 .average = 543.34343,
6422 int dynamic_array[ni.number];
6423 dynamic_array[ni.number - 1] = 543;
6425 // work around unused variable warnings
6426 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6427 || dynamic_array[ni.number - 1] != 543);
6433 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6435 CC
="$ac_save_CC $ac_arg"
6436 if ac_fn_c_try_compile
"$LINENO"; then :
6437 ac_cv_prog_cc_c99
=$ac_arg
6439 rm -f core conftest.err conftest.
$ac_objext
6440 test "x$ac_cv_prog_cc_c99" != "xno" && break
6442 rm -f conftest.
$ac_ext
6447 case "x$ac_cv_prog_cc_c99" in
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6450 $as_echo "none needed" >&6; } ;;
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6453 $as_echo "unsupported" >&6; } ;;
6455 CC
="$CC $ac_cv_prog_cc_c99"
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6457 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6459 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6460 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6463 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6464 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6467 ac_cv_prog_cc_c89
=no
6469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6473 #include <sys/types.h>
6474 #include <sys/stat.h>
6475 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6476 struct buf { int x; };
6477 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6478 static char *e (p, i)
6484 static char *f (char * (*g) (char **, int), char **p, ...)
6489 s = g (p, va_arg (v,int));
6494 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6495 function prototypes and stuff, but not '\xHH' hex character constants.
6496 These don't provoke an error unfortunately, instead are silently treated
6497 as 'x'. The following induces an error, until -std is added to get
6498 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6499 array size at least. It's necessary to write '\x00'==0 to get something
6500 that's true only with -std. */
6501 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6503 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6504 inside strings and character constants. */
6506 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6508 int test (int i, double x);
6509 struct s1 {int (*f) (int a);};
6510 struct s2 {int (*f) (double a);};
6511 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6517 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6522 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6523 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6525 CC
="$ac_save_CC $ac_arg"
6526 if ac_fn_c_try_compile
"$LINENO"; then :
6527 ac_cv_prog_cc_c89
=$ac_arg
6529 rm -f core conftest.err conftest.
$ac_objext
6530 test "x$ac_cv_prog_cc_c89" != "xno" && break
6532 rm -f conftest.
$ac_ext
6537 case "x$ac_cv_prog_cc_c89" in
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6540 $as_echo "none needed" >&6; } ;;
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6543 $as_echo "unsupported" >&6; } ;;
6545 CC
="$CC $ac_cv_prog_cc_c89"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6547 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6549 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6550 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6552 ac_cv_prog_cc_stdc
=no
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6559 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6560 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6564 case $ac_cv_prog_cc_stdc in #(
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6567 $as_echo "unsupported" >&6; } ;; #(
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6570 $as_echo "none needed" >&6; } ;; #(
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6573 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6578 # Code from module alloca-opt:
6579 # Code from module allocator:
6580 # Code from module arg-nonnull:
6581 # Code from module c++defs:
6582 # Code from module careadlinkat:
6583 # Code from module crypto/md5:
6584 # Code from module crypto/sha1:
6585 # Code from module crypto/sha256:
6586 # Code from module crypto/sha512:
6587 # Code from module dosname:
6588 # Code from module dtoastr:
6589 # Code from module dup2:
6590 # Code from module extensions:
6592 # Code from module filemode:
6593 # Code from module getloadavg:
6594 # Code from module getopt-gnu:
6595 # Code from module getopt-posix:
6596 # Code from module gettext-h:
6597 # Code from module ignore-value:
6598 # Code from module include_next:
6599 # Code from module intprops:
6600 # Code from module inttypes-incomplete:
6601 # Code from module lstat:
6602 # Code from module mktime:
6603 # Code from module multiarch:
6604 # Code from module pthread_sigmask:
6605 # Code from module readlink:
6606 # Code from module signal:
6607 # Code from module sigprocmask:
6608 # Code from module socklen:
6609 # Code from module ssize_t:
6610 # Code from module stat:
6611 # Code from module stdarg:
6613 # Code from module stdbool:
6614 # Code from module stddef:
6615 # Code from module stdint:
6616 # Code from module stdio:
6617 # Code from module stdlib:
6618 # Code from module strftime:
6619 # Code from module strtoimax:
6620 # Code from module strtoll:
6621 # Code from module strtoull:
6622 # Code from module strtoumax:
6623 # Code from module symlink:
6624 # Code from module sys_stat:
6625 # Code from module time:
6626 # Code from module time_r:
6627 # Code from module u64:
6628 # Code from module unistd:
6629 # Code from module verify:
6630 # Code from module warn-on-use:
6633 # On Suns, sometimes $CPP names a directory.
6634 if test -n "$CPP" && test -d "$CPP"; then
6638 ## If not using gcc, and on Solaris, and no CPP specified, see if
6639 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6640 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6641 test x
"$CPP" = x
; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6643 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6644 if test "${emacs_cv_sunpro_c+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6661 if ac_fn_c_try_link
"$LINENO"; then :
6662 emacs_cv_sunpro_c
=yes
6664 emacs_cv_sunpro_c
=no
6666 rm -f core conftest.err conftest.
$ac_objext \
6667 conftest
$ac_exeext conftest.
$ac_ext
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6671 $as_echo "$emacs_cv_sunpro_c" >&6; }
6673 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6674 NON_GNU_CPP
="$CC -E -Xs"
6678 #### Some systems specify a CPP to use unless we are using GCC.
6679 #### Now that we know whether we are using GCC, we can decide whether
6680 #### to use that one.
6681 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6686 #### Some systems specify a CC to use unless we are using GCC.
6687 #### Now that we know whether we are using GCC, we can decide whether
6688 #### to use that one.
6689 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6690 test x
$cc_specified != xyes
6695 if test x
$GCC = xyes
; then
6696 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6698 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6701 ### Use -Wdeclaration-after-statement if the compiler supports it
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6703 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6704 SAVE_CFLAGS
="$CFLAGS"
6705 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6717 if ac_fn_c_try_compile
"$LINENO"; then :
6722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6723 if test $has_option = yes; then
6724 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6727 $as_echo "$has_option" >&6; }
6728 CFLAGS
="$SAVE_CFLAGS"
6732 ### Use -Wold-style-definition if the compiler supports it
6733 # This can be removed when conversion to standard C is finished.
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6735 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6736 SAVE_CFLAGS
="$CFLAGS"
6737 CFLAGS
="$CFLAGS -Wold-style-definition"
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6749 if ac_fn_c_try_compile
"$LINENO"; then :
6754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6755 if test $has_option = yes; then
6756 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6759 $as_echo "$has_option" >&6; }
6760 CFLAGS
="$SAVE_CFLAGS"
6764 ### Use -Wimplicit-function-declaration if the compiler supports it
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6766 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6767 SAVE_CFLAGS
="$CFLAGS"
6768 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6780 if ac_fn_c_try_compile
"$LINENO"; then :
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6786 if test $has_option = yes; then
6787 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6790 $as_echo "$has_option" >&6; }
6791 CFLAGS
="$SAVE_CFLAGS"
6798 #### Some other nice autoconf tests.
6801 ac_cpp
='$CPP $CPPFLAGS'
6802 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6806 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6807 # On Suns, sometimes $CPP names a directory.
6808 if test -n "$CPP" && test -d "$CPP"; then
6811 if test -z "$CPP"; then
6812 if test "${ac_cv_prog_CPP+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6815 # Double quotes because CPP needs to be expanded
6816 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6819 for ac_c_preproc_warn_flag
in '' yes
6821 # Use a header file that comes with gcc, so configuring glibc
6822 # with a fresh cross-compiler works.
6823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6824 # <limits.h> exists even on freestanding compilers.
6825 # On the NeXT, cc -E runs the code through the compiler's parser,
6826 # not just through cpp. "Syntax error" is here to catch this case.
6827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6830 # include <limits.h>
6832 # include <assert.h>
6836 if ac_fn_c_try_cpp
"$LINENO"; then :
6839 # Broken: fails on valid input.
6842 rm -f conftest.err conftest.
$ac_ext
6844 # OK, works on sane cases. Now check whether nonexistent headers
6845 # can be detected and how.
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <ac_nonexistent.h>
6850 if ac_fn_c_try_cpp
"$LINENO"; then :
6851 # Broken: success on invalid input.
6854 # Passes both tests.
6858 rm -f conftest.err conftest.
$ac_ext
6861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6862 rm -f conftest.err conftest.
$ac_ext
6863 if $ac_preproc_ok; then :
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6876 $as_echo "$CPP" >&6; }
6878 for ac_c_preproc_warn_flag
in '' yes
6880 # Use a header file that comes with gcc, so configuring glibc
6881 # with a fresh cross-compiler works.
6882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6883 # <limits.h> exists even on freestanding compilers.
6884 # On the NeXT, cc -E runs the code through the compiler's parser,
6885 # not just through cpp. "Syntax error" is here to catch this case.
6886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6889 # include <limits.h>
6891 # include <assert.h>
6895 if ac_fn_c_try_cpp
"$LINENO"; then :
6898 # Broken: fails on valid input.
6901 rm -f conftest.err conftest.
$ac_ext
6903 # OK, works on sane cases. Now check whether nonexistent headers
6904 # can be detected and how.
6905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 #include <ac_nonexistent.h>
6909 if ac_fn_c_try_cpp
"$LINENO"; then :
6910 # Broken: success on invalid input.
6913 # Passes both tests.
6917 rm -f conftest.err conftest.
$ac_ext
6920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6921 rm -f conftest.err conftest.
$ac_ext
6922 if $ac_preproc_ok; then :
6925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6927 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6928 See \`config.log' for more details." "$LINENO" 5; }
6932 ac_cpp
='$CPP $CPPFLAGS'
6933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6938 if test "x$RANLIB" = x
; then
6939 if test -n "$ac_tool_prefix"; then
6940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6941 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 if test -n "$RANLIB"; then
6948 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir
=.
6955 for ac_exec_ext
in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 RANLIB
=$ac_cv_prog_RANLIB
6968 if test -n "$RANLIB"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6970 $as_echo "$RANLIB" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6978 if test -z "$ac_cv_prog_RANLIB"; then
6979 ac_ct_RANLIB
=$RANLIB
6980 # Extract the first word of "ranlib", so it can be a program name with args.
6981 set dummy ranlib
; ac_word
=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$ac_ct_RANLIB"; then
6988 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir
=.
6995 for ac_exec_ext
in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7008 if test -n "$ac_ct_RANLIB"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7010 $as_echo "$ac_ct_RANLIB" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7016 if test "x$ac_ct_RANLIB" = x
; then
7019 case $cross_compiling:$ac_tool_warned in
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023 ac_tool_warned
=yes ;;
7025 RANLIB
=$ac_ct_RANLIB
7028 RANLIB
="$ac_cv_prog_RANLIB"
7033 ## Although we're running on an amd64 kernel, we're actually compiling for
7034 ## the x86 architecture. The user should probably have provided an
7035 ## explicit --build to `configure', but if everything else than the kernel
7036 ## is running in i386 mode, we can help them out.
7037 if test "$machine" = "amdx86-64"; then
7038 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7039 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7043 if test "$ac_cv_have_decl_i386" = "yes"; then
7044 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7046 machfile
="m/${machine}.h"
7050 # Extract the first word of "install-info", so it can be a program name with args.
7051 set dummy install-info
; ac_word
=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7057 case $INSTALL_INFO in
7059 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir
=.
7067 for ac_exec_ext
in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7081 if test -n "$INSTALL_INFO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7083 $as_echo "$INSTALL_INFO" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7090 # Extract the first word of "install-info", so it can be a program name with args.
7091 set dummy install-info
; ac_word
=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 case $INSTALL_INFO in
7099 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7103 for as_dir
in /usr
/sbin
7106 test -z "$as_dir" && as_dir
=.
7107 for ac_exec_ext
in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7121 if test -n "$INSTALL_INFO"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7123 $as_echo "$INSTALL_INFO" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7130 # Extract the first word of "install-info", so it can be a program name with args.
7131 set dummy install-info
; ac_word
=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7137 case $INSTALL_INFO in
7139 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir
=.
7147 for ac_exec_ext
in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7161 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7162 if test -n "$INSTALL_INFO"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7164 $as_echo "$INSTALL_INFO" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7171 # Extract the first word of "gzip", so it can be a program name with args.
7172 set dummy
gzip; ac_word
=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7180 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir
=.
7188 for ac_exec_ext
in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7202 if test -n "$GZIP_PROG"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7204 $as_echo "$GZIP_PROG" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7213 ## Need makeinfo >= 4.6 (?) to build the manuals.
7214 # Extract the first word of "makeinfo", so it can be a program name with args.
7215 set dummy makeinfo
; ac_word
=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7223 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir
=.
7231 for ac_exec_ext
in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7245 MAKEINFO
=$ac_cv_path_MAKEINFO
7246 if test -n "$MAKEINFO"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7248 $as_echo "$MAKEINFO" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7255 if test "$MAKEINFO" != "no" && \
7256 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
7260 ## Makeinfo is unusual. For a released Emacs, the manuals are
7261 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7262 ## therefore in the category of "special tools" not normally required, which
7263 ## configure does not have to check for (eg autoconf itself).
7264 ## In a Bazaar checkout on the other hand, the manuals are not included.
7265 ## So makeinfo is a requirement to build from Bazaar, and configure
7266 ## should test for it as it does for any other build requirement.
7267 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7268 ## with pre-built manuals, from a Bazaar checkout.
7271 if test "$MAKEINFO" = "no"; then
7273 if test "x${with_makeinfo}" = "xno"; then
7275 elif test ! -e $srcdir/info
/emacs
; then
7276 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7277 source tree does not seem to have pre-built manuals in the \`info' directory.
7278 Either install a suitable version of makeinfo, or re-run configure
7279 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7285 if test x
$GCC = xyes
; then
7286 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7287 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7289 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7290 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7294 late_LDFLAGS
=$LDFLAGS
7295 if test x
$GCC = xyes
; then
7296 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7298 LDFLAGS
="$LDFLAGS -znocombreloc"
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7302 $as_echo_n "checking for -znocombreloc... " >&6; }
7303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7314 if ac_fn_c_try_link
"$LINENO"; then :
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7318 LDFLAGS
=$late_LDFLAGS
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7322 rm -f core conftest.err conftest.
$ac_objext \
7323 conftest
$ac_exeext conftest.
$ac_ext
7326 # The value of CPP is a quoted variable reference, so we need to do this
7327 # to get its actual value...
7328 CPP
=`eval "echo $CPP"`
7331 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7333 your-opsys-here
) CANNOT_DUMP
=yes ;;
7336 test "$CANNOT_DUMP" = "yes" && \
7338 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7344 UNEXEC_OBJ
=unexelf.o
7346 # MSDOS uses unexcoff.o
7347 # MSWindows uses unexw32.o
7349 UNEXEC_OBJ
=unexaix.o
7355 UNEXEC_OBJ
=unexmacosx.o
7358 UNEXEC_OBJ
=unexhp9k800.o
7361 # Use the Solaris dldump() function, called from unexsol.c, to dump
7362 # emacs, instead of the generic ELF dump code found in unexelf.c.
7363 # The resulting binary has a complete symbol table, and is better
7364 # for debugging and other observability tools (debuggers, pstack, etc).
7366 # If you encounter a problem using dldump(), please consider sending
7367 # a message to the OpenSolaris tools-linking mailing list:
7368 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7370 # It is likely that dldump() works with older Solaris too, but this has
7371 # not been tested, so for now this change is for Solaris 10 or newer.
7372 UNEXEC_OBJ
=unexsol.o
7379 ## Let `ld' find image libs and similar things in /usr/local/lib.
7380 ## The system compiler, GCC, has apparently been modified to not
7381 ## look there, contrary to what a stock GCC would do.
7382 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7386 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7387 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7391 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7395 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7396 ## otherwise Emacs dumps core on elf systems.
7397 LD_SWITCH_SYSTEM
="-Z"
7402 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7404 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7405 ## which has not been defined yet. When this was handled with cpp,
7406 ## it was expanded to null when configure sourced the s/*.h file.
7407 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7408 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7409 ## (or somesuch), but because it is supposed to go at the _front_
7410 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7411 ## Compare with the gnu-linux case below, which added to the end
7412 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7413 ## LD_SWITCH_SYSTEM_TEMACS.
7416 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7417 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7422 if test "$machine" = "alpha"; then
7423 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7424 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7428 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7429 ## With ELF, make sure that all common symbols get allocated to in the
7430 ## data section. Otherwise, the dump of temacs may miss variables in
7431 ## the shared library that have been initialized. For example, with
7432 ## GNU libc, __malloc_initialized would normally be resolved to the
7433 ## shared library's .bss section, which is fatal.
7434 if test "x$GCC" = "xyes"; then
7435 C_SWITCH_MACHINE
="-fno-common"
7437 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7440 UNEXEC_OBJ
=unexalpha.o
7448 ## Some programs in src produce warnings saying certain subprograms
7449 ## are too complex and need a MAXMEM value greater than 2000 for
7450 ## additional optimization. --nils@exp-math.uni-essen.de
7451 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7452 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7453 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7454 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7460 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7461 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7463 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7465 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7467 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7469 ## Motif needs -lgen.
7470 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7475 ### Make sure subsequent tests use flags consistent with the build flags.
7477 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7478 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7480 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7483 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7485 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7488 # Check whether --enable-largefile was given.
7489 if test "${enable_largefile+set}" = set; then :
7490 enableval
=$enable_largefile;
7493 if test "$enable_largefile" != no
; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7496 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7497 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7500 ac_cv_sys_largefile_CC
=no
7501 if test "$GCC" != yes; then
7504 # IRIX 6.2 and later do not support large files by default,
7505 # so use the C compiler's -n32 option if that helps.
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <sys/types.h>
7509 /* Check that off_t can represent 2**63 - 1 correctly.
7510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7511 since some C++ compilers masquerading as C compilers
7512 incorrectly reject 9223372036854775807. */
7513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7515 && LARGE_OFF_T % 2147483647 == 1)
7525 if ac_fn_c_try_compile
"$LINENO"; then :
7528 rm -f core conftest.err conftest.
$ac_objext
7530 if ac_fn_c_try_compile
"$LINENO"; then :
7531 ac_cv_sys_largefile_CC
=' -n32'; break
7533 rm -f core conftest.err conftest.
$ac_objext
7537 rm -f conftest.
$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7541 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7542 if test "$ac_cv_sys_largefile_CC" != no
; then
7543 CC
=$CC$ac_cv_sys_largefile_CC
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7547 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7548 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 #include <sys/types.h>
7555 /* Check that off_t can represent 2**63 - 1 correctly.
7556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7557 since some C++ compilers masquerading as C compilers
7558 incorrectly reject 9223372036854775807. */
7559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7561 && LARGE_OFF_T % 2147483647 == 1)
7571 if ac_fn_c_try_compile
"$LINENO"; then :
7572 ac_cv_sys_file_offset_bits
=no
; break
7574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #define _FILE_OFFSET_BITS 64
7578 #include <sys/types.h>
7579 /* Check that off_t can represent 2**63 - 1 correctly.
7580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7581 since some C++ compilers masquerading as C compilers
7582 incorrectly reject 9223372036854775807. */
7583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7585 && LARGE_OFF_T % 2147483647 == 1)
7595 if ac_fn_c_try_compile
"$LINENO"; then :
7596 ac_cv_sys_file_offset_bits
=64; break
7598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 ac_cv_sys_file_offset_bits
=unknown
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7604 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7605 case $ac_cv_sys_file_offset_bits in #(
7608 cat >>confdefs.h
<<_ACEOF
7609 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7614 if test $ac_cv_sys_file_offset_bits = unknown
; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7616 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7617 if test "${ac_cv_sys_large_files+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7624 /* Check that off_t can represent 2**63 - 1 correctly.
7625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7626 since some C++ compilers masquerading as C compilers
7627 incorrectly reject 9223372036854775807. */
7628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7630 && LARGE_OFF_T % 2147483647 == 1)
7640 if ac_fn_c_try_compile
"$LINENO"; then :
7641 ac_cv_sys_large_files
=no
; break
7643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #define _LARGE_FILES 1
7647 #include <sys/types.h>
7648 /* Check that off_t can represent 2**63 - 1 correctly.
7649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7650 since some C++ compilers masquerading as C compilers
7651 incorrectly reject 9223372036854775807. */
7652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7654 && LARGE_OFF_T % 2147483647 == 1)
7664 if ac_fn_c_try_compile
"$LINENO"; then :
7665 ac_cv_sys_large_files
=1; break
7667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 ac_cv_sys_large_files
=unknown
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7673 $as_echo "$ac_cv_sys_large_files" >&6; }
7674 case $ac_cv_sys_large_files in #(
7677 cat >>confdefs.h
<<_ACEOF
7678 #define _LARGE_FILES $ac_cv_sys_large_files
7695 START_FILES
='pre-crt0.o'
7698 ## Adding -lm confuses the dynamic linker, so omit it.
7700 START_FILES
='pre-crt0.o'
7703 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7704 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7706 gnu-linux | gnu-kfreebsd
)
7707 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7708 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7710 hpux10-20 | hpux11
)
7712 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7715 if test -f $CRT_DIR/crti.o
; then
7716 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7717 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7719 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7720 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7730 for file in x
$LIB_STANDARD $START_FILES; do
7732 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
7736 if test "x$crt_files" != x
; then
7738 ## If user specified a crt-dir, use that unconditionally.
7741 if test "X$CRT_DIR" = "X"; then
7743 CRT_DIR
=/usr
/lib
# default
7745 case "$canonical" in
7746 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7747 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7748 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7749 ## For anything else (eg /usr/lib32), it is up the user to specify
7750 ## the location (bug#5655).
7751 ## Test for crtn.o, not just the directory, because sometimes the
7752 ## directory exists but does not have the relevant files (bug#1287).
7753 ## FIXME better to test for binary compatibility somehow.
7754 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7757 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7761 hpux10-20
) CRT_DIR
=/lib
;;
7764 test "x${GCC}" = xyes
&& crt_gcc
=yes
7770 for file in $crt_files; do
7772 ## If we're using gcc, try to determine it automatically by asking
7773 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7774 ## system-dependent default from above.]
7775 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
7777 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
7780 CRT_DIR
=`$as_dirname -- "$crt_file" ||
7781 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782 X"$crt_file" : 'X\(//\)[^/]' \| \
7783 X"$crt_file" : 'X\(//\)$' \| \
7784 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7785 $as_echo X"$crt_file" |
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7809 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
7812 test "x$crt_missing" = x || \
7813 as_fn_error
"Required file(s) not found:$crt_missing
7814 Try using the --with-crt-dir option." "$LINENO" 5
7816 fi # crt_files != ""
7824 if test "${with_sound}" != "no"; then
7825 # Sound support for GNU/Linux and the free BSDs.
7826 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7828 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7830 eval as_val
=\$
$as_ac_Header
7831 if test "x$as_val" = x
""yes; then :
7832 cat >>confdefs.h
<<_ACEOF
7833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835 have_sound_header
=yes
7840 # Emulation library used on NetBSD.
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7842 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7843 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 ac_check_lib_save_LIBS
=$LIBS
7847 LIBS
="-lossaudio $LIBS"
7848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7851 /* Override any GCC internal prototype to avoid an error.
7852 Use char because int might match the return type of a GCC
7853 builtin and then its argument prototype would still apply. */
7861 return _oss_ioctl ();
7866 if ac_fn_c_try_link
"$LINENO"; then :
7867 ac_cv_lib_ossaudio__oss_ioctl
=yes
7869 ac_cv_lib_ossaudio__oss_ioctl
=no
7871 rm -f core conftest.err conftest.
$ac_objext \
7872 conftest
$ac_exeext conftest.
$ac_ext
7873 LIBS
=$ac_check_lib_save_LIBS
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7876 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7877 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7886 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7890 # Extract the first word of "pkg-config", so it can be a program name with args.
7891 set dummy pkg-config
; ac_word
=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7899 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7921 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7922 if test -n "$PKG_CONFIG"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7924 $as_echo "$PKG_CONFIG" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7932 if test "$PKG_CONFIG" = "no" ; then
7935 PKG_CONFIG_MIN_VERSION
=0.9.0
7936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7938 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7940 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942 $as_echo "yes" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7946 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7947 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7949 $as_echo "$ALSA_CFLAGS" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7952 $as_echo_n "checking ALSA_LIBS... " >&6; }
7953 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7955 $as_echo "$ALSA_LIBS" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7961 ## If we have a custom action on failure, don't print errors, but
7962 ## do set a variable so people can do so.
7963 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7970 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7971 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7975 if test $succeeded = yes; then
7981 if test $HAVE_ALSA = yes; then
7982 SAVE_CFLAGS
="$CFLAGS"
7983 SAVE_LDFLAGS
="$LDFLAGS"
7984 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7985 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <asoundlib.h>
7992 snd_lib_error_set_handler (0);
7997 if ac_fn_c_try_compile
"$LINENO"; then :
7998 emacs_alsa_normal
=yes
8000 emacs_alsa_normal
=no
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8003 if test "$emacs_alsa_normal" != yes; then
8004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <alsa/asoundlib.h>
8010 snd_lib_error_set_handler (0);
8015 if ac_fn_c_try_compile
"$LINENO"; then :
8016 emacs_alsa_subdir
=yes
8018 emacs_alsa_subdir
=no
8020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 if test "$emacs_alsa_subdir" != yes; then
8022 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8024 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8027 CFLAGS
="$SAVE_CFLAGS"
8028 LDFLAGS
="$SAVE_LDFLAGS"
8029 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8030 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8032 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8036 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8038 gnu-linux|freebsd|netbsd
)
8040 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8049 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8050 linux
/version.h sys
/systeminfo.h \
8051 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8052 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8053 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8055 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8057 eval as_val
=\$
$as_ac_Header
8058 if test "x$as_val" = x
""yes; then :
8059 cat >>confdefs.h
<<_ACEOF
8060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8069 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 #include <sys/personality.h>
8076 personality (PER_LINUX32)
8081 if ac_fn_c_try_compile
"$LINENO"; then :
8082 emacs_cv_personality_linux32
=yes
8084 emacs_cv_personality_linux32
=no
8086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8088 $as_echo "$emacs_cv_personality_linux32" >&6; }
8090 if test $emacs_cv_personality_linux32 = yes; then
8092 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8096 for ac_header
in term.h
8098 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8099 if test "x$ac_cv_header_term_h" = x
""yes; then :
8100 cat >>confdefs.h
<<_ACEOF
8101 #define HAVE_TERM_H 1
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8110 if test "${ac_cv_header_time+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/time.h>
8122 if ((struct tm *) 0)
8128 if ac_fn_c_try_compile
"$LINENO"; then :
8129 ac_cv_header_time
=yes
8131 ac_cv_header_time
=no
8133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8136 $as_echo "$ac_cv_header_time" >&6; }
8137 if test $ac_cv_header_time = yes; then
8139 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8143 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8144 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8150 cat >>confdefs.h
<<_ACEOF
8151 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8154 if test $ac_cv_have_decl_sys_siglist != yes; then
8155 # For Tru64, at least:
8156 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8157 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8163 cat >>confdefs.h
<<_ACEOF
8164 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8167 if test $ac_cv_have_decl___sys_siglist = yes; then
8169 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8174 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8175 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include <sys/wait.h>
8183 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 ac_cv_header_sys_wait_h
=yes
8202 ac_cv_header_sys_wait_h
=no
8204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8207 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8208 if test $ac_cv_header_sys_wait_h = yes; then
8210 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8216 $as_echo_n "checking for struct utimbuf... " >&6; }
8217 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #ifdef TIME_WITH_SYS_TIME
8223 #include <sys/time.h>
8226 #ifdef HAVE_SYS_TIME_H
8227 #include <sys/time.h>
8238 static struct utimbuf x; x.actime = x.modtime;
8243 if ac_fn_c_try_compile
"$LINENO"; then :
8244 emacs_cv_struct_utimbuf
=yes
8246 emacs_cv_struct_utimbuf
=no
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8251 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8252 if test $emacs_cv_struct_utimbuf = yes; then
8254 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8259 $as_echo_n "checking for speed_t... " >&6; }
8260 if test "${emacs_cv_speed_t+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <termios.h>
8274 if ac_fn_c_try_compile
"$LINENO"; then :
8275 emacs_cv_speed_t
=yes
8279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8282 $as_echo "$emacs_cv_speed_t" >&6; }
8283 if test $emacs_cv_speed_t = yes; then
8285 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8290 $as_echo_n "checking for struct timeval... " >&6; }
8291 if test "${emacs_cv_struct_timeval+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 #ifdef TIME_WITH_SYS_TIME
8297 #include <sys/time.h>
8300 #ifdef HAVE_SYS_TIME_H
8301 #include <sys/time.h>
8309 static struct timeval x; x.tv_sec = x.tv_usec;
8314 if ac_fn_c_try_compile
"$LINENO"; then :
8315 emacs_cv_struct_timeval
=yes
8317 emacs_cv_struct_timeval
=no
8319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8322 $as_echo "$emacs_cv_struct_timeval" >&6; }
8323 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8324 if test $emacs_cv_struct_timeval = yes; then
8326 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8331 $as_echo_n "checking for struct exception... " >&6; }
8332 if test "${emacs_cv_struct_exception+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8341 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8346 if ac_fn_c_try_compile
"$LINENO"; then :
8347 emacs_cv_struct_exception
=yes
8349 emacs_cv_struct_exception
=no
8351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8354 $as_echo "$emacs_cv_struct_exception" >&6; }
8355 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8356 if test $emacs_cv_struct_exception != yes; then
8358 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8362 for ac_header
in sys
/socket.h
8364 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8365 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8366 cat >>confdefs.h
<<_ACEOF
8367 #define HAVE_SYS_SOCKET_H 1
8374 for ac_header
in net
/if.h
8376 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8381 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8382 cat >>confdefs.h
<<_ACEOF
8383 #define HAVE_NET_IF_H 1
8390 for ac_header
in ifaddrs.h
8392 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8393 #if HAVE_SYS_SOCKET_H
8394 #include <sys/socket.h>
8397 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8398 cat >>confdefs.h
<<_ACEOF
8399 #define HAVE_IFADDRS_H 1
8406 for ac_header
in net
/if_dl.h
8408 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8409 #if HAVE_SYS_SOCKET_H
8410 #include <sys/socket.h>
8413 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8414 cat >>confdefs.h
<<_ACEOF
8415 #define HAVE_NET_IF_DL_H 1
8422 for ac_func
in getifaddrs freeifaddrs
8424 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8425 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8426 eval as_val
=\$
$as_ac_var
8427 if test "x$as_val" = x
""yes; then :
8428 cat >>confdefs.h
<<_ACEOF
8429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8438 if test "${ac_cv_struct_tm+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <sys/types.h>
8450 int *p = &tm.tm_sec;
8456 if ac_fn_c_try_compile
"$LINENO"; then :
8457 ac_cv_struct_tm
=time.h
8459 ac_cv_struct_tm
=sys
/time.h
8461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8464 $as_echo "$ac_cv_struct_tm" >&6; }
8465 if test $ac_cv_struct_tm = sys
/time.h
; then
8467 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8471 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8472 #include <$ac_cv_struct_tm>
8475 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8477 cat >>confdefs.h
<<_ACEOF
8478 #define HAVE_STRUCT_TM_TM_ZONE 1
8484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8486 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8489 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8491 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8497 cat >>confdefs.h
<<_ACEOF
8498 #define HAVE_DECL_TZNAME $ac_have_decl
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8502 $as_echo_n "checking for tzname... " >&6; }
8503 if test "${ac_cv_var_tzname+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8509 #if !HAVE_DECL_TZNAME
8510 extern char *tzname[];
8516 return tzname[0][0];
8521 if ac_fn_c_try_link
"$LINENO"; then :
8522 ac_cv_var_tzname
=yes
8526 rm -f core conftest.err conftest.
$ac_objext \
8527 conftest
$ac_exeext conftest.
$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8530 $as_echo "$ac_cv_var_tzname" >&6; }
8531 if test $ac_cv_var_tzname = yes; then
8533 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8538 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8540 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8542 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8546 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8554 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8556 cat >>confdefs.h
<<_ACEOF
8557 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8562 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8563 #if HAVE_SYS_SOCKET_H
8564 #include <sys/socket.h>
8570 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8572 cat >>confdefs.h
<<_ACEOF
8573 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8578 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8579 #if HAVE_SYS_SOCKET_H
8580 #include <sys/socket.h>
8586 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8588 cat >>confdefs.h
<<_ACEOF
8589 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8594 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8595 #if HAVE_SYS_SOCKET_H
8596 #include <sys/socket.h>
8602 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8604 cat >>confdefs.h
<<_ACEOF
8605 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8610 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8611 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h>
8618 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8620 cat >>confdefs.h
<<_ACEOF
8621 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8626 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8627 #if HAVE_SYS_SOCKET_H
8628 #include <sys/socket.h>
8634 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8636 cat >>confdefs.h
<<_ACEOF
8637 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8646 $as_echo_n "checking for function prototypes... " >&6; }
8647 if test "$ac_cv_prog_cc_c89" != no
; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8649 $as_echo "yes" >&6; }
8651 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8654 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8662 $as_echo_n "checking for working volatile... " >&6; }
8663 if test "${ac_cv_c_volatile+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8674 int * volatile y = (int *) 0;
8680 if ac_fn_c_try_compile
"$LINENO"; then :
8681 ac_cv_c_volatile
=yes
8685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8688 $as_echo "$ac_cv_c_volatile" >&6; }
8689 if test $ac_cv_c_volatile = no
; then
8691 $as_echo "#define volatile /**/" >>confdefs.h
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8696 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8697 if test "${ac_cv_c_const+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8706 /* FIXME: Include the comments suggested by Paul. */
8708 /* Ultrix mips cc rejects this. */
8709 typedef int charset[2];
8711 /* SunOS 4.1.1 cc rejects this. */
8712 char const *const *pcpcc;
8714 /* NEC SVR4.0.2 mips cc rejects this. */
8715 struct point {int x, y;};
8716 static struct point const zero = {0,0};
8717 /* AIX XL C 1.02.0.0 rejects this.
8718 It does not let you subtract one const X* pointer from another in
8719 an arm of an if-expression whose if-part is not a constant
8721 const char *g = "string";
8722 pcpcc = &g + (g ? g-g : 0);
8723 /* HPUX 7.0 cc rejects these. */
8725 ppc = (char**) pcpcc;
8726 pcpcc = (char const *const *) ppc;
8727 { /* SCO 3.2v4 cc rejects this. */
8729 char const *s = 0 ? (char *) 0 : (char const *) 0;
8734 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8736 const int *foo = &x[0];
8739 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8740 typedef const int *iptr;
8744 { /* AIX XL C 1.02.0.0 rejects this saying
8745 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8746 struct s { int j; const int *ap[3]; };
8747 struct s *b; b->j = 5;
8749 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8753 return !cs[0] && !zero.x;
8760 if ac_fn_c_try_compile
"$LINENO"; then :
8765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8768 $as_echo "$ac_cv_c_const" >&6; }
8769 if test $ac_cv_c_const = no
; then
8771 $as_echo "#define const /**/" >>confdefs.h
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8776 $as_echo_n "checking for void * support... " >&6; }
8777 if test "${emacs_cv_void_star+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8791 if ac_fn_c_try_compile
"$LINENO"; then :
8792 emacs_cv_void_star
=yes
8794 emacs_cv_void_star
=no
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8799 $as_echo "$emacs_cv_void_star" >&6; }
8800 if test $emacs_cv_void_star = yes; then
8801 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8804 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8809 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8810 if test "${ac_cv_c_bigendian+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8813 ac_cv_c_bigendian
=unknown
8814 # See if we're dealing with a universal compiler.
8815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 #ifndef __APPLE_CC__
8818 not a universal capable compiler
8823 if ac_fn_c_try_compile
"$LINENO"; then :
8825 # Check for potential -arch flags. It is not universal unless
8826 # there are at least two -arch flags with different values.
8829 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8830 if test -n "$ac_prev"; then
8832 i?
86 | x86_64 | ppc | ppc64
)
8833 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8836 ac_cv_c_bigendian
=universal
8842 elif test "x$ac_word" = "x-arch"; then
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8848 if test $ac_cv_c_bigendian = unknown
; then
8849 # See if sys/param.h defines the BYTE_ORDER macro.
8850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #include <sys/types.h>
8853 #include <sys/param.h>
8858 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8859 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8868 if ac_fn_c_try_compile
"$LINENO"; then :
8869 # It does; now see whether it defined to BIG_ENDIAN or not.
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <sys/types.h>
8873 #include <sys/param.h>
8878 #if BYTE_ORDER != BIG_ENDIAN
8886 if ac_fn_c_try_compile
"$LINENO"; then :
8887 ac_cv_c_bigendian
=yes
8889 ac_cv_c_bigendian
=no
8891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8895 if test $ac_cv_c_bigendian = unknown
; then
8896 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8904 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8912 if ac_fn_c_try_compile
"$LINENO"; then :
8913 # It does; now see whether it defined to _BIG_ENDIAN or not.
8914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8929 if ac_fn_c_try_compile
"$LINENO"; then :
8930 ac_cv_c_bigendian
=yes
8932 ac_cv_c_bigendian
=no
8934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 if test $ac_cv_c_bigendian = unknown
; then
8939 # Compile a test program.
8940 if test "$cross_compiling" = yes; then :
8941 # Try to guess by grepping values from an object file.
8942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 short int ascii_mm[] =
8945 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8946 short int ascii_ii[] =
8947 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8948 int use_ascii (int i) {
8949 return ascii_mm[i] + ascii_ii[i];
8951 short int ebcdic_ii[] =
8952 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8953 short int ebcdic_mm[] =
8954 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8955 int use_ebcdic (int i) {
8956 return ebcdic_mm[i] + ebcdic_ii[i];
8963 return use_ascii (foo) == use_ebcdic (foo);
8968 if ac_fn_c_try_compile
"$LINENO"; then :
8969 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8970 ac_cv_c_bigendian
=yes
8972 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8973 if test "$ac_cv_c_bigendian" = unknown
; then
8974 ac_cv_c_bigendian
=no
8976 # finding both strings is unlikely to happen, but who knows?
8977 ac_cv_c_bigendian
=unknown
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 $ac_includes_default
8990 /* Are we little or big endian? From Harbison&Steele. */
8994 char c[sizeof (long int)];
8997 return u.c[sizeof (long int) - 1] == 1;
9003 if ac_fn_c_try_run
"$LINENO"; then :
9004 ac_cv_c_bigendian
=no
9006 ac_cv_c_bigendian
=yes
9008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9015 $as_echo "$ac_cv_c_bigendian" >&6; }
9016 case $ac_cv_c_bigendian in #(
9018 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9024 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9028 as_fn_error
"unknown endianness
9029 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9034 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9035 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 char __attribute__ ((__aligned__ (1 << 3))) c;
9049 if ac_fn_c_try_compile
"$LINENO"; then :
9050 emacs_cv_attribute_aligned
=yes
9052 emacs_cv_attribute_aligned
=no
9054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9057 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9058 if test $emacs_cv_attribute_aligned = yes; then
9060 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9065 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9067 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9068 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9069 $as_echo_n "(cached) " >&6
9071 cat >conftest.
make <<\_ACEOF
9074 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9076 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9079 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9081 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9085 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9087 $as_echo "yes" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 SET_MAKE
="MAKE=${MAKE-make}"
9099 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9101 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9103 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9104 if test "x$testval" != x
; then
9107 ac_enable_autodepend
=no
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9110 $as_echo "$HAVE_GNU_MAKE" >&6; }
9111 if test $HAVE_GNU_MAKE = yes; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9113 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9114 SAVE_CFLAGS
="$CFLAGS"
9115 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9127 if ac_fn_c_try_compile
"$LINENO"; then :
9130 ac_enable_autodepend
=no
9132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9133 CFLAGS
="$SAVE_CFLAGS"
9134 test -f deps.d || ac_enable_autodepend
=no
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9137 $as_echo "$ac_enable_autodepend" >&6; }
9139 if test $ac_enable_autodepend = yes; then
9140 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9141 ## In parallel builds, another make might create depdir between
9142 ## the first test and mkdir, so stick another test on the end.
9143 ## Or use install-sh -d? mkdir -p is not portable.
9144 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9145 deps_frag
=autodeps.mk
9148 deps_frag
=$srcdir/src
/$deps_frag
9154 lisp_frag
=$srcdir/src
/lisp.mk
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9159 $as_echo_n "checking for long file names... " >&6; }
9160 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9163 ac_cv_sys_long_file_names
=yes
9164 # Test for long file names in all the places we know might matter:
9165 # . the current directory, where building will happen
9166 # $prefix/lib where we will be installing things
9167 # $exec_prefix/lib likewise
9168 # $TMPDIR if set, where it might want to write temporary files
9169 # /tmp where it might want to write temporary files
9172 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9173 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9174 # in the usual case where exec_prefix is '${prefix}'.
9176 . |
/* | ?
:[\\/]*) ;; #(
9179 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9180 ac_xdir
=$ac_dir/cf$$
9181 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9182 ac_tf1
=$ac_xdir/conftest9012345
9183 ac_tf2
=$ac_xdir/conftest9012346
9184 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9185 ac_cv_sys_long_file_names
=no
9186 rm -f -r "$ac_xdir" 2>/dev
/null
9187 test $ac_cv_sys_long_file_names = no
&& break
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9191 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9192 if test $ac_cv_sys_long_file_names = yes; then
9194 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9199 #### Choose a window system.
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9202 $as_echo_n "checking for X... " >&6; }
9205 # Check whether --with-x was given.
9206 if test "${with_x+set}" = set; then :
9210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9211 if test "x$with_x" = xno
; then
9212 # The user explicitly disabled X.
9215 case $x_includes,$x_libraries in #(
9216 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9217 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9220 # One or both of the vars are not set, and there is no cached value.
9221 ac_x_includes
=no ac_x_libraries
=no
9222 rm -f -r conftest.dir
9223 if mkdir conftest.dir
; then
9225 cat >Imakefile
<<'_ACEOF'
9227 @echo incroot='${INCROOT}'
9229 @echo usrlibdir='${USRLIBDIR}'
9231 @echo libdir='${LIBDIR}'
9233 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9235 for ac_var
in incroot usrlibdir libdir
; do
9236 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9239 for ac_extension
in a so sl dylib la dll
; do
9240 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9241 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9242 ac_im_usrlibdir
=$ac_im_libdir; break
9245 # Screen out bogus values from the imake configuration. They are
9246 # bogus both because they are the default anyway, and because
9247 # using them would break gcc on systems where it needs fixed includes.
9248 case $ac_im_incroot in
9249 /usr
/include
) ac_x_includes
= ;;
9250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9252 case $ac_im_usrlibdir in
9253 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9258 rm -f -r conftest.dir
9261 # Standard set of common directories for X headers.
9262 # Check X11 before X11Rn because it is often a symlink to the current release.
9276 /usr/local/X11/include
9277 /usr/local/X11R7/include
9278 /usr/local/X11R6/include
9279 /usr/local/X11R5/include
9280 /usr/local/X11R4/include
9282 /usr/local/include/X11
9283 /usr/local/include/X11R7
9284 /usr/local/include/X11R6
9285 /usr/local/include/X11R5
9286 /usr/local/include/X11R4
9290 /usr/XFree86/include/X11
9294 /usr/unsupported/include
9296 /usr/local/x11r5/include
9297 /usr/lpp/Xamples/include
9299 /usr/openwin/include
9300 /usr/openwin/share/include'
9302 if test "$ac_x_includes" = no
; then
9303 # Guess where to find include files, by looking for Xlib.h.
9304 # First, try using that file with no special directory specified.
9305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 #include <X11/Xlib.h>
9309 if ac_fn_c_try_cpp
"$LINENO"; then :
9310 # We can compile using X headers with no special include directory.
9313 for ac_dir
in $ac_x_header_dirs; do
9314 if test -r "$ac_dir/X11/Xlib.h"; then
9315 ac_x_includes
=$ac_dir
9320 rm -f conftest.err conftest.
$ac_ext
9321 fi # $ac_x_includes = no
9323 if test "$ac_x_libraries" = no
; then
9324 # Check for the libraries.
9325 # See if we find them without any special options.
9326 # Don't add to $LIBS permanently.
9329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 #include <X11/Xlib.h>
9340 if ac_fn_c_try_link
"$LINENO"; then :
9342 # We can link X programs with no special library path.
9346 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9348 # Don't even attempt the hair of trying to link an X program!
9349 for ac_extension
in a so sl dylib la dll
; do
9350 if test -r "$ac_dir/libX11.$ac_extension"; then
9351 ac_x_libraries
=$ac_dir
9357 rm -f core conftest.err conftest.
$ac_objext \
9358 conftest
$ac_exeext conftest.
$ac_ext
9359 fi # $ac_x_libraries = no
9361 case $ac_x_includes,$ac_x_libraries in #(
9363 # Didn't find X, or a directory has "'" in its name.
9364 ac_cv_have_x
="have_x=no";; #(
9366 # Record where we found X for the cache.
9367 ac_cv_have_x
="have_x=yes\
9368 ac_x_includes='$ac_x_includes'\
9369 ac_x_libraries='$ac_x_libraries'"
9375 eval "$ac_cv_have_x"
9378 if test "$have_x" != yes; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9380 $as_echo "$have_x" >&6; }
9383 # If each of the values was on the command line, it overrides each guess.
9384 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9385 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9386 # Update the cache value to reflect the command line values.
9387 ac_cv_have_x
="have_x=yes\
9388 ac_x_includes='$x_includes'\
9389 ac_x_libraries='$x_libraries'"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9391 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9394 if test "$no_x" = yes; then
9400 ## Workaround for bug in autoconf <= 2.62.
9401 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9402 ## No need to do anything special for these standard directories.
9403 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9405 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9409 LD_SWITCH_X_SITE_AUX
=
9410 LD_SWITCH_X_SITE_AUX_RPATH
=
9411 if test "${x_libraries}" != NONE
; then
9412 if test -n "${x_libraries}"; then
9413 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9414 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9415 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9417 x_default_search_path
=""
9418 x_search_path
=${x_libraries}
9419 if test -z "${x_search_path}"; then
9420 x_search_path
=/usr
/lib
9422 for x_library
in `echo ${x_search_path}: | \
9423 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9425 ${x_library}/X11/%L/%T/%N%C%S:\
9426 ${x_library}/X11/%l/%T/%N%C%S:\
9427 ${x_library}/X11/%T/%N%C%S:\
9428 ${x_library}/X11/%L/%T/%N%S:\
9429 ${x_library}/X11/%l/%T/%N%S:\
9430 ${x_library}/X11/%T/%N%S"
9431 if test x
"${x_default_search_path}" = x
; then
9432 x_default_search_path
=${x_search_path}
9434 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9441 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9442 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9445 if test x
"${x_includes}" = x
; then
9446 bitmapdir
=/usr
/include
/X11
/bitmaps
9448 # accumulate include directories that have X11 bitmap subdirectories
9450 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9451 if test -d "${bmd}/X11/bitmaps"; then
9452 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9454 if test -d "${bmd}/bitmaps"; then
9455 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9458 if test ${bmd_acc} != "dummyval"; then
9459 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9466 tmp_CPPFLAGS
="$CPPFLAGS"
9467 tmp_CFLAGS
="$CFLAGS"
9468 CPPFLAGS
="$CPPFLAGS -x objective-c"
9469 CFLAGS
="$CFLAGS -x objective-c"
9470 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9471 if test "${with_ns}" != no
; then
9472 if test "${opsys}" = darwin
; then
9474 ns_appdir
=`pwd`/nextstep
/Emacs.app
9475 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9476 ns_appresdir
=${ns_appdir}/Contents
/Resources
9477 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9478 elif test -f $GNUSTEP_CONFIG_FILE; then
9480 ns_appdir
=`pwd`/nextstep
/Emacs.app
9481 ns_appbindir
=${ns_appdir}/
9482 ns_appresdir
=${ns_appdir}/Resources
9483 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9484 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9485 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9486 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9487 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9488 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9489 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9490 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9491 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9492 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9493 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9494 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9499 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9500 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9503 as_fn_error
"\`--with-ns' was specified, but the include
9504 files are missing or cannot be compiled." "$LINENO" 5
9508 NS_HAVE_NSINTEGER
=yes
9509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <Foundation/NSObjCRuntime.h>
9520 if ac_fn_c_try_compile
"$LINENO"; then :
9521 ns_have_nsinteger
=yes
9523 ns_have_nsinteger
=no
9525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9526 if test $ns_have_nsinteger = no
; then
9527 NS_HAVE_NSINTEGER
=no
9535 if test "${HAVE_NS}" = yes; then
9536 window_system
=nextstep
9538 # set up packaging dirs
9539 exec_prefix
=${ns_appbindir}
9540 libexecdir
=${ns_appbindir}/libexec
9541 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9542 prefix
=${ns_appresdir}
9544 ns_frag
=$srcdir/src
/ns.mk
9545 NS_OBJ
="fontset.o fringe.o image.o"
9546 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9548 CFLAGS
="$tmp_CFLAGS"
9549 CPPFLAGS
="$tmp_CPPFLAGS"
9555 case "${window_system}" in
9559 case "${with_x_toolkit}" in
9560 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9561 motif
) USE_X_TOOLKIT
=MOTIF
;;
9563 USE_X_TOOLKIT
=none
;;
9564 gtk3
) with_gtk3
=yes
9565 USE_X_TOOLKIT
=none
;;
9566 no
) USE_X_TOOLKIT
=none
;;
9567 * ) USE_X_TOOLKIT
=maybe
;;
9577 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9578 # Extract the first word of "X", so it can be a program name with args.
9579 set dummy X
; ac_word
=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9585 if test -n "$HAVE_XSERVER"; then
9586 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9592 test -z "$as_dir" && as_dir
=.
9593 for ac_exec_ext
in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_HAVE_XSERVER
="true"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9606 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9607 if test -n "$HAVE_XSERVER"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9609 $as_echo "$HAVE_XSERVER" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9616 if test "$HAVE_XSERVER" = true ||
9617 test -n "$DISPLAY" ||
9618 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9619 as_fn_error
"You seem to be running X, but no X development libraries
9620 were found. You should install the relevant development files for X
9621 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9622 sure you have development files for image handling, i.e.
9623 tiff, gif, jpeg, png and xpm.
9624 If you are sure you want Emacs compiled without X window support, pass
9626 to configure." "$LINENO" 5
9630 ### If we're using X11, we should use the X menu package.
9633 yes ) HAVE_MENUS
=yes ;;
9636 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9637 # Assume not, until told otherwise.
9640 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9641 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9647 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9648 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9655 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661 extern void (* __after_morecore_hook)();
9665 __after_morecore_hook = 0
9670 if ac_fn_c_try_link
"$LINENO"; then :
9671 emacs_cv_var___after_morecore_hook
=yes
9673 emacs_cv_var___after_morecore_hook
=no
9675 rm -f core conftest.err conftest.
$ac_objext \
9676 conftest
$ac_exeext conftest.
$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9679 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9680 if test $emacs_cv_var___after_morecore_hook = no
; then
9687 ## darwin ld insists on the use of malloc routines in the System framework.
9688 darwin|sol2-10
) system_malloc
=yes ;;
9691 if test "${system_malloc}" = "yes"; then
9693 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9697 (The GNU allocators don't work with this system configuration.)"
9701 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9702 VMLIMIT_OBJ
=vm-limit.o
9707 if test "$doug_lea_malloc" = "yes" ; then
9708 if test "$GNU_MALLOC" = yes ; then
9710 (Using Doug Lea's new malloc from the GNU C Library.)"
9713 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9716 ## Use mmap directly for allocating larger buffers.
9717 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9718 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9719 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9721 gnu
*) REL_ALLOC
=no
;;
9725 if test x
"${REL_ALLOC}" = x
; then
9726 REL_ALLOC
=${GNU_MALLOC}
9729 use_mmap_for_buffers
=no
9731 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9737 for ac_header
in $ac_header_list
9739 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9742 eval as_val
=\$
$as_ac_Header
9743 if test "x$as_val" = x
""yes; then :
9744 cat >>confdefs.h
<<_ACEOF
9745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9759 for ac_func
in getpagesize
9761 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9762 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9763 cat >>confdefs.h
<<_ACEOF
9764 #define HAVE_GETPAGESIZE 1
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9771 $as_echo_n "checking for working mmap... " >&6; }
9772 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9775 if test "$cross_compiling" = yes; then :
9776 ac_cv_func_mmap_fixed_mapped
=no
9778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 $ac_includes_default
9781 /* malloc might have been renamed as rpl_malloc. */
9784 /* Thanks to Mike Haertel and Jim Avera for this test.
9785 Here is a matrix of mmap possibilities:
9786 mmap private not fixed
9787 mmap private fixed at somewhere currently unmapped
9788 mmap private fixed at somewhere already mapped
9789 mmap shared not fixed
9790 mmap shared fixed at somewhere currently unmapped
9791 mmap shared fixed at somewhere already mapped
9792 For private mappings, we should verify that changes cannot be read()
9793 back from the file, nor mmap's back from the file at a different
9794 address. (There have been systems where private was not correctly
9795 implemented like the infamous i386 svr4.0, and systems where the
9796 VM page cache was not coherent with the file system buffer cache
9797 like early versions of FreeBSD and possibly contemporary NetBSD.)
9798 For shared mappings, we should conversely verify that changes get
9799 propagated back to all the places they're supposed to be.
9801 Grep wants private fixed already mapped.
9802 The main things grep needs to know about mmap are:
9803 * does it exist and is it safe to write into the mmap'd area
9804 * how to use it (BSD variants) */
9807 #include <sys/mman.h>
9809 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9813 /* This mess was copied from the GNU getpagesize.h. */
9814 #ifndef HAVE_GETPAGESIZE
9815 # ifdef _SC_PAGESIZE
9816 # define getpagesize() sysconf(_SC_PAGESIZE)
9817 # else /* no _SC_PAGESIZE */
9818 # ifdef HAVE_SYS_PARAM_H
9819 # include <sys/param.h>
9820 # ifdef EXEC_PAGESIZE
9821 # define getpagesize() EXEC_PAGESIZE
9822 # else /* no EXEC_PAGESIZE */
9824 # define getpagesize() NBPG * CLSIZE
9827 # endif /* no CLSIZE */
9828 # else /* no NBPG */
9830 # define getpagesize() NBPC
9831 # else /* no NBPC */
9833 # define getpagesize() PAGESIZE
9834 # endif /* PAGESIZE */
9835 # endif /* no NBPC */
9836 # endif /* no NBPG */
9837 # endif /* no EXEC_PAGESIZE */
9838 # else /* no HAVE_SYS_PARAM_H */
9839 # define getpagesize() 8192 /* punt totally */
9840 # endif /* no HAVE_SYS_PARAM_H */
9841 # endif /* no _SC_PAGESIZE */
9843 #endif /* no HAVE_GETPAGESIZE */
9848 char *data, *data2, *data3;
9853 pagesize = getpagesize ();
9855 /* First, make a file with some known garbage in it. */
9856 data = (char *) malloc (pagesize);
9859 for (i = 0; i < pagesize; ++i)
9860 *(data + i) = rand ();
9862 fd = creat ("conftest.mmap", 0600);
9865 if (write (fd, data, pagesize) != pagesize)
9869 /* Next, check that the tail of a page is zero-filled. File must have
9870 non-zero length, otherwise we risk SIGBUS for entire page. */
9871 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9875 if (write (fd2, cdata2, 1) != 1)
9877 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9878 if (data2 == MAP_FAILED)
9880 for (i = 0; i < pagesize; ++i)
9884 if (munmap (data2, pagesize))
9887 /* Next, try to mmap the file at a fixed address which already has
9888 something else allocated at it. If we can, also make sure that
9889 we see the same garbage. */
9890 fd = open ("conftest.mmap", O_RDWR);
9893 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9894 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9896 for (i = 0; i < pagesize; ++i)
9897 if (*(data + i) != *(data2 + i))
9900 /* Finally, make sure that changes to the mapped area do not
9901 percolate back to the file as seen by read(). (This is a bug on
9902 some variants of i386 svr4.0.) */
9903 for (i = 0; i < pagesize; ++i)
9904 *(data2 + i) = *(data2 + i) + 1;
9905 data3 = (char *) malloc (pagesize);
9908 if (read (fd, data3, pagesize) != pagesize)
9910 for (i = 0; i < pagesize; ++i)
9911 if (*(data + i) != *(data3 + i))
9917 if ac_fn_c_try_run
"$LINENO"; then :
9918 ac_cv_func_mmap_fixed_mapped
=yes
9920 ac_cv_func_mmap_fixed_mapped
=no
9922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9928 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9929 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9931 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9934 rm -f conftest.mmap conftest.txt
9936 if test $use_mmap_for_buffers = yes; then
9938 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9943 LIBS
="$LIBS_SYSTEM $LIBS"
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9946 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9948 $as_echo_n "(cached) " >&6
9950 ac_check_lib_save_LIBS
=$LIBS
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9965 return dnet_ntoa ();
9970 if ac_fn_c_try_link
"$LINENO"; then :
9971 ac_cv_lib_dnet_dnet_ntoa
=yes
9973 ac_cv_lib_dnet_dnet_ntoa
=no
9975 rm -f core conftest.err conftest.
$ac_objext \
9976 conftest
$ac_exeext conftest.
$ac_ext
9977 LIBS
=$ac_check_lib_save_LIBS
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9980 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9981 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9982 cat >>confdefs.h
<<_ACEOF
9983 #define HAVE_LIBDNET 1
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9992 $as_echo_n "checking for main in -lXbsd... " >&6; }
9993 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9996 ac_check_lib_save_LIBS
=$LIBS
9998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10010 if ac_fn_c_try_link
"$LINENO"; then :
10011 ac_cv_lib_Xbsd_main
=yes
10013 ac_cv_lib_Xbsd_main
=no
10015 rm -f core conftest.err conftest.
$ac_objext \
10016 conftest
$ac_exeext conftest.
$ac_ext
10017 LIBS
=$ac_check_lib_save_LIBS
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10020 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10021 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10022 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10027 for ac_header
in pthread.h
10029 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10030 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10031 cat >>confdefs.h
<<_ACEOF
10032 #define HAVE_PTHREAD_H 1
10039 if test "$ac_cv_header_pthread_h"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10041 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10042 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10045 ac_check_lib_save_LIBS
=$LIBS
10046 LIBS
="-lpthread $LIBS"
10047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10050 /* Override any GCC internal prototype to avoid an error.
10051 Use char because int might match the return type of a GCC
10052 builtin and then its argument prototype would still apply. */
10056 char pthread_self ();
10060 return pthread_self ();
10065 if ac_fn_c_try_link
"$LINENO"; then :
10066 ac_cv_lib_pthread_pthread_self
=yes
10068 ac_cv_lib_pthread_pthread_self
=no
10070 rm -f core conftest.err conftest.
$ac_objext \
10071 conftest
$ac_exeext conftest.
$ac_ext
10072 LIBS
=$ac_check_lib_save_LIBS
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10075 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10076 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10081 if test "$HAVE_PTHREAD" = yes; then
10082 case "${canonical}" in
10084 *) LIB_PTHREAD
="-lpthread" ;;
10087 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10093 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10094 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10097 ac_check_lib_save_LIBS
=$LIBS
10098 LIBS
="-lpthreads $LIBS"
10099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10112 return cma_open ();
10117 if ac_fn_c_try_link
"$LINENO"; then :
10118 ac_cv_lib_pthreads_cma_open
=yes
10120 ac_cv_lib_pthreads_cma_open
=no
10122 rm -f core conftest.err conftest.
$ac_objext \
10123 conftest
$ac_exeext conftest.
$ac_ext
10124 LIBS
=$ac_check_lib_save_LIBS
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10127 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10128 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10129 cat >>confdefs.h
<<_ACEOF
10130 #define HAVE_LIBPTHREADS 1
10133 LIBS
="-lpthreads $LIBS"
10138 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10139 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10140 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10141 ## added to LIBS in configure would never contain the pthreads part,
10142 ## but the value used in Makefiles might. FIXME?
10144 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10145 ## be harmless on older versions of X where it happens to exist.
10146 test "$opsys" = "aix4-2" && \
10147 test $ac_cv_lib_pthreads_cma_open = yes && \
10148 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10154 $as_echo_n "checking for -bbigtoc option... " >&6; }
10155 if test "${gdb_cv_bigtoc+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10160 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10161 *) gdb_cv_bigtoc
=-bbigtoc ;;
10164 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10176 if ac_fn_c_try_link
"$LINENO"; then :
10181 rm -f core conftest.err conftest.
$ac_objext \
10182 conftest
$ac_exeext conftest.
$ac_ext
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10186 $as_echo "$gdb_cv_bigtoc" >&6; }
10190 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10191 # used for the tests that follow. We set them back to REAL_CFLAGS and
10192 # REAL_CPPFLAGS later on.
10194 REAL_CFLAGS
="$CFLAGS"
10195 REAL_CPPFLAGS
="$CPPFLAGS"
10197 if test "${HAVE_X11}" = "yes"; then
10198 DEFS
="$C_SWITCH_X_SITE $DEFS"
10199 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10201 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10202 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10204 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10205 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10206 # but it's more convenient here to set LD_RUN_PATH
10207 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10208 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10209 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10213 if test "${opsys}" = "gnu-linux"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10215 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10222 XOpenDisplay ("foo");
10227 if ac_fn_c_try_link
"$LINENO"; then :
10228 xlinux_first_failure
=no
10230 xlinux_first_failure
=yes
10232 rm -f core conftest.err conftest.
$ac_objext \
10233 conftest
$ac_exeext conftest.
$ac_ext
10234 if test "${xlinux_first_failure}" = "yes"; then
10235 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10236 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10237 OLD_CPPFLAGS
="$CPPFLAGS"
10239 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10240 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10241 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10242 LIBS
="$LIBS -b i486-linuxaout"
10243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10249 XOpenDisplay ("foo");
10254 if ac_fn_c_try_link
"$LINENO"; then :
10255 xlinux_second_failure
=no
10257 xlinux_second_failure
=yes
10259 rm -f core conftest.err conftest.
$ac_objext \
10260 conftest
$ac_exeext conftest.
$ac_ext
10261 if test "${xlinux_second_failure}" = "yes"; then
10262 # If we get the same failure with -b, there is no use adding -b.
10263 # So take it out. This plays safe.
10264 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10265 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10266 CPPFLAGS
="$OLD_CPPFLAGS"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10272 $as_echo "yes" >&6; }
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10280 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10281 # header files included from there.
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10283 $as_echo_n "checking for Xkb... " >&6; }
10284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 #include <X11/Xlib.h>
10287 #include <X11/XKBlib.h>
10291 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10296 if ac_fn_c_try_link
"$LINENO"; then :
10301 rm -f core conftest.err conftest.
$ac_objext \
10302 conftest
$ac_exeext conftest.
$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10304 $as_echo "$emacs_xkb" >&6; }
10305 if test $emacs_xkb = yes; then
10307 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10311 for ac_func
in XrmSetDatabase XScreenResourceString \
10312 XScreenNumberOfScreen XSetWMProtocols
10314 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10315 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10316 eval as_val
=\$
$as_ac_var
10317 if test "x$as_val" = x
""yes; then :
10318 cat >>confdefs.h
<<_ACEOF
10319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10327 if test "${window_system}" = "x11"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10329 $as_echo_n "checking X11 version 6... " >&6; }
10330 if test "${emacs_cv_x11_version_6+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10335 #include <X11/Xlib.h>
10339 #if XlibSpecificationRelease < 6
10347 if ac_fn_c_try_link
"$LINENO"; then :
10348 emacs_cv_x11_version_6
=yes
10350 emacs_cv_x11_version_6
=no
10352 rm -f core conftest.err conftest.
$ac_objext \
10353 conftest
$ac_exeext conftest.
$ac_ext
10356 if test $emacs_cv_x11_version_6 = yes; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10358 $as_echo "6 or newer" >&6; }
10360 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10363 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10365 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10370 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10376 $as_echo "before 6" >&6; }
10381 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10383 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10384 if test "${with_rsvg}" != "no"; then
10385 RSVG_REQUIRED
=2.11.0
10386 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10391 # Extract the first word of "pkg-config", so it can be a program name with args.
10392 set dummy pkg-config
; ac_word
=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 case $PKG_CONFIG in
10400 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10404 for as_dir
in $PATH
10407 test -z "$as_dir" && as_dir
=.
10408 for ac_exec_ext
in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10422 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10423 if test -n "$PKG_CONFIG"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10425 $as_echo "$PKG_CONFIG" >&6; }
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10433 if test "$PKG_CONFIG" = "no" ; then
10436 PKG_CONFIG_MIN_VERSION
=0.9.0
10437 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10439 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10441 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10443 $as_echo "yes" >&6; }
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10447 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10448 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10450 $as_echo "$RSVG_CFLAGS" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10453 $as_echo_n "checking RSVG_LIBS... " >&6; }
10454 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10456 $as_echo "$RSVG_LIBS" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10462 ## If we have a custom action on failure, don't print errors, but
10463 ## do set a variable so people can do so.
10464 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10471 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10472 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10476 if test $succeeded = yes; then
10485 if test $HAVE_RSVG = yes; then
10487 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10489 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10490 LIBS
="$RSVG_LIBS $LIBS"
10495 HAVE_IMAGEMAGICK
=no
10496 if test "${HAVE_X11}" = "yes"; then
10497 if test "${with_imagemagick}" != "no"; then
10498 ## 6.2.8 is the earliest version known to work, but earlier versions
10499 ## might work - let us know if you find one.
10500 ## 6.0.7 does not work. See bug#7955.
10501 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10505 # Extract the first word of "pkg-config", so it can be a program name with args.
10506 set dummy pkg-config
; ac_word
=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10512 case $PKG_CONFIG in
10514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10518 for as_dir
in $PATH
10521 test -z "$as_dir" && as_dir
=.
10522 for ac_exec_ext
in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10537 if test -n "$PKG_CONFIG"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10539 $as_echo "$PKG_CONFIG" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10547 if test "$PKG_CONFIG" = "no" ; then
10550 PKG_CONFIG_MIN_VERSION
=0.9.0
10551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10553 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10555 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10557 $as_echo "yes" >&6; }
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10561 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10562 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10564 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10567 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10568 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10570 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10574 IMAGEMAGICK_CFLAGS
=""
10575 IMAGEMAGICK_LIBS
=""
10576 ## If we have a custom action on failure, don't print errors, but
10577 ## do set a variable so people can do so.
10578 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10590 if test $succeeded = yes; then
10591 HAVE_IMAGEMAGICK
=yes
10599 if test $HAVE_IMAGEMAGICK = yes; then
10601 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10603 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10604 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10605 for ac_func
in MagickExportImagePixels
10607 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10608 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10609 cat >>confdefs.h
<<_ACEOF
10610 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10623 if test "${with_gtk3}" = "yes"; then
10626 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10631 # Extract the first word of "pkg-config", so it can be a program name with args.
10632 set dummy pkg-config
; ac_word
=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10638 case $PKG_CONFIG in
10640 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10644 for as_dir
in $PATH
10647 test -z "$as_dir" && as_dir
=.
10648 for ac_exec_ext
in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10662 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10663 if test -n "$PKG_CONFIG"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10665 $as_echo "$PKG_CONFIG" >&6; }
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10673 if test "$PKG_CONFIG" = "no" ; then
10676 PKG_CONFIG_MIN_VERSION
=0.9.0
10677 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10679 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10681 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10683 $as_echo "yes" >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10687 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10688 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10690 $as_echo "$GTK_CFLAGS" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10693 $as_echo_n "checking GTK_LIBS... " >&6; }
10694 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10696 $as_echo "$GTK_LIBS" >&6; }
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10702 ## If we have a custom action on failure, don't print errors, but
10703 ## do set a variable so people can do so.
10704 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10711 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10712 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10716 if test $succeeded = yes; then
10722 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10723 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10726 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10728 GTK_OBJ
=emacsgtkfixed.o
10731 if test "$pkg_check_gtk" != "yes"; then
10733 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10736 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10741 # Extract the first word of "pkg-config", so it can be a program name with args.
10742 set dummy pkg-config
; ac_word
=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 case $PKG_CONFIG in
10750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10754 for as_dir
in $PATH
10757 test -z "$as_dir" && as_dir
=.
10758 for ac_exec_ext
in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10773 if test -n "$PKG_CONFIG"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10775 $as_echo "$PKG_CONFIG" >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10783 if test "$PKG_CONFIG" = "no" ; then
10786 PKG_CONFIG_MIN_VERSION
=0.9.0
10787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10789 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10791 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10793 $as_echo "yes" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10797 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10798 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10800 $as_echo "$GTK_CFLAGS" >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10803 $as_echo_n "checking GTK_LIBS... " >&6; }
10804 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10806 $as_echo "$GTK_LIBS" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10812 ## If we have a custom action on failure, don't print errors, but
10813 ## do set a variable so people can do so.
10814 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10826 if test $succeeded = yes; then
10832 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10833 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10838 if test x
"$pkg_check_gtk" = xyes
; then
10842 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10843 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10844 LIBS
="$GTK_LIBS $LIBS"
10846 for ac_func
in gtk_main
10848 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10849 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10850 cat >>confdefs.h
<<_ACEOF
10851 #define HAVE_GTK_MAIN 1
10857 if test "${GTK_COMPILES}" != "yes"; then
10858 if test "$USE_X_TOOLKIT" != "maybe"; then
10859 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10864 $as_echo "#define USE_GTK 1" >>confdefs.h
10866 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10868 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10872 closing open displays. This is no problem if you just use
10873 one display, but if you use more than one and close one of them
10874 Emacs may crash." >&5
10875 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10876 closing open displays. This is no problem if you just use
10877 one display, but if you use more than one and close one of them
10878 Emacs may crash." >&2;}
10887 if test "${HAVE_GTK}" = "yes"; then
10889 if test "$with_toolkit_scroll_bars" != no
; then
10890 with_toolkit_scroll_bars
=yes
10893 HAVE_GTK_FILE_SELECTION
=no
10894 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10895 #include <gtk/gtk.h>
10897 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10898 HAVE_GTK_FILE_SELECTION
=yes
10900 HAVE_GTK_FILE_SELECTION
=no
10903 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10904 for ac_func
in gtk_file_selection_new
10906 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10907 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10908 cat >>confdefs.h
<<_ACEOF
10909 #define HAVE_GTK_FILE_SELECTION_NEW 1
10918 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10919 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10920 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10921 gtk_orientable_set_orientation
10923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10925 eval as_val
=\$
$as_ac_var
10926 if test "x$as_val" = x
""yes; then :
10927 cat >>confdefs.h
<<_ACEOF
10928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 if test "${with_dbus}" = "yes"; then
10943 # Extract the first word of "pkg-config", so it can be a program name with args.
10944 set dummy pkg-config
; ac_word
=$2
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10946 $as_echo_n "checking for $ac_word... " >&6; }
10947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10950 case $PKG_CONFIG in
10952 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10956 for as_dir
in $PATH
10959 test -z "$as_dir" && as_dir
=.
10960 for ac_exec_ext
in '' $ac_executable_extensions; do
10961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10962 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10974 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10975 if test -n "$PKG_CONFIG"; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10977 $as_echo "$PKG_CONFIG" >&6; }
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10985 if test "$PKG_CONFIG" = "no" ; then
10988 PKG_CONFIG_MIN_VERSION
=0.9.0
10989 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10991 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10993 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10999 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11000 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11002 $as_echo "$DBUS_CFLAGS" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11005 $as_echo_n "checking DBUS_LIBS... " >&6; }
11006 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11008 $as_echo "$DBUS_LIBS" >&6; }
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11014 ## If we have a custom action on failure, don't print errors, but
11015 ## do set a variable so people can do so.
11016 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11023 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11024 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11028 if test $succeeded = yes; then
11034 if test "$HAVE_DBUS" = yes; then
11035 LIBS
="$LIBS $DBUS_LIBS"
11037 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11039 for ac_func
in dbus_watch_get_unix_fd
11041 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11042 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11043 cat >>confdefs.h
<<_ACEOF
11044 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11050 DBUS_OBJ
=dbusbind.o
11056 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11060 # Extract the first word of "pkg-config", so it can be a program name with args.
11061 set dummy pkg-config
; ac_word
=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 case $PKG_CONFIG in
11069 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11073 for as_dir
in $PATH
11076 test -z "$as_dir" && as_dir
=.
11077 for ac_exec_ext
in '' $ac_executable_extensions; do
11078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11091 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11092 if test -n "$PKG_CONFIG"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11094 $as_echo "$PKG_CONFIG" >&6; }
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11102 if test "$PKG_CONFIG" = "no" ; then
11105 PKG_CONFIG_MIN_VERSION
=0.9.0
11106 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11108 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11110 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11112 $as_echo "yes" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11116 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11117 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11119 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11122 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11123 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11125 $as_echo "$GSETTINGS_LIBS" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 GSETTINGS_CFLAGS
=""
11131 ## If we have a custom action on failure, don't print errors, but
11132 ## do set a variable so people can do so.
11133 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11145 if test $succeeded = yes; then
11151 if test "$HAVE_GSETTINGS" = "yes"; then
11153 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11155 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11156 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11161 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11165 # Extract the first word of "pkg-config", so it can be a program name with args.
11166 set dummy pkg-config
; ac_word
=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11172 case $PKG_CONFIG in
11174 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11178 for as_dir
in $PATH
11181 test -z "$as_dir" && as_dir
=.
11182 for ac_exec_ext
in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11196 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11197 if test -n "$PKG_CONFIG"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11199 $as_echo "$PKG_CONFIG" >&6; }
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11207 if test "$PKG_CONFIG" = "no" ; then
11210 PKG_CONFIG_MIN_VERSION
=0.9.0
11211 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11213 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11215 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217 $as_echo "yes" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11221 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11222 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11224 $as_echo "$GCONF_CFLAGS" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11227 $as_echo_n "checking GCONF_LIBS... " >&6; }
11228 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11230 $as_echo "$GCONF_LIBS" >&6; }
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11236 ## If we have a custom action on failure, don't print errors, but
11237 ## do set a variable so people can do so.
11238 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11250 if test $succeeded = yes; then
11256 if test "$HAVE_GCONF" = yes; then
11258 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11260 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11261 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11265 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11266 SAVE_CFLAGS
="$CFLAGS"
11267 SAVE_LDFLAGS
="$LDFLAGS"
11268 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11269 LDFLAGS
="$SETTINGS_LIBS $LDFLAGS"
11270 for ac_func
in g_type_init
11272 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11273 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11274 cat >>confdefs.h
<<_ACEOF
11275 #define HAVE_G_TYPE_INIT 1
11281 CFLAGS
="$SAVE_CFLAGS"
11282 LDFLAGS
="$SAVE_LDFLAGS"
11290 if test "${with_selinux}" = "yes"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11292 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11293 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11296 ac_check_lib_save_LIBS
=$LIBS
11297 LIBS
="-lselinux $LIBS"
11298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11307 char lgetfilecon ();
11311 return lgetfilecon ();
11316 if ac_fn_c_try_link
"$LINENO"; then :
11317 ac_cv_lib_selinux_lgetfilecon
=yes
11319 ac_cv_lib_selinux_lgetfilecon
=no
11321 rm -f core conftest.err conftest.
$ac_objext \
11322 conftest
$ac_exeext conftest.
$ac_ext
11323 LIBS
=$ac_check_lib_save_LIBS
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11326 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11327 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11328 HAVE_LIBSELINUX
=yes
11333 if test "$HAVE_LIBSELINUX" = yes; then
11335 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11337 LIBSELINUX_LIBS
=-lselinux
11343 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11344 if test "${with_gnutls}" = "yes" ; then
11348 # Extract the first word of "pkg-config", so it can be a program name with args.
11349 set dummy pkg-config
; ac_word
=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11355 case $PKG_CONFIG in
11357 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11361 for as_dir
in $PATH
11364 test -z "$as_dir" && as_dir
=.
11365 for ac_exec_ext
in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11379 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11380 if test -n "$PKG_CONFIG"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11382 $as_echo "$PKG_CONFIG" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11390 if test "$PKG_CONFIG" = "no" ; then
11393 PKG_CONFIG_MIN_VERSION
=0.9.0
11394 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11396 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11398 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11404 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11405 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11407 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11410 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11411 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11413 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 LIBGNUTLS_CFLAGS
=""
11419 ## If we have a custom action on failure, don't print errors, but
11420 ## do set a variable so people can do so.
11421 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11433 if test $succeeded = yes; then
11439 if test "${HAVE_GNUTLS}" = "yes"; then
11441 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11445 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11446 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11447 for ac_func
in gnutls_certificate_set_verify_function
11449 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11450 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11451 cat >>confdefs.h
<<_ACEOF
11452 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11454 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11459 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11461 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11471 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11472 if test "$with_xaw3d" != no
; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11474 $as_echo_n "checking for xaw3d... " >&6; }
11475 if test "${emacs_cv_xaw3d+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 #include <X11/Intrinsic.h>
11482 #include <X11/Xaw3d/Simple.h>
11491 if ac_fn_c_try_link
"$LINENO"; then :
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11493 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11494 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 ac_check_lib_save_LIBS
=$LIBS
11498 LIBS
="-lXaw3d $LIBS"
11499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11508 char XawScrollbarSetThumb ();
11512 return XawScrollbarSetThumb ();
11517 if ac_fn_c_try_link
"$LINENO"; then :
11518 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11520 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11522 rm -f core conftest.err conftest.
$ac_objext \
11523 conftest
$ac_exeext conftest.
$ac_ext
11524 LIBS
=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11527 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11528 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11537 rm -f core conftest.err conftest.
$ac_objext \
11538 conftest
$ac_exeext conftest.
$ac_ext
11544 if test $emacs_cv_xaw3d = yes; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11546 $as_echo "yes; using Lucid toolkit" >&6; }
11547 USE_X_TOOLKIT
=LUCID
11551 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11557 $as_echo_n "checking for libXaw... " >&6; }
11558 if test "${emacs_cv_xaw+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 #include <X11/Intrinsic.h>
11565 #include <X11/Xaw/Simple.h>
11574 if ac_fn_c_try_link
"$LINENO"; then :
11579 rm -f core conftest.err conftest.
$ac_objext \
11580 conftest
$ac_exeext conftest.
$ac_ext
11583 if test $emacs_cv_xaw = yes; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11585 $as_echo "yes; using Lucid toolkit" >&6; }
11586 USE_X_TOOLKIT
=LUCID
11588 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11589 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11591 as_fn_error
"No X toolkit could be found.
11592 If you are sure you want Emacs compiled without an X toolkit, pass
11593 --with-x-toolkit=no
11594 to configure. Otherwise, install the development libraries for the toolkit
11595 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11600 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11603 if test "${USE_X_TOOLKIT}" != "none"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11605 $as_echo_n "checking X11 toolkit version... " >&6; }
11606 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611 #include <X11/Intrinsic.h>
11615 #if XtSpecificationRelease < 6
11623 if ac_fn_c_try_link
"$LINENO"; then :
11624 emacs_cv_x11_toolkit_version_6
=yes
11626 emacs_cv_x11_toolkit_version_6
=no
11628 rm -f core conftest.err conftest.
$ac_objext \
11629 conftest
$ac_exeext conftest.
$ac_ext
11632 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11633 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11635 $as_echo "6 or newer" >&6; }
11637 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11639 LIBXTR6
="-lSM -lICE"
11641 ## Use libw.a along with X11R6 Xt.
11642 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11646 $as_echo "before 6" >&6; }
11650 if test x
$HAVE_X11XTR6 = xyes
; then
11651 LIBS
="-lXt -lSM -lICE $LIBS"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11656 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11657 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11660 ac_check_lib_save_LIBS
=$LIBS
11662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11671 char XmuConvertStandardSelection ();
11675 return XmuConvertStandardSelection ();
11680 if ac_fn_c_try_link
"$LINENO"; then :
11681 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11683 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11685 rm -f core conftest.err conftest.
$ac_objext \
11686 conftest
$ac_exeext conftest.
$ac_ext
11687 LIBS
=$ac_check_lib_save_LIBS
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11690 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11691 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11692 cat >>confdefs.h
<<_ACEOF
11693 #define HAVE_LIBXMU 1
11700 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11706 ## These systems don't supply Xmu.
11708 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11713 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11714 if test "${HAVE_X11}" = "yes"; then
11715 if test "${USE_X_TOOLKIT}" != "none"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11717 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11718 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
11721 ac_check_lib_save_LIBS
=$LIBS
11722 LIBS
="-lXext $LIBS"
11723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11732 char XShapeQueryExtension ();
11736 return XShapeQueryExtension ();
11741 if ac_fn_c_try_link
"$LINENO"; then :
11742 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11744 ac_cv_lib_Xext_XShapeQueryExtension
=no
11746 rm -f core conftest.err conftest.
$ac_objext \
11747 conftest
$ac_exeext conftest.
$ac_ext
11748 LIBS
=$ac_check_lib_save_LIBS
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11751 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11752 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11753 cat >>confdefs.h
<<_ACEOF
11754 #define HAVE_LIBXEXT 1
11757 LIBS
="-lXext $LIBS"
11765 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11767 $as_echo_n "checking for Motif version 2.1... " >&6; }
11768 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11777 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11780 Motif version prior to 2.1.
11786 if ac_fn_c_try_compile
"$LINENO"; then :
11787 emacs_cv_motif_version_2_1
=yes
11789 emacs_cv_motif_version_2_1
=no
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11794 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11795 if test $emacs_cv_motif_version_2_1 = yes; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11797 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11798 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11801 ac_check_lib_save_LIBS
=$LIBS
11803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11806 /* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11812 char XpCreateContext ();
11816 return XpCreateContext ();
11821 if ac_fn_c_try_link
"$LINENO"; then :
11822 ac_cv_lib_Xp_XpCreateContext
=yes
11824 ac_cv_lib_Xp_XpCreateContext
=no
11826 rm -f core conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11828 LIBS
=$ac_check_lib_save_LIBS
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11831 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11832 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11838 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11839 if test "${emacs_cv_lesstif+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 # We put this in CFLAGS temporarily to precede other -I options
11843 # that might be in CFLAGS temporarily.
11844 # We put this in CPPFLAGS where it precedes the other -I options.
11845 OLD_CPPFLAGS
=$CPPFLAGS
11847 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11848 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h. */
11851 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11860 if ac_fn_c_try_compile
"$LINENO"; then :
11861 emacs_cv_lesstif
=yes
11863 emacs_cv_lesstif
=no
11865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11868 $as_echo "$emacs_cv_lesstif" >&6; }
11869 if test $emacs_cv_lesstif = yes; then
11870 # Make sure this -I option remains in CPPFLAGS after it is set
11871 # back to REAL_CPPFLAGS.
11872 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11873 # have those other -I options anyway. Ultimately, having this
11874 # directory ultimately in CPPFLAGS will be enough.
11875 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11876 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11879 CPPFLAGS
=$OLD_CPPFLAGS
11885 USE_TOOLKIT_SCROLL_BARS
=no
11886 if test "${with_toolkit_scroll_bars}" != "no"; then
11887 if test "${USE_X_TOOLKIT}" != "none"; then
11888 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11889 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11892 USE_TOOLKIT_SCROLL_BARS
=yes
11893 elif test "${HAVE_XAW3D}" = "yes"; then
11894 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11896 USE_TOOLKIT_SCROLL_BARS
=yes
11898 elif test "${HAVE_GTK}" = "yes"; then
11899 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11901 USE_TOOLKIT_SCROLL_BARS
=yes
11902 elif test "${HAVE_NS}" = "yes"; then
11903 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11905 USE_TOOLKIT_SCROLL_BARS
=yes
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 #include <X11/Xlib.h>
11913 #include <X11/Xresource.h>
11922 if ac_fn_c_try_compile
"$LINENO"; then :
11925 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11933 if test "${with_xim}" != "no"; then
11935 $as_echo "#define USE_XIM 1" >>confdefs.h
11940 if test "${HAVE_XIM}" != "no"; then
11941 late_CFLAGS
=$CFLAGS
11942 if test "$GCC" = yes; then
11943 CFLAGS
="$CFLAGS --pedantic-errors"
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 #include <X11/Xlib.h>
11949 #include <X11/Xresource.h>
11958 XPointer *client_data;
11960 /* If we're not using GCC, it's probably not XFree86, and this is
11961 probably right, but we can't use something like --pedantic-errors. */
11962 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11963 char*, XIMProc, XPointer*);
11965 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11971 if ac_fn_c_try_compile
"$LINENO"; then :
11972 emacs_cv_arg6_star
=yes
11974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11975 if test "$emacs_cv_arg6_star" = yes; then
11976 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11979 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11982 CFLAGS
=$late_CFLAGS
11985 ### Start of font-backend (under any platform) section.
11986 # (nothing here yet -- this is a placeholder)
11987 ### End of font-backend (under any platform) section.
11989 ### Start of font-backend (under X11) section.
11990 if test "${HAVE_X11}" = "yes"; then
11994 # Extract the first word of "pkg-config", so it can be a program name with args.
11995 set dummy pkg-config
; ac_word
=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12001 case $PKG_CONFIG in
12003 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12007 for as_dir
in $PATH
12010 test -z "$as_dir" && as_dir
=.
12011 for ac_exec_ext
in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12025 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12026 if test -n "$PKG_CONFIG"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12028 $as_echo "$PKG_CONFIG" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12036 if test "$PKG_CONFIG" = "no" ; then
12039 PKG_CONFIG_MIN_VERSION
=0.9.0
12040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12042 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12044 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12046 $as_echo "yes" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12050 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12051 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12053 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12056 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12057 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12059 $as_echo "$FONTCONFIG_LIBS" >&6; }
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12063 FONTCONFIG_CFLAGS
=""
12065 ## If we have a custom action on failure, don't print errors, but
12066 ## do set a variable so people can do so.
12067 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12079 if test $succeeded = yes; then
12086 ## Use -lXft if available, unless `--with-xft=no'.
12088 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12091 if test "x${with_xft}" != "xno"; then
12096 # Extract the first word of "pkg-config", so it can be a program name with args.
12097 set dummy pkg-config
; ac_word
=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12103 case $PKG_CONFIG in
12105 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12109 for as_dir
in $PATH
12112 test -z "$as_dir" && as_dir
=.
12113 for ac_exec_ext
in '' $ac_executable_extensions; do
12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12127 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12128 if test -n "$PKG_CONFIG"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12130 $as_echo "$PKG_CONFIG" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12138 if test "$PKG_CONFIG" = "no" ; then
12141 PKG_CONFIG_MIN_VERSION
=0.9.0
12142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12144 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12146 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12148 $as_echo "yes" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12152 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12153 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12155 $as_echo "$XFT_CFLAGS" >&6; }
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12158 $as_echo_n "checking XFT_LIBS... " >&6; }
12159 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12161 $as_echo "$XFT_LIBS" >&6; }
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12167 ## If we have a custom action on failure, don't print errors, but
12168 ## do set a variable so people can do so.
12169 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12181 if test $succeeded = yes; then
12187 ## Because xftfont.c uses XRenderQueryExtension, we also
12188 ## need to link to -lXrender.
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12191 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12192 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12195 ac_check_lib_save_LIBS
=$LIBS
12196 LIBS
="-lXrender $LIBS"
12197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12206 char XRenderQueryExtension ();
12210 return XRenderQueryExtension ();
12215 if ac_fn_c_try_link
"$LINENO"; then :
12216 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12218 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12220 rm -f core conftest.err conftest.
$ac_objext \
12221 conftest
$ac_exeext conftest.
$ac_ext
12222 LIBS
=$ac_check_lib_save_LIBS
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12225 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12226 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12230 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12231 OLD_CPPFLAGS
="$CPPFLAGS"
12232 OLD_CFLAGS
="$CFLAGS"
12234 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12235 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12236 XFT_LIBS
="-lXrender $XFT_LIBS"
12237 LIBS
="$XFT_LIBS $LIBS"
12238 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12239 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12241 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12242 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 ac_check_lib_save_LIBS
=$LIBS
12246 LIBS
="-lXft $XFT_LIBS $LIBS"
12247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12256 char XftFontOpen ();
12260 return XftFontOpen ();
12265 if ac_fn_c_try_link
"$LINENO"; then :
12266 ac_cv_lib_Xft_XftFontOpen
=yes
12268 ac_cv_lib_Xft_XftFontOpen
=no
12270 rm -f core conftest.err conftest.
$ac_objext \
12271 conftest
$ac_exeext conftest.
$ac_ext
12272 LIBS
=$ac_check_lib_save_LIBS
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12275 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12276 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12284 if test "${HAVE_XFT}" = "yes"; then
12286 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12289 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12291 CPPFLAGS
="$OLD_CPPFLAGS"
12292 CFLAGS
="$OLD_CFLAGS"
12294 fi # "${HAVE_XFT}" = "yes"
12295 fi # "$HAVE_XFT" != no
12296 fi # "x${with_xft}" != "xno"
12298 ## We used to allow building with FreeType and without Xft.
12299 ## However, the ftx font backend driver is not in good shape.
12300 if test "$HAVE_XFT" != "yes"; then
12307 # Extract the first word of "pkg-config", so it can be a program name with args.
12308 set dummy pkg-config
; ac_word
=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12314 case $PKG_CONFIG in
12316 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12320 for as_dir
in $PATH
12323 test -z "$as_dir" && as_dir
=.
12324 for ac_exec_ext
in '' $ac_executable_extensions; do
12325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12326 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12338 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12339 if test -n "$PKG_CONFIG"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12341 $as_echo "$PKG_CONFIG" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12349 if test "$PKG_CONFIG" = "no" ; then
12352 PKG_CONFIG_MIN_VERSION
=0.9.0
12353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12355 $as_echo_n "checking for freetype2... " >&6; }
12357 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12363 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12364 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12366 $as_echo "$FREETYPE_CFLAGS" >&6; }
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12369 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12370 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12372 $as_echo "$FREETYPE_LIBS" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12378 ## If we have a custom action on failure, don't print errors, but
12379 ## do set a variable so people can do so.
12380 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12387 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12388 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12392 if test $succeeded = yes; then
12399 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12403 if test "${HAVE_FREETYPE}" = "yes"; then
12405 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12407 if test "${with_libotf}" != "no"; then
12411 # Extract the first word of "pkg-config", so it can be a program name with args.
12412 set dummy pkg-config
; ac_word
=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12418 case $PKG_CONFIG in
12420 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12424 for as_dir
in $PATH
12427 test -z "$as_dir" && as_dir
=.
12428 for ac_exec_ext
in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12442 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12443 if test -n "$PKG_CONFIG"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12445 $as_echo "$PKG_CONFIG" >&6; }
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12453 if test "$PKG_CONFIG" = "no" ; then
12456 PKG_CONFIG_MIN_VERSION
=0.9.0
12457 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12459 $as_echo_n "checking for libotf... " >&6; }
12461 if $PKG_CONFIG --exists "libotf" 2>&5; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12463 $as_echo "yes" >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12467 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12468 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12470 $as_echo "$LIBOTF_CFLAGS" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12473 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12474 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12476 $as_echo "$LIBOTF_LIBS" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12482 ## If we have a custom action on failure, don't print errors, but
12483 ## do set a variable so people can do so.
12484 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12496 if test $succeeded = yes; then
12502 if test "$HAVE_LIBOTF" = "yes"; then
12504 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12507 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12508 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12511 ac_check_lib_save_LIBS
=$LIBS
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12522 char OTF_get_variation_glyphs ();
12526 return OTF_get_variation_glyphs ();
12531 if ac_fn_c_try_link
"$LINENO"; then :
12532 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12534 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12536 rm -f core conftest.err conftest.
$ac_objext \
12537 conftest
$ac_exeext conftest.
$ac_ext
12538 LIBS
=$ac_check_lib_save_LIBS
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12541 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12542 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12543 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12545 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12548 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12550 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12558 if test "${HAVE_LIBOTF}" = yes; then
12559 if test "${with_m17n_flt}" != "no"; then
12563 # Extract the first word of "pkg-config", so it can be a program name with args.
12564 set dummy pkg-config
; ac_word
=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12570 case $PKG_CONFIG in
12572 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12576 for as_dir
in $PATH
12579 test -z "$as_dir" && as_dir
=.
12580 for ac_exec_ext
in '' $ac_executable_extensions; do
12581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12582 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12594 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12595 if test -n "$PKG_CONFIG"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12597 $as_echo "$PKG_CONFIG" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12605 if test "$PKG_CONFIG" = "no" ; then
12608 PKG_CONFIG_MIN_VERSION
=0.9.0
12609 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12611 $as_echo_n "checking for m17n-flt... " >&6; }
12613 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615 $as_echo "yes" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12619 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12620 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12622 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12625 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12626 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12628 $as_echo "$M17N_FLT_LIBS" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12634 ## If we have a custom action on failure, don't print errors, but
12635 ## do set a variable so people can do so.
12636 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12648 if test $succeeded = yes; then
12654 if test "$HAVE_M17N_FLT" = "yes"; then
12656 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12668 ### End of font-backend (under X11) section.
12679 ### Use -lXpm if available, unless `--with-xpm=no'.
12682 if test "${HAVE_X11}" = "yes"; then
12683 if test "${with_xpm}" != "no"; then
12684 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12685 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12687 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12688 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12691 ac_check_lib_save_LIBS
=$LIBS
12692 LIBS
="-lXpm -lX11 $LIBS"
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12702 char XpmReadFileToPixmap ();
12706 return XpmReadFileToPixmap ();
12711 if ac_fn_c_try_link
"$LINENO"; then :
12712 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12714 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12716 rm -f core conftest.err conftest.
$ac_objext \
12717 conftest
$ac_exeext conftest.
$ac_ext
12718 LIBS
=$ac_check_lib_save_LIBS
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12721 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12722 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12729 if test "${HAVE_XPM}" = "yes"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12731 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 #include "X11/xpm.h"
12735 #ifndef XpmReturnAllocPixels
12736 no_return_alloc_pixels
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12749 if test "${HAVE_XPM}" = "yes"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12751 $as_echo "yes" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12759 if test "${HAVE_XPM}" = "yes"; then
12761 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12768 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12771 if test "${HAVE_X11}" = "yes"; then
12772 if test "${with_jpeg}" != "no"; then
12773 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12774 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12776 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12777 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12780 ac_check_lib_save_LIBS
=$LIBS
12781 LIBS
="-ljpeg $LIBS"
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12791 char jpeg_destroy_compress ();
12795 return jpeg_destroy_compress ();
12800 if ac_fn_c_try_link
"$LINENO"; then :
12801 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12803 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12805 rm -f core conftest.err conftest.
$ac_objext \
12806 conftest
$ac_exeext conftest.
$ac_ext
12807 LIBS
=$ac_check_lib_save_LIBS
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12810 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12811 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12820 if test "${HAVE_JPEG}" = "yes"; then
12821 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 #include <jpeglib.h>
12826 version=JPEG_LIB_VERSION
12829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12830 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12831 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12835 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12841 if test "${HAVE_JPEG}" = "yes"; then
12847 ### Use -lpng if available, unless `--with-png=no'.
12850 if test "${HAVE_X11}" = "yes"; then
12851 if test "${with_png}" != "no"; then
12852 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12853 # in /usr/include/libpng.
12854 for ac_header
in png.h libpng
/png.h
12856 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12857 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12858 eval as_val
=\$
$as_ac_Header
12859 if test "x$as_val" = x
""yes; then :
12860 cat >>confdefs.h
<<_ACEOF
12861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12868 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12870 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12871 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12874 ac_check_lib_save_LIBS
=$LIBS
12875 LIBS
="-lpng -lz -lm $LIBS"
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12885 char png_get_channels ();
12889 return png_get_channels ();
12894 if ac_fn_c_try_link
"$LINENO"; then :
12895 ac_cv_lib_png_png_get_channels
=yes
12897 ac_cv_lib_png_png_get_channels
=no
12899 rm -f core conftest.err conftest.
$ac_objext \
12900 conftest
$ac_exeext conftest.
$ac_ext
12901 LIBS
=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12904 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12905 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12912 if test "${HAVE_PNG}" = "yes"; then
12914 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12916 LIBPNG
="-lpng -lz -lm"
12921 ### Use -ltiff if available, unless `--with-tiff=no'.
12924 if test "${HAVE_X11}" = "yes"; then
12925 if test "${with_tiff}" != "no"; then
12926 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12927 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12929 # At least one tiff package requires the jpeg library.
12930 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12932 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12933 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12936 ac_check_lib_save_LIBS
=$LIBS
12937 LIBS
="-ltiff $tifflibs $LIBS"
12938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12947 char TIFFGetVersion ();
12951 return TIFFGetVersion ();
12956 if ac_fn_c_try_link
"$LINENO"; then :
12957 ac_cv_lib_tiff_TIFFGetVersion
=yes
12959 ac_cv_lib_tiff_TIFFGetVersion
=no
12961 rm -f core conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12963 LIBS
=$ac_check_lib_save_LIBS
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12966 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12967 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12976 if test "${HAVE_TIFF}" = "yes"; then
12978 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12985 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12988 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12989 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12990 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12991 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12992 # Earlier versions can crash Emacs.
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12994 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12995 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 ac_check_lib_save_LIBS
=$LIBS
13000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13009 char EGifPutExtensionLast ();
13013 return EGifPutExtensionLast ();
13018 if ac_fn_c_try_link
"$LINENO"; then :
13019 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13021 ac_cv_lib_gif_EGifPutExtensionLast
=no
13023 rm -f core conftest.err conftest.
$ac_objext \
13024 conftest
$ac_exeext conftest.
$ac_ext
13025 LIBS
=$ac_check_lib_save_LIBS
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13028 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13029 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13039 if test "$HAVE_GIF" = yes; then
13041 elif test "$HAVE_GIF" = maybe
; then
13042 # If gif_lib.h but no libgif, try libungif.
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13044 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13045 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13048 ac_check_lib_save_LIBS
=$LIBS
13049 LIBS
="-lungif $LIBS"
13050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13059 char EGifPutExtensionLast ();
13063 return EGifPutExtensionLast ();
13068 if ac_fn_c_try_link
"$LINENO"; then :
13069 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13071 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13073 rm -f core conftest.err conftest.
$ac_objext \
13074 conftest
$ac_exeext conftest.
$ac_ext
13075 LIBS
=$ac_check_lib_save_LIBS
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13078 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13079 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13085 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13088 if test "${HAVE_GIF}" = "yes"; then
13090 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13096 if test "${HAVE_X11}" = "yes"; then
13099 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13100 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13101 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13102 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13103 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13104 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13105 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13106 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13107 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13108 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13110 if test "X${MISSING}" != X
; then
13111 as_fn_error
"The following required libraries were not found:
13113 Maybe some development libraries/packages are missing?
13114 If you don't want to link with them give
13116 as options to configure" "$LINENO" 5
13120 ### Use -lgpm if available, unless `--with-gpm=no'.
13123 if test "${with_gpm}" != "no"; then
13124 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13125 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13127 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13128 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
13131 ac_check_lib_save_LIBS
=$LIBS
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13146 return Gpm_Open ();
13151 if ac_fn_c_try_link
"$LINENO"; then :
13152 ac_cv_lib_gpm_Gpm_Open
=yes
13154 ac_cv_lib_gpm_Gpm_Open
=no
13156 rm -f core conftest.err conftest.
$ac_objext \
13157 conftest
$ac_exeext conftest.
$ac_ext
13158 LIBS
=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13161 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13162 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13170 if test "${HAVE_GPM}" = "yes"; then
13172 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13179 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13180 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13182 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13189 ### Use NeXTstep API to implement GUI.
13190 if test "${HAVE_NS}" = "yes"; then
13192 $as_echo "#define HAVE_NS 1" >>confdefs.h
13194 if test "${NS_IMPL_COCOA}" = "yes"; then
13196 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13200 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13202 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13204 # See also .m.o rule in Makefile.in */
13205 # FIXME: are all these flags really needed? Document here why. */
13206 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
13207 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13209 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13211 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13214 # We also have mouse menus.
13220 ### Use session management (-lSM -lICE) if available
13223 if test "${HAVE_X11}" = "yes"; then
13224 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13225 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13227 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13228 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13231 ac_check_lib_save_LIBS
=$LIBS
13232 LIBS
="-lSM -lICE $LIBS"
13233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13242 char SmcOpenConnection ();
13246 return SmcOpenConnection ();
13251 if ac_fn_c_try_link
"$LINENO"; then :
13252 ac_cv_lib_SM_SmcOpenConnection
=yes
13254 ac_cv_lib_SM_SmcOpenConnection
=no
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13258 LIBS
=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13261 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13262 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13270 if test "${HAVE_X_SM}" = "yes"; then
13272 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13274 LIBXSM
="-lSM -lICE"
13277 *) LIBS
="$LIBXSM $LIBS" ;;
13283 ### Use libxml (-lxml2) if available
13284 if test "${with_xml2}" != "no"; then
13285 ### I'm not sure what the version number should be, so I just guessed.
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config
; ac_word
=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13296 case $PKG_CONFIG in
13298 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13302 for as_dir
in $PATH
13305 test -z "$as_dir" && as_dir
=.
13306 for ac_exec_ext
in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13320 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13323 $as_echo "$PKG_CONFIG" >&6; }
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13334 PKG_CONFIG_MIN_VERSION
=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13337 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13339 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13341 $as_echo "yes" >&6; }
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13345 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13346 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13348 $as_echo "$LIBXML2_CFLAGS" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13351 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13352 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13354 $as_echo "$LIBXML2_LIBS" >&6; }
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13360 ## If we have a custom action on failure, don't print errors, but
13361 ## do set a variable so people can do so.
13362 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13374 if test $succeeded = yes; then
13380 if test "${HAVE_LIBXML2}" = "yes"; then
13381 LIBS
="$LIBXML2_LIBS $LIBS"
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13383 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13384 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 ac_check_lib_save_LIBS
=$LIBS
13388 LIBS
="-lxml2 $LIBS"
13389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13398 char htmlReadMemory ();
13402 return htmlReadMemory ();
13407 if ac_fn_c_try_link
"$LINENO"; then :
13408 ac_cv_lib_xml2_htmlReadMemory
=yes
13410 ac_cv_lib_xml2_htmlReadMemory
=no
13412 rm -f core conftest.err conftest.
$ac_objext \
13413 conftest
$ac_exeext conftest.
$ac_ext
13414 LIBS
=$ac_check_lib_save_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13417 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13418 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13424 if test "${HAVE_LIBXML2}" = "yes"; then
13426 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13437 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13439 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13440 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13454 if ac_fn_c_try_link
"$LINENO"; then :
13455 emacs_cv_netdb_declares_h_errno
=yes
13457 emacs_cv_netdb_declares_h_errno
=no
13459 rm -f core conftest.err conftest.
$ac_objext \
13460 conftest
$ac_exeext conftest.
$ac_ext
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13463 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13464 if test $emacs_cv_netdb_declares_h_errno = yes; then
13466 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13470 # fmod, logb, and frexp are found in -lm on most systems.
13471 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13473 $as_echo_n "checking for sqrt in -lm... " >&6; }
13474 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13477 ac_check_lib_save_LIBS
=$LIBS
13479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13497 if ac_fn_c_try_link
"$LINENO"; then :
13498 ac_cv_lib_m_sqrt
=yes
13500 ac_cv_lib_m_sqrt
=no
13502 rm -f core conftest.err conftest.
$ac_objext \
13503 conftest
$ac_exeext conftest.
$ac_ext
13504 LIBS
=$ac_check_lib_save_LIBS
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13507 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13508 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13509 cat >>confdefs.h
<<_ACEOF
13510 #define HAVE_LIBM 1
13518 # Check for mail-locking functions in a "mail" library. Probably this should
13519 # have the same check as for liblockfile below.
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13521 $as_echo_n "checking for maillock in -lmail... " >&6; }
13522 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13525 ac_check_lib_save_LIBS
=$LIBS
13526 LIBS
="-lmail $LIBS"
13527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13540 return maillock ();
13545 if ac_fn_c_try_link
"$LINENO"; then :
13546 ac_cv_lib_mail_maillock
=yes
13548 ac_cv_lib_mail_maillock
=no
13550 rm -f core conftest.err conftest.
$ac_objext \
13551 conftest
$ac_exeext conftest.
$ac_ext
13552 LIBS
=$ac_check_lib_save_LIBS
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13555 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13556 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13562 if test $have_mail = yes; then
13564 LIBS
="$LIBS_MAIL $LIBS"
13566 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13572 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13573 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13576 ac_check_lib_save_LIBS
=$LIBS
13577 LIBS
="-llockfile $LIBS"
13578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13581 /* Override any GCC internal prototype to avoid an error.
13582 Use char because int might match the return type of a GCC
13583 builtin and then its argument prototype would still apply. */
13591 return maillock ();
13596 if ac_fn_c_try_link
"$LINENO"; then :
13597 ac_cv_lib_lockfile_maillock
=yes
13599 ac_cv_lib_lockfile_maillock
=no
13601 rm -f core conftest.err conftest.
$ac_objext \
13602 conftest
$ac_exeext conftest.
$ac_ext
13603 LIBS
=$ac_check_lib_save_LIBS
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13606 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13607 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13613 if test $have_lockfile = yes; then
13614 LIBS_MAIL
=-llockfile
13615 LIBS
="$LIBS_MAIL $LIBS"
13617 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13620 # If we have the shared liblockfile, assume we must use it for mail
13621 # locking (e.g. Debian). If we couldn't link against liblockfile
13622 # (no liblockfile.a installed), ensure that we don't need to.
13623 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13624 set dummy liblockfile.so
; ac_word
=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13630 if test -n "$liblockfile"; then
13631 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13634 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13635 for as_dir
in $as_dummy
13638 test -z "$as_dir" && as_dir
=.
13639 for ac_exec_ext
in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_prog_liblockfile
="yes"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13652 liblockfile
=$ac_cv_prog_liblockfile
13653 if test -n "$liblockfile"; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13655 $as_echo "$liblockfile" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 $as_echo "no" >&6; }
13662 if test $ac_cv_prog_liblockfile = yes; then
13663 as_fn_error
"Shared liblockfile found but can't link against it.
13664 This probably means that movemail could lose mail.
13665 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13668 for ac_func
in touchlock
13670 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13671 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13672 cat >>confdefs.h
<<_ACEOF
13673 #define HAVE_TOUCHLOCK 1
13679 for ac_header
in maillock.h
13681 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13683 cat >>confdefs.h
<<_ACEOF
13684 #define HAVE_MAILLOCK_H 1
13693 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13694 ## interlock access to the mail spool. The alternative is a lock file named
13695 ## /usr/spool/mail/$USER.lock.
13698 aix4-2
) mail_lock
="lockf" ;;
13700 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13702 ## On GNU/Linux systems, both methods are used by various mail programs.
13703 ## I assume most people are using newer mailers that have heard of flock.
13704 ## Change this if you need to.
13705 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13706 ## configure gets the right answers, and that means *NOT* using flock.
13707 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13708 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13709 ## Debian maintainer hasn't provided a clean fix for Emacs.
13710 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13711 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13712 ## correct logic. -- fx
13713 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13714 ## liblockfile is a Free Software replacement for libmail, used on
13715 ## Debian systems and elsewhere. -rfr.
13718 if test $have_mail = yes ||
test $have_lockfile = yes; then
13719 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13725 case "$mail_lock" in
13727 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13731 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13734 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13739 for ac_func
in gethostname getdomainname \
13740 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13741 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13742 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13743 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13744 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13745 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13746 gai_strerror mkstemp getline getdelim mremap fsync sync \
13747 difftime mempcpy mblen mbrlen posix_memalign \
13748 cfmakeraw cfsetspeed isnan copysign __executable_start
13750 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13751 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13752 eval as_val
=\$
$as_ac_var
13753 if test "x$as_val" = x
""yes; then :
13754 cat >>confdefs.h
<<_ACEOF
13755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13763 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13764 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13765 $as_echo_n "(cached) " >&6
13767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13773 __builtin_unwind_init ();
13778 if ac_fn_c_try_link
"$LINENO"; then :
13779 emacs_cv_func___builtin_unwind_init
=yes
13781 emacs_cv_func___builtin_unwind_init
=no
13783 rm -f core conftest.err conftest.
$ac_objext \
13784 conftest
$ac_exeext conftest.
$ac_ext
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13787 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13788 if test $emacs_cv_func___builtin_unwind_init = yes; then
13790 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13794 for ac_header
in sys
/un.h
13796 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13797 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13798 cat >>confdefs.h
<<_ACEOF
13799 #define HAVE_SYS_UN_H 1
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13808 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13809 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 #include <sys/types.h> /* for off_t */
13820 int (*fp) (FILE *, off_t, int) = fseeko;
13821 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13826 if ac_fn_c_try_link
"$LINENO"; then :
13827 ac_cv_sys_largefile_source
=no
; break
13829 rm -f core conftest.err conftest.
$ac_objext \
13830 conftest
$ac_exeext conftest.
$ac_ext
13831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 #define _LARGEFILE_SOURCE 1
13834 #include <sys/types.h> /* for off_t */
13839 int (*fp) (FILE *, off_t, int) = fseeko;
13840 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13845 if ac_fn_c_try_link
"$LINENO"; then :
13846 ac_cv_sys_largefile_source
=1; break
13848 rm -f core conftest.err conftest.
$ac_objext \
13849 conftest
$ac_exeext conftest.
$ac_ext
13850 ac_cv_sys_largefile_source
=unknown
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13855 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13856 case $ac_cv_sys_largefile_source in #(
13859 cat >>confdefs.h
<<_ACEOF
13860 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13866 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13867 # in glibc 2.1.3, but that breaks too many other things.
13868 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13869 if test $ac_cv_sys_largefile_source != unknown
; then
13871 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13877 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13878 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13881 # Use it with a single arg.
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 $ac_includes_default
13893 if ac_fn_c_try_compile
"$LINENO"; then :
13894 ac_cv_func_getpgrp_void
=no
13896 ac_cv_func_getpgrp_void
=yes
13898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13902 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13903 if test $ac_cv_func_getpgrp_void = yes; then
13905 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13911 for ac_func
in grantpt
13913 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13914 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13915 cat >>confdefs.h
<<_ACEOF
13916 #define HAVE_GRANTPT 1
13923 # PTY-related GNU extensions.
13924 for ac_func
in getpt
13926 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
13927 if test "x$ac_cv_func_getpt" = x
""yes; then :
13928 cat >>confdefs.h
<<_ACEOF
13929 #define HAVE_GETPT 1
13936 # Check this now, so that we will NOT find the above functions in ncurses.
13937 # That is because we have not set up to link ncurses in lib-src.
13938 # It's better to believe a function is not available
13939 # than to expect to find it in ncurses.
13940 # Also we need tputs and friends to be able to build at all.
13941 have_tputs_et_al
=true
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13943 $as_echo_n "checking for library containing tputs... " >&6; }
13944 if test "${ac_cv_search_tputs+set}" = set; then :
13945 $as_echo_n "(cached) " >&6
13947 ac_func_search_save_LIBS
=$LIBS
13948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13966 for ac_lib
in '' ncurses terminfo termcap
; do
13967 if test -z "$ac_lib"; then
13968 ac_res
="none required"
13971 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13973 if ac_fn_c_try_link
"$LINENO"; then :
13974 ac_cv_search_tputs
=$ac_res
13976 rm -f core conftest.err conftest.
$ac_objext \
13978 if test "${ac_cv_search_tputs+set}" = set; then :
13982 if test "${ac_cv_search_tputs+set}" = set; then :
13985 ac_cv_search_tputs
=no
13987 rm conftest.
$ac_ext
13988 LIBS
=$ac_func_search_save_LIBS
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13991 $as_echo "$ac_cv_search_tputs" >&6; }
13992 ac_res
=$ac_cv_search_tputs
13993 if test "$ac_res" != no
; then :
13994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13997 have_tputs_et_al
=false
14000 if test "$have_tputs_et_al" != true
; then
14001 as_fn_error
"I couldn't find termcap functions (tputs and friends).
14002 Maybe some development libraries/packages are missing? Try installing
14003 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14005 # Must define this when any termcap library is found.
14007 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14009 ## FIXME This was the cpp logic, but I am not sure it is right.
14010 ## The above test has not necessarily found libncurses.
14011 HAVE_LIBNCURSES
=yes
14013 ## Use terminfo instead of termcap?
14014 ## Note only system files NOT using terminfo are:
14015 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14016 ## darwin|gnu without ncurses.
14020 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14021 ## hpux10-20: Use the system provided termcap(3) library.
14022 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14023 ## is necessary. Otherwise Emacs dumps core when run -nw.
14024 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14026 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14027 ## The ncurses library has been moved out of the System framework in
14028 ## Mac OS X 10.2. So if configure detects it, set the command-line
14029 ## option to use it.
14031 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14032 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14034 LIBS_TERMCAP
="-lncurses"
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14040 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14041 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 #include <osreldate.h>
14050 #if __FreeBSD_version < 400000
14058 if ac_fn_c_try_link
"$LINENO"; then :
14059 emacs_cv_freebsd_terminfo
=yes
14061 emacs_cv_freebsd_terminfo
=no
14063 rm -f core conftest.err conftest.
$ac_objext \
14064 conftest
$ac_exeext conftest.
$ac_ext
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14069 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14071 if test $emacs_cv_freebsd_terminfo = yes; then
14073 LIBS_TERMCAP
="-lncurses"
14075 LIBS_TERMCAP
="-ltermcap"
14080 if test $ac_cv_search_tputs = -lterminfo; then
14082 LIBS_TERMCAP
="-lterminfo"
14084 LIBS_TERMCAP
="-ltermcap"
14091 ## hpux: Make sure we get select from libc rather than from libcurses
14092 ## because libcurses on HPUX 10.10 has a broken version of select.
14093 ## We used to use -lc -lcurses, but this may be cleaner.
14094 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14096 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14098 ## Must use system termcap, if we use any termcap. It does special things.
14099 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14102 TERMCAP_OBJ
=tparam.o
14103 if test $TERMINFO = yes; then
14105 $as_echo "#define TERMINFO 1" >>confdefs.h
14108 ## Default used to be -ltermcap. Add a case above if need something else.
14109 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14111 TERMCAP_OBJ
=terminfo.o
14117 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <netinet/in.h>
14122 #include <arpa/nameser.h>
14123 #include <resolv.h>
14132 if ac_fn_c_try_link
"$LINENO"; then :
14137 rm -f core conftest.err conftest.
$ac_objext \
14138 conftest
$ac_exeext conftest.
$ac_ext
14139 if test "$have_res_init" = no
; then
14141 LIBS
="$LIBS -lresolv"
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14143 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <netinet/in.h>
14147 #include <arpa/nameser.h>
14148 #include <resolv.h>
14157 if ac_fn_c_try_link
"$LINENO"; then :
14162 rm -f core conftest.err conftest.
$ac_objext \
14163 conftest
$ac_exeext conftest.
$ac_ext
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14165 $as_echo "$have_res_init" >&6; }
14166 if test "$have_res_init" = yes ; then
14172 if test "$have_res_init" = yes; then
14174 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14178 # Do we need the Hesiod library to provide the support routines?
14180 if test "$with_hesiod" != no
; then
14181 # Don't set $LIBS here -- see comments above. FIXME which comments?
14182 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14183 if test "x$ac_cv_func_res_send" = x
""yes; then :
14186 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14187 if test "x$ac_cv_func___res_send" = x
""yes; then :
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14191 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14192 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
14195 ac_check_lib_save_LIBS
=$LIBS
14196 LIBS
="-lresolv $LIBS"
14197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14200 /* Override any GCC internal prototype to avoid an error.
14201 Use char because int might match the return type of a GCC
14202 builtin and then its argument prototype would still apply. */
14210 return res_send ();
14215 if ac_fn_c_try_link
"$LINENO"; then :
14216 ac_cv_lib_resolv_res_send
=yes
14218 ac_cv_lib_resolv_res_send
=no
14220 rm -f core conftest.err conftest.
$ac_objext \
14221 conftest
$ac_exeext conftest.
$ac_ext
14222 LIBS
=$ac_check_lib_save_LIBS
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14225 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14226 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14230 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14231 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14232 $as_echo_n "(cached) " >&6
14234 ac_check_lib_save_LIBS
=$LIBS
14235 LIBS
="-lresolv $LIBS"
14236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14245 char __res_send ();
14249 return __res_send ();
14254 if ac_fn_c_try_link
"$LINENO"; then :
14255 ac_cv_lib_resolv___res_send
=yes
14257 ac_cv_lib_resolv___res_send
=no
14259 rm -f core conftest.err conftest.
$ac_objext \
14260 conftest
$ac_exeext conftest.
$ac_ext
14261 LIBS
=$ac_check_lib_save_LIBS
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14264 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14265 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14275 if test "$resolv" = yes ; then
14280 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14281 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14285 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14286 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 ac_check_lib_save_LIBS
=$LIBS
14290 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14300 char hes_getmailhost ();
14304 return hes_getmailhost ();
14309 if ac_fn_c_try_link
"$LINENO"; then :
14310 ac_cv_lib_hesiod_hes_getmailhost
=yes
14312 ac_cv_lib_hesiod_hes_getmailhost
=no
14314 rm -f core conftest.err conftest.
$ac_objext \
14315 conftest
$ac_exeext conftest.
$ac_ext
14316 LIBS
=$ac_check_lib_save_LIBS
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14319 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14320 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14329 if test x
"$hesiod" = xyes
; then
14331 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14338 # Do we need libresolv (due to res_init or Hesiod)?
14339 if test "$resolv" = yes ; then
14341 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14349 # These tell us which Kerberos-related libraries to use.
14356 if test "${with_kerberos}" != no
; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14358 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14359 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14362 ac_check_lib_save_LIBS
=$LIBS
14363 LIBS
="-lcom_err $LIBS"
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14382 if ac_fn_c_try_link
"$LINENO"; then :
14383 ac_cv_lib_com_err_com_err
=yes
14385 ac_cv_lib_com_err_com_err
=no
14387 rm -f core conftest.err conftest.
$ac_objext \
14388 conftest
$ac_exeext conftest.
$ac_ext
14389 LIBS
=$ac_check_lib_save_LIBS
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14392 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14393 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14399 if test $have_com_err = yes; then
14400 COM_ERRLIB
=-lcom_err
14401 LIBS
="$COM_ERRLIB $LIBS"
14403 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14407 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14408 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14411 ac_check_lib_save_LIBS
=$LIBS
14412 LIBS
="-lcrypto $LIBS"
14413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14422 char mit_des_cbc_encrypt ();
14426 return mit_des_cbc_encrypt ();
14431 if ac_fn_c_try_link
"$LINENO"; then :
14432 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14434 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14436 rm -f core conftest.err conftest.
$ac_objext \
14437 conftest
$ac_exeext conftest.
$ac_ext
14438 LIBS
=$ac_check_lib_save_LIBS
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14441 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14442 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14448 if test $have_crypto = yes; then
14450 LIBS
="$CRYPTOLIB $LIBS"
14452 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14456 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14457 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14458 $as_echo_n "(cached) " >&6
14460 ac_check_lib_save_LIBS
=$LIBS
14461 LIBS
="-lk5crypto $LIBS"
14462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14465 /* Override any GCC internal prototype to avoid an error.
14466 Use char because int might match the return type of a GCC
14467 builtin and then its argument prototype would still apply. */
14471 char mit_des_cbc_encrypt ();
14475 return mit_des_cbc_encrypt ();
14480 if ac_fn_c_try_link
"$LINENO"; then :
14481 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14483 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14485 rm -f core conftest.err conftest.
$ac_objext \
14486 conftest
$ac_exeext conftest.
$ac_ext
14487 LIBS
=$ac_check_lib_save_LIBS
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14490 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14491 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14497 if test $have_k5crypto = yes; then
14498 CRYPTOLIB
=-lk5crypto
14499 LIBS
="$CRYPTOLIB $LIBS"
14501 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14505 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14506 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14507 $as_echo_n "(cached) " >&6
14509 ac_check_lib_save_LIBS
=$LIBS
14510 LIBS
="-lkrb5 $LIBS"
14511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14520 char krb5_init_context ();
14524 return krb5_init_context ();
14529 if ac_fn_c_try_link
"$LINENO"; then :
14530 ac_cv_lib_krb5_krb5_init_context
=yes
14532 ac_cv_lib_krb5_krb5_init_context
=no
14534 rm -f core conftest.err conftest.
$ac_objext \
14535 conftest
$ac_exeext conftest.
$ac_ext
14536 LIBS
=$ac_check_lib_save_LIBS
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14539 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14540 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14546 if test $have_krb5=yes; then
14548 LIBS
="$KRB5LIB $LIBS"
14550 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14553 if test "${with_kerberos5}" = no
; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14555 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14556 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14557 $as_echo_n "(cached) " >&6
14559 ac_check_lib_save_LIBS
=$LIBS
14560 LIBS
="-ldes425 $LIBS"
14561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply. */
14570 char des_cbc_encrypt ();
14574 return des_cbc_encrypt ();
14579 if ac_fn_c_try_link
"$LINENO"; then :
14580 ac_cv_lib_des425_des_cbc_encrypt
=yes
14582 ac_cv_lib_des425_des_cbc_encrypt
=no
14584 rm -f core conftest.err conftest.
$ac_objext \
14585 conftest
$ac_exeext conftest.
$ac_ext
14586 LIBS
=$ac_check_lib_save_LIBS
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14589 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14590 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14596 if test $have_des425 = yes; then
14598 LIBS
="$DESLIB $LIBS"
14600 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14604 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14605 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14608 ac_check_lib_save_LIBS
=$LIBS
14610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14619 char des_cbc_encrypt ();
14623 return des_cbc_encrypt ();
14628 if ac_fn_c_try_link
"$LINENO"; then :
14629 ac_cv_lib_des_des_cbc_encrypt
=yes
14631 ac_cv_lib_des_des_cbc_encrypt
=no
14633 rm -f core conftest.err conftest.
$ac_objext \
14634 conftest
$ac_exeext conftest.
$ac_ext
14635 LIBS
=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14638 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14639 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14645 if test $have_des = yes; then
14647 LIBS
="$DESLIB $LIBS"
14649 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14654 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14655 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14658 ac_check_lib_save_LIBS
=$LIBS
14659 LIBS
="-lkrb4 $LIBS"
14660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14663 /* Override any GCC internal prototype to avoid an error.
14664 Use char because int might match the return type of a GCC
14665 builtin and then its argument prototype would still apply. */
14669 char krb_get_cred ();
14673 return krb_get_cred ();
14678 if ac_fn_c_try_link
"$LINENO"; then :
14679 ac_cv_lib_krb4_krb_get_cred
=yes
14681 ac_cv_lib_krb4_krb_get_cred
=no
14683 rm -f core conftest.err conftest.
$ac_objext \
14684 conftest
$ac_exeext conftest.
$ac_ext
14685 LIBS
=$ac_check_lib_save_LIBS
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14688 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14689 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14695 if test $have_krb4 = yes; then
14697 LIBS
="$KRB4LIB $LIBS"
14699 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14703 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14704 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14707 ac_check_lib_save_LIBS
=$LIBS
14709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14712 /* Override any GCC internal prototype to avoid an error.
14713 Use char because int might match the return type of a GCC
14714 builtin and then its argument prototype would still apply. */
14718 char krb_get_cred ();
14722 return krb_get_cred ();
14727 if ac_fn_c_try_link
"$LINENO"; then :
14728 ac_cv_lib_krb_krb_get_cred
=yes
14730 ac_cv_lib_krb_krb_get_cred
=no
14732 rm -f core conftest.err conftest.
$ac_objext \
14733 conftest
$ac_exeext conftest.
$ac_ext
14734 LIBS
=$ac_check_lib_save_LIBS
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14737 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14738 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14744 if test $have_krb = yes; then
14746 LIBS
="$KRB4LIB $LIBS"
14748 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14754 if test "${with_kerberos5}" != no
; then
14755 for ac_header
in krb5.h
14757 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14758 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14759 cat >>confdefs.h
<<_ACEOF
14760 #define HAVE_KRB5_H 1
14762 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14764 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14766 cat >>confdefs.h
<<_ACEOF
14767 #define HAVE_KRB5_ERROR_TEXT 1
14772 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14774 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14776 cat >>confdefs.h
<<_ACEOF
14777 #define HAVE_KRB5_ERROR_E_TEXT 1
14788 for ac_header
in des.h
14790 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14791 if test "x$ac_cv_header_des_h" = x
""yes; then :
14792 cat >>confdefs.h
<<_ACEOF
14793 #define HAVE_DES_H 1
14797 for ac_header
in kerberosIV
/des.h
14799 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14800 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14801 cat >>confdefs.h
<<_ACEOF
14802 #define HAVE_KERBEROSIV_DES_H 1
14806 for ac_header
in kerberos
/des.h
14808 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14809 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14810 cat >>confdefs.h
<<_ACEOF
14811 #define HAVE_KERBEROS_DES_H 1
14826 for ac_header
in krb.h
14828 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14829 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14830 cat >>confdefs.h
<<_ACEOF
14831 #define HAVE_KRB_H 1
14835 for ac_header
in kerberosIV
/krb.h
14837 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14838 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14839 cat >>confdefs.h
<<_ACEOF
14840 #define HAVE_KERBEROSIV_KRB_H 1
14844 for ac_header
in kerberos
/krb.h
14846 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14847 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14848 cat >>confdefs.h
<<_ACEOF
14849 #define HAVE_KERBEROS_KRB_H 1
14865 for ac_header
in com_err.h
14867 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14869 cat >>confdefs.h
<<_ACEOF
14870 #define HAVE_COM_ERR_H 1
14885 # Solaris requires -lintl if you want strerror (which calls dgettext)
14886 # to return localized messages.
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14888 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14889 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14890 $as_echo_n "(cached) " >&6
14892 ac_check_lib_save_LIBS
=$LIBS
14893 LIBS
="-lintl $LIBS"
14894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14897 /* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14907 return dgettext ();
14912 if ac_fn_c_try_link
"$LINENO"; then :
14913 ac_cv_lib_intl_dgettext
=yes
14915 ac_cv_lib_intl_dgettext
=no
14917 rm -f core conftest.err conftest.
$ac_objext \
14918 conftest
$ac_exeext conftest.
$ac_ext
14919 LIBS
=$ac_check_lib_save_LIBS
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14922 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14923 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
14924 cat >>confdefs.h
<<_ACEOF
14925 #define HAVE_LIBINTL 1
14928 LIBS
="-lintl $LIBS"
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14934 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14935 if test "${emacs_cv_localtime_cache+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14938 if test x
$ac_cv_func_tzset = xyes
; then
14939 if test "$cross_compiling" = yes; then :
14940 # If we have tzset, assume the worst when cross-compiling.
14941 emacs_cv_localtime_cache
=yes
14943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14946 char TZ_GMT0[] = "TZ=GMT0";
14947 char TZ_PST8[] = "TZ=PST8";
14950 time_t now = time ((time_t *) 0);
14951 int hour_GMT0, hour_unset;
14952 if (putenv (TZ_GMT0) != 0)
14954 hour_GMT0 = localtime (&now)->tm_hour;
14956 hour_unset = localtime (&now)->tm_hour;
14957 if (putenv (TZ_PST8) != 0)
14959 if (localtime (&now)->tm_hour == hour_GMT0)
14962 if (localtime (&now)->tm_hour != hour_unset)
14967 if ac_fn_c_try_run
"$LINENO"; then :
14968 emacs_cv_localtime_cache
=no
14970 emacs_cv_localtime_cache
=yes
14972 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14973 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14977 # If we lack tzset, report that localtime does not cache TZ,
14978 # since we can't invalidate the cache if we don't have tzset.
14979 emacs_cv_localtime_cache
=no
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14983 $as_echo "$emacs_cv_localtime_cache" >&6; }
14984 if test $emacs_cv_localtime_cache = yes; then
14986 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14990 if test "x$HAVE_TIMEVAL" = xyes
; then
14991 for ac_func
in gettimeofday
14993 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14994 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14995 cat >>confdefs.h
<<_ACEOF
14996 #define HAVE_GETTIMEOFDAY 1
15002 if test $ac_cv_func_gettimeofday = yes; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15004 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15005 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15006 $as_echo_n "(cached) " >&6
15008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15011 #ifdef TIME_WITH_SYS_TIME
15012 #include <sys/time.h>
15015 #ifdef HAVE_SYS_TIME_H
15016 #include <sys/time.h>
15024 struct timeval time;
15025 gettimeofday (&time, 0);
15030 if ac_fn_c_try_compile
"$LINENO"; then :
15031 emacs_cv_gettimeofday_two_arguments
=yes
15033 emacs_cv_gettimeofday_two_arguments
=no
15035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15038 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15039 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15041 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15048 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15049 if test "x$ac_cv_func_socket" = x
""yes; then :
15055 if test $ok_so_far = yes; then
15056 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15057 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15065 if test $ok_so_far = yes; then
15066 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15067 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15075 if test $ok_so_far = yes; then
15077 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15081 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15083 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15088 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15089 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15091 $as_echo "yes" >&6; }
15093 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15100 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15101 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15105 cat >>confdefs.h
<<_ACEOF
15111 for ac_header
in vfork.h
15113 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15114 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15115 cat >>confdefs.h
<<_ACEOF
15116 #define HAVE_VFORK_H 1
15123 for ac_func
in fork vfork
15125 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15126 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15127 eval as_val
=\$
$as_ac_var
15128 if test "x$as_val" = x
""yes; then :
15129 cat >>confdefs.h
<<_ACEOF
15130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15136 if test "x$ac_cv_func_fork" = xyes
; then
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15138 $as_echo_n "checking for working fork... " >&6; }
15139 if test "${ac_cv_func_fork_works+set}" = set; then :
15140 $as_echo_n "(cached) " >&6
15142 if test "$cross_compiling" = yes; then :
15143 ac_cv_func_fork_works
=cross
15145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 $ac_includes_default
15152 /* By Ruediger Kuhlmann. */
15153 return fork () < 0;
15159 if ac_fn_c_try_run
"$LINENO"; then :
15160 ac_cv_func_fork_works
=yes
15162 ac_cv_func_fork_works
=no
15164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15170 $as_echo "$ac_cv_func_fork_works" >&6; }
15173 ac_cv_func_fork_works
=$ac_cv_func_fork
15175 if test "x$ac_cv_func_fork_works" = xcross
; then
15177 *-*-amigaos* |
*-*-msdosdjgpp*)
15178 # Override, as these systems have only a dummy fork() stub
15179 ac_cv_func_fork_works
=no
15182 ac_cv_func_fork_works
=yes
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15186 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15188 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15189 if test "x$ac_cv_func_vfork" = xyes
; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15191 $as_echo_n "checking for working vfork... " >&6; }
15192 if test "${ac_cv_func_vfork_works+set}" = set; then :
15193 $as_echo_n "(cached) " >&6
15195 if test "$cross_compiling" = yes; then :
15196 ac_cv_func_vfork_works
=cross
15198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15200 /* Thanks to Paul Eggert for this test. */
15201 $ac_includes_default
15202 #include <sys/wait.h>
15203 #ifdef HAVE_VFORK_H
15204 # include <vfork.h>
15206 /* On some sparc systems, changes by the child to local and incoming
15207 argument registers are propagated back to the parent. The compiler
15208 is told about this with #include <vfork.h>, but some compilers
15209 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15210 static variable whose address is put into a register that is
15211 clobbered by the vfork. */
15214 sparc_address_test (int arg)
15216 sparc_address_test (arg) int arg;
15219 static pid_t child;
15237 pid_t parent = getpid ();
15240 sparc_address_test (0);
15245 /* Here is another test for sparc vfork register problems. This
15246 test uses lots of local variables, at least as many local
15247 variables as main has allocated so far including compiler
15248 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15249 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15250 reuse the register of parent for one of the local variables,
15251 since it will think that parent can't possibly be used any more
15252 in this routine. Assigning to the local variable will thus
15253 munge parent in the parent process. */
15255 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15256 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15257 /* Convince the compiler that p..p7 are live; otherwise, it might
15258 use the same hardware register for all 8 local variables. */
15259 if (p != p1 || p != p2 || p != p3 || p != p4
15260 || p != p5 || p != p6 || p != p7)
15263 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15264 from child file descriptors. If the child closes a descriptor
15265 before it execs or exits, this munges the parent's descriptor
15266 as well. Test for this by closing stdout in the child. */
15267 _exit(close(fileno(stdout)) != 0);
15272 while (wait(&status) != child)
15275 /* Was there some problem with vforking? */
15278 /* Did the child fail? (This shouldn't happen.) */
15281 /* Did the vfork/compiler bug occur? */
15282 || parent != getpid()
15284 /* Did the file descriptor bug occur? */
15285 || fstat(fileno(stdout), &st) != 0
15290 if ac_fn_c_try_run
"$LINENO"; then :
15291 ac_cv_func_vfork_works
=yes
15293 ac_cv_func_vfork_works
=no
15295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15301 $as_echo "$ac_cv_func_vfork_works" >&6; }
15304 if test "x$ac_cv_func_fork_works" = xcross
; then
15305 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15307 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15310 if test "x$ac_cv_func_vfork_works" = xyes
; then
15312 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15316 $as_echo "#define vfork fork" >>confdefs.h
15319 if test "x$ac_cv_func_fork_works" = xyes
; then
15321 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15327 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15328 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15329 $as_echo_n "(cached) " >&6
15331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333 #include <langinfo.h>
15337 char* cs = nl_langinfo(CODESET);
15342 if ac_fn_c_try_link
"$LINENO"; then :
15343 emacs_cv_langinfo_codeset
=yes
15345 emacs_cv_langinfo_codeset
=no
15347 rm -f core conftest.err conftest.
$ac_objext \
15348 conftest
$ac_exeext conftest.
$ac_ext
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15352 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15353 if test $emacs_cv_langinfo_codeset = yes; then
15355 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15360 $as_echo_n "checking for mbstate_t... " >&6; }
15361 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 # include <wchar.h>
15371 mbstate_t x; return sizeof x;
15376 if ac_fn_c_try_compile
"$LINENO"; then :
15377 ac_cv_type_mbstate_t
=yes
15379 ac_cv_type_mbstate_t
=no
15381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15384 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15385 if test $ac_cv_type_mbstate_t = yes; then
15387 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15391 $as_echo "#define mbstate_t int" >>confdefs.h
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15396 $as_echo_n "checking for C restricted array declarations... " >&6; }
15397 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 void fred (int x[__restrict]);
15411 if ac_fn_c_try_compile
"$LINENO"; then :
15412 emacs_cv_c_restrict_arr
=yes
15414 emacs_cv_c_restrict_arr
=no
15416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15419 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15420 if test "$emacs_cv_c_restrict_arr" = yes; then
15422 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15427 # Set up the CFLAGS for real compilation, so we can substitute it.
15428 CFLAGS
="$REAL_CFLAGS"
15429 CPPFLAGS
="$REAL_CPPFLAGS"
15431 ## Hack to detect a buggy GCC version.
15432 if test "x$GCC" = xyes \
15433 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15434 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15435 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15436 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15439 version
=$PACKAGE_VERSION
15441 ### Specify what sort of things we'll be editing into Makefile and config.h.
15442 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15466 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15467 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15468 ## end of LIBX_BASE, but nothing ever set it.
15473 ## Used in lwlib/Makefile.in.
15475 if test -n "${machfile}"; then
15476 M_FILE
="\$(srcdir)/${machfile}"
15480 S_FILE
="\$(srcdir)/${opsysfile}"
15491 cat >>confdefs.h
<<_ACEOF
15492 #define EMACS_CONFIGURATION "${canonical}"
15496 cat >>confdefs.h
<<_ACEOF
15497 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15500 if test -n "$machfile"; then
15502 cat >>confdefs.h
<<_ACEOF
15503 #define config_machfile "${machfile}"
15508 cat >>confdefs.h
<<_ACEOF
15509 #define config_opsysfile "${opsysfile}"
15516 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15518 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15521 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15523 if test "$HAVE_XFT" = "yes"; then
15524 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15525 elif test "$HAVE_FREETYPE" = "yes"; then
15526 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15536 if test "${USE_X_TOOLKIT}" != "none" ; then
15537 WIDGET_OBJ
=widget.o
15539 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15541 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15543 $as_echo "#define USE_LUCID 1" >>confdefs.h
15545 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15547 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15552 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15553 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15557 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15558 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15559 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15563 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15564 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15567 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15573 case "$USE_X_TOOLKIT" in
15574 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15575 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15576 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15580 if test "$USE_X_TOOLKIT" = "none"; then
15581 LIBXT_OTHER
="\$(LIBXSM)"
15582 OLDXMENU_TARGET
="really-oldXMenu"
15584 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15585 OLDXMENU_TARGET
="really-lwlib"
15589 ## The X Menu stuff is present in the X10 distribution, but missing
15590 ## from X11. If we have X10, just use the installed library;
15591 ## otherwise, use our own copy.
15592 if test "${HAVE_X11}" = "yes" ; then
15594 $as_echo "#define HAVE_X11 1" >>confdefs.h
15597 if test "$USE_X_TOOLKIT" = "none"; then
15598 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15600 OLDXMENU
="\${lwlibdir}/liblw.a"
15602 LIBXMENU
="\$(OLDXMENU)"
15603 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15604 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15606 ## For a syntactically valid Makefile; not actually used for anything.
15607 ## See comments in src/Makefile.in.
15609 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15610 if test "${HAVE_X_WINDOWS}" = "yes"; then
15619 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15632 if test "${HAVE_MENUS}" = "yes" ; then
15634 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15638 if test "${GNU_MALLOC}" = "yes" ; then
15640 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15645 if test "${REL_ALLOC}" = "yes" ; then
15647 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15650 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15654 if test "$opsys" = "cygwin"; then
15655 CYGWIN_OBJ
="sheap.o"
15656 ## Cygwin differs because of its unexec().
15658 POST_ALLOC_OBJ
=lastfile.o
15661 PRE_ALLOC_OBJ
=lastfile.o
15668 # Configure gnulib here, now that we know LIBS.
15679 LIBC_FATAL_STDERR_
=1
15680 export LIBC_FATAL_STDERR_
15682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15683 # for constant arguments. Useless!
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15685 $as_echo_n "checking for working alloca.h... " >&6; }
15686 if test "${ac_cv_working_alloca_h+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691 #include <alloca.h>
15695 char *p = (char *) alloca (2 * sizeof (int));
15701 if ac_fn_c_try_link
"$LINENO"; then :
15702 ac_cv_working_alloca_h
=yes
15704 ac_cv_working_alloca_h
=no
15706 rm -f core conftest.err conftest.
$ac_objext \
15707 conftest
$ac_exeext conftest.
$ac_ext
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15710 $as_echo "$ac_cv_working_alloca_h" >&6; }
15711 if test $ac_cv_working_alloca_h = yes; then
15713 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15718 $as_echo_n "checking for alloca... " >&6; }
15719 if test "${ac_cv_func_alloca_works+set}" = set; then :
15720 $as_echo_n "(cached) " >&6
15722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15725 # define alloca __builtin_alloca
15728 # include <malloc.h>
15729 # define alloca _alloca
15731 # ifdef HAVE_ALLOCA_H
15732 # include <alloca.h>
15737 # ifndef alloca /* predefined by HP cc +Olibcalls */
15748 char *p = (char *) alloca (1);
15754 if ac_fn_c_try_link
"$LINENO"; then :
15755 ac_cv_func_alloca_works
=yes
15757 ac_cv_func_alloca_works
=no
15759 rm -f core conftest.err conftest.
$ac_objext \
15760 conftest
$ac_exeext conftest.
$ac_ext
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15763 $as_echo "$ac_cv_func_alloca_works" >&6; }
15765 if test $ac_cv_func_alloca_works = yes; then
15767 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15770 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15771 # that cause trouble. Some versions do not even contain alloca or
15772 # contain a buggy version. If you still want to use their alloca,
15773 # use ar to extract alloca.o from them instead of compiling alloca.c.
15779 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15781 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15785 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15786 if test "${ac_cv_os_cray+set}" = set; then :
15787 $as_echo_n "(cached) " >&6
15789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15791 #if defined CRAY && ! defined CRAY2
15798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15799 $EGREP "webecray" >/dev
/null
2>&1; then :
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15808 $as_echo "$ac_cv_os_cray" >&6; }
15809 if test $ac_cv_os_cray = yes; then
15810 for ac_func
in _getb67 GETB67 getb67
; do
15811 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15812 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15813 eval as_val
=\$
$as_ac_var
15814 if test "x$as_val" = x
""yes; then :
15816 cat >>confdefs.h
<<_ACEOF
15817 #define CRAY_STACKSEG_END $ac_func
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15827 $as_echo_n "checking stack direction for C alloca... " >&6; }
15828 if test "${ac_cv_c_stack_direction+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15831 if test "$cross_compiling" = yes; then :
15832 ac_cv_c_stack_direction
=0
15834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 $ac_includes_default
15838 find_stack_direction (int *addr, int depth)
15840 int dir, dummy = 0;
15843 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15844 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15845 return dir + dummy;
15849 main (int argc, char **argv)
15851 return find_stack_direction (0, argc + !argv + 20) < 0;
15854 if ac_fn_c_try_run
"$LINENO"; then :
15855 ac_cv_c_stack_direction
=1
15857 ac_cv_c_stack_direction
=-1
15859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15865 $as_echo "$ac_cv_c_stack_direction" >&6; }
15866 cat >>confdefs.h
<<_ACEOF
15867 #define STACK_DIRECTION $ac_cv_c_stack_direction
15876 for ac_func
in $ac_func_list
15878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15880 eval as_val
=\$
$as_ac_var
15881 if test "x$as_val" = x
""yes; then :
15882 cat >>confdefs.h
<<_ACEOF
15883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15893 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15894 if test "${ac_cv_c_bigendian+set}" = set; then :
15895 $as_echo_n "(cached) " >&6
15897 ac_cv_c_bigendian
=unknown
15898 # See if we're dealing with a universal compiler.
15899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15901 #ifndef __APPLE_CC__
15902 not a universal capable compiler
15907 if ac_fn_c_try_compile
"$LINENO"; then :
15909 # Check for potential -arch flags. It is not universal unless
15910 # there are at least two -arch flags with different values.
15913 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15914 if test -n "$ac_prev"; then
15916 i?
86 | x86_64 | ppc | ppc64
)
15917 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15920 ac_cv_c_bigendian
=universal
15926 elif test "x$ac_word" = "x-arch"; then
15931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15932 if test $ac_cv_c_bigendian = unknown
; then
15933 # See if sys/param.h defines the BYTE_ORDER macro.
15934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15936 #include <sys/types.h>
15937 #include <sys/param.h>
15942 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15943 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15945 bogus endian macros
15952 if ac_fn_c_try_compile
"$LINENO"; then :
15953 # It does; now see whether it defined to BIG_ENDIAN or not.
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 #include <sys/types.h>
15957 #include <sys/param.h>
15962 #if BYTE_ORDER != BIG_ENDIAN
15970 if ac_fn_c_try_compile
"$LINENO"; then :
15971 ac_cv_c_bigendian
=yes
15973 ac_cv_c_bigendian
=no
15975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15979 if test $ac_cv_c_bigendian = unknown
; then
15980 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983 #include <limits.h>
15988 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15989 bogus endian macros
15996 if ac_fn_c_try_compile
"$LINENO"; then :
15997 # It does; now see whether it defined to _BIG_ENDIAN or not.
15998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #include <limits.h>
16005 #ifndef _BIG_ENDIAN
16013 if ac_fn_c_try_compile
"$LINENO"; then :
16014 ac_cv_c_bigendian
=yes
16016 ac_cv_c_bigendian
=no
16018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16022 if test $ac_cv_c_bigendian = unknown
; then
16023 # Compile a test program.
16024 if test "$cross_compiling" = yes; then :
16025 # Try to guess by grepping values from an object file.
16026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16028 short int ascii_mm[] =
16029 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16030 short int ascii_ii[] =
16031 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16032 int use_ascii (int i) {
16033 return ascii_mm[i] + ascii_ii[i];
16035 short int ebcdic_ii[] =
16036 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16037 short int ebcdic_mm[] =
16038 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16039 int use_ebcdic (int i) {
16040 return ebcdic_mm[i] + ebcdic_ii[i];
16047 return use_ascii (foo) == use_ebcdic (foo);
16052 if ac_fn_c_try_compile
"$LINENO"; then :
16053 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16054 ac_cv_c_bigendian
=yes
16056 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16057 if test "$ac_cv_c_bigendian" = unknown
; then
16058 ac_cv_c_bigendian
=no
16060 # finding both strings is unlikely to happen, but who knows?
16061 ac_cv_c_bigendian
=unknown
16065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 $ac_includes_default
16074 /* Are we little or big endian? From Harbison&Steele. */
16078 char c[sizeof (long int)];
16081 return u.c[sizeof (long int) - 1] == 1;
16087 if ac_fn_c_try_run
"$LINENO"; then :
16088 ac_cv_c_bigendian
=no
16090 ac_cv_c_bigendian
=yes
16092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16099 $as_echo "$ac_cv_c_bigendian" >&6; }
16100 case $ac_cv_c_bigendian in #(
16102 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16108 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16112 as_fn_error
"unknown endianness
16113 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16118 $as_echo_n "checking for inline... " >&6; }
16119 if test "${ac_cv_c_inline+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16123 for ac_kw
in inline __inline__ __inline
; do
16124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 #ifndef __cplusplus
16128 static $ac_kw foo_t static_foo () {return 0; }
16129 $ac_kw foo_t foo () {return 0; }
16133 if ac_fn_c_try_compile
"$LINENO"; then :
16134 ac_cv_c_inline
=$ac_kw
16136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16137 test "$ac_cv_c_inline" != no
&& break
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16142 $as_echo "$ac_cv_c_inline" >&6; }
16144 case $ac_cv_c_inline in
16147 case $ac_cv_c_inline in
16149 *) ac_val
=$ac_cv_c_inline;;
16151 cat >>confdefs.h
<<_ACEOF
16152 #ifndef __cplusplus
16153 #define inline $ac_val
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16161 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16162 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16163 $as_echo_n "(cached) " >&6
16165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 /* On HP-UX before 11.23, strtold returns a struct instead of
16168 long double. Reject implementations like that, by requiring
16169 compatibility with the C99 prototype. */
16170 #include <stdlib.h>
16171 static long double (*p) (char const *, char **) = strtold;
16173 test (char const *nptr, char **endptr)
16176 r = strtold (nptr, endptr);
16182 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16187 if ac_fn_c_try_link
"$LINENO"; then :
16188 gl_cv_func_c99_strtold
=yes
16190 gl_cv_func_c99_strtold
=no
16192 rm -f core conftest.err conftest.
$ac_objext \
16193 conftest
$ac_exeext conftest.
$ac_ext
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16196 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16197 if test $gl_cv_func_c99_strtold = yes; then
16199 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16209 GNULIB_EUIDACCESS
=0;
16210 GNULIB_FACCESSAT
=0;
16214 GNULIB_FTRUNCATE
=0;
16216 GNULIB_GETDOMAINNAME
=0;
16217 GNULIB_GETDTABLESIZE
=0;
16218 GNULIB_GETGROUPS
=0;
16219 GNULIB_GETHOSTNAME
=0;
16221 GNULIB_GETLOGIN_R
=0;
16222 GNULIB_GETPAGESIZE
=0;
16223 GNULIB_GETUSERSHELL
=0;
16224 GNULIB_GROUP_MEMBER
=0;
16235 GNULIB_READLINKAT
=0;
16239 GNULIB_SYMLINKAT
=0;
16240 GNULIB_TTYNAME_R
=0;
16241 GNULIB_UNISTD_H_GETOPT
=0;
16242 GNULIB_UNISTD_H_NONBLOCKING
=0;
16243 GNULIB_UNISTD_H_SIGPIPE
=0;
16257 HAVE_GETDTABLESIZE
=1;
16259 HAVE_GETHOSTNAME
=1;
16261 HAVE_GETPAGESIZE
=1;
16262 HAVE_GROUP_MEMBER
=1;
16277 HAVE_DECL_ENVIRON
=1;
16278 HAVE_DECL_FCHDIR
=1;
16279 HAVE_DECL_GETDOMAINNAME
=1;
16280 HAVE_DECL_GETLOGIN_R
=1;
16281 HAVE_DECL_GETPAGESIZE
=1;
16282 HAVE_DECL_GETUSERSHELL
=1;
16283 HAVE_DECL_TTYNAME_R
=1;
16285 HAVE_SYS_PARAM_H
=0;
16290 REPLACE_FCHOWNAT
=0;
16292 REPLACE_GETDOMAINNAME
=0;
16293 REPLACE_GETLOGIN_R
=0;
16294 REPLACE_GETGROUPS
=0;
16295 REPLACE_GETPAGESIZE
=0;
16303 REPLACE_READLINK
=0;
16307 REPLACE_TTYNAME_R
=0;
16309 REPLACE_UNLINKAT
=0;
16312 UNISTD_H_HAVE_WINSOCK2_H
=0;
16313 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16319 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16320 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16321 $as_echo_n "(cached) " >&6
16323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16326 #include <sys/types.h>
16327 #include <sys/stat.h>
16331 struct stat s; s.st_dm_mode;
16336 if ac_fn_c_try_compile
"$LINENO"; then :
16337 ac_cv_struct_st_dm_mode
=yes
16339 ac_cv_struct_st_dm_mode
=no
16341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16344 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16346 if test $ac_cv_struct_st_dm_mode = yes; then
16348 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16353 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16354 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16360 cat >>confdefs.h
<<_ACEOF
16361 #define HAVE_DECL_STRMODE $ac_have_decl
16367 GNULIB_CALLOC_POSIX
=0;
16368 GNULIB_CANONICALIZE_FILE_NAME
=0;
16369 GNULIB_GETLOADAVG
=0;
16370 GNULIB_GETSUBOPT
=0;
16372 GNULIB_MALLOC_POSIX
=0;
16376 GNULIB_MKOSTEMPS
=0;
16382 GNULIB_REALLOC_POSIX
=0;
16389 GNULIB_SYSTEM_POSIX
=0;
16395 HAVE_CANONICALIZE_FILE_NAME
=1;
16396 HAVE_DECL_GETLOADAVG
=1;
16410 HAVE_DECL_SETENV
=1;
16414 HAVE_STRUCT_RANDOM_DATA
=1;
16415 HAVE_SYS_LOADAVG_H
=0;
16417 HAVE_DECL_UNSETENV
=1;
16419 REPLACE_CANONICALIZE_FILE_NAME
=0;
16425 REPLACE_REALPATH
=0;
16428 REPLACE_UNSETENV
=0;
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16434 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16435 if test "${gl_cv_have_include_next+set}" = set; then :
16436 $as_echo_n "(cached) " >&6
16438 rm -rf conftestd1a conftestd1b conftestd2
16439 mkdir conftestd1a conftestd1b conftestd2
16440 cat <<EOF > conftestd1a/conftest.h
16441 #define DEFINED_IN_CONFTESTD1
16442 #include_next <conftest.h>
16443 #ifdef DEFINED_IN_CONFTESTD2
16446 #error "include_next doesn't work"
16449 cat <<EOF > conftestd1b/conftest.h
16450 #define DEFINED_IN_CONFTESTD1
16452 #include_next <conftest.h>
16453 #ifdef DEFINED_IN_CONFTESTD2
16456 #error "include_next doesn't work"
16459 cat <<EOF > conftestd2/conftest.h
16460 #ifndef DEFINED_IN_CONFTESTD1
16461 #error "include_next test doesn't work"
16463 #define DEFINED_IN_CONFTESTD2
16465 gl_save_CPPFLAGS
="$CPPFLAGS"
16466 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 #include <conftest.h>
16471 if ac_fn_c_try_compile
"$LINENO"; then :
16472 gl_cv_have_include_next
=yes
16474 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <conftest.h>
16479 if ac_fn_c_try_compile
"$LINENO"; then :
16480 gl_cv_have_include_next
=buggy
16482 gl_cv_have_include_next
=no
16484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16488 CPPFLAGS
="$gl_save_CPPFLAGS"
16489 rm -rf conftestd1a conftestd1b conftestd2
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16493 $as_echo "$gl_cv_have_include_next" >&6; }
16494 PRAGMA_SYSTEM_HEADER
=
16495 if test $gl_cv_have_include_next = yes; then
16496 INCLUDE_NEXT
=include_next
16497 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16498 if test -n "$GCC"; then
16499 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16502 if test $gl_cv_have_include_next = buggy
; then
16503 INCLUDE_NEXT
=include
16504 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16506 INCLUDE_NEXT
=include
16507 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16514 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16515 if test "${gl_cv_pragma_columns+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16527 $EGREP "choke me" >/dev
/null
2>&1; then :
16528 gl_cv_pragma_columns
=yes
16530 gl_cv_pragma_columns
=no
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16537 $as_echo "$gl_cv_pragma_columns" >&6; }
16538 if test $gl_cv_pragma_columns = yes; then
16539 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16560 if test $gl_cv_have_include_next = yes; then
16561 gl_cv_next_getopt_h
='<'getopt.h
'>'
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16564 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16565 if test "${gl_cv_next_getopt_h+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16569 if test $ac_cv_header_getopt_h = yes; then
16572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16574 #include <getopt.h>
16578 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16579 *) gl_absname_cpp
="$ac_cpp" ;;
16581 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16582 sed -n '\#/getopt.h#{
16583 s#.*"\(.*/getopt.h\)".*#\1#
16589 gl_cv_next_getopt_h
='<'getopt.h
'>'
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16595 $as_echo "$gl_cv_next_getopt_h" >&6; }
16597 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16599 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16601 gl_next_as_first_directive
='<'getopt.h
'>'
16603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16604 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16606 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16611 if test $ac_cv_header_getopt_h = yes; then
16620 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16621 for ac_header
in getopt.h
16623 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16624 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16625 cat >>confdefs.h
<<_ACEOF
16626 #define HAVE_GETOPT_H 1
16630 gl_replace_getopt
=yes
16637 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16638 for ac_func
in getopt_long_only
16640 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16641 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16642 cat >>confdefs.h
<<_ACEOF
16643 #define HAVE_GETOPT_LONG_ONLY 1
16647 gl_replace_getopt
=yes
16653 if test -z "$gl_replace_getopt"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16655 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16656 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
16660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662 #include <unistd.h>
16666 int *p = &optreset; return optreset;
16671 if ac_fn_c_try_link
"$LINENO"; then :
16674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 #include <getopt.h>
16680 return !getopt_clip;
16685 if ac_fn_c_try_compile
"$LINENO"; then :
16690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16692 rm -f core conftest.err conftest.
$ac_objext \
16693 conftest
$ac_exeext conftest.
$ac_ext
16695 gl_save_CPPFLAGS
=$CPPFLAGS
16696 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16697 if test "$cross_compiling" = yes; then :
16699 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16700 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16701 *) gl_cv_func_getopt_posix
="guessing yes";;
16705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16708 #include <unistd.h>
16709 #include <stdlib.h>
16710 #include <string.h>
16716 static char program[] = "program";
16717 static char a[] = "-a";
16718 static char foo[] = "foo";
16719 static char bar[] = "bar";
16720 char *argv[] = { program, a, foo, bar, NULL };
16723 optind = OPTIND_MIN;
16726 c = getopt (4, argv, "ab");
16729 c = getopt (4, argv, "ab");
16732 if (!(optind == 2))
16735 /* Some internal state exists at this point. */
16737 static char program[] = "program";
16738 static char donald[] = "donald";
16739 static char p[] = "-p";
16740 static char billy[] = "billy";
16741 static char duck[] = "duck";
16742 static char a[] = "-a";
16743 static char bar[] = "bar";
16744 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16747 optind = OPTIND_MIN;
16750 c = getopt (7, argv, "+abp:q:");
16753 if (!(strcmp (argv[0], "program") == 0))
16755 if (!(strcmp (argv[1], "donald") == 0))
16757 if (!(strcmp (argv[2], "-p") == 0))
16759 if (!(strcmp (argv[3], "billy") == 0))
16761 if (!(strcmp (argv[4], "duck") == 0))
16763 if (!(strcmp (argv[5], "-a") == 0))
16765 if (!(strcmp (argv[6], "bar") == 0))
16767 if (!(optind == 1))
16770 /* Detect MacOS 10.5, AIX 7.1 bug. */
16772 static char program[] = "program";
16773 static char ab[] = "-ab";
16774 char *argv[3] = { program, ab, NULL };
16775 optind = OPTIND_MIN;
16777 if (getopt (2, argv, "ab:") != 'a')
16779 if (getopt (2, argv, "ab:") != '?')
16791 if ac_fn_c_try_run
"$LINENO"; then :
16792 gl_cv_func_getopt_posix
=yes
16794 gl_cv_func_getopt_posix
=no
16796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16800 CPPFLAGS
=$gl_save_CPPFLAGS
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16804 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16805 case "$gl_cv_func_getopt_posix" in
16806 *no
) gl_replace_getopt
=yes ;;
16810 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16812 $as_echo_n "checking for working GNU getopt function... " >&6; }
16813 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16814 $as_echo_n "(cached) " >&6
16816 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16817 # optstring is necessary for programs like m4 that have POSIX-mandated
16818 # semantics for supporting options interspersed with files.
16819 # Also, since getopt_long is a GNU extension, we require optind=0.
16820 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16821 # so take care to revert to the correct (non-)export state.
16822 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16823 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16824 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
16825 x
) gl_had_POSIXLY_CORRECT
=yes ;;
16826 *) gl_had_POSIXLY_CORRECT
= ;;
16829 export POSIXLY_CORRECT
16830 if test "$cross_compiling" = yes; then :
16831 case $host_os:$ac_cv_have_decl_optreset in
16832 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
16833 *:yes) gl_cv_func_getopt_gnu
=no
;;
16834 *) gl_cv_func_getopt_gnu
=yes;;
16838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 #include <getopt.h>
16841 #include <stddef.h>
16842 #include <string.h>
16849 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16850 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16851 OSF/1 5.1, Solaris 10. */
16853 static char conftest[] = "conftest";
16854 static char plus[] = "-+";
16855 char *argv[3] = { conftest, plus, NULL };
16857 if (getopt (2, argv, "+a") != '?')
16860 /* This code succeeds on glibc 2.8, mingw,
16861 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16862 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16864 static char program[] = "program";
16865 static char p[] = "-p";
16866 static char foo[] = "foo";
16867 static char bar[] = "bar";
16868 char *argv[] = { program, p, foo, bar, NULL };
16871 if (getopt (4, argv, "p::") != 'p')
16873 else if (optarg != NULL)
16875 else if (getopt (4, argv, "p::") != -1)
16877 else if (optind != 2)
16880 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16882 static char program[] = "program";
16883 static char foo[] = "foo";
16884 static char p[] = "-p";
16885 char *argv[] = { program, foo, p, NULL };
16887 if (getopt (3, argv, "-p") != 1)
16889 else if (getopt (3, argv, "-p") != 'p')
16892 /* This code fails on glibc 2.11. */
16894 static char program[] = "program";
16895 static char b[] = "-b";
16896 static char a[] = "-a";
16897 char *argv[] = { program, b, a, NULL };
16898 optind = opterr = 0;
16899 if (getopt (3, argv, "+:a:b") != 'b')
16901 else if (getopt (3, argv, "+:a:b") != ':')
16904 /* This code dumps core on glibc 2.14. */
16906 static char program[] = "program";
16907 static char w[] = "-W";
16908 static char dummy[] = "dummy";
16909 char *argv[] = { program, w, dummy, NULL };
16910 optind = opterr = 1;
16911 if (getopt (3, argv, "W;") != 'W')
16920 if ac_fn_c_try_run
"$LINENO"; then :
16921 gl_cv_func_getopt_gnu
=yes
16923 gl_cv_func_getopt_gnu
=no
16925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16929 case $gl_had_POSIXLY_CORRECT in
16931 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
16932 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16937 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16938 if test "$gl_cv_func_getopt_gnu" = "no"; then
16939 gl_replace_getopt
=yes
16950 if test -n "$gl_replace_getopt"; then :
16957 if test $REPLACE_GETOPT = 1; then
16961 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16965 GNULIB_UNISTD_H_GETOPT
=1
16968 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16969 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
16975 cat >>confdefs.h
<<_ACEOF
16976 #define HAVE_DECL_GETENV $ac_have_decl
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16981 $as_echo_n "checking for unsigned long long int... " >&6; }
16982 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16983 $as_echo_n "(cached) " >&6
16985 ac_cv_type_unsigned_long_long_int
=yes
16986 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16990 /* For now, do not test the preprocessor; as of 2007 there are too many
16991 implementations with broken preprocessors. Perhaps this can
16992 be revisited in 2012. In the meantime, code should not expect
16993 #if to work with literals wider than 32 bits. */
16994 /* Test literals. */
16995 long long int ll = 9223372036854775807ll;
16996 long long int nll = -9223372036854775807LL;
16997 unsigned long long int ull = 18446744073709551615ULL;
16998 /* Test constant expressions. */
16999 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17001 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17007 /* Test availability of runtime routines for shift and division. */
17008 long long int llmax = 9223372036854775807ll;
17009 unsigned long long int ullmax = 18446744073709551615ull;
17010 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17011 | (llmax / ll) | (llmax % ll)
17012 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17013 | (ullmax / ull) | (ullmax % ull));
17019 if ac_fn_c_try_link
"$LINENO"; then :
17022 ac_cv_type_unsigned_long_long_int
=no
17024 rm -f core conftest.err conftest.
$ac_objext \
17025 conftest
$ac_exeext conftest.
$ac_ext
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17029 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17030 if test $ac_cv_type_unsigned_long_long_int = yes; then
17032 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17039 $as_echo_n "checking for long long int... " >&6; }
17040 if test "${ac_cv_type_long_long_int+set}" = set; then :
17041 $as_echo_n "(cached) " >&6
17043 ac_cv_type_long_long_int
=yes
17044 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17045 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17046 if test $ac_cv_type_long_long_int = yes; then
17047 if test "$cross_compiling" = yes; then :
17050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #include <limits.h>
17055 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17056 # define LLONG_MAX (HALF - 1 + HALF)
17061 long long int n = 1;
17065 long long int m = n << i;
17068 if (LLONG_MAX / 2 < m)
17076 if ac_fn_c_try_run
"$LINENO"; then :
17079 ac_cv_type_long_long_int
=no
17081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17089 $as_echo "$ac_cv_type_long_long_int" >&6; }
17090 if test $ac_cv_type_long_long_int = yes; then
17092 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17101 gl_cv_c_multiarch
=no
17102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104 #ifndef __APPLE_CC__
17105 not a universal capable compiler
17110 if ac_fn_c_try_compile
"$LINENO"; then :
17114 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17115 if test -n "$prev"; then
17117 i?
86 | x86_64 | ppc | ppc64
)
17118 if test -z "$arch" ||
test "$arch" = "$word"; then
17121 gl_cv_c_multiarch
=yes
17127 if test "x$word" = "x-arch"; then
17134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17135 if test $gl_cv_c_multiarch = yes; then
17136 APPLE_UNIVERSAL_BUILD
=1
17138 APPLE_UNIVERSAL_BUILD
=0
17145 if test $ac_cv_type_long_long_int = yes; then
17146 HAVE_LONG_LONG_INT
=1
17148 HAVE_LONG_LONG_INT
=0
17152 if test $ac_cv_type_unsigned_long_long_int = yes; then
17153 HAVE_UNSIGNED_LONG_LONG_INT
=1
17155 HAVE_UNSIGNED_LONG_LONG_INT
=0
17160 if test $ac_cv_header_wchar_h = yes; then
17167 if test $ac_cv_header_inttypes_h = yes; then
17174 if test $ac_cv_header_sys_types_h = yes; then
17190 if test $gl_cv_have_include_next = yes; then
17191 gl_cv_next_stdint_h
='<'stdint.h
'>'
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17194 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17195 if test "${gl_cv_next_stdint_h+set}" = set; then :
17196 $as_echo_n "(cached) " >&6
17199 if test $ac_cv_header_stdint_h = yes; then
17202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204 #include <stdint.h>
17208 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17209 *) gl_absname_cpp
="$ac_cpp" ;;
17211 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17212 sed -n '\#/stdint.h#{
17213 s#.*"\(.*/stdint.h\)".*#\1#
17219 gl_cv_next_stdint_h
='<'stdint.h
'>'
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17225 $as_echo "$gl_cv_next_stdint_h" >&6; }
17227 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17229 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17231 gl_next_as_first_directive
='<'stdint.h
'>'
17233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17234 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17236 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17241 if test $ac_cv_header_stdint_h = yes; then
17248 if test $ac_cv_header_stdint_h = yes; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17250 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17251 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17252 $as_echo_n "(cached) " >&6
17254 gl_cv_header_working_stdint_h
=no
17255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17259 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17260 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17261 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17262 #include <stdint.h>
17263 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17264 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17265 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17269 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17270 included before <wchar.h>. */
17271 #include <stddef.h>
17272 #include <signal.h>
17274 # include <stdio.h>
17276 # include <wchar.h>
17281 int8_t a1 = INT8_MAX;
17282 int8_t a1min = INT8_MIN;
17285 int16_t a2 = INT16_MAX;
17286 int16_t a2min = INT16_MIN;
17289 int32_t a3 = INT32_MAX;
17290 int32_t a3min = INT32_MIN;
17293 int64_t a4 = INT64_MAX;
17294 int64_t a4min = INT64_MIN;
17297 uint8_t b1 = UINT8_MAX;
17299 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17302 uint16_t b2 = UINT16_MAX;
17305 uint32_t b3 = UINT32_MAX;
17308 uint64_t b4 = UINT64_MAX;
17310 int_least8_t c1 = INT8_C (0x7f);
17311 int_least8_t c1max = INT_LEAST8_MAX;
17312 int_least8_t c1min = INT_LEAST8_MIN;
17313 int_least16_t c2 = INT16_C (0x7fff);
17314 int_least16_t c2max = INT_LEAST16_MAX;
17315 int_least16_t c2min = INT_LEAST16_MIN;
17316 int_least32_t c3 = INT32_C (0x7fffffff);
17317 int_least32_t c3max = INT_LEAST32_MAX;
17318 int_least32_t c3min = INT_LEAST32_MIN;
17319 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17320 int_least64_t c4max = INT_LEAST64_MAX;
17321 int_least64_t c4min = INT_LEAST64_MIN;
17322 uint_least8_t d1 = UINT8_C (0xff);
17323 uint_least8_t d1max = UINT_LEAST8_MAX;
17324 uint_least16_t d2 = UINT16_C (0xffff);
17325 uint_least16_t d2max = UINT_LEAST16_MAX;
17326 uint_least32_t d3 = UINT32_C (0xffffffff);
17327 uint_least32_t d3max = UINT_LEAST32_MAX;
17328 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17329 uint_least64_t d4max = UINT_LEAST64_MAX;
17330 int_fast8_t e1 = INT_FAST8_MAX;
17331 int_fast8_t e1min = INT_FAST8_MIN;
17332 int_fast16_t e2 = INT_FAST16_MAX;
17333 int_fast16_t e2min = INT_FAST16_MIN;
17334 int_fast32_t e3 = INT_FAST32_MAX;
17335 int_fast32_t e3min = INT_FAST32_MIN;
17336 int_fast64_t e4 = INT_FAST64_MAX;
17337 int_fast64_t e4min = INT_FAST64_MIN;
17338 uint_fast8_t f1 = UINT_FAST8_MAX;
17339 uint_fast16_t f2 = UINT_FAST16_MAX;
17340 uint_fast32_t f3 = UINT_FAST32_MAX;
17341 uint_fast64_t f4 = UINT_FAST64_MAX;
17343 intptr_t g = INTPTR_MAX;
17344 intptr_t gmin = INTPTR_MIN;
17347 uintptr_t h = UINTPTR_MAX;
17349 intmax_t i = INTMAX_MAX;
17350 uintmax_t j = UINTMAX_MAX;
17352 #include <limits.h> /* for CHAR_BIT */
17353 #define TYPE_MINIMUM(t) \
17354 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17355 #define TYPE_MAXIMUM(t) \
17356 ((t) ((t) 0 < (t) -1 \
17358 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17361 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17362 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17364 /* Detect bug in FreeBSD 6.0 / ia64. */
17365 int check_SIG_ATOMIC:
17366 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17367 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17369 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17371 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17372 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17374 /* Detect bug in mingw. */
17376 WINT_MIN == TYPE_MINIMUM (wint_t)
17377 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17380 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17382 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17383 int check_UINT16_C:
17384 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17386 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17388 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17391 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17394 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17397 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17399 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17400 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17401 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17402 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17403 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17404 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17405 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17406 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17407 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17408 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17409 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17420 if ac_fn_c_try_compile
"$LINENO"; then :
17421 if test "$cross_compiling" = yes; then :
17422 gl_cv_header_working_stdint_h
=yes
17425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17429 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17430 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17431 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17432 #include <stdint.h>
17435 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17436 included before <wchar.h>. */
17437 #include <stddef.h>
17438 #include <signal.h>
17440 # include <stdio.h>
17442 # include <wchar.h>
17447 #include <string.h>
17448 #define MVAL(macro) MVAL1(macro)
17449 #define MVAL1(expression) #expression
17450 static const char *macro_values[] =
17484 for (mv = macro_values; *mv != NULL; mv++)
17486 const char *value = *mv;
17487 /* Test whether it looks like a cast expression. */
17488 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17489 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17490 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17491 || strncmp (value, "((int)"/*)*/, 6) == 0
17492 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17493 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17494 return mv - macro_values + 1;
17502 if ac_fn_c_try_run
"$LINENO"; then :
17503 gl_cv_header_working_stdint_h
=yes
17505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17515 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17517 if test "$gl_cv_header_working_stdint_h" = yes; then
17520 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17523 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17524 eval as_val
=\$
$as_ac_Header
17525 if test "x$as_val" = x
""yes; then :
17526 cat >>confdefs.h
<<_ACEOF
17527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17534 if test $ac_cv_header_sys_inttypes_h = yes; then
17535 HAVE_SYS_INTTYPES_H
=1
17537 HAVE_SYS_INTTYPES_H
=0
17540 if test $ac_cv_header_sys_bitypes_h = yes; then
17541 HAVE_SYS_BITYPES_H
=1
17543 HAVE_SYS_BITYPES_H
=0
17549 if test $APPLE_UNIVERSAL_BUILD = 0; then
17552 for gltype
in ptrdiff_t size_t
; do
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17554 $as_echo_n "checking for bit size of $gltype... " >&6; }
17555 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17556 $as_echo_n "(cached) " >&6
17558 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17560 included before <wchar.h>. */
17561 #include <stddef.h>
17562 #include <signal.h>
17564 # include <stdio.h>
17566 # include <wchar.h>
17569 #include <limits.h>"; then :
17575 eval gl_cv_bitsizeof_
${gltype}=\
$result
17578 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17580 $as_echo "$ac_res" >&6; }
17581 eval result
=\
$gl_cv_bitsizeof_${gltype}
17582 if test $result = unknown
; then
17585 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17586 cat >>confdefs.h
<<_ACEOF
17587 #define BITSIZEOF_${GLTYPE} $result
17590 eval BITSIZEOF_
${GLTYPE}=\
$result
17597 for gltype
in sig_atomic_t wchar_t wint_t
; do
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17599 $as_echo_n "checking for bit size of $gltype... " >&6; }
17600 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17601 $as_echo_n "(cached) " >&6
17603 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17605 included before <wchar.h>. */
17606 #include <stddef.h>
17607 #include <signal.h>
17609 # include <stdio.h>
17611 # include <wchar.h>
17614 #include <limits.h>"; then :
17620 eval gl_cv_bitsizeof_
${gltype}=\
$result
17623 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17625 $as_echo "$ac_res" >&6; }
17626 eval result
=\
$gl_cv_bitsizeof_${gltype}
17627 if test $result = unknown
; then
17630 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17631 cat >>confdefs.h
<<_ACEOF
17632 #define BITSIZEOF_${GLTYPE} $result
17635 eval BITSIZEOF_
${GLTYPE}=\
$result
17641 for gltype
in sig_atomic_t wchar_t wint_t
; do
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17643 $as_echo_n "checking whether $gltype is signed... " >&6; }
17644 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17645 $as_echo_n "(cached) " >&6
17647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17651 included before <wchar.h>. */
17652 #include <stddef.h>
17653 #include <signal.h>
17655 # include <stdio.h>
17657 # include <wchar.h>
17660 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17669 if ac_fn_c_try_compile
"$LINENO"; then :
17674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17675 eval gl_cv_type_
${gltype}_signed
=\
$result
17678 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17680 $as_echo "$ac_res" >&6; }
17681 eval result
=\
$gl_cv_type_${gltype}_signed
17682 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17683 if test "$result" = yes; then
17684 cat >>confdefs.h
<<_ACEOF
17685 #define HAVE_SIGNED_${GLTYPE} 1
17688 eval HAVE_SIGNED_
${GLTYPE}=1
17690 eval HAVE_SIGNED_
${GLTYPE}=0
17695 gl_cv_type_ptrdiff_t_signed
=yes
17696 gl_cv_type_size_t_signed
=no
17697 if test $APPLE_UNIVERSAL_BUILD = 0; then
17700 for gltype
in ptrdiff_t size_t
; do
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17702 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17703 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17704 $as_echo_n "(cached) " >&6
17706 eval gl_cv_type_
${gltype}_suffix
=no
17707 eval result
=\
$gl_cv_type_${gltype}_signed
17708 if test "$result" = yes; then
17713 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17715 '') gltype1
='int';;
17716 l
) gltype1
='long int';;
17717 ll
) gltype1
='long long int';;
17718 i64
) gltype1
='__int64';;
17719 u
) gltype1
='unsigned int';;
17720 ul
) gltype1
='unsigned long int';;
17721 ull
) gltype1
='unsigned long long int';;
17722 ui64
)gltype1
='unsigned __int64';;
17724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17727 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17728 included before <wchar.h>. */
17729 #include <stddef.h>
17730 #include <signal.h>
17732 # include <stdio.h>
17734 # include <wchar.h>
17737 extern $gltype foo;
17738 extern $gltype1 foo;
17747 if ac_fn_c_try_compile
"$LINENO"; then :
17748 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17751 eval result
=\
$gl_cv_type_${gltype}_suffix
17752 test "$result" != no
&& break
17755 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17757 $as_echo "$ac_res" >&6; }
17758 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17759 eval result
=\
$gl_cv_type_${gltype}_suffix
17760 test "$result" = no
&& result
=
17761 eval ${GLTYPE}_SUFFIX
=\
$result
17762 cat >>confdefs.h
<<_ACEOF
17763 #define ${GLTYPE}_SUFFIX $result
17772 for gltype
in sig_atomic_t wchar_t wint_t
; do
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17774 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17775 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17776 $as_echo_n "(cached) " >&6
17778 eval gl_cv_type_
${gltype}_suffix
=no
17779 eval result
=\
$gl_cv_type_${gltype}_signed
17780 if test "$result" = yes; then
17785 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17787 '') gltype1
='int';;
17788 l
) gltype1
='long int';;
17789 ll
) gltype1
='long long int';;
17790 i64
) gltype1
='__int64';;
17791 u
) gltype1
='unsigned int';;
17792 ul
) gltype1
='unsigned long int';;
17793 ull
) gltype1
='unsigned long long int';;
17794 ui64
)gltype1
='unsigned __int64';;
17796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17800 included before <wchar.h>. */
17801 #include <stddef.h>
17802 #include <signal.h>
17804 # include <stdio.h>
17806 # include <wchar.h>
17809 extern $gltype foo;
17810 extern $gltype1 foo;
17819 if ac_fn_c_try_compile
"$LINENO"; then :
17820 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17823 eval result
=\
$gl_cv_type_${gltype}_suffix
17824 test "$result" != no
&& break
17827 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17829 $as_echo "$ac_res" >&6; }
17830 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17831 eval result
=\
$gl_cv_type_${gltype}_suffix
17832 test "$result" = no
&& result
=
17833 eval ${GLTYPE}_SUFFIX
=\
$result
17834 cat >>confdefs.h
<<_ACEOF
17835 #define ${GLTYPE}_SUFFIX $result
17845 if test -n "$STDINT_H"; then
17846 GL_GENERATE_STDINT_H_TRUE
=
17847 GL_GENERATE_STDINT_H_FALSE
='#'
17849 GL_GENERATE_STDINT_H_TRUE
='#'
17850 GL_GENERATE_STDINT_H_FALSE
=
17859 GNULIB_STRTOIMAX
=0;
17860 GNULIB_STRTOUMAX
=0;
17861 HAVE_DECL_IMAXABS
=1;
17862 HAVE_DECL_IMAXDIV
=1;
17863 HAVE_DECL_STRTOIMAX
=1;
17864 HAVE_DECL_STRTOUMAX
=1;
17865 INT32_MAX_LT_INTMAX_MAX
=1;
17866 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
17867 PRI_MACROS_BROKEN
=0;
17868 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
17869 UINT32_MAX_LT_UINTMAX_MAX
=1;
17870 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
17886 if test $gl_cv_have_include_next = yes; then
17887 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17890 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17891 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17892 $as_echo_n "(cached) " >&6
17895 if test $ac_cv_header_inttypes_h = yes; then
17898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 #include <inttypes.h>
17904 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17905 *) gl_absname_cpp
="$ac_cpp" ;;
17907 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17908 sed -n '\#/inttypes.h#{
17909 s#.*"\(.*/inttypes.h\)".*#\1#
17915 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17921 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17923 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
17925 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17927 gl_next_as_first_directive
='<'inttypes.h
'>'
17929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17930 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
17932 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
17941 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17959 GNULIB_UTIMENSAT
=0;
17973 REPLACE_FUTIMENS
=0;
17979 REPLACE_UTIMENSAT
=0;
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17985 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17986 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17989 rm -f conftest.sym conftest.
file
17990 echo >conftest.
file
17991 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17992 if test "$cross_compiling" = yes; then :
17993 # When cross-compiling, be pessimistic so we will end up using the
17994 # replacement version of lstat that checks for trailing slashes and
17995 # calls lstat a second time when necessary.
17996 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 $ac_includes_default
18006 /* Linux will dereference the symlink and fail, as required by
18007 POSIX. That is better in the sense that it means we will not
18008 have to compile and use the lstat wrapper. */
18009 return lstat ("conftest.sym/", &sbuf) == 0;
18015 if ac_fn_c_try_run
"$LINENO"; then :
18016 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18018 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18025 # If the 'ln -s' command failed, then we probably don't even
18026 # have an lstat function.
18027 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18029 rm -f conftest.sym conftest.
file
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18033 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18034 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18036 cat >>confdefs.h
<<_ACEOF
18037 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18043 GNULIB_NANOSLEEP
=0;
18047 HAVE_DECL_LOCALTIME_R
=1;
18051 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18052 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18053 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18054 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18061 GNULIB_PTHREAD_SIGMASK
=0;
18062 GNULIB_SIGNAL_H_SIGPIPE
=0;
18063 GNULIB_SIGPROCMASK
=0;
18064 GNULIB_SIGACTION
=0;
18065 HAVE_POSIX_SIGNALBLOCKING
=1;
18066 HAVE_PTHREAD_SIGMASK
=1;
18070 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18072 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18074 HAVE_SIGHANDLER_T
=1;
18075 REPLACE_PTHREAD_SIGMASK
=0;
18080 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18081 #include <signal.h>
18082 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18083 #include <sys/types.h>
18086 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18088 cat >>confdefs.h
<<_ACEOF
18089 #define HAVE_SIGSET_T 1
18092 gl_cv_type_sigset_t
=yes
18094 gl_cv_type_sigset_t
=no
18097 if test $gl_cv_type_sigset_t != yes; then
18105 if test $ac_cv_header_sys_socket_h = no
; then
18106 for ac_header
in ws2tcpip.h
18108 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18109 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18110 cat >>confdefs.h
<<_ACEOF
18111 #define HAVE_WS2TCPIP_H 1
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18121 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18122 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18123 $as_echo_n "(cached) " >&6
18125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18126 /* end confdefs.h. */
18128 #include <stdbool.h>
18130 "error: bool is not defined"
18133 "error: false is not defined"
18136 "error: false is not 0"
18139 "error: true is not defined"
18142 "error: true is not 1"
18144 #ifndef __bool_true_false_are_defined
18145 "error: __bool_true_false_are_defined is not defined"
18148 struct s { _Bool s: 1; _Bool t; } s;
18150 char a[true == 1 ? 1 : -1];
18151 char b[false == 0 ? 1 : -1];
18152 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18153 char d[(bool) 0.5 == true ? 1 : -1];
18154 /* See body of main program for 'e'. */
18155 char f[(_Bool) 0.0 == false ? 1 : -1];
18157 char h[sizeof (_Bool)];
18158 char i[sizeof s.t];
18159 enum { j = false, k = true, l = false * true, m = true * 256 };
18160 /* The following fails for
18161 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18163 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18164 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18165 /* Catch a bug in an HP-UX C compiler. See
18166 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18167 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18179 /* Refer to every declared value, to avoid compiler optimizations. */
18180 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18181 + !m + !n + !o + !p + !q + !pq);
18187 if ac_fn_c_try_compile
"$LINENO"; then :
18188 ac_cv_header_stdbool_h
=yes
18190 ac_cv_header_stdbool_h
=no
18192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18195 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18196 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18197 if test "x$ac_cv_type__Bool" = x
""yes; then :
18199 cat >>confdefs.h
<<_ACEOF
18200 #define HAVE__BOOL 1
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18213 $as_echo_n "checking for wchar_t... " >&6; }
18214 if test "${gt_cv_c_wchar_t+set}" = set; then :
18215 $as_echo_n "(cached) " >&6
18217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18219 #include <stddef.h>
18220 wchar_t foo = (wchar_t)'\0';
18229 if ac_fn_c_try_compile
"$LINENO"; then :
18230 gt_cv_c_wchar_t
=yes
18234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18237 $as_echo "$gt_cv_c_wchar_t" >&6; }
18238 if test $gt_cv_c_wchar_t = yes; then
18240 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18252 GNULIB_FPRINTF_POSIX
=0;
18269 GNULIB_OBSTACK_PRINTF
=0;
18270 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18274 GNULIB_PRINTF_POSIX
=0;
18283 GNULIB_SPRINTF_POSIX
=0;
18284 GNULIB_STDIO_H_NONBLOCKING
=0;
18285 GNULIB_STDIO_H_SIGPIPE
=0;
18287 GNULIB_VASPRINTF
=0;
18292 GNULIB_VFPRINTF_POSIX
=0;
18294 GNULIB_VPRINTF_POSIX
=0;
18295 GNULIB_VSNPRINTF
=0;
18296 GNULIB_VSPRINTF_POSIX
=0;
18297 HAVE_DECL_FPURGE
=1;
18298 HAVE_DECL_FSEEKO
=1;
18299 HAVE_DECL_FTELLO
=1;
18300 HAVE_DECL_GETDELIM
=1;
18301 HAVE_DECL_GETLINE
=1;
18302 HAVE_DECL_OBSTACK_PRINTF
=1;
18303 HAVE_DECL_SNPRINTF
=1;
18304 HAVE_DECL_VSNPRINTF
=1;
18322 REPLACE_GETDELIM
=0;
18324 REPLACE_OBSTACK_PRINTF
=0;
18330 REPLACE_RENAMEAT
=0;
18331 REPLACE_SNPRINTF
=0;
18333 REPLACE_STDIO_READ_FUNCS
=0;
18334 REPLACE_STDIO_WRITE_FUNCS
=0;
18336 REPLACE_VASPRINTF
=0;
18337 REPLACE_VDPRINTF
=0;
18338 REPLACE_VFPRINTF
=0;
18340 REPLACE_VSNPRINTF
=0;
18341 REPLACE_VSPRINTF
=0;
18344 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18346 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18348 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18355 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18356 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18362 cat >>confdefs.h
<<_ACEOF
18363 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18366 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18367 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18373 cat >>confdefs.h
<<_ACEOF
18374 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18380 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18381 if test "${ac_cv_header_stat_broken+set}" = set; then :
18382 $as_echo_n "(cached) " >&6
18384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <sys/types.h>
18387 #include <sys/stat.h>
18389 #if defined S_ISBLK && defined S_IFDIR
18390 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18393 #if defined S_ISBLK && defined S_IFCHR
18394 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18397 #if defined S_ISLNK && defined S_IFREG
18398 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18401 #if defined S_ISSOCK && defined S_IFREG
18402 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18406 if ac_fn_c_try_compile
"$LINENO"; then :
18407 ac_cv_header_stat_broken
=no
18409 ac_cv_header_stat_broken
=yes
18411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18414 $as_echo "$ac_cv_header_stat_broken" >&6; }
18415 if test $ac_cv_header_stat_broken = yes; then
18417 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18424 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18425 if test "${ac_cv_c_restrict+set}" = set; then :
18426 $as_echo_n "(cached) " >&6
18428 ac_cv_c_restrict
=no
18429 # The order here caters to the fact that C++ does not require restrict.
18430 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433 typedef int * int_ptr;
18434 int foo (int_ptr $ac_kw ip) {
18441 int * $ac_kw t = s;
18448 if ac_fn_c_try_compile
"$LINENO"; then :
18449 ac_cv_c_restrict
=$ac_kw
18451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18452 test "$ac_cv_c_restrict" != no
&& break
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18457 $as_echo "$ac_cv_c_restrict" >&6; }
18459 case $ac_cv_c_restrict in
18461 no
) $as_echo "#define restrict /**/" >>confdefs.h
18463 *) cat >>confdefs.h
<<_ACEOF
18464 #define restrict $ac_cv_c_restrict
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18474 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18475 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18485 static struct timespec x; x.tv_sec = x.tv_nsec;
18490 if ac_fn_c_try_compile
"$LINENO"; then :
18491 gl_cv_sys_struct_timespec_in_time_h
=yes
18493 gl_cv_sys_struct_timespec_in_time_h
=no
18495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18498 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18500 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18501 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18502 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18503 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18504 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18507 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18508 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18509 $as_echo_n "(cached) " >&6
18511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 #include <sys/time.h>
18518 static struct timespec x; x.tv_sec = x.tv_nsec;
18523 if ac_fn_c_try_compile
"$LINENO"; then :
18524 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18526 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18531 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18532 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18533 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18536 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18537 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18538 $as_echo_n "(cached) " >&6
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <pthread.h>
18547 static struct timespec x; x.tv_sec = x.tv_nsec;
18552 if ac_fn_c_try_compile
"$LINENO"; then :
18553 gl_cv_sys_struct_timespec_in_pthread_h
=yes
18555 gl_cv_sys_struct_timespec_in_pthread_h
=no
18557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18560 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18561 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18562 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
18581 if test $gl_cv_have_include_next = yes; then
18582 gl_cv_next_time_h
='<'time.h
'>'
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18585 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18586 if test "${gl_cv_next_time_h+set}" = set; then :
18587 $as_echo_n "(cached) " >&6
18590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18596 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18597 *) gl_absname_cpp
="$ac_cpp" ;;
18599 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18600 sed -n '\#/time.h#{
18601 s#.*"\(.*/time.h\)".*#\1#
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18610 $as_echo "$gl_cv_next_time_h" >&6; }
18612 NEXT_TIME_H
=$gl_cv_next_time_h
18614 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18616 gl_next_as_first_directive
='<'time.h
'>'
18618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18619 gl_next_as_first_directive
=$gl_cv_next_time_h
18621 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
18628 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18629 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
18635 cat >>confdefs.h
<<_ACEOF
18636 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18643 GL_COND_LIBTOOL_TRUE
=
18644 GL_COND_LIBTOOL_FALSE
='#'
18646 GL_COND_LIBTOOL_TRUE
='#'
18647 GL_COND_LIBTOOL_FALSE
=
18650 gl_cond_libtool
=false
18663 gl_source_base
='lib'
18666 if test $ac_cv_func_alloca_works = no
; then
18670 # Define an additional variable used in the Makefile substitution.
18671 if test $ac_cv_working_alloca_h = yes; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18673 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18674 if test "${gl_cv_rpl_alloca+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18681 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18687 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
18688 gl_cv_rpl_alloca
=yes
18690 gl_cv_rpl_alloca
=no
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18697 $as_echo "$gl_cv_rpl_alloca" >&6; }
18698 if test $gl_cv_rpl_alloca = yes; then
18700 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18710 if test -n "$ALLOCA_H"; then
18711 GL_GENERATE_ALLOCA_H_TRUE
=
18712 GL_GENERATE_ALLOCA_H_FALSE
='#'
18714 GL_GENERATE_ALLOCA_H_TRUE
='#'
18715 GL_GENERATE_ALLOCA_H_FALSE
=
18744 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18747 if test $HAVE_DUP2 = 1; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18749 $as_echo_n "checking whether dup2 works... " >&6; }
18750 if test "${gl_cv_func_dup2_works+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18753 if test "$cross_compiling" = yes; then :
18755 mingw
*) # on this platform, dup2 always returns 0 for success
18756 gl_cv_func_dup2_works
=no
;;
18757 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18758 gl_cv_func_dup2_works
=no
;;
18759 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18760 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18761 gl_cv_func_dup2_works
=no
;;
18762 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18763 gl_cv_func_dup2_works
=no
;;
18764 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18765 gl_cv_func_dup2_works
=no
;;
18766 *) gl_cv_func_dup2_works
=yes;;
18769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18772 #include <unistd.h>
18780 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18783 if (dup2 (1, 1) == 0)
18786 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18790 if (dup2 (0, 0) != -1)
18792 /* Many gnulib modules require POSIX conformance of EBADF. */
18793 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18802 if ac_fn_c_try_run
"$LINENO"; then :
18803 gl_cv_func_dup2_works
=yes
18805 gl_cv_func_dup2_works
=no
18807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18814 $as_echo "$gl_cv_func_dup2_works" >&6; }
18815 if test "$gl_cv_func_dup2_works" = no
; then
18819 if test $ac_cv_func_dup2 = yes; then
18830 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18853 # Persuade glibc <stdlib.h> to declare getloadavg().
18858 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18859 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18861 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18862 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
18865 gl_func_getloadavg_done
=no
18867 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18868 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18869 # to get the right answer into the cache.
18870 # For kstat on solaris, we need to test for libelf and libkvm to force the
18871 # definition of SVR4 below.
18872 if test $gl_func_getloadavg_done = no
; then
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18874 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18875 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18876 $as_echo_n "(cached) " >&6
18878 ac_check_lib_save_LIBS
=$LIBS
18880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18893 return elf_begin ();
18898 if ac_fn_c_try_link
"$LINENO"; then :
18899 ac_cv_lib_elf_elf_begin
=yes
18901 ac_cv_lib_elf_elf_begin
=no
18903 rm -f core conftest.err conftest.
$ac_objext \
18904 conftest
$ac_exeext conftest.
$ac_ext
18905 LIBS
=$ac_check_lib_save_LIBS
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18908 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18909 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18914 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18915 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18916 $as_echo_n "(cached) " >&6
18918 ac_check_lib_save_LIBS
=$LIBS
18920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18933 return kvm_open ();
18938 if ac_fn_c_try_link
"$LINENO"; then :
18939 ac_cv_lib_kvm_kvm_open
=yes
18941 ac_cv_lib_kvm_kvm_open
=no
18943 rm -f core conftest.err conftest.
$ac_objext \
18944 conftest
$ac_exeext conftest.
$ac_ext
18945 LIBS
=$ac_check_lib_save_LIBS
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18948 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18949 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
18953 # Check for the 4.4BSD definition of getloadavg.
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18955 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18956 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18957 $as_echo_n "(cached) " >&6
18959 ac_check_lib_save_LIBS
=$LIBS
18960 LIBS
="-lutil $LIBS"
18961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18970 char getloadavg ();
18974 return getloadavg ();
18979 if ac_fn_c_try_link
"$LINENO"; then :
18980 ac_cv_lib_util_getloadavg
=yes
18982 ac_cv_lib_util_getloadavg
=no
18984 rm -f core conftest.err conftest.
$ac_objext \
18985 conftest
$ac_exeext conftest.
$ac_ext
18986 LIBS
=$ac_check_lib_save_LIBS
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18989 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18990 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
18991 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
18996 if test $gl_func_getloadavg_done = no
; then
18997 # There is a commonly available library for RS/6000 AIX.
18998 # Since it is not a standard part of AIX, it might be installed locally.
18999 gl_getloadavg_LIBS
=$LIBS
19000 LIBS
="-L/usr/local/lib $LIBS"
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19002 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19003 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19006 ac_check_lib_save_LIBS
=$LIBS
19007 LIBS
="-lgetloadavg $LIBS"
19008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19017 char getloadavg ();
19021 return getloadavg ();
19026 if ac_fn_c_try_link
"$LINENO"; then :
19027 ac_cv_lib_getloadavg_getloadavg
=yes
19029 ac_cv_lib_getloadavg_getloadavg
=no
19031 rm -f core conftest.err conftest.
$ac_objext \
19032 conftest
$ac_exeext conftest.
$ac_ext
19033 LIBS
=$ac_check_lib_save_LIBS
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19036 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19037 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19038 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19040 LIBS
=$gl_getloadavg_LIBS
19045 # Set up the replacement function if necessary.
19046 if test $gl_func_getloadavg_done = no
; then
19049 # Solaris has libkstat which does not require root.
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19051 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19052 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19053 $as_echo_n "(cached) " >&6
19055 ac_check_lib_save_LIBS
=$LIBS
19056 LIBS
="-lkstat $LIBS"
19057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19066 char kstat_open ();
19070 return kstat_open ();
19075 if ac_fn_c_try_link
"$LINENO"; then :
19076 ac_cv_lib_kstat_kstat_open
=yes
19078 ac_cv_lib_kstat_kstat_open
=no
19080 rm -f core conftest.err conftest.
$ac_objext \
19081 conftest
$ac_exeext conftest.
$ac_ext
19082 LIBS
=$ac_check_lib_save_LIBS
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19085 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19086 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19087 cat >>confdefs.h
<<_ACEOF
19088 #define HAVE_LIBKSTAT 1
19091 LIBS
="-lkstat $LIBS"
19095 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19097 # AIX has libperfstat which does not require root
19098 if test $gl_func_getloadavg_done = no
; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19100 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19101 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19104 ac_check_lib_save_LIBS
=$LIBS
19105 LIBS
="-lperfstat $LIBS"
19106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19115 char perfstat_cpu_total ();
19119 return perfstat_cpu_total ();
19124 if ac_fn_c_try_link
"$LINENO"; then :
19125 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19127 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19129 rm -f core conftest.err conftest.
$ac_objext \
19130 conftest
$ac_exeext conftest.
$ac_ext
19131 LIBS
=$ac_check_lib_save_LIBS
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19134 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19135 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19136 cat >>confdefs.h
<<_ACEOF
19137 #define HAVE_LIBPERFSTAT 1
19140 LIBS
="-lperfstat $LIBS"
19144 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19147 if test $gl_func_getloadavg_done = no
; then
19148 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19149 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19150 gl_func_getloadavg_done
=yes
19152 $as_echo "#define DGUX 1" >>confdefs.h
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19155 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19156 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19157 $as_echo_n "(cached) " >&6
19159 ac_check_lib_save_LIBS
=$LIBS
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19170 char dg_sys_info ();
19174 return dg_sys_info ();
19179 if ac_fn_c_try_link
"$LINENO"; then :
19180 ac_cv_lib_dgc_dg_sys_info
=yes
19182 ac_cv_lib_dgc_dg_sys_info
=no
19184 rm -f core conftest.err conftest.
$ac_objext \
19185 conftest
$ac_exeext conftest.
$ac_ext
19186 LIBS
=$ac_check_lib_save_LIBS
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19189 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19190 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19191 cat >>confdefs.h
<<_ACEOF
19192 #define HAVE_LIBDGC 1
19207 if test "x$gl_save_LIBS" = x
; then
19208 GETLOADAVG_LIBS
=$LIBS
19210 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19215 # Test whether the system declares getloadavg. Solaris has the function
19216 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19217 for ac_header
in sys
/loadavg.h
19219 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19220 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19221 cat >>confdefs.h
<<_ACEOF
19222 #define HAVE_SYS_LOADAVG_H 1
19229 if test $ac_cv_header_sys_loadavg_h = yes; then
19230 HAVE_SYS_LOADAVG_H
=1
19232 HAVE_SYS_LOADAVG_H
=0
19234 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19235 # include <sys/loadavg.h>
19237 #include <stdlib.h>
19239 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19242 HAVE_DECL_GETLOADAVG
=0
19246 if test $HAVE_GETLOADAVG = 0; then
19255 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19258 # Figure out what our getloadavg.c needs.
19260 # On HPUX9, an unprivileged user can get load averages this way.
19261 if test $gl_func_getloadavg_done = no
; then
19262 for ac_func
in pstat_getdynamic
19264 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19265 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19266 cat >>confdefs.h
<<_ACEOF
19267 #define HAVE_PSTAT_GETDYNAMIC 1
19269 gl_func_getloadavg_done
=yes
19275 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19276 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19277 # Irix 4.0.5F has the header but not the library.
19278 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19279 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19280 gl_func_getloadavg_done
=yes
19282 $as_echo "#define SVR4 1" >>confdefs.h
19286 if test $gl_func_getloadavg_done = no
; then
19287 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19288 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19289 gl_func_getloadavg_done
=yes
19291 $as_echo "#define UMAX 1" >>confdefs.h
19294 $as_echo "#define UMAX4_3 1" >>confdefs.h
19301 if test $gl_func_getloadavg_done = no
; then
19302 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19303 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19304 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19311 if test $gl_func_getloadavg_done = no
; then
19312 for ac_header
in mach
/mach.h
19314 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19315 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19316 cat >>confdefs.h
<<_ACEOF
19317 #define HAVE_MACH_MACH_H 1
19326 for ac_header
in nlist.h
19328 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19329 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19330 cat >>confdefs.h
<<_ACEOF
19331 #define HAVE_NLIST_H 1
19333 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19335 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19337 cat >>confdefs.h
<<_ACEOF
19338 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19351 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19352 x.n_un.n_name = "";
19360 if ac_fn_c_try_link
"$LINENO"; then :
19362 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19365 rm -f core conftest.err conftest.
$ac_objext \
19366 conftest
$ac_exeext conftest.
$ac_ext
19378 GNULIB_GETLOADAVG
=1
19389 if test $REPLACE_GETOPT = 1; then
19398 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19408 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19422 if test -n "$gl_replace_getopt"; then :
19429 if test $REPLACE_GETOPT = 1; then
19433 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19437 GNULIB_UNISTD_H_GETOPT
=1
19440 if test $REPLACE_GETOPT = 1; then
19449 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19459 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19470 if test $ac_cv_func_lstat = yes; then
19472 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
19479 if test $REPLACE_LSTAT = 1; then
19488 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19512 if test $APPLE_UNIVERSAL_BUILD = 1; then
19513 # A universal build on Apple MacOS X platforms.
19514 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19515 # But we need a configuration result that is valid in both modes.
19516 gl_cv_func_working_mktime
=no
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19519 $as_echo_n "checking for working mktime... " >&6; }
19520 if test "${gl_cv_func_working_mktime+set}" = set; then :
19521 $as_echo_n "(cached) " >&6
19523 if test "$cross_compiling" = yes; then :
19524 gl_cv_func_working_mktime
=no
19526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19528 /* Test program from Paul Eggert and Tony Leneis. */
19529 #include <limits.h>
19530 #include <stdlib.h>
19533 #ifdef HAVE_UNISTD_H
19534 # include <unistd.h>
19538 # define alarm(X) /* empty */
19541 /* Work around redefinition to rpl_putenv by other config tests. */
19544 static time_t time_t_max;
19545 static time_t time_t_min;
19547 /* Values we'll use to set the TZ environment variable. */
19548 static char *tz_strings[] = {
19549 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19550 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19552 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19554 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19555 Based on a problem report from Andreas Jaeger. */
19557 spring_forward_gap ()
19559 /* glibc (up to about 1998-10-07) failed this test. */
19562 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19563 instead of "TZ=America/Vancouver" in order to detect the bug even
19564 on systems that don't support the Olson extension, or don't have the
19565 full zoneinfo tables installed. */
19566 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19575 return mktime (&tm) != (time_t) -1;
19579 mktime_test1 (time_t now)
19582 return ! (lt = localtime (&now)) || mktime (lt) == now;
19586 mktime_test (time_t now)
19588 return (mktime_test1 (now)
19589 && mktime_test1 ((time_t) (time_t_max - now))
19590 && mktime_test1 ((time_t) (time_t_min + now)));
19596 /* Based on code from Ariel Faigon. */
19606 return tm.tm_mon == 2 && tm.tm_mday == 31;
19610 bigtime_test (int j)
19614 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19615 now = mktime (&tm);
19616 if (now != (time_t) -1)
19618 struct tm *lt = localtime (&now);
19620 && lt->tm_year == tm.tm_year
19621 && lt->tm_mon == tm.tm_mon
19622 && lt->tm_mday == tm.tm_mday
19623 && lt->tm_hour == tm.tm_hour
19624 && lt->tm_min == tm.tm_min
19625 && lt->tm_sec == tm.tm_sec
19626 && lt->tm_yday == tm.tm_yday
19627 && lt->tm_wday == tm.tm_wday
19628 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19629 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19638 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19639 ignoring leap seconds. */
19640 unsigned long int answer = 2527315200UL;
19644 tm.tm_year = 2050 - 1900;
19647 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19650 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19651 instead of "TZ=America/Vancouver" in order to detect the bug even
19652 on systems that don't support the Olson extension, or don't have the
19653 full zoneinfo tables installed. */
19654 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19658 /* Check that the result is either a failure, or close enough
19659 to the correct answer that we can assume the discrepancy is
19660 due to leap seconds. */
19661 return (t == (time_t) -1
19662 || (0 < t && answer - 120 <= t && t <= answer + 120));
19671 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19672 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19674 /* This test makes some buggy mktime implementations loop.
19675 Give up after 60 seconds; a mktime slower than that
19676 isn't worth using anyway. */
19679 time_t_max = (! time_t_signed
19681 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19683 time_t_min = (! time_t_signed
19685 : time_t_signed_magnitude
19689 delta = time_t_max / 997; /* a suitable prime number */
19690 for (i = 0; i < N_STRINGS; i++)
19693 putenv (tz_strings[i]);
19695 for (t = 0; t <= time_t_max - delta; t += delta)
19696 if (! mktime_test (t))
19698 if (! (mktime_test ((time_t) 1)
19699 && mktime_test ((time_t) (60 * 60))
19700 && mktime_test ((time_t) (60 * 60 * 24))))
19703 for (j = 1; ; j <<= 1)
19704 if (! bigtime_test (j))
19706 else if (INT_MAX / 2 < j)
19708 if (! bigtime_test (INT_MAX))
19711 if (! irix_6_4_bug ())
19713 if (! spring_forward_gap ())
19715 if (! year_2050_test ())
19720 if ac_fn_c_try_run
"$LINENO"; then :
19721 gl_cv_func_working_mktime
=yes
19723 gl_cv_func_working_mktime
=no
19725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19732 $as_echo "$gl_cv_func_working_mktime" >&6; }
19734 if test $gl_cv_func_working_mktime = no
; then
19740 if test $REPLACE_MKTIME = 1; then
19749 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
19769 LIB_PTHREAD_SIGMASK
=
19770 if test $ac_cv_func_pthread_sigmask != yes; then
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
19773 $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
19774 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19775 $as_echo_n "(cached) " >&6
19777 ac_func_search_save_LIBS
=$LIBS
19778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19779 /* end confdefs.h. */
19781 /* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19787 char pthread_sigmask ();
19791 return pthread_sigmask ();
19796 for ac_lib
in '' pthread c_r
; do
19797 if test -z "$ac_lib"; then
19798 ac_res
="none required"
19801 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19803 if ac_fn_c_try_link
"$LINENO"; then :
19804 ac_cv_search_pthread_sigmask
=$ac_res
19806 rm -f core conftest.err conftest.
$ac_objext \
19808 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19812 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19815 ac_cv_search_pthread_sigmask
=no
19817 rm conftest.
$ac_ext
19818 LIBS
=$ac_func_search_save_LIBS
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
19821 $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
19822 ac_res
=$ac_cv_search_pthread_sigmask
19823 if test "$ac_res" != no
; then :
19824 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19829 if test "$ac_cv_search_pthread_sigmask" = no
; then
19830 HAVE_PTHREAD_SIGMASK
=0
19831 elif test "$ac_cv_search_pthread_sigmask" != 'none required'; then
19832 LIB_PTHREAD_SIGMASK
=$ac_cv_search_pthread_sigmask
19837 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
19846 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19854 GNULIB_PTHREAD_SIGMASK
=1
19863 if test $ac_cv_func_readlink = no
; then
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19867 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19868 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19869 $as_echo_n "(cached) " >&6
19871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873 #include <unistd.h>
19874 /* Cause compilation failure if original declaration has wrong type. */
19875 ssize_t readlink (const char *, char *, size_t);
19884 if ac_fn_c_try_compile
"$LINENO"; then :
19885 gl_cv_decl_readlink_works
=yes
19887 gl_cv_decl_readlink_works
=no
19889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19892 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19894 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19895 if test "${gl_cv_func_readlink_works+set}" = set; then :
19896 $as_echo_n "(cached) " >&6
19898 # We have readlink, so assume ln -s works.
19899 ln -s conftest.no-such conftest.link
19900 ln -s conftest.link conftest.lnk2
19901 if test "$cross_compiling" = yes; then :
19902 gl_cv_func_readlink_works
="guessing no"
19904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19906 #include <unistd.h>
19912 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19917 if ac_fn_c_try_run
"$LINENO"; then :
19918 gl_cv_func_readlink_works
=yes
19920 gl_cv_func_readlink_works
=no
19922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19926 rm -f conftest.link conftest.lnk2
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19929 $as_echo "$gl_cv_func_readlink_works" >&6; }
19930 if test "$gl_cv_func_readlink_works" != yes; then
19932 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19935 elif test "$gl_cv_decl_readlink_works" != yes; then
19940 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
19949 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
19977 if test $gl_cv_have_include_next = yes; then
19978 gl_cv_next_signal_h
='<'signal.h
'>'
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19981 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19982 if test "${gl_cv_next_signal_h+set}" = set; then :
19983 $as_echo_n "(cached) " >&6
19986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 #include <signal.h>
19992 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19993 *) gl_absname_cpp
="$ac_cpp" ;;
19995 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19996 sed -n '\#/signal.h#{
19997 s#.*"\(.*/signal.h\)".*#\1#
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20006 $as_echo "$gl_cv_next_signal_h" >&6; }
20008 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20010 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20012 gl_next_as_first_directive
='<'signal.h
'>'
20014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20015 gl_next_as_first_directive
=$gl_cv_next_signal_h
20017 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20023 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20024 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20025 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20026 #include <signal.h>
20029 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20032 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20039 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20040 #include <signal.h>
20043 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20046 HAVE_SIGHANDLER_T
=0
20052 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20053 /* <sys/types.h> is not needed according to POSIX, but the
20054 <sys/socket.h> in i386-unknown-freebsd4.10 and
20055 powerpc-apple-darwin5.5 required it. */
20056 #include <sys/types.h>
20057 #if HAVE_SYS_SOCKET_H
20058 # include <sys/socket.h>
20059 #elif HAVE_WS2TCPIP_H
20060 # include <ws2tcpip.h>
20064 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20068 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20069 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20072 # Systems have either "struct sockaddr *" or
20073 # "void *" as the second argument to getpeername
20074 gl_cv_socklen_t_equiv
=
20075 for arg2
in "struct sockaddr" void
; do
20076 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h. */
20079 #include <sys/types.h>
20080 #include <sys/socket.h>
20082 int getpeername (int, $arg2 *, $t *);
20087 getpeername (0, 0, &len);
20092 if ac_fn_c_try_compile
"$LINENO"; then :
20093 gl_cv_socklen_t_equiv
="$t"
20095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20096 test "$gl_cv_socklen_t_equiv" != "" && break
20098 test "$gl_cv_socklen_t_equiv" != "" && break
20103 if test "$gl_cv_socklen_t_equiv" = ""; then
20104 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20107 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20109 cat >>confdefs.h
<<_ACEOF
20110 #define socklen_t $gl_cv_socklen_t_equiv
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20117 $as_echo_n "checking for ssize_t... " >&6; }
20118 if test "${gt_cv_ssize_t+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20123 #include <sys/types.h>
20127 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20133 if ac_fn_c_try_compile
"$LINENO"; then :
20138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20141 $as_echo "$gt_cv_ssize_t" >&6; }
20142 if test $gt_cv_ssize_t = no
; then
20144 $as_echo "#define ssize_t int" >>confdefs.h
20150 NEXT_STDARG_H
='<stdarg.h>'
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20152 $as_echo_n "checking for va_copy... " >&6; }
20153 if test "${gl_cv_func_va_copy+set}" = set; then :
20154 $as_echo_n "(cached) " >&6
20157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20159 #include <stdarg.h>
20165 void (*func) (va_list, va_list) = va_copy;
20172 if ac_fn_c_try_compile
"$LINENO"; then :
20173 gl_cv_func_va_copy
=yes
20175 gl_cv_func_va_copy
=no
20177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20181 $as_echo "$gl_cv_func_va_copy" >&6; }
20182 if test $gl_cv_func_va_copy = no
; then
20183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20185 #if defined _AIX && !defined __GNUC__
20190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20191 $EGREP "vaccine" >/dev
/null
2>&1; then :
20198 if test $gl_aixcc = yes; then
20208 if test $gl_cv_have_include_next = yes; then
20209 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20212 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20213 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20214 $as_echo_n "(cached) " >&6
20217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h. */
20219 #include <stdarg.h>
20223 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20224 *) gl_absname_cpp
="$ac_cpp" ;;
20226 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20227 sed -n '\#/stdarg.h#{
20228 s#.*"\(.*/stdarg.h\)".*#\1#
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20237 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20239 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20241 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20243 gl_next_as_first_directive
='<'stdarg.h
'>'
20245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20246 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20248 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20253 if test "$gl_cv_next_stdarg_h" = '""'; then
20254 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20255 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20259 saved_as_echo_n
="$as_echo_n"
20261 if test "${gl_cv_func___va_copy+set}" = set; then :
20262 $as_echo_n "(cached) " >&6
20265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20267 #include <stdarg.h>
20280 if ac_fn_c_try_compile
"$LINENO"; then :
20281 gl_cv_func___va_copy
=yes
20283 gl_cv_func___va_copy
=no
20285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20288 as_echo_n
="$saved_as_echo_n"
20290 if test $gl_cv_func___va_copy = yes; then
20292 $as_echo "#define va_copy __va_copy" >>confdefs.h
20297 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20303 if test -n "$STDARG_H"; then
20304 GL_GENERATE_STDARG_H_TRUE
=
20305 GL_GENERATE_STDARG_H_FALSE
='#'
20307 GL_GENERATE_STDARG_H_TRUE
='#'
20308 GL_GENERATE_STDARG_H_FALSE
=
20316 # Define two additional variables used in the Makefile substitution.
20318 if test "$ac_cv_header_stdbool_h" = yes; then
20321 STDBOOL_H
='stdbool.h'
20324 if test -n "$STDBOOL_H"; then
20325 GL_GENERATE_STDBOOL_H_TRUE
=
20326 GL_GENERATE_STDBOOL_H_FALSE
='#'
20328 GL_GENERATE_STDBOOL_H_TRUE
='#'
20329 GL_GENERATE_STDBOOL_H_FALSE
=
20333 if test "$ac_cv_type__Bool" = yes; then
20344 if test $gt_cv_c_wchar_t = no
; then
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20349 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20350 if test "${gl_cv_decl_null_works+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20355 #include <stddef.h>
20356 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20366 if ac_fn_c_try_compile
"$LINENO"; then :
20367 gl_cv_decl_null_works
=yes
20369 gl_cv_decl_null_works
=no
20371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20374 $as_echo "$gl_cv_decl_null_works" >&6; }
20375 if test $gl_cv_decl_null_works = no
; then
20380 if test -n "$STDDEF_H"; then
20381 GL_GENERATE_STDDEF_H_TRUE
=
20382 GL_GENERATE_STDDEF_H_FALSE
='#'
20384 GL_GENERATE_STDDEF_H_TRUE
='#'
20385 GL_GENERATE_STDDEF_H_FALSE
=
20388 if test -n "$STDDEF_H"; then
20397 if test $gl_cv_have_include_next = yes; then
20398 gl_cv_next_stddef_h
='<'stddef.h
'>'
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20401 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20402 if test "${gl_cv_next_stddef_h+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408 #include <stddef.h>
20412 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20413 *) gl_absname_cpp
="$ac_cpp" ;;
20415 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20416 sed -n '\#/stddef.h#{
20417 s#.*"\(.*/stddef.h\)".*#\1#
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20426 $as_echo "$gl_cv_next_stddef_h" >&6; }
20428 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
20430 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20432 gl_next_as_first_directive
='<'stddef.h
'>'
20434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20435 gl_next_as_first_directive
=$gl_cv_next_stddef_h
20437 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
20456 if test $gl_cv_have_include_next = yes; then
20457 gl_cv_next_stdio_h
='<'stdio.h
'>'
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20460 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20461 if test "${gl_cv_next_stdio_h+set}" = set; then :
20462 $as_echo_n "(cached) " >&6
20465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h. */
20471 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20472 *) gl_absname_cpp
="$ac_cpp" ;;
20474 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20475 sed -n '\#/stdio.h#{
20476 s#.*"\(.*/stdio.h\)".*#\1#
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20485 $as_echo "$gl_cv_next_stdio_h" >&6; }
20487 NEXT_STDIO_H
=$gl_cv_next_stdio_h
20489 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20490 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20491 gl_next_as_first_directive
='<'stdio.h
'>'
20493 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20494 gl_next_as_first_directive
=$gl_cv_next_stdio_h
20496 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
20537 if test $gl_cv_have_include_next = yes; then
20538 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20541 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20542 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20543 $as_echo_n "(cached) " >&6
20546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20548 #include <stdlib.h>
20552 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20553 *) gl_absname_cpp
="$ac_cpp" ;;
20555 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20556 sed -n '\#/stdlib.h#{
20557 s#.*"\(.*/stdlib.h\)".*#\1#
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20566 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20568 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
20570 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20572 gl_next_as_first_directive
='<'stdlib.h
'>'
20574 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20575 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
20577 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
20587 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20595 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20603 if test "$ac_cv_have_decl_strtoimax" != yes; then
20604 HAVE_DECL_STRTOIMAX
=0
20606 for ac_func
in strtoimax
20608 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20609 if test "x$ac_cv_func_strtoimax" = x
""yes; then :
20610 cat >>confdefs.h
<<_ACEOF
20611 #define HAVE_STRTOIMAX 1
20619 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
; then
20628 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
20631 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20632 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
20638 cat >>confdefs.h
<<_ACEOF
20639 #define HAVE_DECL_STRTOLL $ac_have_decl
20659 if test "$ac_cv_have_decl_strtoumax" != yes; then
20660 HAVE_DECL_STRTOUMAX
=0
20662 for ac_func
in strtoumax
20664 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20665 if test "x$ac_cv_func_strtoumax" = x
""yes; then :
20666 cat >>confdefs.h
<<_ACEOF
20667 #define HAVE_STRTOUMAX 1
20675 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
; then
20684 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
20687 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20688 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
20694 cat >>confdefs.h
<<_ACEOF
20695 #define HAVE_DECL_STRTOULL $ac_have_decl
20714 if test $ac_cv_func_symlink = no
; then
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20718 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20719 if test "${gl_cv_func_symlink_works+set}" = set; then :
20720 $as_echo_n "(cached) " >&6
20722 if test "$cross_compiling" = yes; then :
20723 gl_cv_func_symlink_works
="guessing no"
20725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20726 /* end confdefs.h. */
20727 #include <unistd.h>
20733 if (!symlink ("a", "conftest.link/"))
20735 if (symlink ("conftest.f", "conftest.lnk2"))
20737 else if (!symlink ("a", "conftest.lnk2/"))
20745 if ac_fn_c_try_run
"$LINENO"; then :
20746 gl_cv_func_symlink_works
=yes
20748 gl_cv_func_symlink_works
=no
20750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20754 rm -f conftest.f conftest.link conftest.lnk2
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20757 $as_echo "$gl_cv_func_symlink_works" >&6; }
20758 if test "$gl_cv_func_symlink_works" != yes; then
20763 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
20772 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
20802 if test $gl_cv_have_include_next = yes; then
20803 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20806 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20807 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20811 if test $ac_cv_header_sys_stat_h = yes; then
20814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <sys/stat.h>
20820 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20821 *) gl_absname_cpp
="$ac_cpp" ;;
20823 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20824 sed -n '\#/sys/stat.h#{
20825 s#.*"\(.*/sys/stat.h\)".*#\1#
20831 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20837 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20839 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
20841 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20843 gl_next_as_first_directive
='<'sys
/stat.h
'>'
20845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20846 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
20848 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
20854 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20855 #include <sys/stat.h>
20857 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
20861 $as_echo "#define nlink_t int" >>confdefs.h
20879 if test $ac_cv_have_decl_localtime_r = no
; then
20880 HAVE_DECL_LOCALTIME_R
=0
20884 if test $ac_cv_func_localtime_r = yes; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20887 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20888 if test "${gl_cv_time_r_posix+set}" = set; then :
20889 $as_echo_n "(cached) " >&6
20891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20897 /* We don't need to append 'restrict's to the argument types,
20898 even though the POSIX signature has the 'restrict's,
20899 since C99 says they can't affect type compatibility. */
20900 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20902 /* Check the return type is a pointer.
20903 On HP-UX 10 it is 'int'. */
20904 *localtime_r (0, 0);
20910 if ac_fn_c_try_compile
"$LINENO"; then :
20911 gl_cv_time_r_posix
=yes
20913 gl_cv_time_r_posix
=no
20915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20919 $as_echo "$gl_cv_time_r_posix" >&6; }
20920 if test $gl_cv_time_r_posix = yes; then
20921 REPLACE_LOCALTIME_R
=0
20923 REPLACE_LOCALTIME_R
=1
20929 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
20938 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
20969 if test $gl_cv_have_include_next = yes; then
20970 gl_cv_next_unistd_h
='<'unistd.h
'>'
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20974 if test "${gl_cv_next_unistd_h+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20978 if test $ac_cv_header_unistd_h = yes; then
20981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983 #include <unistd.h>
20987 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20988 *) gl_absname_cpp
="$ac_cpp" ;;
20990 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20991 sed -n '\#/unistd.h#{
20992 s#.*"\(.*/unistd.h\)".*#\1#
20998 gl_cv_next_unistd_h
='<'unistd.h
'>'
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21004 $as_echo "$gl_cv_next_unistd_h" >&6; }
21006 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21008 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21010 gl_next_as_first_directive
='<'unistd.h
'>'
21012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21013 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21015 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21020 if test $ac_cv_header_unistd_h = yes; then
21029 gl_gnulib_enabled_dosname
=false
21030 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21031 gl_gnulib_enabled_sigprocmask
=false
21032 gl_gnulib_enabled_stat
=false
21033 gl_gnulib_enabled_strtoll
=false
21034 gl_gnulib_enabled_strtoull
=false
21035 gl_gnulib_enabled_verify
=false
21036 func_gl_gnulib_m4code_dosname
()
21038 if ! $gl_gnulib_enabled_dosname; then
21039 gl_gnulib_enabled_dosname
=true
21042 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21044 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21047 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21050 func_gl_gnulib_m4code_sigprocmask
()
21052 if ! $gl_gnulib_enabled_sigprocmask; then
21056 if test $gl_cv_type_sigset_t = yes; then
21057 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21058 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21059 gl_cv_func_sigprocmask
=1
21063 if test -z "$gl_cv_func_sigprocmask"; then
21064 HAVE_POSIX_SIGNALBLOCKING
=0
21067 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21076 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21085 GNULIB_SIGPROCMASK
=1
21091 gl_gnulib_enabled_sigprocmask
=true
21094 func_gl_gnulib_m4code_stat
()
21096 if ! $gl_gnulib_enabled_stat; then
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21101 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21102 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21103 $as_echo_n "(cached) " >&6
21105 if test "$cross_compiling" = yes; then :
21107 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21108 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21113 #include <sys/stat.h>
21118 struct stat st; return stat (".", &st) != stat ("./", &st);
21123 if ac_fn_c_try_run
"$LINENO"; then :
21124 gl_cv_func_stat_dir_slash
=yes
21126 gl_cv_func_stat_dir_slash
=no
21128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21129 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21134 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21136 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21137 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21138 $as_echo_n "(cached) " >&6
21141 # Assume that if we have lstat, we can also check symlinks.
21142 if test $ac_cv_func_lstat = yes; then
21143 ln -s conftest.tmp conftest.lnk
21145 if test "$cross_compiling" = yes; then :
21146 gl_cv_func_stat_file_slash
="guessing no"
21148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21149 /* end confdefs.h. */
21150 #include <sys/stat.h>
21157 if (!stat ("conftest.tmp/", &st))
21160 if (!stat ("conftest.lnk/", &st))
21169 if ac_fn_c_try_run
"$LINENO"; then :
21170 gl_cv_func_stat_file_slash
=yes
21172 gl_cv_func_stat_file_slash
=no
21174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21178 rm -f conftest.tmp conftest.lnk
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21181 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21182 case $gl_cv_func_stat_dir_slash in
21183 *no
) REPLACE_STAT
=1
21185 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21188 case $gl_cv_func_stat_file_slash in
21189 *no
) REPLACE_STAT
=1
21191 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21195 if test $REPLACE_STAT = 1; then
21204 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21222 gl_gnulib_enabled_stat
=true
21223 if $condition; then
21224 func_gl_gnulib_m4code_dosname
21226 if $condition; then
21227 func_gl_gnulib_m4code_verify
21231 func_gl_gnulib_m4code_strtoll
()
21233 if ! $gl_gnulib_enabled_strtoll; then
21237 if test "$ac_cv_type_long_long_int" = yes; then
21238 for ac_func
in strtoll
21240 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21241 if test "x$ac_cv_func_strtoll" = x
""yes; then :
21242 cat >>confdefs.h
<<_ACEOF
21243 #define HAVE_STRTOLL 1
21249 if test $ac_cv_func_strtoll = no
; then
21254 if test $HAVE_STRTOLL = 0; then
21263 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21280 gl_gnulib_enabled_strtoll
=true
21283 func_gl_gnulib_m4code_strtoull
()
21285 if ! $gl_gnulib_enabled_strtoull; then
21289 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21290 for ac_func
in strtoull
21292 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21293 if test "x$ac_cv_func_strtoull" = x
""yes; then :
21294 cat >>confdefs.h
<<_ACEOF
21295 #define HAVE_STRTOULL 1
21301 if test $ac_cv_func_strtoull = no
; then
21306 if test $HAVE_STRTOULL = 0; then
21315 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
21332 gl_gnulib_enabled_strtoull
=true
21335 func_gl_gnulib_m4code_verify
()
21337 if ! $gl_gnulib_enabled_verify; then
21338 gl_gnulib_enabled_verify
=true
21341 if test $REPLACE_GETOPT = 1; then
21342 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21344 if test $REPLACE_LSTAT = 1; then
21345 func_gl_gnulib_m4code_dosname
21347 if test $REPLACE_LSTAT = 1; then
21348 func_gl_gnulib_m4code_stat
21350 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21351 func_gl_gnulib_m4code_sigprocmask
21353 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21354 func_gl_gnulib_m4code_stat
21356 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
; then
21357 func_gl_gnulib_m4code_verify
21359 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
21360 func_gl_gnulib_m4code_strtoll
21362 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
; then
21363 func_gl_gnulib_m4code_verify
21365 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
21366 func_gl_gnulib_m4code_strtoull
21369 if $gl_gnulib_enabled_dosname; then
21370 gl_GNULIB_ENABLED_dosname_TRUE
=
21371 gl_GNULIB_ENABLED_dosname_FALSE
='#'
21373 gl_GNULIB_ENABLED_dosname_TRUE
='#'
21374 gl_GNULIB_ENABLED_dosname_FALSE
=
21377 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21378 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
21379 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
21381 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
21382 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
21385 if $gl_gnulib_enabled_sigprocmask; then
21386 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
21387 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
21389 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
21390 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
21393 if $gl_gnulib_enabled_stat; then
21394 gl_GNULIB_ENABLED_stat_TRUE
=
21395 gl_GNULIB_ENABLED_stat_FALSE
='#'
21397 gl_GNULIB_ENABLED_stat_TRUE
='#'
21398 gl_GNULIB_ENABLED_stat_FALSE
=
21401 if $gl_gnulib_enabled_strtoll; then
21402 gl_GNULIB_ENABLED_strtoll_TRUE
=
21403 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
21405 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
21406 gl_GNULIB_ENABLED_strtoll_FALSE
=
21409 if $gl_gnulib_enabled_strtoull; then
21410 gl_GNULIB_ENABLED_strtoull_TRUE
=
21411 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
21413 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
21414 gl_GNULIB_ENABLED_strtoull_FALSE
=
21417 if $gl_gnulib_enabled_verify; then
21418 gl_GNULIB_ENABLED_verify_TRUE
=
21419 gl_GNULIB_ENABLED_verify_FALSE
='#'
21421 gl_GNULIB_ENABLED_verify_TRUE
='#'
21422 gl_GNULIB_ENABLED_verify_FALSE
=
21425 # End of code from modules
21446 gl_source_base
='tests'
21447 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
21449 gl_module_indicator_condition
=$gltests_WITNESS
21460 LIBGNU_LIBDEPS
="$gl_libdeps"
21462 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
21467 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
21470 ## The -headerpad option tells ld (see man page) to leave room at the
21471 ## end of the header for adding load commands. Needed for dumping.
21472 ## 0x690 is the total size of 30 segment load commands (at 56
21473 ## each); under Cocoa 31 commands are required.
21474 if test "$HAVE_NS" = "yes"; then
21475 libs_nsgui
="-framework AppKit"
21476 headerpad_extra
=6C8
21479 headerpad_extra
=690
21481 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21483 ## This is here because src/Makefile.in did some extra fiddling around
21484 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21485 ## #ifndef LD_SWITCH_SYSTEM
21486 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21487 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21488 ## not using gcc, darwin system not on an alpha (ie darwin, since
21489 ## darwin + alpha does not occur).
21490 ## Because this was done in src/Makefile.in, the resulting part of
21491 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21492 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21493 ## rather than LD_SWITCH_SYSTEM.
21494 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21495 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
21498 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
21499 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
21500 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
21501 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21502 ## had different values in configure (in ac_link) and src/Makefile.in.
21503 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21504 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
21506 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
21509 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21510 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21519 ## gnu: GNU needs its own crt0.
21520 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
21522 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21523 ## library search parth, i.e. it won't search /usr/lib for libc and
21524 ## friends. Using -nostartfiles instead avoids this problem, and
21525 ## will also work on earlier NetBSD releases.
21526 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
21528 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21529 ## MkLinux/LinuxPPC needs this.
21530 ## ibms390x only supports opsys = gnu-linux so it can be added here.
21533 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
21539 if test "x$ORDINARY_LINK" = "xyes"; then
21543 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21546 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21547 ## freebsd, gnu-* not on macppc|ibms390x.
21548 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21550 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21551 ## places that are difficult to figure out at make time. Fortunately,
21552 ## these same versions allow you to pass arbitrary flags on to the
21553 ## linker, so there is no reason not to use it as a linker.
21555 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21556 ## searching for libraries in its internal directories, so we have to
21557 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21558 LD_FIRSTFLAG
="-nostdlib"
21561 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21562 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
21567 ## FIXME? The logic here is not precisely the same as that above.
21568 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21569 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21571 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21574 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
21577 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21578 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21584 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21585 ## immediately undefine it again and redefine it to empty.
21586 ## Was the C_SWITCH_X_SITE part really necessary?
21587 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21593 ## Ask GCC where to find libgcc.a.
21594 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21599 ## If we're using X11/GNUstep, define some consequences.
21600 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
21602 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21605 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21612 #### Report on what we decided to do.
21613 #### Report GTK as a toolkit, even if it doesn't use Xt.
21614 #### It makes printing result more understandable as using GTK sets
21615 #### toolkit_scroll_bars to yes by default.
21616 if test "${HAVE_GTK}" = "yes"; then
21621 if test -n "$machfile"; then
21622 and_machfile
=" and \`${machfile}'"
21626 Configured for \`${canonical}'.
21628 Where should the build process find the source code? ${srcdir}
21629 What operating system and machine description files should Emacs use?
21630 \`${opsysfile}'${and_machfile}
21631 What compiler should emacs be built with? ${CC} ${CFLAGS}
21632 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21633 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21634 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21635 What window system should Emacs use? ${window_system}
21636 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21638 if test -n "${x_includes}"; then
21639 echo " Where do we find X Windows header files? ${x_includes}"
21641 echo " Where do we find X Windows header files? Standard dirs"
21643 if test -n "${x_libraries}"; then
21644 echo " Where do we find X Windows libraries? ${x_libraries}"
21646 echo " Where do we find X Windows libraries? Standard dirs"
21649 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21650 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21651 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21652 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21653 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21654 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21655 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21656 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21658 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21659 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21660 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21661 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21662 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21663 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21664 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21666 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21667 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21668 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21669 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21671 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21674 if test $USE_XASSERTS = yes; then
21675 echo " Compiling with asserts turned on."
21676 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21681 if test "$HAVE_NS" = "yes"; then
21683 echo "You must run \"make install\" in order to test the built application.
21684 The installed application will go to nextstep/Emacs.app and can be
21685 run or moved from there."
21686 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21687 echo "The application will be fully self-contained."
21689 echo "The lisp resources for the application will be installed under ${prefix}.
21690 You may need to run \"make install\" with sudo. The application will fail
21691 to run if these resources are not installed."
21697 # Remove any trailing slashes in these variables.
21698 test "${prefix}" != NONE
&&
21699 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21700 test "${exec_prefix}" != NONE
&&
21701 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21703 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"
21705 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"
21708 opt_makefile
=test
/automated
/Makefile
21710 if test -f $srcdir/${opt_makefile}.
in; then
21711 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21712 ac_config_files
="$ac_config_files test/automated/Makefile"
21716 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21720 ac_config_commands
="$ac_config_commands mkdirs"
21723 ac_config_commands
="$ac_config_commands epaths"
21726 ac_config_commands
="$ac_config_commands gdbinit"
21729 cat >confcache
<<\_ACEOF
21730 # This file is a shell script that caches the results of configure
21731 # tests run on this system so they can be shared between configure
21732 # scripts and configure runs, see configure's option --config-cache.
21733 # It is not useful on other systems. If it contains results you don't
21734 # want to keep, you may remove or edit it.
21736 # config.status only pays attention to the cache file if you give it
21737 # the --recheck option to rerun configure.
21739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21741 # following values.
21745 # The following way of writing the cache mishandles newlines in values,
21746 # but we know of no workaround that is simple, portable, and efficient.
21747 # So, we kill variables containing newlines.
21748 # Ultrix sh set writes to stderr and can't be redirected directly,
21749 # and sets the high bit in the cache file unless we assign to the vars.
21751 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21752 eval ac_val
=\$
$ac_var
21756 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21760 _ | IFS | as_nl
) ;; #(
21761 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21762 *) { eval $ac_var=; unset $ac_var;} ;;
21768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21769 *${as_nl}ac_space
=\
*)
21770 # `set' does not quote correctly, so add quotes: double-quote
21771 # substitution turns \\\\ into \\, and sed turns \\ into \.
21774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21777 # `set' quotes correctly as required by POSIX, so do not add quotes.
21778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21791 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21792 if test -w "$cache_file"; then
21793 test "x$cache_file" != "x/dev/null" &&
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21795 $as_echo "$as_me: updating cache $cache_file" >&6;}
21796 cat confcache
>$cache_file
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21799 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21804 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21805 # Let make expand exec_prefix.
21806 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21808 DEFS
=-DHAVE_CONFIG_H
21812 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21813 # 1. Remove the extension, and $U if already installed.
21814 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21815 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21817 # will be set to the directory where LIBOBJS objects are built.
21818 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21819 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
21821 LIBOBJS
=$ac_libobjs
21823 LTLIBOBJS
=$ac_ltlibobjs
21826 if test -n "$EXEEXT"; then
21828 am__EXEEXT_FALSE
='#'
21830 am__EXEEXT_TRUE
='#'
21834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21835 as_fn_error
"conditional \"AMDEP\" was never defined.
21836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21839 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
21840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21843 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21844 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
21845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21847 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21848 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21852 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21853 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
21854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21856 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21857 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
21858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21860 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21861 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21864 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21865 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21868 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21869 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21872 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21873 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21876 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21877 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21880 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21881 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21884 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21885 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21888 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21889 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21892 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21893 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21899 if test -n "$gl_LIBOBJS"; then
21900 # Remove the extension.
21901 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21902 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21903 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21904 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21907 gl_LIBOBJS
=$gl_libobjs
21909 gl_LTLIBOBJS
=$gl_ltlibobjs
21915 if test -n "$gltests_LIBOBJS"; then
21916 # Remove the extension.
21917 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21918 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21919 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21920 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21923 gltests_LIBOBJS
=$gltests_libobjs
21925 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21929 : ${CONFIG_STATUS=./config.status}
21931 ac_clean_files_save
=$ac_clean_files
21932 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21934 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21936 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21938 # Generated by $as_me.
21939 # Run this file to recreate the current configuration.
21940 # Compiler output produced by configure, useful for debugging
21941 # configure, is in config.log if it exists.
21944 ac_cs_recheck=false
21947 SHELL=\${CONFIG_SHELL-$SHELL}
21950 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
21951 ## -------------------- ##
21952 ## M4sh Initialization. ##
21953 ## -------------------- ##
21955 # Be more Bourne compatible
21956 DUALCASE
=1; export DUALCASE
# for MKS sh
21957 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
21960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21961 # is contrary to our usage. Disable this feature.
21962 alias -g '${1+"$@"}'='"$@"'
21963 setopt NO_GLOB_SUBST
21965 case `(set -o) 2>/dev/null` in #(
21977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21978 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21981 # Prefer a ksh shell builtin over an external printf program on Solaris,
21982 # but without wasting forks for bash or zsh.
21983 if test -z "$BASH_VERSION$ZSH_VERSION" \
21984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21985 as_echo='print
-r --'
21986 as_echo_n='print
-rn --'
21987 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21988 as_echo='printf %s
\n'
21989 as_echo_n='printf %s
'
21991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21992 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
21993 as_echo_n='/usr
/ucb
/echo -n'
21995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21996 as_echo_n_body='eval
22000 expr "X$arg" : "X\\(.*\\)$as_nl";
22001 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22003 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22005 export as_echo_n_body
22006 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22008 export as_echo_body
22009 as_echo='sh
-c $as_echo_body as_echo
'
22012 # The user is always right.
22013 if test "${PATH_SEPARATOR+set}" != set; then
22015 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22016 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22023 # We need space, tab and new line, in precisely that order. Quoting is
22024 # there to prevent editors from complaining about space-tab.
22025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22026 # splitting by setting IFS to empty value.)
22029 # Find who we are. Look in the path if we contain no directory separator.
22031 *[\\/]* ) as_myself=$0 ;;
22032 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22033 for as_dir in $PATH
22036 test -z "$as_dir" && as_dir=.
22037 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22043 # We did not find ourselves, most probably we were run as `sh COMMAND'
22044 # in which case we are not to be found in the path.
22045 if test "x$as_myself" = x
; then
22048 if test ! -f "$as_myself"; then
22049 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22053 # Unset variables that we do not need and which cause bugs (e.g. in
22054 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22055 # suppresses any "Segmentation fault" message there. '((' could
22056 # trigger a bug in pdksh 5.2.14.
22057 for as_var
in BASH_ENV ENV MAIL MAILPATH
22058 do eval test x\
${$as_var+set} = xset \
22059 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22072 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22075 # as_fn_error ERROR [LINENO LOG_FD]
22076 # ---------------------------------
22077 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22078 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22079 # script with status $?, using 1 if that was 0.
22082 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22084 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22085 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22087 $as_echo "$as_me: error: $1" >&2
22088 as_fn_exit
$as_status
22092 # as_fn_set_status STATUS
22093 # -----------------------
22094 # Set $? to STATUS, without forking.
22095 as_fn_set_status
()
22098 } # as_fn_set_status
22100 # as_fn_exit STATUS
22101 # -----------------
22102 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22106 as_fn_set_status
$1
22112 # Portably unset VAR.
22115 { eval $1=; unset $1;}
22117 as_unset
=as_fn_unset
22118 # as_fn_append VAR VALUE
22119 # ----------------------
22120 # Append the text in VALUE to the end of the definition contained in VAR. Take
22121 # advantage of any shell optimizations that allow amortized linear growth over
22122 # repeated appends, instead of the typical quadratic growth present in naive
22124 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22125 eval 'as_fn_append ()
22136 # as_fn_arith ARG...
22137 # ------------------
22138 # Perform arithmetic evaluation on the ARGs, and store the result in the
22139 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22140 # must be portable across $(()) and expr.
22141 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22142 eval 'as_fn_arith ()
22149 as_val
=`expr "$@" || test $? -eq 1`
22154 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22155 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22161 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22162 as_basename
=basename
22167 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22173 as_me
=`$as_basename -- "$0" ||
22174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22175 X"$0" : 'X\(//\)$' \| \
22176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22178 sed '/^.*\/\([^/][^/]*\)\/*$/{
22192 # Avoid depending upon Character Ranges.
22193 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22194 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22195 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22196 as_cr_digits
='0123456789'
22197 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22199 ECHO_C
= ECHO_N
= ECHO_T
=
22200 case `echo -n x` in #(((((
22202 case `echo 'xy\c'` in
22203 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22205 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22212 rm -f conf$$ conf$$.exe conf$$.
file
22213 if test -d conf$$.dir
; then
22214 rm -f conf$$.dir
/conf$$.
file
22217 mkdir conf$$.dir
2>/dev
/null
22219 if (echo >conf$$.
file) 2>/dev
/null
; then
22220 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22222 # ... but there are two gotchas:
22223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22225 # In both cases, we have to default to `cp -p'.
22226 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22228 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22236 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22237 rmdir conf$$.dir
2>/dev
/null
22242 # Create "$as_dir" as a directory, including parents if necessary.
22247 -*) as_dir
=.
/$as_dir;;
22249 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22253 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22254 *) as_qdir
=$as_dir;;
22256 as_dirs
="'$as_qdir' $as_dirs"
22257 as_dir
=`$as_dirname -- "$as_dir" ||
22258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22259 X"$as_dir" : 'X\(//\)[^/]' \| \
22260 X"$as_dir" : 'X\(//\)$' \| \
22261 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22262 $as_echo X"$as_dir" |
22263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22267 /^X\(\/\/\)[^/].*/{
22280 test -d "$as_dir" && break
22282 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22283 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
22287 if mkdir
-p .
2>/dev
/null
; then
22288 as_mkdir_p
='mkdir -p "$as_dir"'
22290 test -d .
/-p && rmdir .
/-p
22294 if test -x / >/dev
/null
2>&1; then
22295 as_test_x
='test -x'
22297 if ls -dL / >/dev
/null
2>&1; then
22304 if test -d "$1"; then
22310 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22311 ???[sx]*):;;*)false;;esac;fi
22315 as_executable_p
=$as_test_x
22317 # Sed expression to map a string onto a valid CPP name.
22318 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22320 # Sed expression to map a string onto a valid variable name.
22321 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22325 ## ----------------------------------- ##
22326 ## Main body of $CONFIG_STATUS script. ##
22327 ## ----------------------------------- ##
22329 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22332 # Save the log message, to keep $0 and so on meaningful, and to
22333 # report actual input values of CONFIG_FILES etc. instead of their
22334 # values after options handling.
22336 This file was extended by emacs $as_me 24.0.50, which was
22337 generated by GNU Autoconf 2.65. Invocation command line was
22339 CONFIG_FILES = $CONFIG_FILES
22340 CONFIG_HEADERS = $CONFIG_HEADERS
22341 CONFIG_LINKS = $CONFIG_LINKS
22342 CONFIG_COMMANDS = $CONFIG_COMMANDS
22345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22350 case $ac_config_files in *"
22351 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22354 case $ac_config_headers in *"
22355 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22360 # Files that config.status was made for.
22361 config_files="$ac_config_files"
22362 config_headers="$ac_config_headers"
22363 config_commands="$ac_config_commands"
22367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22369 \`$as_me' instantiates files and other configuration actions
22370 from templates according to the current configuration. Unless the files
22371 and actions are specified as TAGs, all are instantiated by default.
22373 Usage: $0 [OPTION]... [TAG]...
22375 -h, --help print this help, then exit
22376 -V, --version print version number and configuration settings, then exit
22377 --config print configuration, then exit
22378 -q, --quiet, --silent
22379 do not print progress messages
22380 -d, --debug don't remove temporary files
22381 --recheck update $as_me by reconfiguring in the same conditions
22382 --file=FILE[:TEMPLATE]
22383 instantiate the configuration file FILE
22384 --header=FILE[:TEMPLATE]
22385 instantiate the configuration header FILE
22387 Configuration files:
22390 Configuration headers:
22393 Configuration commands:
22396 Report bugs to the package provider."
22399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22400 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22402 emacs config.status 24.0.50
22403 configured by $0, generated by GNU Autoconf 2.65,
22404 with options \\"\$ac_cs_config\\"
22406 Copyright (C) 2009 Free Software Foundation, Inc.
22407 This config.status script is free software; the Free Software Foundation
22408 gives unlimited permission to copy, distribute and modify it."
22415 test -n "\$AWK" || AWK=awk
22418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22419 # The default lists apply if the user does not specify any file.
22425 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22426 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22437 # Handling of the options.
22438 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22440 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22441 $as_echo "$ac_cs_version"; exit ;;
22442 --config |
--confi |
--conf |
--con |
--co |
--c )
22443 $as_echo "$ac_cs_config"; exit ;;
22444 --debug |
--debu |
--deb |
--de |
--d |
-d )
22446 --file |
--fil |
--fi |
--f )
22449 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22451 as_fn_append CONFIG_FILES
" '$ac_optarg'"
22452 ac_need_defaults
=false
;;
22453 --header |
--heade |
--head |
--hea )
22456 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22458 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
22459 ac_need_defaults
=false
;;
22461 # Conflict between --help and --header
22462 as_fn_error
"ambiguous option: \`$1'
22463 Try \`$0 --help' for more information.";;
22464 --help |
--hel |
-h )
22465 $as_echo "$ac_cs_usage"; exit ;;
22466 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22467 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22470 # This is an error.
22471 -*) as_fn_error
"unrecognized option: \`$1'
22472 Try \`$0 --help' for more information." ;;
22474 *) as_fn_append ac_config_targets
" $1"
22475 ac_need_defaults
=false
;;
22481 ac_configure_extra_args
=
22483 if $ac_cs_silent; then
22485 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22490 if \$ac_cs_recheck; then
22491 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22493 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22494 CONFIG_SHELL='$SHELL'
22495 export CONFIG_SHELL
22500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22504 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22505 ## Running $as_me. ##
22511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22515 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22516 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
22520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22522 # Handling of arguments.
22523 for ac_config_target
in $ac_config_targets
22525 case $ac_config_target in
22526 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22527 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22528 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22529 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22530 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
22531 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22532 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
22533 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
22534 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
22535 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
22536 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
22537 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22538 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22539 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22540 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
22541 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
22542 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
22543 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
22545 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22550 # If the user did not use the arguments to specify the items to instantiate,
22551 # then the envvar interface is used. Set only those that are not.
22552 # We use the long form for the default assignment because of an extremely
22553 # bizarre bug on SunOS 4.1.3.
22554 if $ac_need_defaults; then
22555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22560 # Have a temporary directory for convenience. Make it in the build tree
22561 # simply because there is no reason against having it here, and in addition,
22562 # creating and moving files from /tmp can sometimes cause problems.
22563 # Hook for its removal unless debugging.
22564 # Note that there is a small window in which the directory will not be cleaned:
22565 # after its creation but before its name has been assigned to `$tmp'.
22569 trap 'exit_status=$?
22570 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22572 trap 'as_fn_exit 1' 1 2 13 15
22574 # Create a (secure) tmp directory for tmp files.
22577 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22578 test -n "$tmp" && test -d "$tmp"
22581 tmp
=.
/conf$$
-$RANDOM
22582 (umask 077 && mkdir
"$tmp")
22583 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
22585 # Set up the scripts for CONFIG_FILES section.
22586 # No need to generate them if there are no CONFIG_FILES.
22587 # This happens for instance with `./config.status config.h'.
22588 if test -n "$CONFIG_FILES"; then
22590 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
22591 ac_cs_awk_getline
=:
22592 ac_cs_awk_pipe_init
=
22593 ac_cs_awk_read_file
='
22594 while ((getline aline < (F[key])) > 0)
22597 ac_cs_awk_pipe_fini
=
22599 ac_cs_awk_getline
=false
22600 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
22601 ac_cs_awk_read_file
='
22603 print "cat " F[key] " &&"
22604 '$ac_cs_awk_pipe_init
22605 # The final `:' finishes the AND list.
22606 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
22608 ac_cr
=`echo X | tr X '\015'`
22609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22610 # But we know of no other shell where ac_cr would be empty at this
22611 # point, so we can use a bashism as a fallback.
22612 if test "x$ac_cr" = x
; then
22613 eval ac_cr
=\$
\'\\r
\'
22615 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22619 ac_cs_awk_cr
=$ac_cr
22622 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22625 # Create commands to substitute file output variables.
22627 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22628 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22629 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
22632 } >conf$
$files.sh
&&
22633 . .
/conf$
$files.sh ||
22634 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
22635 rm -f conf$
$files.sh
22638 echo "cat >conf$$subs.awk <<_ACEOF" &&
22639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22641 } >conf$$subs.sh ||
22642 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22645 for ac_last_try in false false false false false :; do
22646 . ./conf$$subs.sh ||
22647 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22649 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22650 if test $ac_delim_n = $ac_delim_num; then
22652 elif $ac_last_try; then
22653 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22655 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22658 rm -f conf$$subs.sh
22660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22661 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22665 s/^/S["/; s
/!.
*/"]=/
22675 s/\(.\{148\}\)..*/\1/
22677 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22682 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22689 s/\(.\{148\}\)..*/\1/
22691 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22695 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22700 ' <conf$$subs.awk | sed '
22705 ' >>$CONFIG_STATUS || ac_write_fail=1
22706 rm -f conf$$subs.awk
22707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22709 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22710 for (key in S) S_is_set[key] = 1
22712 \$ac_cs_awk_pipe_init
22716 nfields = split(line, field, "@
")
22718 len = length(field[1])
22719 for (i = 2; i < nfields; i++) {
22721 keylen = length(key)
22722 if (S_is_set[key]) {
22724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22725 len += length(value) + length(field[++i])
22730 if (nfields == 3 && !substed) {
22732 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22733 \$ac_cs_awk_read_file
22739 \$ac_cs_awk_pipe_fini
22742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22743 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22744 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22747 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22748 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
22751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22753 # trailing colons and then remove the whole line if VPATH becomes empty
22754 # (actually we leave an empty line to preserve line numbers).
22755 if test "x
$srcdir" = x.; then
22756 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22757 s/:*\$(srcdir):*/:/
22758 s/:*\${srcdir}:*/:/
22760 s/^\([^=]*=[ ]*\):*/\1/
22766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22767 fi # test -n "$CONFIG_FILES"
22769 # Set up the scripts for CONFIG_HEADERS section.
22770 # No need to generate them if there are no CONFIG_HEADERS.
22771 # This happens for instance with `./config.status Makefile'.
22772 if test -n "$CONFIG_HEADERS"; then
22773 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22777 # Transform confdefs.h into an awk script `defines.awk', embedded as
22778 # here-document in config.status, that substitutes the proper values into
22779 # config.h.in to produce config.h.
22781 # Create a delimiter string that does not exist in confdefs.h, to ease
22782 # handling of long lines.
22784 for ac_last_try in false false :; do
22785 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22786 if test -z "$ac_t"; then
22788 elif $ac_last_try; then
22789 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
22791 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22795 # For the awk script, D is an array of macro values keyed by name,
22796 # likewise P contains macro parameters if any. Preserve backslash
22797 # newline sequences.
22799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22801 s/.\{148\}/&'"$ac_delim"'/g
22804 s/^[ ]*#[ ]*define[ ][ ]*/ /
22811 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22813 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22818 D["\
1"]=" \
3\\\\\\n
"\\/p
22820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22825 s/.\{148\}/&'"$ac_delim"'/g
22830 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22833 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22835 ' <confdefs.h | sed '
22836 s/'"$ac_delim"'/"\\\
22837 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22840 for (key in D) D_is_set[key] = 1
22843 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22845 split(line, arg, " ")
22846 if (arg[1] == "#") {
22850 defundef
= substr
(arg
[1], 2)
22853 split(mac1
, mac2
, "(") #)
22855 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22856 if (D_is_set
[macro
]) {
22857 # Preserve the white space surrounding the "#".
22858 print prefix
"define", macro P
[macro
] D
[macro
]
22861 # Replace #undef with comments. This is necessary, for example,
22862 # in the case of _POSIX_SOURCE, which is predefined and required
22863 # on some systems where configure will not decide to define it.
22864 if (defundef
== "undef") {
22865 print
"/*", prefix defundef
, macro
, "*/"
22873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22874 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
22875 fi # test -n "$CONFIG_HEADERS"
22878 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22883 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22885 case $ac_mode$ac_tag in
22887 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
22888 :[FH
]-) ac_tag
=-:-;;
22889 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22906 -) ac_f
="$tmp/stdin";;
22907 *) # Look for the file first in the build tree, then in the source tree
22908 # (if the path is not absolute). The absolute path cannot be DOS-style,
22909 # because $ac_f cannot contain `:'.
22913 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22915 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
22917 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22918 as_fn_append ac_file_inputs
" '$ac_f'"
22921 # Let's still pretend it is `configure' which instantiates (i.e., don't
22922 # use $as_me), people would be surprised to read:
22923 # /* config.h. Generated by config.status. */
22924 configure_input
='Generated from '`
22925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22927 if test x
"$ac_file" != x-
; then
22928 configure_input
="$ac_file. $configure_input"
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22930 $as_echo "$as_me: creating $ac_file" >&6;}
22932 # Neutralize special characters interpreted by sed in replacement strings.
22933 case $configure_input in #(
22934 *\
&* |
*\|
* |
*\\* )
22935 ac_sed_conf_input
=`$as_echo "$configure_input" |
22936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22937 *) ac_sed_conf_input
=$configure_input;;
22941 *:-:* |
*:-) cat >"$tmp/stdin" \
22942 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
22947 ac_dir
=`$as_dirname -- "$ac_file" ||
22948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22949 X"$ac_file" : 'X\(//\)[^/]' \| \
22950 X"$ac_file" : 'X\(//\)$' \| \
22951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22952 $as_echo X"$ac_file" |
22953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22957 /^X\(\/\/\)[^/].*/{
22970 as_dir
="$ac_dir"; as_fn_mkdir_p
22974 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22976 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22977 # A ".." for each directory in $ac_dir_suffix.
22978 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22979 case $ac_top_builddir_sub in
22980 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22981 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22984 ac_abs_top_builddir
=$ac_pwd
22985 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22986 # for backward compatibility:
22987 ac_top_builddir
=$ac_top_build_prefix
22990 .
) # We are building in place.
22992 ac_top_srcdir
=$ac_top_builddir_sub
22993 ac_abs_top_srcdir
=$ac_pwd ;;
22994 [\\/]* | ?
:[\\/]* ) # Absolute name.
22995 ac_srcdir
=$srcdir$ac_dir_suffix;
22996 ac_top_srcdir
=$srcdir
22997 ac_abs_top_srcdir
=$srcdir ;;
22998 *) # Relative name.
22999 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23000 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23001 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23003 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23013 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23014 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23016 ac_MKDIR_P
=$MKDIR_P
23018 [\\/$
]* | ?
:[\\/]* ) ;;
23019 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23024 # If the template does not know about datarootdir, expand it.
23025 # FIXME: This hack should be removed a few years after 2.60.
23026 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23038 *datarootdir
*) ac_datarootdir_seen
=yes;;
23039 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23044 ac_datarootdir_hack='
23045 s&@datadir@&$datadir&g
23046 s&@docdir@&$docdir&g
23047 s&@infodir@&$infodir&g
23048 s&@localedir@&$localedir&g
23049 s&@mandir@&$mandir&g
23050 s&\\\${datarootdir}&$datarootdir&g' ;;
23054 # Neutralize VPATH when `$srcdir' = `.'.
23055 # Shell code in configure.ac might set extrasub.
23056 # FIXME: do we really want to maintain this feature?
23057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23058 ac_sed_extra="$ac_vpsub
23061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23063 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23064 s|@configure_input@|
$ac_sed_conf_input|
;t t
23065 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23066 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23067 s
&@srcdir@
&$ac_srcdir&;t t
23068 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23069 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23070 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23071 s
&@builddir@
&$ac_builddir&;t t
23072 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23073 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23074 s
&@INSTALL@
&$ac_INSTALL&;t t
23075 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23076 $ac_datarootdir_hack
23078 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23079 if $ac_cs_awk_getline; then
23080 $AWK -f "$tmp/subs.
awk"
23082 $AWK -f "$tmp/subs.
awk" | $SHELL
23084 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23086 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23087 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23088 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23090 which seems to be undefined. Please make sure it is defined." >&5
23091 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23092 which seems to be undefined. Please make sure it is defined." >&2;}
23096 -) cat "$tmp/out" && rm -f "$tmp/out";;
23097 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23099 || as_fn_error "could not create $ac_file" "$LINENO" 5
23105 if test x"$ac_file" != x-; then
23107 $as_echo "/* $configure_input */" \
23108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23109 } >"$tmp/config.h" \
23110 || as_fn_error "could not create $ac_file" "$LINENO" 5
23111 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23113 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23116 mv "$tmp/config.h" "$ac_file" \
23117 || as_fn_error "could not create $ac_file" "$LINENO" 5
23120 $as_echo "/* $configure_input */" \
23121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23122 || as_fn_error "could not create -" "$LINENO" 5
23124 # Compute "$ac_file"'s index
in $config_headers.
23127 for _am_header
in $config_headers :; do
23128 case $_am_header in
23129 $_am_arg |
$_am_arg:* )
23132 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23135 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23136 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23137 X"$_am_arg" : 'X\(//\)[^/]' \| \
23138 X"$_am_arg" : 'X\(//\)$' \| \
23139 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23140 $as_echo X"$_am_arg" |
23141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23145 /^X\(\/\/\)[^/].*/{
23157 s/.*/./; q'`/stamp-h
$_am_stamp_count
23160 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23161 $as_echo "$as_me: executing $ac_file commands" >&6;}
23166 case $ac_file$ac_mode in
23167 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23168 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23169 # are listed without --file. Let's play safe and only enable the eval
23170 # if we detect the quoting.
23171 case $CONFIG_FILES in
23172 *\'*) eval set x
"$CONFIG_FILES" ;;
23173 *) set x
$CONFIG_FILES ;;
23178 # Strip MF so we end up with the name of the file.
23179 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23180 # Check whether this is an Automake generated Makefile or not.
23181 # We used to match only the files named `Makefile.in', but
23182 # some people rename them; so instead we look at the file content.
23183 # Grep'ing the first line is not enough: some people post-process
23184 # each Makefile.in and add a new line on top of each file to say so.
23185 # Grep'ing the whole file is not good either: AIX grep has a line
23186 # limit of 2048, but all sed's we know have understand at least 4000.
23187 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23188 dirpart
=`$as_dirname -- "$mf" ||
23189 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190 X"$mf" : 'X\(//\)[^/]' \| \
23191 X"$mf" : 'X\(//\)$' \| \
23192 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23198 /^X\(\/\/\)[^/].*/{
23214 # Extract the definition of DEPDIR, am__include, and am__quote
23215 # from the Makefile without running `make'.
23216 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23217 test -z "$DEPDIR" && continue
23218 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23219 test -z "am__include" && continue
23220 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23221 # When using ansi2knr, U may be empty or an underscore; expand it
23222 U
=`sed -n 's/^U = //p' < "$mf"`
23223 # Find all dependency output files, they are included files with
23224 # $(DEPDIR) in their names. We invoke sed twice because it is the
23225 # simplest approach to changing $(DEPDIR) to its actual value in the
23227 for file in `sed -n "
23228 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23229 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23230 # Make sure the directory exists.
23231 test -f "$dirpart/$file" && continue
23232 fdir
=`$as_dirname -- "$file" ||
23233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23234 X"$file" : 'X\(//\)[^/]' \| \
23235 X"$file" : 'X\(//\)$' \| \
23236 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23237 $as_echo X"$file" |
23238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23242 /^X\(\/\/\)[^/].*/{
23255 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23256 # echo "creating $dirpart/$file"
23257 echo '# dummy' > "$dirpart/$file"
23263 for dir
in etc lisp
; do
23264 test -d ${dir} || mkdir
${dir}
23268 echo creating src
/epaths.h
23269 ${MAKE-make} epaths-force
23272 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23273 echo creating src
/.gdbinit
23274 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23284 ac_clean_files
=$ac_clean_files_save
23286 test $ac_write_fail = 0 ||
23287 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23290 # configure is writing to config.log, and then calls config.status.
23291 # config.status does its own redirection, appending to config.log.
23292 # Unfortunately, on DOS this fails, as config.log is still kept open
23293 # by configure, so config.status won't be able to write to it; its
23294 # output is simply discarded. So we exec the FD to /dev/null,
23295 # effectively closing config.log, so it can be properly (re)opened and
23296 # appended to by config.status. When coming back to configure, we
23297 # need to make the FD available again.
23298 if test "$no_create" != yes; then
23300 ac_config_status_args
=
23301 test "$silent" = yes &&
23302 ac_config_status_args
="$ac_config_status_args --quiet"
23304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23307 # would make configure fail if this is the last instruction.
23308 $ac_cs_success || as_fn_exit $?
23310 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23312 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}