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
4377 ## GNU/Linux and similar ports
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"
4476 rs6000-ibm-aix4.
[23]* )
4477 machine
=ibmrs6000 opsys
=aix4-2
4479 powerpc-ibm-aix4.
[23]* )
4480 machine
=ibmrs6000 opsys
=aix4-2
4482 rs6000-ibm-aix
[56]* )
4483 machine
=ibmrs6000 opsys
=aix4-2
4485 powerpc-ibm-aix
[56]* )
4486 machine
=ibmrs6000 opsys
=aix4-2
4489 ## Silicon Graphics machines
4493 # Without defining _LANGUAGE_C, things get masked out in the headers
4494 # so that, for instance, grepping for `free' in stdlib.h fails and
4495 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4496 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4497 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4502 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4503 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4504 case "${canonical}" in
4505 i
[3456]86-*-* ) machine
=intel386
;;
4506 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4507 sparc
* ) machine
=sparc
;;
4510 case "${canonical}" in
4511 *-sunos5.6
* |
*-solaris2.6
* )
4513 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4516 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4518 emacs_check_sunpro_c
=yes
4519 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4521 *-sunos5* |
*-solaris* )
4523 emacs_check_sunpro_c
=yes
4524 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4527 ## Watch out for a compiler that we know will not work.
4528 case "${canonical}" in
4529 *-solaris* |
*-sunos5* )
4530 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4531 ## /usr/ucb/cc doesn't work;
4532 ## we should find some other compiler that does work.
4540 ## Intel 386 machines where we don't care about the manufacturer.
4543 case "${canonical}" in
4544 *-cygwin ) opsys
=cygwin
;;
4545 *-darwin* ) opsys
=darwin
4546 CPP
="${CC-cc} -E -no-cpp-precomp"
4548 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4549 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4550 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4551 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4560 ### If the code above didn't choose an operating system, just choose
4561 ### an operating system based on the configuration name. You really
4562 ### only want to use this when you have no idea what the right
4563 ### operating system is; if you know what operating systems a machine
4564 ### runs, it's cleaner to make it explicit in the case statement
4566 if test x
"${opsys}" = x
; then
4567 case "${canonical}" in
4568 *-gnu* ) opsys
=gnu
;;
4577 if test $unported = yes; then
4578 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4579 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4582 if test -n "$machine"; then
4583 machfile
="m/${machine}.h"
4587 opsysfile
="s/${opsys}.h"
4590 #### Choose a compiler.
4591 test -n "$CC" && cc_specified
=yes
4593 # Save the value of CFLAGS that the user specified.
4594 SPECIFIED_CFLAGS
="$CFLAGS"
4597 ac_cpp
='$CPP $CPPFLAGS'
4598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4603 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC
="$CC" # Let the user override the test.
4612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir
=.
4617 for ac_exec_ext
in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 if test -n "$CC"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632 $as_echo "$CC" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4640 if test -z "$ac_cv_prog_CC"; then
4642 # Extract the first word of "gcc", so it can be a program name with args.
4643 set dummy gcc
; ac_word
=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$ac_ct_CC"; then
4650 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir
=.
4657 for ac_exec_ext
in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_CC
="gcc"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4670 if test -n "$ac_ct_CC"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4672 $as_echo "$ac_ct_CC" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4678 if test "x$ac_ct_CC" = x
; then
4681 case $cross_compiling:$ac_tool_warned in
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned
=yes ;;
4693 if test -z "$CC"; then
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4696 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_CC+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -n "$CC"; then
4703 ac_cv_prog_CC
="$CC" # Let the user override the test.
4705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir
=.
4710 for ac_exec_ext
in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test -n "$CC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 $as_echo "$CC" >&6; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4734 if test -z "$CC"; then
4735 # Extract the first word of "cc", so it can be a program name with args.
4736 set dummy cc
; ac_word
=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_CC+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC
="$CC" # Let the user override the test.
4746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir
=.
4751 for ac_exec_ext
in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4754 ac_prog_rejected
=yes
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 if test $ac_prog_rejected = yes; then
4766 # We found a bogon in the path, so make sure we never use it.
4767 set dummy
$ac_cv_prog_CC
4769 if test $# != 0; then
4770 # We chose a different compiler from the bogus one.
4771 # However, it has the same basename, so the bogon will be chosen
4772 # first if we set CC to just the basename; use the full file name.
4774 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4790 if test -z "$CC"; then
4791 if test -n "$ac_tool_prefix"; then
4792 for ac_prog
in cl.exe
4794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_CC+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4801 if test -n "$CC"; then
4802 ac_cv_prog_CC
="$CC" # Let the user override the test.
4804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir
=.
4809 for ac_exec_ext
in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 if test -n "$CC"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4824 $as_echo "$CC" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4831 test -n "$CC" && break
4834 if test -z "$CC"; then
4836 for ac_prog
in cl.exe
4838 # Extract the first word of "$ac_prog", so it can be a program name with args.
4839 set dummy
$ac_prog; ac_word
=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$ac_ct_CC"; then
4846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_ac_ct_CC
="$ac_prog"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4866 if test -n "$ac_ct_CC"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4868 $as_echo "$ac_ct_CC" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 test -n "$ac_ct_CC" && break
4878 if test "x$ac_ct_CC" = x
; then
4881 case $cross_compiling:$ac_tool_warned in
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned
=yes ;;
4894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4896 as_fn_error
"no acceptable C compiler found in \$PATH
4897 See \`config.log' for more details." "$LINENO" 5; }
4899 # Provide some information about the compiler.
4900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4903 for ac_option
in --version -v -V -qversion; do
4904 { { ac_try
="$ac_compiler $ac_option >&5"
4906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4910 $as_echo "$ac_try_echo"; } >&5
4911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4913 if test -s conftest.err; then
4915 ... rest of stderr output deleted ...
4916 10q' conftest.err >conftest.er1
4917 cat conftest.er1 >&5
4919 rm -f conftest.er1 conftest.err
4920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4921 test $ac_status = 0; }
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4935 ac_clean_files_save=$ac_clean_files
4936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4937 # Try to create an executable without -o first, disregard a.out.
4938 # It will help us diagnose broken compilers, and finding out an intuition
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4941 $as_echo_n "checking whether the C compiler works... " >&6; }
4942 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4944 # The possible output files:
4945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4948 for ac_file in $ac_files
4951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4957 if { { ac_try="$ac_link_default"
4959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4960 *) ac_try_echo
=$ac_try;;
4962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4963 $as_echo "$ac_try_echo"; } >&5
4964 (eval "$ac_link_default") 2>&5
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }; then :
4968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4971 # so that the user can short-circuit this test for compilers unknown to
4973 for ac_file
in $ac_files ''
4975 test -f "$ac_file" ||
continue
4977 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4980 # We found the default executable, but exeext='' is most
4984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4986 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4988 # We set ac_cv_exeext here because the later test for it is not
4989 # safe: cross compilers may not add the suffix if given an `-o'
4990 # argument, so we may need to know it at that point already.
4991 # Even if this section looks crufty: it has the advantage of
4998 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5003 if test -z "$ac_file"; then :
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011 { as_fn_set_status
77
5012 as_fn_error
"C compiler cannot create executables
5013 See \`config.log' for more details." "$LINENO" 5; }; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5019 $as_echo_n "checking for C compiler default output file name... " >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5021 $as_echo "$ac_file" >&6; }
5022 ac_exeext
=$ac_cv_exeext
5024 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5025 ac_clean_files
=$ac_clean_files_save
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5027 $as_echo_n "checking for suffix of executables... " >&6; }
5028 if { { ac_try
="$ac_link"
5030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034 $as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_link") 2>&5
5037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5038 test $ac_status = 0; }; then :
5039 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5040 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5041 # work properly (i.e., refer to `conftest.exe'), while it won't with
5043 for ac_file
in conftest.exe conftest conftest.
*; do
5044 test -f "$ac_file" ||
continue
5046 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5047 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5056 See \`config.log' for more details." "$LINENO" 5; }
5058 rm -f conftest conftest
$ac_cv_exeext
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5060 $as_echo "$ac_cv_exeext" >&6; }
5062 rm -f conftest.
$ac_ext
5063 EXEEXT
=$ac_cv_exeext
5065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5071 FILE *f = fopen ("conftest.out", "w");
5072 return ferror (f) || fclose (f) != 0;
5078 ac_clean_files
="$ac_clean_files conftest.out"
5079 # Check that the compiler produces executables we can run. If not, either
5080 # the compiler is broken, or we cross compile.
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5082 $as_echo_n "checking whether we are cross compiling... " >&6; }
5083 if test "$cross_compiling" != yes; then
5084 { { ac_try
="$ac_link"
5086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090 $as_echo "$ac_try_echo"; } >&5
5091 (eval "$ac_link") 2>&5
5093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5094 test $ac_status = 0; }
5095 if { ac_try='./conftest$ac_cv_exeext'
5096 { { case "(($ac_try" in
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_try") 2>&5
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }; }; then
5108 if test "$cross_compiling" = maybe
; then
5111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5113 as_fn_error
"cannot run C compiled programs.
5114 If you meant to cross compile, use \`--host'.
5115 See \`config.log' for more details." "$LINENO" 5; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5120 $as_echo "$cross_compiling" >&6; }
5122 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5123 ac_clean_files
=$ac_clean_files_save
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5125 $as_echo_n "checking for suffix of object files... " >&6; }
5126 if test "${ac_cv_objext+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5140 rm -f conftest.o conftest.obj
5141 if { { ac_try
="$ac_compile"
5143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_compile") 2>&5
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; then :
5152 for ac_file in conftest.o conftest.obj conftest.*; do
5153 test -f "$ac_file" || continue;
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5161 $as_echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5166 as_fn_error "cannot compute suffix of object files
: cannot compile
5167 See \
`config.log' for more details." "$LINENO" 5; }
5169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5172 $as_echo "$ac_cv_objext" >&6; }
5173 OBJEXT=$ac_cv_objext
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5177 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5194 if ac_fn_c_try_compile "$LINENO"; then :
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5205 if test $ac_compiler_gnu = yes; then
5210 ac_test_CFLAGS=${CFLAGS+set}
5211 ac_save_CFLAGS=$CFLAGS
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5214 if test "${ac_cv_prog_cc_g+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5217 ac_save_c_werror_flag=$ac_c_werror_flag
5218 ac_c_werror_flag=yes
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5232 if ac_fn_c_try_compile "$LINENO"; then :
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5247 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_c_werror_flag=$ac_save_c_werror_flag
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 if ac_fn_c_try_compile "$LINENO"; then :
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_c_werror_flag=$ac_save_c_werror_flag
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5274 $as_echo "$ac_cv_prog_cc_g" >&6; }
5275 if test "$ac_test_CFLAGS" = set; then
5276 CFLAGS=$ac_save_CFLAGS
5277 elif test $ac_cv_prog_cc_g = yes; then
5278 if test "$GCC" = yes; then
5284 if test "$GCC" = yes; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5292 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 ac_cv_prog_cc_c89=no
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5301 #include <sys/types.h>
5302 #include <sys/stat.h>
5303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5304 struct buf { int x; };
5305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5306 static char *e (p, i)
5312 static char *f (char * (*g) (char **, int), char **p, ...)
5317 s = g (p, va_arg (v,int));
5322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5323 function prototypes and stuff, but not '\xHH' hex character constants.
5324 These don't provoke an error unfortunately, instead are silently treated
5325 as 'x'. The following induces an error, until -std is added to get
5326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5327 array size at least. It's necessary to write '\x00'==0 to get something
5328 that's true only with -std. */
5329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5332 inside strings and character constants. */
5334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5336 int test (int i, double x);
5337 struct s1 {int (*f) (int a);};
5338 struct s2 {int (*f) (double a);};
5339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5345 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5351 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5353 CC="$ac_save_CC $ac_arg"
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 ac_cv_prog_cc_c89=$ac_arg
5357 rm -f core conftest.err conftest.$ac_objext
5358 test "x$ac_cv_prog_cc_c89" != "xno" && break
5360 rm -f conftest.$ac_ext
5365 case "x$ac_cv_prog_cc_c89" in
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5368 $as_echo "none needed" >&6; } ;;
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5371 $as_echo "unsupported" >&6; } ;;
5373 CC="$CC $ac_cv_prog_cc_c89"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5375 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5377 if test "x$ac_cv_prog_cc_c89" != xno; then :
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386 DEPDIR="${am__leading_dot}deps"
5388 ac_config_commands="$ac_config_commands depfiles"
5391 am_make=${MAKE-make}
5392 cat > confinc << 'END'
5394 @echo this is the am__doit target
5397 # If we don't find an include directive, just comment out the code.
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5403 # First try GNU make style include.
5404 echo "include confinc" > confmf
5405 # Ignore all kinds of additional output from `make'.
5406 case `$am_make -s -f confmf 2> /dev/null` in #(
5407 *the\ am__doit\ target*)
5413 # Now try BSD make style include.
5414 if test "$am__include" = "#"; then
5415 echo '.include
"confinc"' > confmf
5416 case `$am_make -s -f confmf 2> /dev/null` in #(
5417 *the\ am__doit\ target*)
5418 am__include=.include
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5427 $as_echo "$_am_result" >&6; }
5428 rm -f confinc confmf
5430 # Check whether --enable-dependency-tracking was given.
5431 if test "${enable_dependency_tracking+set}" = set; then :
5432 enableval=$enable_dependency_tracking;
5435 if test "x$enable_dependency_tracking" != xno; then
5436 am_depcomp="$ac_aux_dir/depcomp"
5439 if test "x$enable_dependency_tracking" != xno
; then
5449 depcc
="$CC" am_compiler_list
=
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5452 $as_echo_n "checking dependency style of $depcc... " >&6; }
5453 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5457 # We make a subdir and do the tests there. Otherwise we can end up
5458 # making bogus files that we don't know about and never remove. For
5459 # instance it was reported that on HP-UX the gcc test will end up
5460 # making a dummy file named `D' -- because `-MD' means `put the output
5463 # Copy depcomp to subdir because otherwise we won't find it if we're
5464 # using a relative directory.
5465 cp "$am_depcomp" conftest.dir
5467 # We will build objects and dependencies in a subdirectory because
5468 # it helps to detect inapplicable dependency modes. For instance
5469 # both Tru64's cc and ICC support -MD to output dependencies as a
5470 # side effect of compilation, but ICC will put the dependencies in
5471 # the current directory while Tru64 will put them in the object
5475 am_cv_CC_dependencies_compiler_type
=none
5476 if test "$am_compiler_list" = ""; then
5477 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5480 case " $depcc " in #(
5481 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5484 for depmode
in $am_compiler_list; do
5485 # Setup a source with many dependencies, because some compilers
5486 # like to wrap large dependency lists on column 80 (with \), and
5487 # we should not choose a depcomp mode which is confused by this.
5489 # We need to recreate these files for each test, as the compiler may
5490 # overwrite some of them when testing with obscure command lines.
5491 # This happens at least with the AIX C compiler.
5493 for i
in 1 2 3 4 5 6; do
5494 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5496 # Solaris 8's {/usr,}/bin/sh.
5497 touch sub
/conftst
$i.h
5499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5502 # mode. It turns out that the SunPro C++ compiler does not properly
5503 # handle `-M -o', and we need to detect this. Also, some Intel
5504 # versions had trouble with output in subdirs
5505 am__obj
=sub
/conftest.
${OBJEXT-o}
5506 am__minus_obj
="-o $am__obj"
5509 # This depmode causes a compiler race in universal mode.
5510 test "$am__universal" = false ||
continue
5513 # after this tag, mechanisms are not by side-effect, so they'll
5514 # only be used when explicitly requested
5515 if test "x$enable_dependency_tracking" = xyes
; then
5521 msvisualcpp | msvcmsys
)
5522 # This compiler won't grok `-c -o', but also, the minuso test has
5523 # not run yet. These depmodes are late enough in the game, and
5524 # so weak that their functioning should not be impacted.
5525 am__obj
=conftest.
${OBJEXT-o}
5530 if depmode
=$depmode \
5531 source=sub
/conftest.c object
=$am__obj \
5532 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5533 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5534 >/dev
/null
2>conftest.err
&&
5535 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5536 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5537 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5538 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5539 # icc doesn't choke on unknown options, it will just issue warnings
5540 # or remarks (even with -Werror). So we grep stderr for any message
5541 # that says an option was ignored or not supported.
5542 # When given -MP, icc 7.0 and 7.1 complain thusly:
5543 # icc: Command line warning: ignoring option '-M'; no argument required
5544 # The diagnosis changed in icc 8.0:
5545 # icc: Command line remark: option '-MP' not supported
5546 if (grep 'ignoring option' conftest.err ||
5547 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5548 am_cv_CC_dependencies_compiler_type
=$depmode
5557 am_cv_CC_dependencies_compiler_type
=none
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5562 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5563 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5566 test "x$enable_dependency_tracking" != xno \
5567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5569 am__fastdepCC_FALSE
='#'
5571 am__fastdepCC_TRUE
='#'
5572 am__fastdepCC_FALSE
=
5576 if test "x$CC" != xcc
; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5578 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5581 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5583 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5584 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5585 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5586 $as_echo_n "(cached) " >&6
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5599 # Make sure it works both with $CC and with simple cc.
5600 # We do the test twice because some compilers refuse to overwrite an
5601 # existing .o file with -o, though they will create one.
5602 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5604 if { { case "(($ac_try" in
5605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610 (eval "$ac_try") 2>&5
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; } &&
5614 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5616 *) ac_try_echo
=$ac_try;;
5618 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5619 $as_echo "$ac_try_echo"; } >&5
5620 (eval "$ac_try") 2>&5
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; };
5625 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5626 if test "x$CC" != xcc
; then
5627 # Test first that cc exists at all.
5628 if { ac_try
='cc -c conftest.$ac_ext >&5'
5629 { { case "(($ac_try" in
5630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; }; then
5639 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5641 if { { case "(($ac_try" in
5642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5643 *) ac_try_echo
=$ac_try;;
5645 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5646 $as_echo "$ac_try_echo"; } >&5
5647 (eval "$ac_try") 2>&5
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; } &&
5651 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; };
5665 # cc exists but doesn't like -o.
5666 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5673 rm -f core conftest*
5676 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5683 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5687 # FIXME: we rely on the cache variable name because
5688 # there is no other way.
5690 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5691 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5692 if test "$am_t" != yes; then
5693 # Losing compiler, so override with the script.
5694 # FIXME: It is wrong to rewrite CC.
5695 # But if we don't then we get into trouble of one sort or another.
5696 # A longer-term fix would be to have automake use am__CC in this case,
5697 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5698 CC="$am_aux_dir/compile $CC"
5703 # Initialize gnulib right after verifying that the C compiler works.
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 if test -n "$RANLIB"; then
5713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 RANLIB=$ac_cv_prog_RANLIB
5733 if test -n "$RANLIB"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5735 $as_echo "$RANLIB" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5743 if test -z "$ac_cv_prog_RANLIB"; then
5744 ac_ct_RANLIB=$RANLIB
5745 # Extract the first word of "ranlib", so it can be a program name with args.
5746 set dummy ranlib; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5752 if test -n "$ac_ct_RANLIB"; then
5753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_RANLIB="ranlib"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5773 if test -n "$ac_ct_RANLIB"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5775 $as_echo "$ac_ct_RANLIB" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5781 if test "x$ac_ct_RANLIB" = x; then
5784 case $cross_compiling:$ac_tool_warned in
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5790 RANLIB=$ac_ct_RANLIB
5793 RANLIB="$ac_cv_prog_RANLIB"
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5803 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5804 # On Suns, sometimes $CPP names a directory.
5805 if test -n "$CPP" && test -d "$CPP"; then
5808 if test -z "$CPP"; then
5809 if test "${ac_cv_prog_CPP+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5812 # Double quotes because CPP needs to be expanded
5813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5816 for ac_c_preproc_warn_flag in '' yes
5818 # Use a header file that comes with gcc, so configuring glibc
5819 # with a fresh cross-compiler works.
5820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821 # <limits.h> exists even on freestanding compilers.
5822 # On the NeXT, cc -E runs the code through the compiler's parser,
5823 # not just through cpp. "Syntax error" is here to catch this case.
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5827 # include <limits.h>
5829 # include <assert.h>
5833 if ac_fn_c_try_cpp "$LINENO"; then :
5836 # Broken: fails on valid input.
5839 rm -f conftest.err conftest.$ac_ext
5841 # OK, works on sane cases. Now check whether nonexistent headers
5842 # can be detected and how.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5848 # Broken: success on invalid input.
5851 # Passes both tests.
5855 rm -f conftest.err conftest.$ac_ext
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.
$ac_ext
5860 if $ac_preproc_ok; then :
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5873 $as_echo "$CPP" >&6; }
5875 for ac_c_preproc_warn_flag
in '' yes
5877 # Use a header file that comes with gcc, so configuring glibc
5878 # with a fresh cross-compiler works.
5879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5880 # <limits.h> exists even on freestanding compilers.
5881 # On the NeXT, cc -E runs the code through the compiler's parser,
5882 # not just through cpp. "Syntax error" is here to catch this case.
5883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5886 # include <limits.h>
5888 # include <assert.h>
5892 if ac_fn_c_try_cpp
"$LINENO"; then :
5895 # Broken: fails on valid input.
5898 rm -f conftest.err conftest.
$ac_ext
5900 # OK, works on sane cases. Now check whether nonexistent headers
5901 # can be detected and how.
5902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <ac_nonexistent.h>
5906 if ac_fn_c_try_cpp
"$LINENO"; then :
5907 # Broken: success on invalid input.
5910 # Passes both tests.
5914 rm -f conftest.err conftest.
$ac_ext
5917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918 rm -f conftest.err conftest.
$ac_ext
5919 if $ac_preproc_ok; then :
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5925 See \`config.log' for more details." "$LINENO" 5; }
5929 ac_cpp
='$CPP $CPPFLAGS'
5930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5936 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5937 if test "${ac_cv_path_GREP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -z "$GREP"; then
5941 ac_path_GREP_found
=false
5942 # Loop through the user's path and test for each of PROGNAME-LIST
5943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5944 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5947 test -z "$as_dir" && as_dir
=.
5948 for ac_prog
in grep ggrep
; do
5949 for ac_exec_ext
in '' $ac_executable_extensions; do
5950 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5951 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5952 # Check for GNU ac_path_GREP and select it if it is found.
5953 # Check for GNU $ac_path_GREP
5954 case `"$ac_path_GREP" --version 2>&1` in
5956 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5959 $as_echo_n 0123456789 >"conftest.in"
5962 cat "conftest.in" "conftest.in" >"conftest.tmp"
5963 mv "conftest.tmp" "conftest.in"
5964 cp "conftest.in" "conftest.nl"
5965 $as_echo 'GREP' >> "conftest.nl"
5966 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5967 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5968 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5969 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5970 # Best one so far, save it but keep looking for a better one
5971 ac_cv_path_GREP
="$ac_path_GREP"
5972 ac_path_GREP_max
=$ac_count
5974 # 10*(2^10) chars as input seems more than enough
5975 test $ac_count -gt 10 && break
5977 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5980 $ac_path_GREP_found && break 3
5985 if test -z "$ac_cv_path_GREP"; then
5986 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989 ac_cv_path_GREP
=$GREP
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5994 $as_echo "$ac_cv_path_GREP" >&6; }
5995 GREP
="$ac_cv_path_GREP"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5999 $as_echo_n "checking for egrep... " >&6; }
6000 if test "${ac_cv_path_EGREP+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6003 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6004 then ac_cv_path_EGREP
="$GREP -E"
6006 if test -z "$EGREP"; then
6007 ac_path_EGREP_found
=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6010 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6013 test -z "$as_dir" && as_dir
=.
6014 for ac_prog
in egrep; do
6015 for ac_exec_ext
in '' $ac_executable_extensions; do
6016 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6018 # Check for GNU ac_path_EGREP and select it if it is found.
6019 # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6022 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6025 $as_echo_n 0123456789 >"conftest.in"
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo 'EGREP' >> "conftest.nl"
6032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6033 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6034 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_EGREP
="$ac_path_EGREP"
6038 ac_path_EGREP_max
=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6043 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6046 $ac_path_EGREP_found && break 3
6051 if test -z "$ac_cv_path_EGREP"; then
6052 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6055 ac_cv_path_EGREP
=$EGREP
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6061 $as_echo "$ac_cv_path_EGREP" >&6; }
6062 EGREP
="$ac_cv_path_EGREP"
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6066 $as_echo_n "checking for ANSI C header files... " >&6; }
6067 if test "${ac_cv_header_stdc+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6085 if ac_fn_c_try_compile
"$LINENO"; then :
6086 ac_cv_header_stdc
=yes
6088 ac_cv_header_stdc
=no
6090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6092 if test $ac_cv_header_stdc = yes; then
6093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6100 $EGREP "memchr" >/dev
/null
2>&1; then :
6103 ac_cv_header_stdc
=no
6109 if test $ac_cv_header_stdc = yes; then
6110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6117 $EGREP "free" >/dev
/null
2>&1; then :
6120 ac_cv_header_stdc
=no
6126 if test $ac_cv_header_stdc = yes; then
6127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6128 if test "$cross_compiling" = yes; then :
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6135 #if ((' ' & 0x0FF) == 0x020)
6136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6139 # define ISLOWER(c) \
6140 (('a' <= (c) && (c) <= 'i') \
6141 || ('j' <= (c) && (c) <= 'r') \
6142 || ('s' <= (c) && (c) <= 'z'))
6143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6151 for (i = 0; i < 256; i++)
6152 if (XOR (islower (i), ISLOWER (i))
6153 || toupper (i) != TOUPPER (i))
6158 if ac_fn_c_try_run
"$LINENO"; then :
6161 ac_cv_header_stdc
=no
6163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6170 $as_echo "$ac_cv_header_stdc" >&6; }
6171 if test $ac_cv_header_stdc = yes; then
6173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6178 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6179 inttypes.h stdint.h unistd.h
6181 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6184 eval as_val
=\$
$as_ac_Header
6185 if test "x$as_val" = x
""yes; then :
6186 cat >>confdefs.h
<<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6199 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6206 if test "$MINIX" = yes; then
6208 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6211 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6214 $as_echo "#define _MINIX 1" >>confdefs.h
6221 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6228 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6229 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6235 # define __EXTENSIONS__ 1
6236 $ac_includes_default
6245 if ac_fn_c_try_compile
"$LINENO"; then :
6246 ac_cv_safe_to_define___extensions__
=yes
6248 ac_cv_safe_to_define___extensions__
=no
6250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6253 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6254 test $ac_cv_safe_to_define___extensions__ = yes &&
6255 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6259 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6261 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6263 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6272 case $ac_cv_prog_cc_stdc in #(
6274 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6277 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6278 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6281 ac_cv_prog_cc_c99
=no
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 #include <stdbool.h>
6291 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6292 #define debug(...) fprintf (stderr, __VA_ARGS__)
6293 #define showlist(...) puts (#__VA_ARGS__)
6294 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6296 test_varargs_macros (void)
6301 debug ("X = %d\n", x);
6302 showlist (The first, second, and third items.);
6303 report (x>y, "x is %d but y is %d", x, y);
6306 // Check long long types.
6307 #define BIG64 18446744073709551615ull
6308 #define BIG32 4294967295ul
6309 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6311 your preprocessor is broken;
6315 your preprocessor is broken;
6317 static long long int bignum = -9223372036854775807LL;
6318 static unsigned long long int ubignum = BIG64;
6320 struct incomplete_array
6328 const wchar_t *name;
6332 typedef const char *ccp;
6335 test_restrict (ccp restrict text)
6337 // See if C++-style comments work.
6338 // Iterate through items via the restricted pointer.
6339 // Also check for declarations in for loops.
6340 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6345 // Check varargs and va_copy.
6347 test_varargs (const char *format, ...)
6350 va_start (args, format);
6352 va_copy (args_copy, args);
6363 str = va_arg (args_copy, const char *);
6366 number = va_arg (args_copy, int);
6369 fnumber = va_arg (args_copy, double);
6384 _Bool success = false;
6387 if (test_restrict ("String literal") == 0)
6389 char *restrict newvar = "Another string";
6392 test_varargs ("s, d' f .", "string", 65, 34.234);
6393 test_varargs_macros ();
6395 // Check flexible array members.
6396 struct incomplete_array *ia =
6397 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6399 for (int i = 0; i < ia->datasize; ++i)
6400 ia->data[i] = i * 1.234;
6402 // Check named initializers.
6403 struct named_init ni = {
6405 .name = L"Test wide string",
6406 .average = 543.34343,
6411 int dynamic_array[ni.number];
6412 dynamic_array[ni.number - 1] = 543;
6414 // work around unused variable warnings
6415 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6416 || dynamic_array[ni.number - 1] != 543);
6422 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6424 CC
="$ac_save_CC $ac_arg"
6425 if ac_fn_c_try_compile
"$LINENO"; then :
6426 ac_cv_prog_cc_c99
=$ac_arg
6428 rm -f core conftest.err conftest.
$ac_objext
6429 test "x$ac_cv_prog_cc_c99" != "xno" && break
6431 rm -f conftest.
$ac_ext
6436 case "x$ac_cv_prog_cc_c99" in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6439 $as_echo "none needed" >&6; } ;;
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6442 $as_echo "unsupported" >&6; } ;;
6444 CC
="$CC $ac_cv_prog_cc_c99"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6446 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6448 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6449 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6453 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 ac_cv_prog_cc_c89
=no
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 #include <sys/stat.h>
6464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6465 struct buf { int x; };
6466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6467 static char *e (p, i)
6473 static char *f (char * (*g) (char **, int), char **p, ...)
6478 s = g (p, va_arg (v,int));
6483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6484 function prototypes and stuff, but not '\xHH' hex character constants.
6485 These don't provoke an error unfortunately, instead are silently treated
6486 as 'x'. The following induces an error, until -std is added to get
6487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6488 array size at least. It's necessary to write '\x00'==0 to get something
6489 that's true only with -std. */
6490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6493 inside strings and character constants. */
6495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6497 int test (int i, double x);
6498 struct s1 {int (*f) (int a);};
6499 struct s2 {int (*f) (double a);};
6500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6511 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6514 CC
="$ac_save_CC $ac_arg"
6515 if ac_fn_c_try_compile
"$LINENO"; then :
6516 ac_cv_prog_cc_c89
=$ac_arg
6518 rm -f core conftest.err conftest.
$ac_objext
6519 test "x$ac_cv_prog_cc_c89" != "xno" && break
6521 rm -f conftest.
$ac_ext
6526 case "x$ac_cv_prog_cc_c89" in
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6529 $as_echo "none needed" >&6; } ;;
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6532 $as_echo "unsupported" >&6; } ;;
6534 CC
="$CC $ac_cv_prog_cc_c89"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6538 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6539 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6541 ac_cv_prog_cc_stdc
=no
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6548 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6549 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6553 case $ac_cv_prog_cc_stdc in #(
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6556 $as_echo "unsupported" >&6; } ;; #(
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6559 $as_echo "none needed" >&6; } ;; #(
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6562 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6567 # Code from module alloca-opt:
6568 # Code from module allocator:
6569 # Code from module arg-nonnull:
6570 # Code from module c++defs:
6571 # Code from module careadlinkat:
6572 # Code from module crypto/md5:
6573 # Code from module crypto/sha1:
6574 # Code from module crypto/sha256:
6575 # Code from module crypto/sha512:
6576 # Code from module dosname:
6577 # Code from module dtoastr:
6578 # Code from module dup2:
6579 # Code from module extensions:
6581 # Code from module filemode:
6582 # Code from module getloadavg:
6583 # Code from module getopt-gnu:
6584 # Code from module getopt-posix:
6585 # Code from module gettext-h:
6586 # Code from module ignore-value:
6587 # Code from module include_next:
6588 # Code from module intprops:
6589 # Code from module inttypes-incomplete:
6590 # Code from module lstat:
6591 # Code from module mktime:
6592 # Code from module multiarch:
6593 # Code from module pthread_sigmask:
6594 # Code from module readlink:
6595 # Code from module signal:
6596 # Code from module sigprocmask:
6597 # Code from module socklen:
6598 # Code from module ssize_t:
6599 # Code from module stat:
6600 # Code from module stdarg:
6602 # Code from module stdbool:
6603 # Code from module stddef:
6604 # Code from module stdint:
6605 # Code from module stdio:
6606 # Code from module stdlib:
6607 # Code from module strftime:
6608 # Code from module strtoimax:
6609 # Code from module strtoll:
6610 # Code from module strtoull:
6611 # Code from module strtoumax:
6612 # Code from module symlink:
6613 # Code from module sys_stat:
6614 # Code from module time:
6615 # Code from module time_r:
6616 # Code from module u64:
6617 # Code from module unistd:
6618 # Code from module verify:
6619 # Code from module warn-on-use:
6622 # On Suns, sometimes $CPP names a directory.
6623 if test -n "$CPP" && test -d "$CPP"; then
6627 ## If not using gcc, and on Solaris, and no CPP specified, see if
6628 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6629 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6630 test x
"$CPP" = x
; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6632 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6633 if test "${emacs_cv_sunpro_c+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6650 if ac_fn_c_try_link
"$LINENO"; then :
6651 emacs_cv_sunpro_c
=yes
6653 emacs_cv_sunpro_c
=no
6655 rm -f core conftest.err conftest.
$ac_objext \
6656 conftest
$ac_exeext conftest.
$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6660 $as_echo "$emacs_cv_sunpro_c" >&6; }
6662 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6663 NON_GNU_CPP
="$CC -E -Xs"
6667 #### Some systems specify a CPP to use unless we are using GCC.
6668 #### Now that we know whether we are using GCC, we can decide whether
6669 #### to use that one.
6670 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6675 #### Some systems specify a CC to use unless we are using GCC.
6676 #### Now that we know whether we are using GCC, we can decide whether
6677 #### to use that one.
6678 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6679 test x
$cc_specified != xyes
6684 if test x
$GCC = xyes
; then
6685 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6687 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6690 ### Use -Wdeclaration-after-statement if the compiler supports it
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6692 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6693 SAVE_CFLAGS
="$CFLAGS"
6694 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6706 if ac_fn_c_try_compile
"$LINENO"; then :
6711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6712 if test $has_option = yes; then
6713 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6716 $as_echo "$has_option" >&6; }
6717 CFLAGS
="$SAVE_CFLAGS"
6721 ### Use -Wold-style-definition if the compiler supports it
6722 # This can be removed when conversion to standard C is finished.
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6724 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6725 SAVE_CFLAGS
="$CFLAGS"
6726 CFLAGS
="$CFLAGS -Wold-style-definition"
6727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6738 if ac_fn_c_try_compile
"$LINENO"; then :
6743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 if test $has_option = yes; then
6745 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6748 $as_echo "$has_option" >&6; }
6749 CFLAGS
="$SAVE_CFLAGS"
6753 ### Use -Wimplicit-function-declaration if the compiler supports it
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6755 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6756 SAVE_CFLAGS
="$CFLAGS"
6757 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6769 if ac_fn_c_try_compile
"$LINENO"; then :
6774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6775 if test $has_option = yes; then
6776 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6779 $as_echo "$has_option" >&6; }
6780 CFLAGS
="$SAVE_CFLAGS"
6787 #### Some other nice autoconf tests.
6790 ac_cpp
='$CPP $CPPFLAGS'
6791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6796 # On Suns, sometimes $CPP names a directory.
6797 if test -n "$CPP" && test -d "$CPP"; then
6800 if test -z "$CPP"; then
6801 if test "${ac_cv_prog_CPP+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6804 # Double quotes because CPP needs to be expanded
6805 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6808 for ac_c_preproc_warn_flag
in '' yes
6810 # Use a header file that comes with gcc, so configuring glibc
6811 # with a fresh cross-compiler works.
6812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6813 # <limits.h> exists even on freestanding compilers.
6814 # On the NeXT, cc -E runs the code through the compiler's parser,
6815 # not just through cpp. "Syntax error" is here to catch this case.
6816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6819 # include <limits.h>
6821 # include <assert.h>
6825 if ac_fn_c_try_cpp
"$LINENO"; then :
6828 # Broken: fails on valid input.
6831 rm -f conftest.err conftest.
$ac_ext
6833 # OK, works on sane cases. Now check whether nonexistent headers
6834 # can be detected and how.
6835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #include <ac_nonexistent.h>
6839 if ac_fn_c_try_cpp
"$LINENO"; then :
6840 # Broken: success on invalid input.
6843 # Passes both tests.
6847 rm -f conftest.err conftest.
$ac_ext
6850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6851 rm -f conftest.err conftest.
$ac_ext
6852 if $ac_preproc_ok; then :
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6865 $as_echo "$CPP" >&6; }
6867 for ac_c_preproc_warn_flag
in '' yes
6869 # Use a header file that comes with gcc, so configuring glibc
6870 # with a fresh cross-compiler works.
6871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872 # <limits.h> exists even on freestanding compilers.
6873 # On the NeXT, cc -E runs the code through the compiler's parser,
6874 # not just through cpp. "Syntax error" is here to catch this case.
6875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6878 # include <limits.h>
6880 # include <assert.h>
6884 if ac_fn_c_try_cpp
"$LINENO"; then :
6887 # Broken: fails on valid input.
6890 rm -f conftest.err conftest.
$ac_ext
6892 # OK, works on sane cases. Now check whether nonexistent headers
6893 # can be detected and how.
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <ac_nonexistent.h>
6898 if ac_fn_c_try_cpp
"$LINENO"; then :
6899 # Broken: success on invalid input.
6902 # Passes both tests.
6906 rm -f conftest.err conftest.
$ac_ext
6909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6910 rm -f conftest.err conftest.
$ac_ext
6911 if $ac_preproc_ok; then :
6914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6917 See \`config.log' for more details." "$LINENO" 5; }
6921 ac_cpp
='$CPP $CPPFLAGS'
6922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6927 if test "x$RANLIB" = x
; then
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6930 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6936 if test -n "$RANLIB"; then
6937 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir
=.
6944 for ac_exec_ext
in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 RANLIB
=$ac_cv_prog_RANLIB
6957 if test -n "$RANLIB"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6959 $as_echo "$RANLIB" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6967 if test -z "$ac_cv_prog_RANLIB"; then
6968 ac_ct_RANLIB
=$RANLIB
6969 # Extract the first word of "ranlib", so it can be a program name with args.
6970 set dummy ranlib
; ac_word
=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6976 if test -n "$ac_ct_RANLIB"; then
6977 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir
=.
6984 for ac_exec_ext
in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6997 if test -n "$ac_ct_RANLIB"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6999 $as_echo "$ac_ct_RANLIB" >&6; }
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7005 if test "x$ac_ct_RANLIB" = x
; then
7008 case $cross_compiling:$ac_tool_warned in
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned
=yes ;;
7014 RANLIB
=$ac_ct_RANLIB
7017 RANLIB
="$ac_cv_prog_RANLIB"
7022 ## Although we're running on an amd64 kernel, we're actually compiling for
7023 ## the x86 architecture. The user should probably have provided an
7024 ## explicit --build to `configure', but if everything else than the kernel
7025 ## is running in i386 mode, we can help them out.
7026 if test "$machine" = "amdx86-64"; then
7027 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7028 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7032 if test "$ac_cv_have_decl_i386" = "yes"; then
7033 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7035 machfile
="m/${machine}.h"
7039 # Extract the first word of "install-info", so it can be a program name with args.
7040 set dummy install-info
; ac_word
=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 case $INSTALL_INFO in
7048 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir
=.
7056 for ac_exec_ext
in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7070 if test -n "$INSTALL_INFO"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7072 $as_echo "$INSTALL_INFO" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7079 # Extract the first word of "install-info", so it can be a program name with args.
7080 set dummy install-info
; ac_word
=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7086 case $INSTALL_INFO in
7088 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7092 for as_dir
in /usr
/sbin
7095 test -z "$as_dir" && as_dir
=.
7096 for ac_exec_ext
in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7110 if test -n "$INSTALL_INFO"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7112 $as_echo "$INSTALL_INFO" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7119 # Extract the first word of "install-info", so it can be a program name with args.
7120 set dummy install-info
; ac_word
=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 case $INSTALL_INFO in
7128 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir
=.
7136 for ac_exec_ext
in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7150 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7151 if test -n "$INSTALL_INFO"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7153 $as_echo "$INSTALL_INFO" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7160 # Extract the first word of "gzip", so it can be a program name with args.
7161 set dummy
gzip; ac_word
=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7169 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir
=.
7177 for ac_exec_ext
in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7191 if test -n "$GZIP_PROG"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7193 $as_echo "$GZIP_PROG" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7202 ## Need makeinfo >= 4.6 (?) to build the manuals.
7203 # Extract the first word of "makeinfo", so it can be a program name with args.
7204 set dummy makeinfo
; ac_word
=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7212 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir
=.
7220 for ac_exec_ext
in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7234 MAKEINFO
=$ac_cv_path_MAKEINFO
7235 if test -n "$MAKEINFO"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7237 $as_echo "$MAKEINFO" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7244 if test "$MAKEINFO" != "no" && \
7245 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
7249 ## Makeinfo is unusual. For a released Emacs, the manuals are
7250 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7251 ## therefore in the category of "special tools" not normally required, which
7252 ## configure does not have to check for (eg autoconf itself).
7253 ## In a Bazaar checkout on the other hand, the manuals are not included.
7254 ## So makeinfo is a requirement to build from Bazaar, and configure
7255 ## should test for it as it does for any other build requirement.
7256 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7257 ## with pre-built manuals, from a Bazaar checkout.
7260 if test "$MAKEINFO" = "no"; then
7262 if test "x${with_makeinfo}" = "xno"; then
7264 elif test ! -e $srcdir/info
/emacs
; then
7265 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7266 source tree does not seem to have pre-built manuals in the \`info' directory.
7267 Either install a suitable version of makeinfo, or re-run configure
7268 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7274 if test x
$GCC = xyes
; then
7275 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7276 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7278 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7279 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7283 late_LDFLAGS
=$LDFLAGS
7284 if test x
$GCC = xyes
; then
7285 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7287 LDFLAGS
="$LDFLAGS -znocombreloc"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7291 $as_echo_n "checking for -znocombreloc... " >&6; }
7292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7303 if ac_fn_c_try_link
"$LINENO"; then :
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7305 $as_echo "yes" >&6; }
7307 LDFLAGS
=$late_LDFLAGS
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7311 rm -f core conftest.err conftest.
$ac_objext \
7312 conftest
$ac_exeext conftest.
$ac_ext
7315 # The value of CPP is a quoted variable reference, so we need to do this
7316 # to get its actual value...
7317 CPP
=`eval "echo $CPP"`
7320 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7322 your-opsys-here
) CANNOT_DUMP
=yes ;;
7325 test "$CANNOT_DUMP" = "yes" && \
7327 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7333 UNEXEC_OBJ
=unexelf.o
7335 # MSDOS uses unexcoff.o
7336 # MSWindows uses unexw32.o
7338 UNEXEC_OBJ
=unexaix.o
7344 UNEXEC_OBJ
=unexmacosx.o
7347 UNEXEC_OBJ
=unexhp9k800.o
7350 # Use the Solaris dldump() function, called from unexsol.c, to dump
7351 # emacs, instead of the generic ELF dump code found in unexelf.c.
7352 # The resulting binary has a complete symbol table, and is better
7353 # for debugging and other observability tools (debuggers, pstack, etc).
7355 # If you encounter a problem using dldump(), please consider sending
7356 # a message to the OpenSolaris tools-linking mailing list:
7357 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7359 # It is likely that dldump() works with older Solaris too, but this has
7360 # not been tested, so for now this change is for Solaris 10 or newer.
7361 UNEXEC_OBJ
=unexsol.o
7368 ## Let `ld' find image libs and similar things in /usr/local/lib.
7369 ## The system compiler, GCC, has apparently been modified to not
7370 ## look there, contrary to what a stock GCC would do.
7371 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7375 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7376 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7380 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7384 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7385 ## otherwise Emacs dumps core on elf systems.
7386 LD_SWITCH_SYSTEM
="-Z"
7391 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7393 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7394 ## which has not been defined yet. When this was handled with cpp,
7395 ## it was expanded to null when configure sourced the s/*.h file.
7396 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7397 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7398 ## (or somesuch), but because it is supposed to go at the _front_
7399 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7400 ## Compare with the gnu-linux case below, which added to the end
7401 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7402 ## LD_SWITCH_SYSTEM_TEMACS.
7405 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7406 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7411 if test "$machine" = "alpha"; then
7412 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7413 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7417 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7418 ## With ELF, make sure that all common symbols get allocated to in the
7419 ## data section. Otherwise, the dump of temacs may miss variables in
7420 ## the shared library that have been initialized. For example, with
7421 ## GNU libc, __malloc_initialized would normally be resolved to the
7422 ## shared library's .bss section, which is fatal.
7423 if test "x$GCC" = "xyes"; then
7424 C_SWITCH_MACHINE
="-fno-common"
7426 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7429 UNEXEC_OBJ
=unexalpha.o
7437 ## Some programs in src produce warnings saying certain subprograms
7438 ## are too complex and need a MAXMEM value greater than 2000 for
7439 ## additional optimization. --nils@exp-math.uni-essen.de
7440 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7441 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7442 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7443 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7449 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7450 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7452 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7454 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7456 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7458 ## Motif needs -lgen.
7459 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7464 ### Make sure subsequent tests use flags consistent with the build flags.
7466 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7467 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7469 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7472 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7474 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7477 # Check whether --enable-largefile was given.
7478 if test "${enable_largefile+set}" = set; then :
7479 enableval
=$enable_largefile;
7482 if test "$enable_largefile" != no
; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7485 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7486 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7489 ac_cv_sys_largefile_CC
=no
7490 if test "$GCC" != yes; then
7493 # IRIX 6.2 and later do not support large files by default,
7494 # so use the C compiler's -n32 option if that helps.
7495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <sys/types.h>
7498 /* Check that off_t can represent 2**63 - 1 correctly.
7499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7500 since some C++ compilers masquerading as C compilers
7501 incorrectly reject 9223372036854775807. */
7502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7504 && LARGE_OFF_T % 2147483647 == 1)
7514 if ac_fn_c_try_compile
"$LINENO"; then :
7517 rm -f core conftest.err conftest.
$ac_objext
7519 if ac_fn_c_try_compile
"$LINENO"; then :
7520 ac_cv_sys_largefile_CC
=' -n32'; break
7522 rm -f core conftest.err conftest.
$ac_objext
7526 rm -f conftest.
$ac_ext
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7530 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7531 if test "$ac_cv_sys_largefile_CC" != no
; then
7532 CC
=$CC$ac_cv_sys_largefile_CC
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7536 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <sys/types.h>
7544 /* Check that off_t can represent 2**63 - 1 correctly.
7545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7546 since some C++ compilers masquerading as C compilers
7547 incorrectly reject 9223372036854775807. */
7548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7550 && LARGE_OFF_T % 2147483647 == 1)
7560 if ac_fn_c_try_compile
"$LINENO"; then :
7561 ac_cv_sys_file_offset_bits
=no
; break
7563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #define _FILE_OFFSET_BITS 64
7567 #include <sys/types.h>
7568 /* Check that off_t can represent 2**63 - 1 correctly.
7569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7570 since some C++ compilers masquerading as C compilers
7571 incorrectly reject 9223372036854775807. */
7572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7574 && LARGE_OFF_T % 2147483647 == 1)
7584 if ac_fn_c_try_compile
"$LINENO"; then :
7585 ac_cv_sys_file_offset_bits
=64; break
7587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7588 ac_cv_sys_file_offset_bits
=unknown
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7593 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7594 case $ac_cv_sys_file_offset_bits in #(
7597 cat >>confdefs.h
<<_ACEOF
7598 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7603 if test $ac_cv_sys_file_offset_bits = unknown
; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7605 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7606 if test "${ac_cv_sys_large_files+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612 #include <sys/types.h>
7613 /* Check that off_t can represent 2**63 - 1 correctly.
7614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7615 since some C++ compilers masquerading as C compilers
7616 incorrectly reject 9223372036854775807. */
7617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7619 && LARGE_OFF_T % 2147483647 == 1)
7629 if ac_fn_c_try_compile
"$LINENO"; then :
7630 ac_cv_sys_large_files
=no
; break
7632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7635 #define _LARGE_FILES 1
7636 #include <sys/types.h>
7637 /* Check that off_t can represent 2**63 - 1 correctly.
7638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7639 since some C++ compilers masquerading as C compilers
7640 incorrectly reject 9223372036854775807. */
7641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7643 && LARGE_OFF_T % 2147483647 == 1)
7653 if ac_fn_c_try_compile
"$LINENO"; then :
7654 ac_cv_sys_large_files
=1; break
7656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 ac_cv_sys_large_files
=unknown
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7662 $as_echo "$ac_cv_sys_large_files" >&6; }
7663 case $ac_cv_sys_large_files in #(
7666 cat >>confdefs.h
<<_ACEOF
7667 #define _LARGE_FILES $ac_cv_sys_large_files
7684 START_FILES
='pre-crt0.o'
7687 ## Adding -lm confuses the dynamic linker, so omit it.
7689 START_FILES
='pre-crt0.o'
7692 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7693 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7695 gnu-linux | gnu-kfreebsd
)
7696 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7697 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7699 hpux10-20 | hpux11
)
7701 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7704 if test -f $CRT_DIR/crti.o
; then
7705 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7706 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7708 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7709 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7719 for file in x
$LIB_STANDARD $START_FILES; do
7721 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
7725 if test "x$crt_files" != x
; then
7727 ## If user specified a crt-dir, use that unconditionally.
7730 if test "X$CRT_DIR" = "X"; then
7732 CRT_DIR
=/usr
/lib
# default
7734 case "$canonical" in
7735 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7736 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7737 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7738 ## For anything else (eg /usr/lib32), it is up the user to specify
7739 ## the location (bug#5655).
7740 ## Test for crtn.o, not just the directory, because sometimes the
7741 ## directory exists but does not have the relevant files (bug#1287).
7742 ## FIXME better to test for binary compatibility somehow.
7743 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7746 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7750 hpux10-20
) CRT_DIR
=/lib
;;
7753 test "x${GCC}" = xyes
&& crt_gcc
=yes
7759 for file in $crt_files; do
7761 ## If we're using gcc, try to determine it automatically by asking
7762 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7763 ## system-dependent default from above.]
7764 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
7766 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
7769 CRT_DIR
=`$as_dirname -- "$crt_file" ||
7770 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7771 X"$crt_file" : 'X\(//\)[^/]' \| \
7772 X"$crt_file" : 'X\(//\)$' \| \
7773 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7774 $as_echo X"$crt_file" |
7775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7798 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
7801 test "x$crt_missing" = x || \
7802 as_fn_error
"Required file(s) not found:$crt_missing
7803 Try using the --with-crt-dir option." "$LINENO" 5
7805 fi # crt_files != ""
7813 if test "${with_sound}" != "no"; then
7814 # Sound support for GNU/Linux and the free BSDs.
7815 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7817 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7819 eval as_val
=\$
$as_ac_Header
7820 if test "x$as_val" = x
""yes; then :
7821 cat >>confdefs.h
<<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7824 have_sound_header
=yes
7829 # Emulation library used on NetBSD.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7831 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7832 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7835 ac_check_lib_save_LIBS
=$LIBS
7836 LIBS
="-lossaudio $LIBS"
7837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7840 /* Override any GCC internal prototype to avoid an error.
7841 Use char because int might match the return type of a GCC
7842 builtin and then its argument prototype would still apply. */
7850 return _oss_ioctl ();
7855 if ac_fn_c_try_link
"$LINENO"; then :
7856 ac_cv_lib_ossaudio__oss_ioctl
=yes
7858 ac_cv_lib_ossaudio__oss_ioctl
=no
7860 rm -f core conftest.err conftest.
$ac_objext \
7861 conftest
$ac_exeext conftest.
$ac_ext
7862 LIBS
=$ac_check_lib_save_LIBS
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7865 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7866 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7875 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7879 # Extract the first word of "pkg-config", so it can be a program name with args.
7880 set dummy pkg-config
; ac_word
=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7888 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir
=.
7896 for ac_exec_ext
in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7910 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7911 if test -n "$PKG_CONFIG"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7913 $as_echo "$PKG_CONFIG" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7921 if test "$PKG_CONFIG" = "no" ; then
7924 PKG_CONFIG_MIN_VERSION
=0.9.0
7925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7927 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7929 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7935 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7936 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7938 $as_echo "$ALSA_CFLAGS" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7941 $as_echo_n "checking ALSA_LIBS... " >&6; }
7942 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7944 $as_echo "$ALSA_LIBS" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7950 ## If we have a custom action on failure, don't print errors, but
7951 ## do set a variable so people can do so.
7952 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7964 if test $succeeded = yes; then
7970 if test $HAVE_ALSA = yes; then
7971 SAVE_CFLAGS
="$CFLAGS"
7972 SAVE_LDFLAGS
="$LDFLAGS"
7973 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7974 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 #include <asoundlib.h>
7981 snd_lib_error_set_handler (0);
7986 if ac_fn_c_try_compile
"$LINENO"; then :
7987 emacs_alsa_normal
=yes
7989 emacs_alsa_normal
=no
7991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 if test "$emacs_alsa_normal" != yes; then
7993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 #include <alsa/asoundlib.h>
7999 snd_lib_error_set_handler (0);
8004 if ac_fn_c_try_compile
"$LINENO"; then :
8005 emacs_alsa_subdir
=yes
8007 emacs_alsa_subdir
=no
8009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8010 if test "$emacs_alsa_subdir" != yes; then
8011 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8013 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8016 CFLAGS
="$SAVE_CFLAGS"
8017 LDFLAGS
="$SAVE_LDFLAGS"
8018 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8019 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8021 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8025 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8027 gnu-linux|freebsd|netbsd
)
8029 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8038 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8039 linux
/version.h sys
/systeminfo.h \
8040 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8041 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8042 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8044 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8045 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8046 eval as_val
=\$
$as_ac_Header
8047 if test "x$as_val" = x
""yes; then :
8048 cat >>confdefs.h
<<_ACEOF
8049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8058 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #include <sys/personality.h>
8065 personality (PER_LINUX32)
8070 if ac_fn_c_try_compile
"$LINENO"; then :
8071 emacs_cv_personality_linux32
=yes
8073 emacs_cv_personality_linux32
=no
8075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8077 $as_echo "$emacs_cv_personality_linux32" >&6; }
8079 if test $emacs_cv_personality_linux32 = yes; then
8081 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8085 for ac_header
in term.h
8087 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8088 if test "x$ac_cv_header_term_h" = x
""yes; then :
8089 cat >>confdefs.h
<<_ACEOF
8090 #define HAVE_TERM_H 1
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8098 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8099 if test "${ac_cv_header_time+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <sys/types.h>
8105 #include <sys/time.h>
8111 if ((struct tm *) 0)
8117 if ac_fn_c_try_compile
"$LINENO"; then :
8118 ac_cv_header_time
=yes
8120 ac_cv_header_time
=no
8122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8125 $as_echo "$ac_cv_header_time" >&6; }
8126 if test $ac_cv_header_time = yes; then
8128 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8132 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8133 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8139 cat >>confdefs.h
<<_ACEOF
8140 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8143 if test $ac_cv_have_decl_sys_siglist != yes; then
8144 # For Tru64, at least:
8145 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8146 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8152 cat >>confdefs.h
<<_ACEOF
8153 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8156 if test $ac_cv_have_decl___sys_siglist = yes; then
8158 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8163 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8164 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <sys/types.h>
8170 #include <sys/wait.h>
8172 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8175 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8183 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8188 if ac_fn_c_try_compile
"$LINENO"; then :
8189 ac_cv_header_sys_wait_h
=yes
8191 ac_cv_header_sys_wait_h
=no
8193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8196 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8197 if test $ac_cv_header_sys_wait_h = yes; then
8199 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8205 $as_echo_n "checking for struct utimbuf... " >&6; }
8206 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 #ifdef TIME_WITH_SYS_TIME
8212 #include <sys/time.h>
8215 #ifdef HAVE_SYS_TIME_H
8216 #include <sys/time.h>
8227 static struct utimbuf x; x.actime = x.modtime;
8232 if ac_fn_c_try_compile
"$LINENO"; then :
8233 emacs_cv_struct_utimbuf
=yes
8235 emacs_cv_struct_utimbuf
=no
8237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8240 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8241 if test $emacs_cv_struct_utimbuf = yes; then
8243 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8248 $as_echo_n "checking for speed_t... " >&6; }
8249 if test "${emacs_cv_speed_t+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254 #include <termios.h>
8263 if ac_fn_c_try_compile
"$LINENO"; then :
8264 emacs_cv_speed_t
=yes
8268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8271 $as_echo "$emacs_cv_speed_t" >&6; }
8272 if test $emacs_cv_speed_t = yes; then
8274 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8279 $as_echo_n "checking for struct timeval... " >&6; }
8280 if test "${emacs_cv_struct_timeval+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #ifdef TIME_WITH_SYS_TIME
8286 #include <sys/time.h>
8289 #ifdef HAVE_SYS_TIME_H
8290 #include <sys/time.h>
8298 static struct timeval x; x.tv_sec = x.tv_usec;
8303 if ac_fn_c_try_compile
"$LINENO"; then :
8304 emacs_cv_struct_timeval
=yes
8306 emacs_cv_struct_timeval
=no
8308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8311 $as_echo "$emacs_cv_struct_timeval" >&6; }
8312 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8313 if test $emacs_cv_struct_timeval = yes; then
8315 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8320 $as_echo_n "checking for struct exception... " >&6; }
8321 if test "${emacs_cv_struct_exception+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8330 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8335 if ac_fn_c_try_compile
"$LINENO"; then :
8336 emacs_cv_struct_exception
=yes
8338 emacs_cv_struct_exception
=no
8340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8343 $as_echo "$emacs_cv_struct_exception" >&6; }
8344 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8345 if test $emacs_cv_struct_exception != yes; then
8347 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8351 for ac_header
in sys
/socket.h
8353 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8354 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8355 cat >>confdefs.h
<<_ACEOF
8356 #define HAVE_SYS_SOCKET_H 1
8363 for ac_header
in net
/if.h
8365 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8366 #if HAVE_SYS_SOCKET_H
8367 #include <sys/socket.h>
8370 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8371 cat >>confdefs.h
<<_ACEOF
8372 #define HAVE_NET_IF_H 1
8379 for ac_header
in ifaddrs.h
8381 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8382 #if HAVE_SYS_SOCKET_H
8383 #include <sys/socket.h>
8386 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8387 cat >>confdefs.h
<<_ACEOF
8388 #define HAVE_IFADDRS_H 1
8395 for ac_header
in net
/if_dl.h
8397 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8398 #if HAVE_SYS_SOCKET_H
8399 #include <sys/socket.h>
8402 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8403 cat >>confdefs.h
<<_ACEOF
8404 #define HAVE_NET_IF_DL_H 1
8411 for ac_func
in getifaddrs freeifaddrs
8413 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8414 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8415 eval as_val
=\$
$as_ac_var
8416 if test "x$as_val" = x
""yes; then :
8417 cat >>confdefs.h
<<_ACEOF
8418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8426 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8427 if test "${ac_cv_struct_tm+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8439 int *p = &tm.tm_sec;
8445 if ac_fn_c_try_compile
"$LINENO"; then :
8446 ac_cv_struct_tm
=time.h
8448 ac_cv_struct_tm
=sys
/time.h
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8453 $as_echo "$ac_cv_struct_tm" >&6; }
8454 if test $ac_cv_struct_tm = sys
/time.h
; then
8456 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8460 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8461 #include <$ac_cv_struct_tm>
8464 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8466 cat >>confdefs.h
<<_ACEOF
8467 #define HAVE_STRUCT_TM_TM_ZONE 1
8473 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8475 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8478 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8480 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8486 cat >>confdefs.h
<<_ACEOF
8487 #define HAVE_DECL_TZNAME $ac_have_decl
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8491 $as_echo_n "checking for tzname... " >&6; }
8492 if test "${ac_cv_var_tzname+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8498 #if !HAVE_DECL_TZNAME
8499 extern char *tzname[];
8505 return tzname[0][0];
8510 if ac_fn_c_try_link
"$LINENO"; then :
8511 ac_cv_var_tzname
=yes
8515 rm -f core conftest.err conftest.
$ac_objext \
8516 conftest
$ac_exeext conftest.
$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8519 $as_echo "$ac_cv_var_tzname" >&6; }
8520 if test $ac_cv_var_tzname = yes; then
8522 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8527 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8529 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8531 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8535 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8543 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8545 cat >>confdefs.h
<<_ACEOF
8546 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8551 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8552 #if HAVE_SYS_SOCKET_H
8553 #include <sys/socket.h>
8559 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8561 cat >>confdefs.h
<<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8567 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8568 #if HAVE_SYS_SOCKET_H
8569 #include <sys/socket.h>
8575 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8577 cat >>confdefs.h
<<_ACEOF
8578 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8583 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8591 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8593 cat >>confdefs.h
<<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8599 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8600 #if HAVE_SYS_SOCKET_H
8601 #include <sys/socket.h>
8607 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8609 cat >>confdefs.h
<<_ACEOF
8610 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8615 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8623 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8625 cat >>confdefs.h
<<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8635 $as_echo_n "checking for function prototypes... " >&6; }
8636 if test "$ac_cv_prog_cc_c89" != no
; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8638 $as_echo "yes" >&6; }
8640 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8643 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8651 $as_echo_n "checking for working volatile... " >&6; }
8652 if test "${ac_cv_c_volatile+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8663 int * volatile y = (int *) 0;
8669 if ac_fn_c_try_compile
"$LINENO"; then :
8670 ac_cv_c_volatile
=yes
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8677 $as_echo "$ac_cv_c_volatile" >&6; }
8678 if test $ac_cv_c_volatile = no
; then
8680 $as_echo "#define volatile /**/" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8685 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8686 if test "${ac_cv_c_const+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8695 /* FIXME: Include the comments suggested by Paul. */
8697 /* Ultrix mips cc rejects this. */
8698 typedef int charset[2];
8700 /* SunOS 4.1.1 cc rejects this. */
8701 char const *const *pcpcc;
8703 /* NEC SVR4.0.2 mips cc rejects this. */
8704 struct point {int x, y;};
8705 static struct point const zero = {0,0};
8706 /* AIX XL C 1.02.0.0 rejects this.
8707 It does not let you subtract one const X* pointer from another in
8708 an arm of an if-expression whose if-part is not a constant
8710 const char *g = "string";
8711 pcpcc = &g + (g ? g-g : 0);
8712 /* HPUX 7.0 cc rejects these. */
8714 ppc = (char**) pcpcc;
8715 pcpcc = (char const *const *) ppc;
8716 { /* SCO 3.2v4 cc rejects this. */
8718 char const *s = 0 ? (char *) 0 : (char const *) 0;
8723 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8725 const int *foo = &x[0];
8728 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8729 typedef const int *iptr;
8733 { /* AIX XL C 1.02.0.0 rejects this saying
8734 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8735 struct s { int j; const int *ap[3]; };
8736 struct s *b; b->j = 5;
8738 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8742 return !cs[0] && !zero.x;
8749 if ac_fn_c_try_compile
"$LINENO"; then :
8754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8757 $as_echo "$ac_cv_c_const" >&6; }
8758 if test $ac_cv_c_const = no
; then
8760 $as_echo "#define const /**/" >>confdefs.h
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8765 $as_echo_n "checking for void * support... " >&6; }
8766 if test "${emacs_cv_void_star+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8780 if ac_fn_c_try_compile
"$LINENO"; then :
8781 emacs_cv_void_star
=yes
8783 emacs_cv_void_star
=no
8785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8788 $as_echo "$emacs_cv_void_star" >&6; }
8789 if test $emacs_cv_void_star = yes; then
8790 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8793 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8798 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8799 if test "${ac_cv_c_bigendian+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8802 ac_cv_c_bigendian
=unknown
8803 # See if we're dealing with a universal compiler.
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifndef __APPLE_CC__
8807 not a universal capable compiler
8812 if ac_fn_c_try_compile
"$LINENO"; then :
8814 # Check for potential -arch flags. It is not universal unless
8815 # there are at least two -arch flags with different values.
8818 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8819 if test -n "$ac_prev"; then
8821 i?
86 | x86_64 | ppc | ppc64
)
8822 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8825 ac_cv_c_bigendian
=universal
8831 elif test "x$ac_word" = "x-arch"; then
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 if test $ac_cv_c_bigendian = unknown
; then
8838 # See if sys/param.h defines the BYTE_ORDER macro.
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <sys/types.h>
8842 #include <sys/param.h>
8847 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8848 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8857 if ac_fn_c_try_compile
"$LINENO"; then :
8858 # It does; now see whether it defined to BIG_ENDIAN or not.
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8867 #if BYTE_ORDER != BIG_ENDIAN
8875 if ac_fn_c_try_compile
"$LINENO"; then :
8876 ac_cv_c_bigendian
=yes
8878 ac_cv_c_bigendian
=no
8880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8884 if test $ac_cv_c_bigendian = unknown
; then
8885 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8893 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8901 if ac_fn_c_try_compile
"$LINENO"; then :
8902 # It does; now see whether it defined to _BIG_ENDIAN or not.
8903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8918 if ac_fn_c_try_compile
"$LINENO"; then :
8919 ac_cv_c_bigendian
=yes
8921 ac_cv_c_bigendian
=no
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8927 if test $ac_cv_c_bigendian = unknown
; then
8928 # Compile a test program.
8929 if test "$cross_compiling" = yes; then :
8930 # Try to guess by grepping values from an object file.
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 short int ascii_mm[] =
8934 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8935 short int ascii_ii[] =
8936 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8937 int use_ascii (int i) {
8938 return ascii_mm[i] + ascii_ii[i];
8940 short int ebcdic_ii[] =
8941 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8942 short int ebcdic_mm[] =
8943 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8944 int use_ebcdic (int i) {
8945 return ebcdic_mm[i] + ebcdic_ii[i];
8952 return use_ascii (foo) == use_ebcdic (foo);
8957 if ac_fn_c_try_compile
"$LINENO"; then :
8958 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8959 ac_cv_c_bigendian
=yes
8961 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8962 if test "$ac_cv_c_bigendian" = unknown
; then
8963 ac_cv_c_bigendian
=no
8965 # finding both strings is unlikely to happen, but who knows?
8966 ac_cv_c_bigendian
=unknown
8970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 $ac_includes_default
8979 /* Are we little or big endian? From Harbison&Steele. */
8983 char c[sizeof (long int)];
8986 return u.c[sizeof (long int) - 1] == 1;
8992 if ac_fn_c_try_run
"$LINENO"; then :
8993 ac_cv_c_bigendian
=no
8995 ac_cv_c_bigendian
=yes
8997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8998 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9004 $as_echo "$ac_cv_c_bigendian" >&6; }
9005 case $ac_cv_c_bigendian in #(
9007 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9013 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9017 as_fn_error
"unknown endianness
9018 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9023 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9024 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 char __attribute__ ((__aligned__ (1 << 3))) c;
9038 if ac_fn_c_try_compile
"$LINENO"; then :
9039 emacs_cv_attribute_aligned
=yes
9041 emacs_cv_attribute_aligned
=no
9043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9046 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9047 if test $emacs_cv_attribute_aligned = yes; then
9049 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9056 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9057 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9058 $as_echo_n "(cached) " >&6
9060 cat >conftest.
make <<\_ACEOF
9063 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9068 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9070 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9074 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9076 $as_echo "yes" >&6; }
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9081 SET_MAKE
="MAKE=${MAKE-make}"
9088 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9090 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9092 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9093 if test "x$testval" != x
; then
9096 ac_enable_autodepend
=no
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9099 $as_echo "$HAVE_GNU_MAKE" >&6; }
9100 if test $HAVE_GNU_MAKE = yes; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9102 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9103 SAVE_CFLAGS
="$CFLAGS"
9104 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9116 if ac_fn_c_try_compile
"$LINENO"; then :
9119 ac_enable_autodepend
=no
9121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9122 CFLAGS
="$SAVE_CFLAGS"
9123 test -f deps.d || ac_enable_autodepend
=no
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9126 $as_echo "$ac_enable_autodepend" >&6; }
9128 if test $ac_enable_autodepend = yes; then
9129 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9130 ## In parallel builds, another make might create depdir between
9131 ## the first test and mkdir, so stick another test on the end.
9132 ## Or use install-sh -d? mkdir -p is not portable.
9133 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9134 deps_frag
=autodeps.mk
9137 deps_frag
=$srcdir/src
/$deps_frag
9143 lisp_frag
=$srcdir/src
/lisp.mk
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9148 $as_echo_n "checking for long file names... " >&6; }
9149 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9152 ac_cv_sys_long_file_names
=yes
9153 # Test for long file names in all the places we know might matter:
9154 # . the current directory, where building will happen
9155 # $prefix/lib where we will be installing things
9156 # $exec_prefix/lib likewise
9157 # $TMPDIR if set, where it might want to write temporary files
9158 # /tmp where it might want to write temporary files
9161 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9162 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9163 # in the usual case where exec_prefix is '${prefix}'.
9165 . |
/* | ?
:[\\/]*) ;; #(
9168 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9169 ac_xdir
=$ac_dir/cf$$
9170 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9171 ac_tf1
=$ac_xdir/conftest9012345
9172 ac_tf2
=$ac_xdir/conftest9012346
9173 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9174 ac_cv_sys_long_file_names
=no
9175 rm -f -r "$ac_xdir" 2>/dev
/null
9176 test $ac_cv_sys_long_file_names = no
&& break
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9180 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9181 if test $ac_cv_sys_long_file_names = yes; then
9183 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9188 #### Choose a window system.
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9191 $as_echo_n "checking for X... " >&6; }
9194 # Check whether --with-x was given.
9195 if test "${with_x+set}" = set; then :
9199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9200 if test "x$with_x" = xno
; then
9201 # The user explicitly disabled X.
9204 case $x_includes,$x_libraries in #(
9205 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9206 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9209 # One or both of the vars are not set, and there is no cached value.
9210 ac_x_includes
=no ac_x_libraries
=no
9211 rm -f -r conftest.dir
9212 if mkdir conftest.dir
; then
9214 cat >Imakefile
<<'_ACEOF'
9216 @echo incroot='${INCROOT}'
9218 @echo usrlibdir='${USRLIBDIR}'
9220 @echo libdir='${LIBDIR}'
9222 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9223 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9224 for ac_var
in incroot usrlibdir libdir
; do
9225 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9227 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9228 for ac_extension
in a so sl dylib la dll
; do
9229 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9230 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9231 ac_im_usrlibdir
=$ac_im_libdir; break
9234 # Screen out bogus values from the imake configuration. They are
9235 # bogus both because they are the default anyway, and because
9236 # using them would break gcc on systems where it needs fixed includes.
9237 case $ac_im_incroot in
9238 /usr
/include
) ac_x_includes
= ;;
9239 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9241 case $ac_im_usrlibdir in
9242 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9243 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9247 rm -f -r conftest.dir
9250 # Standard set of common directories for X headers.
9251 # Check X11 before X11Rn because it is often a symlink to the current release.
9265 /usr/local/X11/include
9266 /usr/local/X11R7/include
9267 /usr/local/X11R6/include
9268 /usr/local/X11R5/include
9269 /usr/local/X11R4/include
9271 /usr/local/include/X11
9272 /usr/local/include/X11R7
9273 /usr/local/include/X11R6
9274 /usr/local/include/X11R5
9275 /usr/local/include/X11R4
9279 /usr/XFree86/include/X11
9283 /usr/unsupported/include
9285 /usr/local/x11r5/include
9286 /usr/lpp/Xamples/include
9288 /usr/openwin/include
9289 /usr/openwin/share/include'
9291 if test "$ac_x_includes" = no
; then
9292 # Guess where to find include files, by looking for Xlib.h.
9293 # First, try using that file with no special directory specified.
9294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 #include <X11/Xlib.h>
9298 if ac_fn_c_try_cpp
"$LINENO"; then :
9299 # We can compile using X headers with no special include directory.
9302 for ac_dir
in $ac_x_header_dirs; do
9303 if test -r "$ac_dir/X11/Xlib.h"; then
9304 ac_x_includes
=$ac_dir
9309 rm -f conftest.err conftest.
$ac_ext
9310 fi # $ac_x_includes = no
9312 if test "$ac_x_libraries" = no
; then
9313 # Check for the libraries.
9314 # See if we find them without any special options.
9315 # Don't add to $LIBS permanently.
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 #include <X11/Xlib.h>
9329 if ac_fn_c_try_link
"$LINENO"; then :
9331 # We can link X programs with no special library path.
9335 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9337 # Don't even attempt the hair of trying to link an X program!
9338 for ac_extension
in a so sl dylib la dll
; do
9339 if test -r "$ac_dir/libX11.$ac_extension"; then
9340 ac_x_libraries
=$ac_dir
9346 rm -f core conftest.err conftest.
$ac_objext \
9347 conftest
$ac_exeext conftest.
$ac_ext
9348 fi # $ac_x_libraries = no
9350 case $ac_x_includes,$ac_x_libraries in #(
9352 # Didn't find X, or a directory has "'" in its name.
9353 ac_cv_have_x
="have_x=no";; #(
9355 # Record where we found X for the cache.
9356 ac_cv_have_x
="have_x=yes\
9357 ac_x_includes='$ac_x_includes'\
9358 ac_x_libraries='$ac_x_libraries'"
9364 eval "$ac_cv_have_x"
9367 if test "$have_x" != yes; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9369 $as_echo "$have_x" >&6; }
9372 # If each of the values was on the command line, it overrides each guess.
9373 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9374 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9375 # Update the cache value to reflect the command line values.
9376 ac_cv_have_x
="have_x=yes\
9377 ac_x_includes='$x_includes'\
9378 ac_x_libraries='$x_libraries'"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9380 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9383 if test "$no_x" = yes; then
9389 ## Workaround for bug in autoconf <= 2.62.
9390 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9391 ## No need to do anything special for these standard directories.
9392 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9394 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9398 LD_SWITCH_X_SITE_AUX
=
9399 LD_SWITCH_X_SITE_AUX_RPATH
=
9400 if test "${x_libraries}" != NONE
; then
9401 if test -n "${x_libraries}"; then
9402 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9403 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9404 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9406 x_default_search_path
=""
9407 x_search_path
=${x_libraries}
9408 if test -z "${x_search_path}"; then
9409 x_search_path
=/usr
/lib
9411 for x_library
in `echo ${x_search_path}: | \
9412 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9414 ${x_library}/X11/%L/%T/%N%C%S:\
9415 ${x_library}/X11/%l/%T/%N%C%S:\
9416 ${x_library}/X11/%T/%N%C%S:\
9417 ${x_library}/X11/%L/%T/%N%S:\
9418 ${x_library}/X11/%l/%T/%N%S:\
9419 ${x_library}/X11/%T/%N%S"
9420 if test x
"${x_default_search_path}" = x
; then
9421 x_default_search_path
=${x_search_path}
9423 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9430 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9431 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9434 if test x
"${x_includes}" = x
; then
9435 bitmapdir
=/usr
/include
/X11
/bitmaps
9437 # accumulate include directories that have X11 bitmap subdirectories
9439 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9440 if test -d "${bmd}/X11/bitmaps"; then
9441 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9443 if test -d "${bmd}/bitmaps"; then
9444 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9447 if test ${bmd_acc} != "dummyval"; then
9448 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9455 tmp_CPPFLAGS
="$CPPFLAGS"
9456 tmp_CFLAGS
="$CFLAGS"
9457 CPPFLAGS
="$CPPFLAGS -x objective-c"
9458 CFLAGS
="$CFLAGS -x objective-c"
9459 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9460 if test "${with_ns}" != no
; then
9461 if test "${opsys}" = darwin
; then
9463 ns_appdir
=`pwd`/nextstep
/Emacs.app
9464 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9465 ns_appresdir
=${ns_appdir}/Contents
/Resources
9466 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9467 elif test -f $GNUSTEP_CONFIG_FILE; then
9469 ns_appdir
=`pwd`/nextstep
/Emacs.app
9470 ns_appbindir
=${ns_appdir}/
9471 ns_appresdir
=${ns_appdir}/Resources
9472 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9473 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9474 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9475 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9476 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9477 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9478 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9479 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9480 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9481 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9482 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9483 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9488 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9489 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9492 as_fn_error
"\`--with-ns' was specified, but the include
9493 files are missing or cannot be compiled." "$LINENO" 5
9497 NS_HAVE_NSINTEGER
=yes
9498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <Foundation/NSObjCRuntime.h>
9509 if ac_fn_c_try_compile
"$LINENO"; then :
9510 ns_have_nsinteger
=yes
9512 ns_have_nsinteger
=no
9514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9515 if test $ns_have_nsinteger = no
; then
9516 NS_HAVE_NSINTEGER
=no
9524 if test "${HAVE_NS}" = yes; then
9525 window_system
=nextstep
9527 # set up packaging dirs
9528 exec_prefix
=${ns_appbindir}
9529 libexecdir
=${ns_appbindir}/libexec
9530 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9531 prefix
=${ns_appresdir}
9533 ns_frag
=$srcdir/src
/ns.mk
9534 NS_OBJ
="fontset.o fringe.o image.o"
9535 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9537 CFLAGS
="$tmp_CFLAGS"
9538 CPPFLAGS
="$tmp_CPPFLAGS"
9544 case "${window_system}" in
9548 case "${with_x_toolkit}" in
9549 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9550 motif
) USE_X_TOOLKIT
=MOTIF
;;
9552 USE_X_TOOLKIT
=none
;;
9553 gtk3
) with_gtk3
=yes
9554 USE_X_TOOLKIT
=none
;;
9555 no
) USE_X_TOOLKIT
=none
;;
9556 * ) USE_X_TOOLKIT
=maybe
;;
9566 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9567 # Extract the first word of "X", so it can be a program name with args.
9568 set dummy X
; ac_word
=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9574 if test -n "$HAVE_XSERVER"; then
9575 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir
=.
9582 for ac_exec_ext
in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_prog_HAVE_XSERVER
="true"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9595 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9596 if test -n "$HAVE_XSERVER"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9598 $as_echo "$HAVE_XSERVER" >&6; }
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9605 if test "$HAVE_XSERVER" = true ||
9606 test -n "$DISPLAY" ||
9607 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9608 as_fn_error
"You seem to be running X, but no X development libraries
9609 were found. You should install the relevant development files for X
9610 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9611 sure you have development files for image handling, i.e.
9612 tiff, gif, jpeg, png and xpm.
9613 If you are sure you want Emacs compiled without X window support, pass
9615 to configure." "$LINENO" 5
9619 ### If we're using X11, we should use the X menu package.
9622 yes ) HAVE_MENUS
=yes ;;
9625 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9626 # Assume not, until told otherwise.
9629 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9630 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9636 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9637 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9644 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9645 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 extern void (* __after_morecore_hook)();
9654 __after_morecore_hook = 0
9659 if ac_fn_c_try_link
"$LINENO"; then :
9660 emacs_cv_var___after_morecore_hook
=yes
9662 emacs_cv_var___after_morecore_hook
=no
9664 rm -f core conftest.err conftest.
$ac_objext \
9665 conftest
$ac_exeext conftest.
$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9668 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9669 if test $emacs_cv_var___after_morecore_hook = no
; then
9676 ## darwin ld insists on the use of malloc routines in the System framework.
9677 darwin|sol2-10
) system_malloc
=yes ;;
9680 if test "${system_malloc}" = "yes"; then
9682 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9686 (The GNU allocators don't work with this system configuration.)"
9690 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9691 VMLIMIT_OBJ
=vm-limit.o
9696 if test "$doug_lea_malloc" = "yes" ; then
9697 if test "$GNU_MALLOC" = yes ; then
9699 (Using Doug Lea's new malloc from the GNU C Library.)"
9702 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9705 ## Use mmap directly for allocating larger buffers.
9706 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9707 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9708 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9710 gnu
*) REL_ALLOC
=no
;;
9714 if test x
"${REL_ALLOC}" = x
; then
9715 REL_ALLOC
=${GNU_MALLOC}
9718 use_mmap_for_buffers
=no
9720 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9726 for ac_header
in $ac_header_list
9728 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9729 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9731 eval as_val
=\$
$as_ac_Header
9732 if test "x$as_val" = x
""yes; then :
9733 cat >>confdefs.h
<<_ACEOF
9734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9748 for ac_func
in getpagesize
9750 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9751 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9752 cat >>confdefs.h
<<_ACEOF
9753 #define HAVE_GETPAGESIZE 1
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9760 $as_echo_n "checking for working mmap... " >&6; }
9761 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9764 if test "$cross_compiling" = yes; then :
9765 ac_cv_func_mmap_fixed_mapped
=no
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 /* malloc might have been renamed as rpl_malloc. */
9773 /* Thanks to Mike Haertel and Jim Avera for this test.
9774 Here is a matrix of mmap possibilities:
9775 mmap private not fixed
9776 mmap private fixed at somewhere currently unmapped
9777 mmap private fixed at somewhere already mapped
9778 mmap shared not fixed
9779 mmap shared fixed at somewhere currently unmapped
9780 mmap shared fixed at somewhere already mapped
9781 For private mappings, we should verify that changes cannot be read()
9782 back from the file, nor mmap's back from the file at a different
9783 address. (There have been systems where private was not correctly
9784 implemented like the infamous i386 svr4.0, and systems where the
9785 VM page cache was not coherent with the file system buffer cache
9786 like early versions of FreeBSD and possibly contemporary NetBSD.)
9787 For shared mappings, we should conversely verify that changes get
9788 propagated back to all the places they're supposed to be.
9790 Grep wants private fixed already mapped.
9791 The main things grep needs to know about mmap are:
9792 * does it exist and is it safe to write into the mmap'd area
9793 * how to use it (BSD variants) */
9796 #include <sys/mman.h>
9798 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9802 /* This mess was copied from the GNU getpagesize.h. */
9803 #ifndef HAVE_GETPAGESIZE
9804 # ifdef _SC_PAGESIZE
9805 # define getpagesize() sysconf(_SC_PAGESIZE)
9806 # else /* no _SC_PAGESIZE */
9807 # ifdef HAVE_SYS_PARAM_H
9808 # include <sys/param.h>
9809 # ifdef EXEC_PAGESIZE
9810 # define getpagesize() EXEC_PAGESIZE
9811 # else /* no EXEC_PAGESIZE */
9813 # define getpagesize() NBPG * CLSIZE
9816 # endif /* no CLSIZE */
9817 # else /* no NBPG */
9819 # define getpagesize() NBPC
9820 # else /* no NBPC */
9822 # define getpagesize() PAGESIZE
9823 # endif /* PAGESIZE */
9824 # endif /* no NBPC */
9825 # endif /* no NBPG */
9826 # endif /* no EXEC_PAGESIZE */
9827 # else /* no HAVE_SYS_PARAM_H */
9828 # define getpagesize() 8192 /* punt totally */
9829 # endif /* no HAVE_SYS_PARAM_H */
9830 # endif /* no _SC_PAGESIZE */
9832 #endif /* no HAVE_GETPAGESIZE */
9837 char *data, *data2, *data3;
9842 pagesize = getpagesize ();
9844 /* First, make a file with some known garbage in it. */
9845 data = (char *) malloc (pagesize);
9848 for (i = 0; i < pagesize; ++i)
9849 *(data + i) = rand ();
9851 fd = creat ("conftest.mmap", 0600);
9854 if (write (fd, data, pagesize) != pagesize)
9858 /* Next, check that the tail of a page is zero-filled. File must have
9859 non-zero length, otherwise we risk SIGBUS for entire page. */
9860 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9864 if (write (fd2, cdata2, 1) != 1)
9866 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9867 if (data2 == MAP_FAILED)
9869 for (i = 0; i < pagesize; ++i)
9873 if (munmap (data2, pagesize))
9876 /* Next, try to mmap the file at a fixed address which already has
9877 something else allocated at it. If we can, also make sure that
9878 we see the same garbage. */
9879 fd = open ("conftest.mmap", O_RDWR);
9882 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9883 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9885 for (i = 0; i < pagesize; ++i)
9886 if (*(data + i) != *(data2 + i))
9889 /* Finally, make sure that changes to the mapped area do not
9890 percolate back to the file as seen by read(). (This is a bug on
9891 some variants of i386 svr4.0.) */
9892 for (i = 0; i < pagesize; ++i)
9893 *(data2 + i) = *(data2 + i) + 1;
9894 data3 = (char *) malloc (pagesize);
9897 if (read (fd, data3, pagesize) != pagesize)
9899 for (i = 0; i < pagesize; ++i)
9900 if (*(data + i) != *(data3 + i))
9906 if ac_fn_c_try_run
"$LINENO"; then :
9907 ac_cv_func_mmap_fixed_mapped
=yes
9909 ac_cv_func_mmap_fixed_mapped
=no
9911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9917 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9918 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9920 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9923 rm -f conftest.mmap conftest.txt
9925 if test $use_mmap_for_buffers = yes; then
9927 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9932 LIBS
="$LIBS_SYSTEM $LIBS"
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9935 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9936 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9939 ac_check_lib_save_LIBS
=$LIBS
9941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9954 return dnet_ntoa ();
9959 if ac_fn_c_try_link
"$LINENO"; then :
9960 ac_cv_lib_dnet_dnet_ntoa
=yes
9962 ac_cv_lib_dnet_dnet_ntoa
=no
9964 rm -f core conftest.err conftest.
$ac_objext \
9965 conftest
$ac_exeext conftest.
$ac_ext
9966 LIBS
=$ac_check_lib_save_LIBS
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9969 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9970 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9971 cat >>confdefs.h
<<_ACEOF
9972 #define HAVE_LIBDNET 1
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9981 $as_echo_n "checking for main in -lXbsd... " >&6; }
9982 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9985 ac_check_lib_save_LIBS
=$LIBS
9987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9999 if ac_fn_c_try_link
"$LINENO"; then :
10000 ac_cv_lib_Xbsd_main
=yes
10002 ac_cv_lib_Xbsd_main
=no
10004 rm -f core conftest.err conftest.
$ac_objext \
10005 conftest
$ac_exeext conftest.
$ac_ext
10006 LIBS
=$ac_check_lib_save_LIBS
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10009 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10010 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10011 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10016 for ac_header
in pthread.h
10018 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10019 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10020 cat >>confdefs.h
<<_ACEOF
10021 #define HAVE_PTHREAD_H 1
10028 if test "$ac_cv_header_pthread_h"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10030 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10031 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10034 ac_check_lib_save_LIBS
=$LIBS
10035 LIBS
="-lpthread $LIBS"
10036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10045 char pthread_self ();
10049 return pthread_self ();
10054 if ac_fn_c_try_link
"$LINENO"; then :
10055 ac_cv_lib_pthread_pthread_self
=yes
10057 ac_cv_lib_pthread_pthread_self
=no
10059 rm -f core conftest.err conftest.
$ac_objext \
10060 conftest
$ac_exeext conftest.
$ac_ext
10061 LIBS
=$ac_check_lib_save_LIBS
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10064 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10065 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10070 if test "$HAVE_PTHREAD" = yes; then
10071 case "${canonical}" in
10073 *) LIB_PTHREAD
="-lpthread" ;;
10076 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10082 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10083 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10086 ac_check_lib_save_LIBS
=$LIBS
10087 LIBS
="-lpthreads $LIBS"
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10101 return cma_open ();
10106 if ac_fn_c_try_link
"$LINENO"; then :
10107 ac_cv_lib_pthreads_cma_open
=yes
10109 ac_cv_lib_pthreads_cma_open
=no
10111 rm -f core conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10113 LIBS
=$ac_check_lib_save_LIBS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10116 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10117 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10118 cat >>confdefs.h
<<_ACEOF
10119 #define HAVE_LIBPTHREADS 1
10122 LIBS
="-lpthreads $LIBS"
10127 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10128 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10129 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10130 ## added to LIBS in configure would never contain the pthreads part,
10131 ## but the value used in Makefiles might. FIXME?
10133 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10134 ## be harmless on older versions of X where it happens to exist.
10135 test "$opsys" = "aix4-2" && \
10136 test $ac_cv_lib_pthreads_cma_open = yes && \
10137 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10143 $as_echo_n "checking for -bbigtoc option... " >&6; }
10144 if test "${gdb_cv_bigtoc+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10149 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10150 *) gdb_cv_bigtoc
=-bbigtoc ;;
10153 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10165 if ac_fn_c_try_link
"$LINENO"; then :
10170 rm -f core conftest.err conftest.
$ac_objext \
10171 conftest
$ac_exeext conftest.
$ac_ext
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10175 $as_echo "$gdb_cv_bigtoc" >&6; }
10179 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10180 # used for the tests that follow. We set them back to REAL_CFLAGS and
10181 # REAL_CPPFLAGS later on.
10183 REAL_CFLAGS
="$CFLAGS"
10184 REAL_CPPFLAGS
="$CPPFLAGS"
10186 if test "${HAVE_X11}" = "yes"; then
10187 DEFS
="$C_SWITCH_X_SITE $DEFS"
10188 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10190 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10191 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10193 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10194 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10195 # but it's more convenient here to set LD_RUN_PATH
10196 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10197 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10198 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10202 if test "${opsys}" = "gnu-linux"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10204 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10211 XOpenDisplay ("foo");
10216 if ac_fn_c_try_link
"$LINENO"; then :
10217 xlinux_first_failure
=no
10219 xlinux_first_failure
=yes
10221 rm -f core conftest.err conftest.
$ac_objext \
10222 conftest
$ac_exeext conftest.
$ac_ext
10223 if test "${xlinux_first_failure}" = "yes"; then
10224 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10225 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10226 OLD_CPPFLAGS
="$CPPFLAGS"
10228 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10229 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10230 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10231 LIBS
="$LIBS -b i486-linuxaout"
10232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10238 XOpenDisplay ("foo");
10243 if ac_fn_c_try_link
"$LINENO"; then :
10244 xlinux_second_failure
=no
10246 xlinux_second_failure
=yes
10248 rm -f core conftest.err conftest.
$ac_objext \
10249 conftest
$ac_exeext conftest.
$ac_ext
10250 if test "${xlinux_second_failure}" = "yes"; then
10251 # If we get the same failure with -b, there is no use adding -b.
10252 # So take it out. This plays safe.
10253 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10254 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10255 CPPFLAGS
="$OLD_CPPFLAGS"
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10261 $as_echo "yes" >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10269 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10270 # header files included from there.
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10272 $as_echo_n "checking for Xkb... " >&6; }
10273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #include <X11/Xlib.h>
10276 #include <X11/XKBlib.h>
10280 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10285 if ac_fn_c_try_link
"$LINENO"; then :
10290 rm -f core conftest.err conftest.
$ac_objext \
10291 conftest
$ac_exeext conftest.
$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10293 $as_echo "$emacs_xkb" >&6; }
10294 if test $emacs_xkb = yes; then
10296 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10300 for ac_func
in XrmSetDatabase XScreenResourceString \
10301 XScreenNumberOfScreen XSetWMProtocols
10303 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10304 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10305 eval as_val
=\$
$as_ac_var
10306 if test "x$as_val" = x
""yes; then :
10307 cat >>confdefs.h
<<_ACEOF
10308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10316 if test "${window_system}" = "x11"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10318 $as_echo_n "checking X11 version 6... " >&6; }
10319 if test "${emacs_cv_x11_version_6+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 #include <X11/Xlib.h>
10328 #if XlibSpecificationRelease < 6
10336 if ac_fn_c_try_link
"$LINENO"; then :
10337 emacs_cv_x11_version_6
=yes
10339 emacs_cv_x11_version_6
=no
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10345 if test $emacs_cv_x11_version_6 = yes; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10347 $as_echo "6 or newer" >&6; }
10349 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10352 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10354 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10359 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10365 $as_echo "before 6" >&6; }
10370 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10372 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10373 if test "${with_rsvg}" != "no"; then
10374 RSVG_REQUIRED
=2.11.0
10375 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10380 # Extract the first word of "pkg-config", so it can be a program name with args.
10381 set dummy pkg-config
; ac_word
=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10387 case $PKG_CONFIG in
10389 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10393 for as_dir
in $PATH
10396 test -z "$as_dir" && as_dir
=.
10397 for ac_exec_ext
in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10411 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10412 if test -n "$PKG_CONFIG"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10414 $as_echo "$PKG_CONFIG" >&6; }
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10422 if test "$PKG_CONFIG" = "no" ; then
10425 PKG_CONFIG_MIN_VERSION
=0.9.0
10426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10428 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10430 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10436 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10437 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10439 $as_echo "$RSVG_CFLAGS" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10442 $as_echo_n "checking RSVG_LIBS... " >&6; }
10443 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10445 $as_echo "$RSVG_LIBS" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10451 ## If we have a custom action on failure, don't print errors, but
10452 ## do set a variable so people can do so.
10453 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10460 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10461 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10465 if test $succeeded = yes; then
10474 if test $HAVE_RSVG = yes; then
10476 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10478 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10479 LIBS
="$RSVG_LIBS $LIBS"
10484 HAVE_IMAGEMAGICK
=no
10485 if test "${HAVE_X11}" = "yes"; then
10486 if test "${with_imagemagick}" != "no"; then
10487 ## 6.2.8 is the earliest version known to work, but earlier versions
10488 ## might work - let us know if you find one.
10489 ## 6.0.7 does not work. See bug#7955.
10490 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10494 # Extract the first word of "pkg-config", so it can be a program name with args.
10495 set dummy pkg-config
; ac_word
=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10501 case $PKG_CONFIG in
10503 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10507 for as_dir
in $PATH
10510 test -z "$as_dir" && as_dir
=.
10511 for ac_exec_ext
in '' $ac_executable_extensions; do
10512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10513 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10525 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10526 if test -n "$PKG_CONFIG"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10528 $as_echo "$PKG_CONFIG" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10536 if test "$PKG_CONFIG" = "no" ; then
10539 PKG_CONFIG_MIN_VERSION
=0.9.0
10540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10542 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10544 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10546 $as_echo "yes" >&6; }
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10550 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10551 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10553 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10556 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10557 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10559 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 IMAGEMAGICK_CFLAGS
=""
10564 IMAGEMAGICK_LIBS
=""
10565 ## If we have a custom action on failure, don't print errors, but
10566 ## do set a variable so people can do so.
10567 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10579 if test $succeeded = yes; then
10580 HAVE_IMAGEMAGICK
=yes
10588 if test $HAVE_IMAGEMAGICK = yes; then
10590 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10592 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10593 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10594 for ac_func
in MagickExportImagePixels
10596 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10597 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10598 cat >>confdefs.h
<<_ACEOF
10599 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10612 if test "${with_gtk3}" = "yes"; then
10615 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10620 # Extract the first word of "pkg-config", so it can be a program name with args.
10621 set dummy pkg-config
; ac_word
=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10627 case $PKG_CONFIG in
10629 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10633 for as_dir
in $PATH
10636 test -z "$as_dir" && as_dir
=.
10637 for ac_exec_ext
in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10639 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10651 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10652 if test -n "$PKG_CONFIG"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10654 $as_echo "$PKG_CONFIG" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10662 if test "$PKG_CONFIG" = "no" ; then
10665 PKG_CONFIG_MIN_VERSION
=0.9.0
10666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10668 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10670 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; }
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10676 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10677 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10679 $as_echo "$GTK_CFLAGS" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10682 $as_echo_n "checking GTK_LIBS... " >&6; }
10683 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10685 $as_echo "$GTK_LIBS" >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10691 ## If we have a custom action on failure, don't print errors, but
10692 ## do set a variable so people can do so.
10693 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10705 if test $succeeded = yes; then
10711 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10712 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10715 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10717 GTK_OBJ
=emacsgtkfixed.o
10720 if test "$pkg_check_gtk" != "yes"; then
10722 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10725 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10730 # Extract the first word of "pkg-config", so it can be a program name with args.
10731 set dummy pkg-config
; ac_word
=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 case $PKG_CONFIG in
10739 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10743 for as_dir
in $PATH
10746 test -z "$as_dir" && as_dir
=.
10747 for ac_exec_ext
in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10761 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10762 if test -n "$PKG_CONFIG"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10764 $as_echo "$PKG_CONFIG" >&6; }
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10772 if test "$PKG_CONFIG" = "no" ; then
10775 PKG_CONFIG_MIN_VERSION
=0.9.0
10776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10778 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10780 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10782 $as_echo "yes" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10786 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10787 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10789 $as_echo "$GTK_CFLAGS" >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10792 $as_echo_n "checking GTK_LIBS... " >&6; }
10793 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10795 $as_echo "$GTK_LIBS" >&6; }
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10801 ## If we have a custom action on failure, don't print errors, but
10802 ## do set a variable so people can do so.
10803 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10815 if test $succeeded = yes; then
10821 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10822 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10827 if test x
"$pkg_check_gtk" = xyes
; then
10831 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10832 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10833 LIBS
="$GTK_LIBS $LIBS"
10835 for ac_func
in gtk_main
10837 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10838 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10839 cat >>confdefs.h
<<_ACEOF
10840 #define HAVE_GTK_MAIN 1
10846 if test "${GTK_COMPILES}" != "yes"; then
10847 if test "$USE_X_TOOLKIT" != "maybe"; then
10848 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10853 $as_echo "#define USE_GTK 1" >>confdefs.h
10855 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10857 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10861 closing open displays. This is no problem if you just use
10862 one display, but if you use more than one and close one of them
10863 Emacs may crash." >&5
10864 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10865 closing open displays. This is no problem if you just use
10866 one display, but if you use more than one and close one of them
10867 Emacs may crash." >&2;}
10876 if test "${HAVE_GTK}" = "yes"; then
10878 if test "$with_toolkit_scroll_bars" != no
; then
10879 with_toolkit_scroll_bars
=yes
10882 HAVE_GTK_FILE_SELECTION
=no
10883 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10884 #include <gtk/gtk.h>
10886 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10887 HAVE_GTK_FILE_SELECTION
=yes
10889 HAVE_GTK_FILE_SELECTION
=no
10892 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10893 for ac_func
in gtk_file_selection_new
10895 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10896 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10897 cat >>confdefs.h
<<_ACEOF
10898 #define HAVE_GTK_FILE_SELECTION_NEW 1
10907 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10908 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10909 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10910 gtk_orientable_set_orientation
10912 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10914 eval as_val
=\$
$as_ac_var
10915 if test "x$as_val" = x
""yes; then :
10916 cat >>confdefs.h
<<_ACEOF
10917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 if test "${with_dbus}" = "yes"; then
10932 # Extract the first word of "pkg-config", so it can be a program name with args.
10933 set dummy pkg-config
; ac_word
=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10939 case $PKG_CONFIG in
10941 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10945 for as_dir
in $PATH
10948 test -z "$as_dir" && as_dir
=.
10949 for ac_exec_ext
in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10963 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10964 if test -n "$PKG_CONFIG"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10966 $as_echo "$PKG_CONFIG" >&6; }
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10974 if test "$PKG_CONFIG" = "no" ; then
10977 PKG_CONFIG_MIN_VERSION
=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10980 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10982 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10984 $as_echo "yes" >&6; }
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10988 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10989 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10991 $as_echo "$DBUS_CFLAGS" >&6; }
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10994 $as_echo_n "checking DBUS_LIBS... " >&6; }
10995 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10997 $as_echo "$DBUS_LIBS" >&6; }
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11017 if test $succeeded = yes; then
11023 if test "$HAVE_DBUS" = yes; then
11024 LIBS
="$LIBS $DBUS_LIBS"
11026 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11028 for ac_func
in dbus_watch_get_unix_fd
11030 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11031 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11032 cat >>confdefs.h
<<_ACEOF
11033 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11039 DBUS_OBJ
=dbusbind.o
11045 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11049 # Extract the first word of "pkg-config", so it can be a program name with args.
11050 set dummy pkg-config
; ac_word
=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11056 case $PKG_CONFIG in
11058 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11062 for as_dir
in $PATH
11065 test -z "$as_dir" && as_dir
=.
11066 for ac_exec_ext
in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11080 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11081 if test -n "$PKG_CONFIG"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11083 $as_echo "$PKG_CONFIG" >&6; }
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11091 if test "$PKG_CONFIG" = "no" ; then
11094 PKG_CONFIG_MIN_VERSION
=0.9.0
11095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11097 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11099 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11101 $as_echo "yes" >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11105 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11106 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11108 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11111 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11112 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11114 $as_echo "$GSETTINGS_LIBS" >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11118 GSETTINGS_CFLAGS
=""
11120 ## If we have a custom action on failure, don't print errors, but
11121 ## do set a variable so people can do so.
11122 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11134 if test $succeeded = yes; then
11140 if test "$HAVE_GSETTINGS" = "yes"; then
11142 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11144 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11145 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11150 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11154 # Extract the first word of "pkg-config", so it can be a program name with args.
11155 set dummy pkg-config
; ac_word
=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11161 case $PKG_CONFIG in
11163 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11167 for as_dir
in $PATH
11170 test -z "$as_dir" && as_dir
=.
11171 for ac_exec_ext
in '' $ac_executable_extensions; do
11172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11173 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11185 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11186 if test -n "$PKG_CONFIG"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11188 $as_echo "$PKG_CONFIG" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11196 if test "$PKG_CONFIG" = "no" ; then
11199 PKG_CONFIG_MIN_VERSION
=0.9.0
11200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11202 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11204 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206 $as_echo "yes" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11210 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11211 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11213 $as_echo "$GCONF_CFLAGS" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11216 $as_echo_n "checking GCONF_LIBS... " >&6; }
11217 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11219 $as_echo "$GCONF_LIBS" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11225 ## If we have a custom action on failure, don't print errors, but
11226 ## do set a variable so people can do so.
11227 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11239 if test $succeeded = yes; then
11245 if test "$HAVE_GCONF" = yes; then
11247 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11249 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11250 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11254 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11255 SAVE_CFLAGS
="$CFLAGS"
11256 SAVE_LDFLAGS
="$LDFLAGS"
11257 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11258 LDFLAGS
="$SETTINGS_LIBS $LDFLAGS"
11259 for ac_func
in g_type_init
11261 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11262 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11263 cat >>confdefs.h
<<_ACEOF
11264 #define HAVE_G_TYPE_INIT 1
11270 CFLAGS
="$SAVE_CFLAGS"
11271 LDFLAGS
="$SAVE_LDFLAGS"
11279 if test "${with_selinux}" = "yes"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11281 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11282 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11285 ac_check_lib_save_LIBS
=$LIBS
11286 LIBS
="-lselinux $LIBS"
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11296 char lgetfilecon ();
11300 return lgetfilecon ();
11305 if ac_fn_c_try_link
"$LINENO"; then :
11306 ac_cv_lib_selinux_lgetfilecon
=yes
11308 ac_cv_lib_selinux_lgetfilecon
=no
11310 rm -f core conftest.err conftest.
$ac_objext \
11311 conftest
$ac_exeext conftest.
$ac_ext
11312 LIBS
=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11315 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11316 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11317 HAVE_LIBSELINUX
=yes
11322 if test "$HAVE_LIBSELINUX" = yes; then
11324 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11326 LIBSELINUX_LIBS
=-lselinux
11332 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11333 if test "${with_gnutls}" = "yes" ; then
11337 # Extract the first word of "pkg-config", so it can be a program name with args.
11338 set dummy pkg-config
; ac_word
=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11344 case $PKG_CONFIG in
11346 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11350 for as_dir
in $PATH
11353 test -z "$as_dir" && as_dir
=.
11354 for ac_exec_ext
in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11368 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11369 if test -n "$PKG_CONFIG"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11371 $as_echo "$PKG_CONFIG" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11379 if test "$PKG_CONFIG" = "no" ; then
11382 PKG_CONFIG_MIN_VERSION
=0.9.0
11383 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11385 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11387 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11393 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11394 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11396 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11399 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11400 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11402 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 LIBGNUTLS_CFLAGS
=""
11408 ## If we have a custom action on failure, don't print errors, but
11409 ## do set a variable so people can do so.
11410 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11422 if test $succeeded = yes; then
11428 if test "${HAVE_GNUTLS}" = "yes"; then
11430 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11434 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11435 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11436 for ac_func
in gnutls_certificate_set_verify_function
11438 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11439 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11440 cat >>confdefs.h
<<_ACEOF
11441 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11443 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11448 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11450 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11460 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11461 if test "$with_xaw3d" != no
; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11463 $as_echo_n "checking for xaw3d... " >&6; }
11464 if test "${emacs_cv_xaw3d+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
11467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 #include <X11/Intrinsic.h>
11471 #include <X11/Xaw3d/Simple.h>
11480 if ac_fn_c_try_link
"$LINENO"; then :
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11482 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11483 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11486 ac_check_lib_save_LIBS
=$LIBS
11487 LIBS
="-lXaw3d $LIBS"
11488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11497 char XawScrollbarSetThumb ();
11501 return XawScrollbarSetThumb ();
11506 if ac_fn_c_try_link
"$LINENO"; then :
11507 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11509 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11511 rm -f core conftest.err conftest.
$ac_objext \
11512 conftest
$ac_exeext conftest.
$ac_ext
11513 LIBS
=$ac_check_lib_save_LIBS
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11516 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11517 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11526 rm -f core conftest.err conftest.
$ac_objext \
11527 conftest
$ac_exeext conftest.
$ac_ext
11533 if test $emacs_cv_xaw3d = yes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11535 $as_echo "yes; using Lucid toolkit" >&6; }
11536 USE_X_TOOLKIT
=LUCID
11540 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11546 $as_echo_n "checking for libXaw... " >&6; }
11547 if test "${emacs_cv_xaw+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 #include <X11/Intrinsic.h>
11554 #include <X11/Xaw/Simple.h>
11563 if ac_fn_c_try_link
"$LINENO"; then :
11568 rm -f core conftest.err conftest.
$ac_objext \
11569 conftest
$ac_exeext conftest.
$ac_ext
11572 if test $emacs_cv_xaw = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11574 $as_echo "yes; using Lucid toolkit" >&6; }
11575 USE_X_TOOLKIT
=LUCID
11577 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11578 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11580 as_fn_error
"No X toolkit could be found.
11581 If you are sure you want Emacs compiled without an X toolkit, pass
11582 --with-x-toolkit=no
11583 to configure. Otherwise, install the development libraries for the toolkit
11584 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11589 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11592 if test "${USE_X_TOOLKIT}" != "none"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11594 $as_echo_n "checking X11 toolkit version... " >&6; }
11595 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600 #include <X11/Intrinsic.h>
11604 #if XtSpecificationRelease < 6
11612 if ac_fn_c_try_link
"$LINENO"; then :
11613 emacs_cv_x11_toolkit_version_6
=yes
11615 emacs_cv_x11_toolkit_version_6
=no
11617 rm -f core conftest.err conftest.
$ac_objext \
11618 conftest
$ac_exeext conftest.
$ac_ext
11621 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11622 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11624 $as_echo "6 or newer" >&6; }
11626 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11628 LIBXTR6
="-lSM -lICE"
11630 ## Use libw.a along with X11R6 Xt.
11631 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11635 $as_echo "before 6" >&6; }
11639 if test x
$HAVE_X11XTR6 = xyes
; then
11640 LIBS
="-lXt -lSM -lICE $LIBS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11645 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11646 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11649 ac_check_lib_save_LIBS
=$LIBS
11651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11660 char XmuConvertStandardSelection ();
11664 return XmuConvertStandardSelection ();
11669 if ac_fn_c_try_link
"$LINENO"; then :
11670 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11672 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11674 rm -f core conftest.err conftest.
$ac_objext \
11675 conftest
$ac_exeext conftest.
$ac_ext
11676 LIBS
=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11679 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11680 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11681 cat >>confdefs.h
<<_ACEOF
11682 #define HAVE_LIBXMU 1
11689 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11695 ## These systems don't supply Xmu.
11697 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11702 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11703 if test "${HAVE_X11}" = "yes"; then
11704 if test "${USE_X_TOOLKIT}" != "none"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11706 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11710 ac_check_lib_save_LIBS
=$LIBS
11711 LIBS
="-lXext $LIBS"
11712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11721 char XShapeQueryExtension ();
11725 return XShapeQueryExtension ();
11730 if ac_fn_c_try_link
"$LINENO"; then :
11731 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11733 ac_cv_lib_Xext_XShapeQueryExtension
=no
11735 rm -f core conftest.err conftest.
$ac_objext \
11736 conftest
$ac_exeext conftest.
$ac_ext
11737 LIBS
=$ac_check_lib_save_LIBS
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11740 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11741 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11742 cat >>confdefs.h
<<_ACEOF
11743 #define HAVE_LIBXEXT 1
11746 LIBS
="-lXext $LIBS"
11754 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11756 $as_echo_n "checking for Motif version 2.1... " >&6; }
11757 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11766 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11769 Motif version prior to 2.1.
11775 if ac_fn_c_try_compile
"$LINENO"; then :
11776 emacs_cv_motif_version_2_1
=yes
11778 emacs_cv_motif_version_2_1
=no
11780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11783 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11784 if test $emacs_cv_motif_version_2_1 = yes; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11786 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11787 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11788 $as_echo_n "(cached) " >&6
11790 ac_check_lib_save_LIBS
=$LIBS
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11801 char XpCreateContext ();
11805 return XpCreateContext ();
11810 if ac_fn_c_try_link
"$LINENO"; then :
11811 ac_cv_lib_Xp_XpCreateContext
=yes
11813 ac_cv_lib_Xp_XpCreateContext
=no
11815 rm -f core conftest.err conftest.
$ac_objext \
11816 conftest
$ac_exeext conftest.
$ac_ext
11817 LIBS
=$ac_check_lib_save_LIBS
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11820 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11821 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11827 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11828 if test "${emacs_cv_lesstif+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11831 # We put this in CFLAGS temporarily to precede other -I options
11832 # that might be in CFLAGS temporarily.
11833 # We put this in CPPFLAGS where it precedes the other -I options.
11834 OLD_CPPFLAGS
=$CPPFLAGS
11836 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11837 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11840 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11849 if ac_fn_c_try_compile
"$LINENO"; then :
11850 emacs_cv_lesstif
=yes
11852 emacs_cv_lesstif
=no
11854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11857 $as_echo "$emacs_cv_lesstif" >&6; }
11858 if test $emacs_cv_lesstif = yes; then
11859 # Make sure this -I option remains in CPPFLAGS after it is set
11860 # back to REAL_CPPFLAGS.
11861 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11862 # have those other -I options anyway. Ultimately, having this
11863 # directory ultimately in CPPFLAGS will be enough.
11864 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11865 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11868 CPPFLAGS
=$OLD_CPPFLAGS
11874 USE_TOOLKIT_SCROLL_BARS
=no
11875 if test "${with_toolkit_scroll_bars}" != "no"; then
11876 if test "${USE_X_TOOLKIT}" != "none"; then
11877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11881 USE_TOOLKIT_SCROLL_BARS
=yes
11882 elif test "${HAVE_XAW3D}" = "yes"; then
11883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11885 USE_TOOLKIT_SCROLL_BARS
=yes
11887 elif test "${HAVE_GTK}" = "yes"; then
11888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11890 USE_TOOLKIT_SCROLL_BARS
=yes
11891 elif test "${HAVE_NS}" = "yes"; then
11892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11894 USE_TOOLKIT_SCROLL_BARS
=yes
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 #include <X11/Xlib.h>
11902 #include <X11/Xresource.h>
11911 if ac_fn_c_try_compile
"$LINENO"; then :
11914 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11922 if test "${with_xim}" != "no"; then
11924 $as_echo "#define USE_XIM 1" >>confdefs.h
11929 if test "${HAVE_XIM}" != "no"; then
11930 late_CFLAGS
=$CFLAGS
11931 if test "$GCC" = yes; then
11932 CFLAGS
="$CFLAGS --pedantic-errors"
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 #include <X11/Xlib.h>
11938 #include <X11/Xresource.h>
11947 XPointer *client_data;
11949 /* If we're not using GCC, it's probably not XFree86, and this is
11950 probably right, but we can't use something like --pedantic-errors. */
11951 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11952 char*, XIMProc, XPointer*);
11954 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11960 if ac_fn_c_try_compile
"$LINENO"; then :
11961 emacs_cv_arg6_star
=yes
11963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11964 if test "$emacs_cv_arg6_star" = yes; then
11965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11971 CFLAGS
=$late_CFLAGS
11974 ### Start of font-backend (under any platform) section.
11975 # (nothing here yet -- this is a placeholder)
11976 ### End of font-backend (under any platform) section.
11978 ### Start of font-backend (under X11) section.
11979 if test "${HAVE_X11}" = "yes"; then
11983 # Extract the first word of "pkg-config", so it can be a program name with args.
11984 set dummy pkg-config
; ac_word
=$2
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11986 $as_echo_n "checking for $ac_word... " >&6; }
11987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11990 case $PKG_CONFIG in
11992 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11996 for as_dir
in $PATH
11999 test -z "$as_dir" && as_dir
=.
12000 for ac_exec_ext
in '' $ac_executable_extensions; do
12001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12002 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12014 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12015 if test -n "$PKG_CONFIG"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12017 $as_echo "$PKG_CONFIG" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12025 if test "$PKG_CONFIG" = "no" ; then
12028 PKG_CONFIG_MIN_VERSION
=0.9.0
12029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12031 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035 $as_echo "yes" >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12039 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12040 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12042 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12045 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12046 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12048 $as_echo "$FONTCONFIG_LIBS" >&6; }
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12052 FONTCONFIG_CFLAGS
=""
12054 ## If we have a custom action on failure, don't print errors, but
12055 ## do set a variable so people can do so.
12056 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12068 if test $succeeded = yes; then
12075 ## Use -lXft if available, unless `--with-xft=no'.
12077 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12080 if test "x${with_xft}" != "xno"; then
12085 # Extract the first word of "pkg-config", so it can be a program name with args.
12086 set dummy pkg-config
; ac_word
=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12092 case $PKG_CONFIG in
12094 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12098 for as_dir
in $PATH
12101 test -z "$as_dir" && as_dir
=.
12102 for ac_exec_ext
in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12116 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12117 if test -n "$PKG_CONFIG"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12119 $as_echo "$PKG_CONFIG" >&6; }
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12127 if test "$PKG_CONFIG" = "no" ; then
12130 PKG_CONFIG_MIN_VERSION
=0.9.0
12131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12133 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137 $as_echo "yes" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12141 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12142 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12144 $as_echo "$XFT_CFLAGS" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12147 $as_echo_n "checking XFT_LIBS... " >&6; }
12148 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12150 $as_echo "$XFT_LIBS" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12156 ## If we have a custom action on failure, don't print errors, but
12157 ## do set a variable so people can do so.
12158 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12170 if test $succeeded = yes; then
12176 ## Because xftfont.c uses XRenderQueryExtension, we also
12177 ## need to link to -lXrender.
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12184 ac_check_lib_save_LIBS
=$LIBS
12185 LIBS
="-lXrender $LIBS"
12186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12195 char XRenderQueryExtension ();
12199 return XRenderQueryExtension ();
12204 if ac_fn_c_try_link
"$LINENO"; then :
12205 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12207 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12209 rm -f core conftest.err conftest.
$ac_objext \
12210 conftest
$ac_exeext conftest.
$ac_ext
12211 LIBS
=$ac_check_lib_save_LIBS
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12219 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12220 OLD_CPPFLAGS
="$CPPFLAGS"
12221 OLD_CFLAGS
="$CFLAGS"
12223 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12224 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12225 XFT_LIBS
="-lXrender $XFT_LIBS"
12226 LIBS
="$XFT_LIBS $LIBS"
12227 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12234 ac_check_lib_save_LIBS
=$LIBS
12235 LIBS
="-lXft $XFT_LIBS $LIBS"
12236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char XftFontOpen ();
12249 return XftFontOpen ();
12254 if ac_fn_c_try_link
"$LINENO"; then :
12255 ac_cv_lib_Xft_XftFontOpen
=yes
12257 ac_cv_lib_Xft_XftFontOpen
=no
12259 rm -f core conftest.err conftest.
$ac_objext \
12260 conftest
$ac_exeext conftest.
$ac_ext
12261 LIBS
=$ac_check_lib_save_LIBS
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12273 if test "${HAVE_XFT}" = "yes"; then
12275 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12278 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12280 CPPFLAGS
="$OLD_CPPFLAGS"
12281 CFLAGS
="$OLD_CFLAGS"
12283 fi # "${HAVE_XFT}" = "yes"
12284 fi # "$HAVE_XFT" != no
12285 fi # "x${with_xft}" != "xno"
12287 ## We used to allow building with FreeType and without Xft.
12288 ## However, the ftx font backend driver is not in good shape.
12289 if test "$HAVE_XFT" != "yes"; then
12296 # Extract the first word of "pkg-config", so it can be a program name with args.
12297 set dummy pkg-config
; ac_word
=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12303 case $PKG_CONFIG in
12305 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12309 for as_dir
in $PATH
12312 test -z "$as_dir" && as_dir
=.
12313 for ac_exec_ext
in '' $ac_executable_extensions; do
12314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12315 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12327 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12328 if test -n "$PKG_CONFIG"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12330 $as_echo "$PKG_CONFIG" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12338 if test "$PKG_CONFIG" = "no" ; then
12341 PKG_CONFIG_MIN_VERSION
=0.9.0
12342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12344 $as_echo_n "checking for freetype2... " >&6; }
12346 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12352 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12353 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12355 $as_echo "$FREETYPE_CFLAGS" >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12358 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12359 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12361 $as_echo "$FREETYPE_LIBS" >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12367 ## If we have a custom action on failure, don't print errors, but
12368 ## do set a variable so people can do so.
12369 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12381 if test $succeeded = yes; then
12388 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12392 if test "${HAVE_FREETYPE}" = "yes"; then
12394 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12396 if test "${with_libotf}" != "no"; then
12400 # Extract the first word of "pkg-config", so it can be a program name with args.
12401 set dummy pkg-config
; ac_word
=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 case $PKG_CONFIG in
12409 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12413 for as_dir
in $PATH
12416 test -z "$as_dir" && as_dir
=.
12417 for ac_exec_ext
in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12431 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12432 if test -n "$PKG_CONFIG"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12434 $as_echo "$PKG_CONFIG" >&6; }
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12442 if test "$PKG_CONFIG" = "no" ; then
12445 PKG_CONFIG_MIN_VERSION
=0.9.0
12446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12448 $as_echo_n "checking for libotf... " >&6; }
12450 if $PKG_CONFIG --exists "libotf" 2>&5; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12456 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12457 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12459 $as_echo "$LIBOTF_CFLAGS" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12462 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12463 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12465 $as_echo "$LIBOTF_LIBS" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12471 ## If we have a custom action on failure, don't print errors, but
12472 ## do set a variable so people can do so.
12473 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12485 if test $succeeded = yes; then
12491 if test "$HAVE_LIBOTF" = "yes"; then
12493 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12496 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12497 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12500 ac_check_lib_save_LIBS
=$LIBS
12502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12511 char OTF_get_variation_glyphs ();
12515 return OTF_get_variation_glyphs ();
12520 if ac_fn_c_try_link
"$LINENO"; then :
12521 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12523 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12525 rm -f core conftest.err conftest.
$ac_objext \
12526 conftest
$ac_exeext conftest.
$ac_ext
12527 LIBS
=$ac_check_lib_save_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12530 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12531 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12532 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12534 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12537 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12539 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12547 if test "${HAVE_LIBOTF}" = yes; then
12548 if test "${with_m17n_flt}" != "no"; then
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config
; ac_word
=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 case $PKG_CONFIG in
12561 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12565 for as_dir
in $PATH
12568 test -z "$as_dir" && as_dir
=.
12569 for ac_exec_ext
in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12583 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12586 $as_echo "$PKG_CONFIG" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test "$PKG_CONFIG" = "no" ; then
12597 PKG_CONFIG_MIN_VERSION
=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12600 $as_echo_n "checking for m17n-flt... " >&6; }
12602 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12608 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12609 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12611 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12614 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12615 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12617 $as_echo "$M17N_FLT_LIBS" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 if test $succeeded = yes; then
12643 if test "$HAVE_M17N_FLT" = "yes"; then
12645 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12657 ### End of font-backend (under X11) section.
12668 ### Use -lXpm if available, unless `--with-xpm=no'.
12671 if test "${HAVE_X11}" = "yes"; then
12672 if test "${with_xpm}" != "no"; then
12673 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12676 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12677 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12680 ac_check_lib_save_LIBS
=$LIBS
12681 LIBS
="-lXpm -lX11 $LIBS"
12682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12691 char XpmReadFileToPixmap ();
12695 return XpmReadFileToPixmap ();
12700 if ac_fn_c_try_link
"$LINENO"; then :
12701 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12703 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12705 rm -f core conftest.err conftest.
$ac_objext \
12706 conftest
$ac_exeext conftest.
$ac_ext
12707 LIBS
=$ac_check_lib_save_LIBS
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12710 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12711 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12718 if test "${HAVE_XPM}" = "yes"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12720 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #include "X11/xpm.h"
12724 #ifndef XpmReturnAllocPixels
12725 no_return_alloc_pixels
12729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12730 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12738 if test "${HAVE_XPM}" = "yes"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12740 $as_echo "yes" >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12748 if test "${HAVE_XPM}" = "yes"; then
12750 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12757 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12760 if test "${HAVE_X11}" = "yes"; then
12761 if test "${with_jpeg}" != "no"; then
12762 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12763 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12765 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12766 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12769 ac_check_lib_save_LIBS
=$LIBS
12770 LIBS
="-ljpeg $LIBS"
12771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12780 char jpeg_destroy_compress ();
12784 return jpeg_destroy_compress ();
12789 if ac_fn_c_try_link
"$LINENO"; then :
12790 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12792 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12794 rm -f core conftest.err conftest.
$ac_objext \
12795 conftest
$ac_exeext conftest.
$ac_ext
12796 LIBS
=$ac_check_lib_save_LIBS
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12799 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12800 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12809 if test "${HAVE_JPEG}" = "yes"; then
12810 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 #include <jpeglib.h>
12815 version=JPEG_LIB_VERSION
12818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12819 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12820 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12824 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12830 if test "${HAVE_JPEG}" = "yes"; then
12836 ### Use -lpng if available, unless `--with-png=no'.
12839 if test "${HAVE_X11}" = "yes"; then
12840 if test "${with_png}" != "no"; then
12841 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12842 # in /usr/include/libpng.
12843 for ac_header
in png.h libpng
/png.h
12845 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12846 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12847 eval as_val
=\$
$as_ac_Header
12848 if test "x$as_val" = x
""yes; then :
12849 cat >>confdefs.h
<<_ACEOF
12850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12857 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12859 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12860 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12863 ac_check_lib_save_LIBS
=$LIBS
12864 LIBS
="-lpng -lz -lm $LIBS"
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12874 char png_get_channels ();
12878 return png_get_channels ();
12883 if ac_fn_c_try_link
"$LINENO"; then :
12884 ac_cv_lib_png_png_get_channels
=yes
12886 ac_cv_lib_png_png_get_channels
=no
12888 rm -f core conftest.err conftest.
$ac_objext \
12889 conftest
$ac_exeext conftest.
$ac_ext
12890 LIBS
=$ac_check_lib_save_LIBS
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12893 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12894 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12901 if test "${HAVE_PNG}" = "yes"; then
12903 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12905 LIBPNG
="-lpng -lz -lm"
12910 ### Use -ltiff if available, unless `--with-tiff=no'.
12913 if test "${HAVE_X11}" = "yes"; then
12914 if test "${with_tiff}" != "no"; then
12915 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12916 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12918 # At least one tiff package requires the jpeg library.
12919 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12921 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12922 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 ac_check_lib_save_LIBS
=$LIBS
12926 LIBS
="-ltiff $tifflibs $LIBS"
12927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12930 /* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
12936 char TIFFGetVersion ();
12940 return TIFFGetVersion ();
12945 if ac_fn_c_try_link
"$LINENO"; then :
12946 ac_cv_lib_tiff_TIFFGetVersion
=yes
12948 ac_cv_lib_tiff_TIFFGetVersion
=no
12950 rm -f core conftest.err conftest.
$ac_objext \
12951 conftest
$ac_exeext conftest.
$ac_ext
12952 LIBS
=$ac_check_lib_save_LIBS
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12955 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12956 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12965 if test "${HAVE_TIFF}" = "yes"; then
12967 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12974 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12977 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12978 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12979 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12980 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12981 # Earlier versions can crash Emacs.
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12983 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12984 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12985 $as_echo_n "(cached) " >&6
12987 ac_check_lib_save_LIBS
=$LIBS
12989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12992 /* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
12998 char EGifPutExtensionLast ();
13002 return EGifPutExtensionLast ();
13007 if ac_fn_c_try_link
"$LINENO"; then :
13008 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13010 ac_cv_lib_gif_EGifPutExtensionLast
=no
13012 rm -f core conftest.err conftest.
$ac_objext \
13013 conftest
$ac_exeext conftest.
$ac_ext
13014 LIBS
=$ac_check_lib_save_LIBS
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13017 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13018 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13028 if test "$HAVE_GIF" = yes; then
13030 elif test "$HAVE_GIF" = maybe
; then
13031 # If gif_lib.h but no libgif, try libungif.
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13033 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13034 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13037 ac_check_lib_save_LIBS
=$LIBS
13038 LIBS
="-lungif $LIBS"
13039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13042 /* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13048 char EGifPutExtensionLast ();
13052 return EGifPutExtensionLast ();
13057 if ac_fn_c_try_link
"$LINENO"; then :
13058 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13060 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13062 rm -f core conftest.err conftest.
$ac_objext \
13063 conftest
$ac_exeext conftest.
$ac_ext
13064 LIBS
=$ac_check_lib_save_LIBS
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13067 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13068 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13074 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13077 if test "${HAVE_GIF}" = "yes"; then
13079 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13085 if test "${HAVE_X11}" = "yes"; then
13088 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13089 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13090 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13091 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13092 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13093 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13094 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13095 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13096 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13097 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13099 if test "X${MISSING}" != X
; then
13100 as_fn_error
"The following required libraries were not found:
13102 Maybe some development libraries/packages are missing?
13103 If you don't want to link with them give
13105 as options to configure" "$LINENO" 5
13109 ### Use -lgpm if available, unless `--with-gpm=no'.
13112 if test "${with_gpm}" != "no"; then
13113 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13114 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13116 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13117 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13118 $as_echo_n "(cached) " >&6
13120 ac_check_lib_save_LIBS
=$LIBS
13122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13135 return Gpm_Open ();
13140 if ac_fn_c_try_link
"$LINENO"; then :
13141 ac_cv_lib_gpm_Gpm_Open
=yes
13143 ac_cv_lib_gpm_Gpm_Open
=no
13145 rm -f core conftest.err conftest.
$ac_objext \
13146 conftest
$ac_exeext conftest.
$ac_ext
13147 LIBS
=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13150 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13151 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13159 if test "${HAVE_GPM}" = "yes"; then
13161 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13168 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13171 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13178 ### Use NeXTstep API to implement GUI.
13179 if test "${HAVE_NS}" = "yes"; then
13181 $as_echo "#define HAVE_NS 1" >>confdefs.h
13183 if test "${NS_IMPL_COCOA}" = "yes"; then
13185 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13189 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13191 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13193 # See also .m.o rule in Makefile.in */
13194 # FIXME: are all these flags really needed? Document here why. */
13195 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
13196 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13198 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13200 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13203 # We also have mouse menus.
13209 ### Use session management (-lSM -lICE) if available
13212 if test "${HAVE_X11}" = "yes"; then
13213 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13216 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13217 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13220 ac_check_lib_save_LIBS
=$LIBS
13221 LIBS
="-lSM -lICE $LIBS"
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13231 char SmcOpenConnection ();
13235 return SmcOpenConnection ();
13240 if ac_fn_c_try_link
"$LINENO"; then :
13241 ac_cv_lib_SM_SmcOpenConnection
=yes
13243 ac_cv_lib_SM_SmcOpenConnection
=no
13245 rm -f core conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13250 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13251 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13259 if test "${HAVE_X_SM}" = "yes"; then
13261 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13263 LIBXSM
="-lSM -lICE"
13266 *) LIBS
="$LIBXSM $LIBS" ;;
13272 ### Use libxml (-lxml2) if available
13273 if test "${with_xml2}" != "no"; then
13274 ### I'm not sure what the version number should be, so I just guessed.
13278 # Extract the first word of "pkg-config", so it can be a program name with args.
13279 set dummy pkg-config
; ac_word
=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13285 case $PKG_CONFIG in
13287 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13291 for as_dir
in $PATH
13294 test -z "$as_dir" && as_dir
=.
13295 for ac_exec_ext
in '' $ac_executable_extensions; do
13296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13297 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13309 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13310 if test -n "$PKG_CONFIG"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13312 $as_echo "$PKG_CONFIG" >&6; }
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13320 if test "$PKG_CONFIG" = "no" ; then
13323 PKG_CONFIG_MIN_VERSION
=0.9.0
13324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13326 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13328 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330 $as_echo "yes" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13334 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13335 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13337 $as_echo "$LIBXML2_CFLAGS" >&6; }
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13340 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13341 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13343 $as_echo "$LIBXML2_LIBS" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13349 ## If we have a custom action on failure, don't print errors, but
13350 ## do set a variable so people can do so.
13351 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13358 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13359 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13363 if test $succeeded = yes; then
13369 if test "${HAVE_LIBXML2}" = "yes"; then
13370 LIBS
="$LIBXML2_LIBS $LIBS"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13372 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13373 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 ac_check_lib_save_LIBS
=$LIBS
13377 LIBS
="-lxml2 $LIBS"
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13387 char htmlReadMemory ();
13391 return htmlReadMemory ();
13396 if ac_fn_c_try_link
"$LINENO"; then :
13397 ac_cv_lib_xml2_htmlReadMemory
=yes
13399 ac_cv_lib_xml2_htmlReadMemory
=no
13401 rm -f core conftest.err conftest.
$ac_objext \
13402 conftest
$ac_exeext conftest.
$ac_ext
13403 LIBS
=$ac_check_lib_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13406 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13407 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13413 if test "${HAVE_LIBXML2}" = "yes"; then
13415 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13426 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13428 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13429 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13443 if ac_fn_c_try_link
"$LINENO"; then :
13444 emacs_cv_netdb_declares_h_errno
=yes
13446 emacs_cv_netdb_declares_h_errno
=no
13448 rm -f core conftest.err conftest.
$ac_objext \
13449 conftest
$ac_exeext conftest.
$ac_ext
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13452 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13453 if test $emacs_cv_netdb_declares_h_errno = yes; then
13455 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13459 # fmod, logb, and frexp are found in -lm on most systems.
13460 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13462 $as_echo_n "checking for sqrt in -lm... " >&6; }
13463 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13466 ac_check_lib_save_LIBS
=$LIBS
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13486 if ac_fn_c_try_link
"$LINENO"; then :
13487 ac_cv_lib_m_sqrt
=yes
13489 ac_cv_lib_m_sqrt
=no
13491 rm -f core conftest.err conftest.
$ac_objext \
13492 conftest
$ac_exeext conftest.
$ac_ext
13493 LIBS
=$ac_check_lib_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13496 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13497 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13498 cat >>confdefs.h
<<_ACEOF
13499 #define HAVE_LIBM 1
13507 # Check for mail-locking functions in a "mail" library. Probably this should
13508 # have the same check as for liblockfile below.
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13510 $as_echo_n "checking for maillock in -lmail... " >&6; }
13511 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13512 $as_echo_n "(cached) " >&6
13514 ac_check_lib_save_LIBS
=$LIBS
13515 LIBS
="-lmail $LIBS"
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13529 return maillock ();
13534 if ac_fn_c_try_link
"$LINENO"; then :
13535 ac_cv_lib_mail_maillock
=yes
13537 ac_cv_lib_mail_maillock
=no
13539 rm -f core conftest.err conftest.
$ac_objext \
13540 conftest
$ac_exeext conftest.
$ac_ext
13541 LIBS
=$ac_check_lib_save_LIBS
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13544 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13545 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13551 if test $have_mail = yes; then
13553 LIBS
="$LIBS_MAIL $LIBS"
13555 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13561 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13562 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13565 ac_check_lib_save_LIBS
=$LIBS
13566 LIBS
="-llockfile $LIBS"
13567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13580 return maillock ();
13585 if ac_fn_c_try_link
"$LINENO"; then :
13586 ac_cv_lib_lockfile_maillock
=yes
13588 ac_cv_lib_lockfile_maillock
=no
13590 rm -f core conftest.err conftest.
$ac_objext \
13591 conftest
$ac_exeext conftest.
$ac_ext
13592 LIBS
=$ac_check_lib_save_LIBS
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13595 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13596 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13602 if test $have_lockfile = yes; then
13603 LIBS_MAIL
=-llockfile
13604 LIBS
="$LIBS_MAIL $LIBS"
13606 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13609 # If we have the shared liblockfile, assume we must use it for mail
13610 # locking (e.g. Debian). If we couldn't link against liblockfile
13611 # (no liblockfile.a installed), ensure that we don't need to.
13612 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13613 set dummy liblockfile.so
; ac_word
=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13615 $as_echo_n "checking for $ac_word... " >&6; }
13616 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13619 if test -n "$liblockfile"; then
13620 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13623 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13624 for as_dir
in $as_dummy
13627 test -z "$as_dir" && as_dir
=.
13628 for ac_exec_ext
in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13630 ac_cv_prog_liblockfile
="yes"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13641 liblockfile
=$ac_cv_prog_liblockfile
13642 if test -n "$liblockfile"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13644 $as_echo "$liblockfile" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13651 if test $ac_cv_prog_liblockfile = yes; then
13652 as_fn_error
"Shared liblockfile found but can't link against it.
13653 This probably means that movemail could lose mail.
13654 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13657 for ac_func
in touchlock
13659 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13660 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13661 cat >>confdefs.h
<<_ACEOF
13662 #define HAVE_TOUCHLOCK 1
13668 for ac_header
in maillock.h
13670 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13672 cat >>confdefs.h
<<_ACEOF
13673 #define HAVE_MAILLOCK_H 1
13682 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13683 ## interlock access to the mail spool. The alternative is a lock file named
13684 ## /usr/spool/mail/$USER.lock.
13687 aix4-2
) mail_lock
="lockf" ;;
13689 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13691 ## On GNU/Linux systems, both methods are used by various mail programs.
13692 ## I assume most people are using newer mailers that have heard of flock.
13693 ## Change this if you need to.
13694 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13695 ## configure gets the right answers, and that means *NOT* using flock.
13696 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13697 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13698 ## Debian maintainer hasn't provided a clean fix for Emacs.
13699 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13700 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13701 ## correct logic. -- fx
13702 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13703 ## liblockfile is a Free Software replacement for libmail, used on
13704 ## Debian systems and elsewhere. -rfr.
13707 if test $have_mail = yes ||
test $have_lockfile = yes; then
13708 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13714 case "$mail_lock" in
13716 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13720 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13723 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13728 for ac_func
in gethostname getdomainname \
13729 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13730 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13731 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13732 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13733 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13734 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13735 gai_strerror mkstemp getline getdelim mremap fsync sync \
13736 difftime mempcpy mblen mbrlen posix_memalign \
13737 cfmakeraw cfsetspeed isnan copysign __executable_start
13739 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13740 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13741 eval as_val
=\$
$as_ac_var
13742 if test "x$as_val" = x
""yes; then :
13743 cat >>confdefs.h
<<_ACEOF
13744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13752 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13753 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13762 __builtin_unwind_init ();
13767 if ac_fn_c_try_link
"$LINENO"; then :
13768 emacs_cv_func___builtin_unwind_init
=yes
13770 emacs_cv_func___builtin_unwind_init
=no
13772 rm -f core conftest.err conftest.
$ac_objext \
13773 conftest
$ac_exeext conftest.
$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13776 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13777 if test $emacs_cv_func___builtin_unwind_init = yes; then
13779 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13783 for ac_header
in sys
/un.h
13785 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13786 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13787 cat >>confdefs.h
<<_ACEOF
13788 #define HAVE_SYS_UN_H 1
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13797 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13798 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #include <sys/types.h> /* for off_t */
13809 int (*fp) (FILE *, off_t, int) = fseeko;
13810 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13815 if ac_fn_c_try_link
"$LINENO"; then :
13816 ac_cv_sys_largefile_source
=no
; break
13818 rm -f core conftest.err conftest.
$ac_objext \
13819 conftest
$ac_exeext conftest.
$ac_ext
13820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822 #define _LARGEFILE_SOURCE 1
13823 #include <sys/types.h> /* for off_t */
13828 int (*fp) (FILE *, off_t, int) = fseeko;
13829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13834 if ac_fn_c_try_link
"$LINENO"; then :
13835 ac_cv_sys_largefile_source
=1; break
13837 rm -f core conftest.err conftest.
$ac_objext \
13838 conftest
$ac_exeext conftest.
$ac_ext
13839 ac_cv_sys_largefile_source
=unknown
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13844 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13845 case $ac_cv_sys_largefile_source in #(
13848 cat >>confdefs.h
<<_ACEOF
13849 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13855 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13856 # in glibc 2.1.3, but that breaks too many other things.
13857 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13858 if test $ac_cv_sys_largefile_source != unknown
; then
13860 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13866 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13867 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13870 # Use it with a single arg.
13871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 $ac_includes_default
13882 if ac_fn_c_try_compile
"$LINENO"; then :
13883 ac_cv_func_getpgrp_void
=no
13885 ac_cv_func_getpgrp_void
=yes
13887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13891 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13892 if test $ac_cv_func_getpgrp_void = yes; then
13894 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13900 for ac_func
in grantpt
13902 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13903 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13904 cat >>confdefs.h
<<_ACEOF
13905 #define HAVE_GRANTPT 1
13912 # PTY-related GNU extensions.
13913 for ac_func
in getpt
13915 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
13916 if test "x$ac_cv_func_getpt" = x
""yes; then :
13917 cat >>confdefs.h
<<_ACEOF
13918 #define HAVE_GETPT 1
13925 # Check this now, so that we will NOT find the above functions in ncurses.
13926 # That is because we have not set up to link ncurses in lib-src.
13927 # It's better to believe a function is not available
13928 # than to expect to find it in ncurses.
13929 # Also we need tputs and friends to be able to build at all.
13930 have_tputs_et_al
=true
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13932 $as_echo_n "checking for library containing tputs... " >&6; }
13933 if test "${ac_cv_search_tputs+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13936 ac_func_search_save_LIBS
=$LIBS
13937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 /* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
13955 for ac_lib
in '' ncurses terminfo termcap
; do
13956 if test -z "$ac_lib"; then
13957 ac_res
="none required"
13960 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13962 if ac_fn_c_try_link
"$LINENO"; then :
13963 ac_cv_search_tputs
=$ac_res
13965 rm -f core conftest.err conftest.
$ac_objext \
13967 if test "${ac_cv_search_tputs+set}" = set; then :
13971 if test "${ac_cv_search_tputs+set}" = set; then :
13974 ac_cv_search_tputs
=no
13976 rm conftest.
$ac_ext
13977 LIBS
=$ac_func_search_save_LIBS
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13980 $as_echo "$ac_cv_search_tputs" >&6; }
13981 ac_res
=$ac_cv_search_tputs
13982 if test "$ac_res" != no
; then :
13983 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13986 have_tputs_et_al
=false
13989 if test "$have_tputs_et_al" != true
; then
13990 as_fn_error
"I couldn't find termcap functions (tputs and friends).
13991 Maybe some development libraries/packages are missing? Try installing
13992 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13994 # Must define this when any termcap library is found.
13996 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13998 ## FIXME This was the cpp logic, but I am not sure it is right.
13999 ## The above test has not necessarily found libncurses.
14000 HAVE_LIBNCURSES
=yes
14002 ## Use terminfo instead of termcap?
14003 ## Note only system files NOT using terminfo are:
14004 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14005 ## darwin|gnu without ncurses.
14009 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14010 ## hpux10-20: Use the system provided termcap(3) library.
14011 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14012 ## is necessary. Otherwise Emacs dumps core when run -nw.
14013 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14015 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14016 ## The ncurses library has been moved out of the System framework in
14017 ## Mac OS X 10.2. So if configure detects it, set the command-line
14018 ## option to use it.
14020 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14021 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14023 LIBS_TERMCAP
="-lncurses"
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14029 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14030 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <osreldate.h>
14039 #if __FreeBSD_version < 400000
14047 if ac_fn_c_try_link
"$LINENO"; then :
14048 emacs_cv_freebsd_terminfo
=yes
14050 emacs_cv_freebsd_terminfo
=no
14052 rm -f core conftest.err conftest.
$ac_objext \
14053 conftest
$ac_exeext conftest.
$ac_ext
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14058 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14060 if test $emacs_cv_freebsd_terminfo = yes; then
14062 LIBS_TERMCAP
="-lncurses"
14064 LIBS_TERMCAP
="-ltermcap"
14069 if test $ac_cv_search_tputs = -lterminfo; then
14071 LIBS_TERMCAP
="-lterminfo"
14073 LIBS_TERMCAP
="-ltermcap"
14080 ## hpux: Make sure we get select from libc rather than from libcurses
14081 ## because libcurses on HPUX 10.10 has a broken version of select.
14082 ## We used to use -lc -lcurses, but this may be cleaner.
14083 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14085 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14087 ## Must use system termcap, if we use any termcap. It does special things.
14088 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14091 TERMCAP_OBJ
=tparam.o
14092 if test $TERMINFO = yes; then
14094 $as_echo "#define TERMINFO 1" >>confdefs.h
14097 ## Default used to be -ltermcap. Add a case above if need something else.
14098 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14100 TERMCAP_OBJ
=terminfo.o
14106 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14110 #include <netinet/in.h>
14111 #include <arpa/nameser.h>
14112 #include <resolv.h>
14121 if ac_fn_c_try_link
"$LINENO"; then :
14126 rm -f core conftest.err conftest.
$ac_objext \
14127 conftest
$ac_exeext conftest.
$ac_ext
14128 if test "$have_res_init" = no
; then
14130 LIBS
="$LIBS -lresolv"
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14132 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #include <netinet/in.h>
14136 #include <arpa/nameser.h>
14137 #include <resolv.h>
14146 if ac_fn_c_try_link
"$LINENO"; then :
14151 rm -f core conftest.err conftest.
$ac_objext \
14152 conftest
$ac_exeext conftest.
$ac_ext
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14154 $as_echo "$have_res_init" >&6; }
14155 if test "$have_res_init" = yes ; then
14161 if test "$have_res_init" = yes; then
14163 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14167 # Do we need the Hesiod library to provide the support routines?
14169 if test "$with_hesiod" != no
; then
14170 # Don't set $LIBS here -- see comments above. FIXME which comments?
14171 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14172 if test "x$ac_cv_func_res_send" = x
""yes; then :
14175 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14176 if test "x$ac_cv_func___res_send" = x
""yes; then :
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14180 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14181 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14184 ac_check_lib_save_LIBS
=$LIBS
14185 LIBS
="-lresolv $LIBS"
14186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14199 return res_send ();
14204 if ac_fn_c_try_link
"$LINENO"; then :
14205 ac_cv_lib_resolv_res_send
=yes
14207 ac_cv_lib_resolv_res_send
=no
14209 rm -f core conftest.err conftest.
$ac_objext \
14210 conftest
$ac_exeext conftest.
$ac_ext
14211 LIBS
=$ac_check_lib_save_LIBS
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14214 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14215 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14219 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14220 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14223 ac_check_lib_save_LIBS
=$LIBS
14224 LIBS
="-lresolv $LIBS"
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14228 /* Override any GCC internal prototype to avoid an error.
14229 Use char because int might match the return type of a GCC
14230 builtin and then its argument prototype would still apply. */
14234 char __res_send ();
14238 return __res_send ();
14243 if ac_fn_c_try_link
"$LINENO"; then :
14244 ac_cv_lib_resolv___res_send
=yes
14246 ac_cv_lib_resolv___res_send
=no
14248 rm -f core conftest.err conftest.
$ac_objext \
14249 conftest
$ac_exeext conftest.
$ac_ext
14250 LIBS
=$ac_check_lib_save_LIBS
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14253 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14254 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14264 if test "$resolv" = yes ; then
14269 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14270 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14274 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14275 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14278 ac_check_lib_save_LIBS
=$LIBS
14279 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14289 char hes_getmailhost ();
14293 return hes_getmailhost ();
14298 if ac_fn_c_try_link
"$LINENO"; then :
14299 ac_cv_lib_hesiod_hes_getmailhost
=yes
14301 ac_cv_lib_hesiod_hes_getmailhost
=no
14303 rm -f core conftest.err conftest.
$ac_objext \
14304 conftest
$ac_exeext conftest.
$ac_ext
14305 LIBS
=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14308 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14309 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14318 if test x
"$hesiod" = xyes
; then
14320 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14327 # Do we need libresolv (due to res_init or Hesiod)?
14328 if test "$resolv" = yes ; then
14330 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14338 # These tell us which Kerberos-related libraries to use.
14345 if test "${with_kerberos}" != no
; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14347 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14351 ac_check_lib_save_LIBS
=$LIBS
14352 LIBS
="-lcom_err $LIBS"
14353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14371 if ac_fn_c_try_link
"$LINENO"; then :
14372 ac_cv_lib_com_err_com_err
=yes
14374 ac_cv_lib_com_err_com_err
=no
14376 rm -f core conftest.err conftest.
$ac_objext \
14377 conftest
$ac_exeext conftest.
$ac_ext
14378 LIBS
=$ac_check_lib_save_LIBS
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14381 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14382 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14388 if test $have_com_err = yes; then
14389 COM_ERRLIB
=-lcom_err
14390 LIBS
="$COM_ERRLIB $LIBS"
14392 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14396 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14397 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14400 ac_check_lib_save_LIBS
=$LIBS
14401 LIBS
="-lcrypto $LIBS"
14402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14411 char mit_des_cbc_encrypt ();
14415 return mit_des_cbc_encrypt ();
14420 if ac_fn_c_try_link
"$LINENO"; then :
14421 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14423 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14425 rm -f core conftest.err conftest.
$ac_objext \
14426 conftest
$ac_exeext conftest.
$ac_ext
14427 LIBS
=$ac_check_lib_save_LIBS
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14430 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14431 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14437 if test $have_crypto = yes; then
14439 LIBS
="$CRYPTOLIB $LIBS"
14441 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14445 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14446 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14449 ac_check_lib_save_LIBS
=$LIBS
14450 LIBS
="-lk5crypto $LIBS"
14451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14460 char mit_des_cbc_encrypt ();
14464 return mit_des_cbc_encrypt ();
14469 if ac_fn_c_try_link
"$LINENO"; then :
14470 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14472 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14474 rm -f core conftest.err conftest.
$ac_objext \
14475 conftest
$ac_exeext conftest.
$ac_ext
14476 LIBS
=$ac_check_lib_save_LIBS
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14479 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14480 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14486 if test $have_k5crypto = yes; then
14487 CRYPTOLIB
=-lk5crypto
14488 LIBS
="$CRYPTOLIB $LIBS"
14490 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14494 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14495 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14498 ac_check_lib_save_LIBS
=$LIBS
14499 LIBS
="-lkrb5 $LIBS"
14500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14503 /* Override any GCC internal prototype to avoid an error.
14504 Use char because int might match the return type of a GCC
14505 builtin and then its argument prototype would still apply. */
14509 char krb5_init_context ();
14513 return krb5_init_context ();
14518 if ac_fn_c_try_link
"$LINENO"; then :
14519 ac_cv_lib_krb5_krb5_init_context
=yes
14521 ac_cv_lib_krb5_krb5_init_context
=no
14523 rm -f core conftest.err conftest.
$ac_objext \
14524 conftest
$ac_exeext conftest.
$ac_ext
14525 LIBS
=$ac_check_lib_save_LIBS
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14528 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14529 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14535 if test $have_krb5=yes; then
14537 LIBS
="$KRB5LIB $LIBS"
14539 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14542 if test "${with_kerberos5}" = no
; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14544 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14545 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14548 ac_check_lib_save_LIBS
=$LIBS
14549 LIBS
="-ldes425 $LIBS"
14550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 /* Override any GCC internal prototype to avoid an error.
14554 Use char because int might match the return type of a GCC
14555 builtin and then its argument prototype would still apply. */
14559 char des_cbc_encrypt ();
14563 return des_cbc_encrypt ();
14568 if ac_fn_c_try_link
"$LINENO"; then :
14569 ac_cv_lib_des425_des_cbc_encrypt
=yes
14571 ac_cv_lib_des425_des_cbc_encrypt
=no
14573 rm -f core conftest.err conftest.
$ac_objext \
14574 conftest
$ac_exeext conftest.
$ac_ext
14575 LIBS
=$ac_check_lib_save_LIBS
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14578 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14579 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14585 if test $have_des425 = yes; then
14587 LIBS
="$DESLIB $LIBS"
14589 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14593 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14594 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14597 ac_check_lib_save_LIBS
=$LIBS
14599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14608 char des_cbc_encrypt ();
14612 return des_cbc_encrypt ();
14617 if ac_fn_c_try_link
"$LINENO"; then :
14618 ac_cv_lib_des_des_cbc_encrypt
=yes
14620 ac_cv_lib_des_des_cbc_encrypt
=no
14622 rm -f core conftest.err conftest.
$ac_objext \
14623 conftest
$ac_exeext conftest.
$ac_ext
14624 LIBS
=$ac_check_lib_save_LIBS
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14627 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14628 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14634 if test $have_des = yes; then
14636 LIBS
="$DESLIB $LIBS"
14638 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14643 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14644 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14645 $as_echo_n "(cached) " >&6
14647 ac_check_lib_save_LIBS
=$LIBS
14648 LIBS
="-lkrb4 $LIBS"
14649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14652 /* Override any GCC internal prototype to avoid an error.
14653 Use char because int might match the return type of a GCC
14654 builtin and then its argument prototype would still apply. */
14658 char krb_get_cred ();
14662 return krb_get_cred ();
14667 if ac_fn_c_try_link
"$LINENO"; then :
14668 ac_cv_lib_krb4_krb_get_cred
=yes
14670 ac_cv_lib_krb4_krb_get_cred
=no
14672 rm -f core conftest.err conftest.
$ac_objext \
14673 conftest
$ac_exeext conftest.
$ac_ext
14674 LIBS
=$ac_check_lib_save_LIBS
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14677 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14678 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14684 if test $have_krb4 = yes; then
14686 LIBS
="$KRB4LIB $LIBS"
14688 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14692 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14693 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14696 ac_check_lib_save_LIBS
=$LIBS
14698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14707 char krb_get_cred ();
14711 return krb_get_cred ();
14716 if ac_fn_c_try_link
"$LINENO"; then :
14717 ac_cv_lib_krb_krb_get_cred
=yes
14719 ac_cv_lib_krb_krb_get_cred
=no
14721 rm -f core conftest.err conftest.
$ac_objext \
14722 conftest
$ac_exeext conftest.
$ac_ext
14723 LIBS
=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14726 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14727 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14733 if test $have_krb = yes; then
14735 LIBS
="$KRB4LIB $LIBS"
14737 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14743 if test "${with_kerberos5}" != no
; then
14744 for ac_header
in krb5.h
14746 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14747 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14748 cat >>confdefs.h
<<_ACEOF
14749 #define HAVE_KRB5_H 1
14751 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14753 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14755 cat >>confdefs.h
<<_ACEOF
14756 #define HAVE_KRB5_ERROR_TEXT 1
14761 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14763 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14765 cat >>confdefs.h
<<_ACEOF
14766 #define HAVE_KRB5_ERROR_E_TEXT 1
14777 for ac_header
in des.h
14779 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14780 if test "x$ac_cv_header_des_h" = x
""yes; then :
14781 cat >>confdefs.h
<<_ACEOF
14782 #define HAVE_DES_H 1
14786 for ac_header
in kerberosIV
/des.h
14788 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14789 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14790 cat >>confdefs.h
<<_ACEOF
14791 #define HAVE_KERBEROSIV_DES_H 1
14795 for ac_header
in kerberos
/des.h
14797 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14798 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14799 cat >>confdefs.h
<<_ACEOF
14800 #define HAVE_KERBEROS_DES_H 1
14815 for ac_header
in krb.h
14817 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14818 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14819 cat >>confdefs.h
<<_ACEOF
14820 #define HAVE_KRB_H 1
14824 for ac_header
in kerberosIV
/krb.h
14826 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14827 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14828 cat >>confdefs.h
<<_ACEOF
14829 #define HAVE_KERBEROSIV_KRB_H 1
14833 for ac_header
in kerberos
/krb.h
14835 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14837 cat >>confdefs.h
<<_ACEOF
14838 #define HAVE_KERBEROS_KRB_H 1
14854 for ac_header
in com_err.h
14856 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14857 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14858 cat >>confdefs.h
<<_ACEOF
14859 #define HAVE_COM_ERR_H 1
14874 # Solaris requires -lintl if you want strerror (which calls dgettext)
14875 # to return localized messages.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14877 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14878 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14881 ac_check_lib_save_LIBS
=$LIBS
14882 LIBS
="-lintl $LIBS"
14883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14896 return dgettext ();
14901 if ac_fn_c_try_link
"$LINENO"; then :
14902 ac_cv_lib_intl_dgettext
=yes
14904 ac_cv_lib_intl_dgettext
=no
14906 rm -f core conftest.err conftest.
$ac_objext \
14907 conftest
$ac_exeext conftest.
$ac_ext
14908 LIBS
=$ac_check_lib_save_LIBS
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14911 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14912 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
14913 cat >>confdefs.h
<<_ACEOF
14914 #define HAVE_LIBINTL 1
14917 LIBS
="-lintl $LIBS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14923 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14924 if test "${emacs_cv_localtime_cache+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14927 if test x
$ac_cv_func_tzset = xyes
; then
14928 if test "$cross_compiling" = yes; then :
14929 # If we have tzset, assume the worst when cross-compiling.
14930 emacs_cv_localtime_cache
=yes
14932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14935 char TZ_GMT0[] = "TZ=GMT0";
14936 char TZ_PST8[] = "TZ=PST8";
14939 time_t now = time ((time_t *) 0);
14940 int hour_GMT0, hour_unset;
14941 if (putenv (TZ_GMT0) != 0)
14943 hour_GMT0 = localtime (&now)->tm_hour;
14945 hour_unset = localtime (&now)->tm_hour;
14946 if (putenv (TZ_PST8) != 0)
14948 if (localtime (&now)->tm_hour == hour_GMT0)
14951 if (localtime (&now)->tm_hour != hour_unset)
14956 if ac_fn_c_try_run
"$LINENO"; then :
14957 emacs_cv_localtime_cache
=no
14959 emacs_cv_localtime_cache
=yes
14961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14966 # If we lack tzset, report that localtime does not cache TZ,
14967 # since we can't invalidate the cache if we don't have tzset.
14968 emacs_cv_localtime_cache
=no
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14972 $as_echo "$emacs_cv_localtime_cache" >&6; }
14973 if test $emacs_cv_localtime_cache = yes; then
14975 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14979 if test "x$HAVE_TIMEVAL" = xyes
; then
14980 for ac_func
in gettimeofday
14982 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14983 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14984 cat >>confdefs.h
<<_ACEOF
14985 #define HAVE_GETTIMEOFDAY 1
14991 if test $ac_cv_func_gettimeofday = yes; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14993 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14994 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 #ifdef TIME_WITH_SYS_TIME
15001 #include <sys/time.h>
15004 #ifdef HAVE_SYS_TIME_H
15005 #include <sys/time.h>
15013 struct timeval time;
15014 gettimeofday (&time, 0);
15019 if ac_fn_c_try_compile
"$LINENO"; then :
15020 emacs_cv_gettimeofday_two_arguments
=yes
15022 emacs_cv_gettimeofday_two_arguments
=no
15024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15027 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15028 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15030 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15037 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15038 if test "x$ac_cv_func_socket" = x
""yes; then :
15044 if test $ok_so_far = yes; then
15045 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15046 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15054 if test $ok_so_far = yes; then
15055 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15056 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15064 if test $ok_so_far = yes; then
15066 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15070 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15072 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15077 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15078 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15080 $as_echo "yes" >&6; }
15082 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15089 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15090 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15094 cat >>confdefs.h
<<_ACEOF
15100 for ac_header
in vfork.h
15102 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15103 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15104 cat >>confdefs.h
<<_ACEOF
15105 #define HAVE_VFORK_H 1
15112 for ac_func
in fork vfork
15114 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15115 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15116 eval as_val
=\$
$as_ac_var
15117 if test "x$as_val" = x
""yes; then :
15118 cat >>confdefs.h
<<_ACEOF
15119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15125 if test "x$ac_cv_func_fork" = xyes
; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15127 $as_echo_n "checking for working fork... " >&6; }
15128 if test "${ac_cv_func_fork_works+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15131 if test "$cross_compiling" = yes; then :
15132 ac_cv_func_fork_works
=cross
15134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 $ac_includes_default
15141 /* By Ruediger Kuhlmann. */
15142 return fork () < 0;
15148 if ac_fn_c_try_run
"$LINENO"; then :
15149 ac_cv_func_fork_works
=yes
15151 ac_cv_func_fork_works
=no
15153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15159 $as_echo "$ac_cv_func_fork_works" >&6; }
15162 ac_cv_func_fork_works
=$ac_cv_func_fork
15164 if test "x$ac_cv_func_fork_works" = xcross
; then
15166 *-*-amigaos* |
*-*-msdosdjgpp*)
15167 # Override, as these systems have only a dummy fork() stub
15168 ac_cv_func_fork_works
=no
15171 ac_cv_func_fork_works
=yes
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15175 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15177 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15178 if test "x$ac_cv_func_vfork" = xyes
; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15180 $as_echo_n "checking for working vfork... " >&6; }
15181 if test "${ac_cv_func_vfork_works+set}" = set; then :
15182 $as_echo_n "(cached) " >&6
15184 if test "$cross_compiling" = yes; then :
15185 ac_cv_func_vfork_works
=cross
15187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 /* Thanks to Paul Eggert for this test. */
15190 $ac_includes_default
15191 #include <sys/wait.h>
15192 #ifdef HAVE_VFORK_H
15193 # include <vfork.h>
15195 /* On some sparc systems, changes by the child to local and incoming
15196 argument registers are propagated back to the parent. The compiler
15197 is told about this with #include <vfork.h>, but some compilers
15198 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15199 static variable whose address is put into a register that is
15200 clobbered by the vfork. */
15203 sparc_address_test (int arg)
15205 sparc_address_test (arg) int arg;
15208 static pid_t child;
15226 pid_t parent = getpid ();
15229 sparc_address_test (0);
15234 /* Here is another test for sparc vfork register problems. This
15235 test uses lots of local variables, at least as many local
15236 variables as main has allocated so far including compiler
15237 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15238 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15239 reuse the register of parent for one of the local variables,
15240 since it will think that parent can't possibly be used any more
15241 in this routine. Assigning to the local variable will thus
15242 munge parent in the parent process. */
15244 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15245 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15246 /* Convince the compiler that p..p7 are live; otherwise, it might
15247 use the same hardware register for all 8 local variables. */
15248 if (p != p1 || p != p2 || p != p3 || p != p4
15249 || p != p5 || p != p6 || p != p7)
15252 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15253 from child file descriptors. If the child closes a descriptor
15254 before it execs or exits, this munges the parent's descriptor
15255 as well. Test for this by closing stdout in the child. */
15256 _exit(close(fileno(stdout)) != 0);
15261 while (wait(&status) != child)
15264 /* Was there some problem with vforking? */
15267 /* Did the child fail? (This shouldn't happen.) */
15270 /* Did the vfork/compiler bug occur? */
15271 || parent != getpid()
15273 /* Did the file descriptor bug occur? */
15274 || fstat(fileno(stdout), &st) != 0
15279 if ac_fn_c_try_run
"$LINENO"; then :
15280 ac_cv_func_vfork_works
=yes
15282 ac_cv_func_vfork_works
=no
15284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15290 $as_echo "$ac_cv_func_vfork_works" >&6; }
15293 if test "x$ac_cv_func_fork_works" = xcross
; then
15294 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15299 if test "x$ac_cv_func_vfork_works" = xyes
; then
15301 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15305 $as_echo "#define vfork fork" >>confdefs.h
15308 if test "x$ac_cv_func_fork_works" = xyes
; then
15310 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15316 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15317 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #include <langinfo.h>
15326 char* cs = nl_langinfo(CODESET);
15331 if ac_fn_c_try_link
"$LINENO"; then :
15332 emacs_cv_langinfo_codeset
=yes
15334 emacs_cv_langinfo_codeset
=no
15336 rm -f core conftest.err conftest.
$ac_objext \
15337 conftest
$ac_exeext conftest.
$ac_ext
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15341 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15342 if test $emacs_cv_langinfo_codeset = yes; then
15344 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15349 $as_echo_n "checking for mbstate_t... " >&6; }
15350 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 $ac_includes_default
15356 # include <wchar.h>
15360 mbstate_t x; return sizeof x;
15365 if ac_fn_c_try_compile
"$LINENO"; then :
15366 ac_cv_type_mbstate_t
=yes
15368 ac_cv_type_mbstate_t
=no
15370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15373 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15374 if test $ac_cv_type_mbstate_t = yes; then
15376 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15380 $as_echo "#define mbstate_t int" >>confdefs.h
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15385 $as_echo_n "checking for C restricted array declarations... " >&6; }
15386 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15387 $as_echo_n "(cached) " >&6
15389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 void fred (int x[__restrict]);
15400 if ac_fn_c_try_compile
"$LINENO"; then :
15401 emacs_cv_c_restrict_arr
=yes
15403 emacs_cv_c_restrict_arr
=no
15405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15408 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15409 if test "$emacs_cv_c_restrict_arr" = yes; then
15411 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15416 # Set up the CFLAGS for real compilation, so we can substitute it.
15417 CFLAGS
="$REAL_CFLAGS"
15418 CPPFLAGS
="$REAL_CPPFLAGS"
15420 ## Hack to detect a buggy GCC version.
15421 if test "x$GCC" = xyes \
15422 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15423 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15424 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15425 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15428 version
=$PACKAGE_VERSION
15430 ### Specify what sort of things we'll be editing into Makefile and config.h.
15431 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15455 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15456 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15457 ## end of LIBX_BASE, but nothing ever set it.
15462 ## Used in lwlib/Makefile.in.
15464 if test -n "${machfile}"; then
15465 M_FILE
="\$(srcdir)/${machfile}"
15469 S_FILE
="\$(srcdir)/${opsysfile}"
15480 cat >>confdefs.h
<<_ACEOF
15481 #define EMACS_CONFIGURATION "${canonical}"
15485 cat >>confdefs.h
<<_ACEOF
15486 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15489 if test -n "$machfile"; then
15491 cat >>confdefs.h
<<_ACEOF
15492 #define config_machfile "${machfile}"
15497 cat >>confdefs.h
<<_ACEOF
15498 #define config_opsysfile "${opsysfile}"
15505 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15507 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15510 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15512 if test "$HAVE_XFT" = "yes"; then
15513 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15514 elif test "$HAVE_FREETYPE" = "yes"; then
15515 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15525 if test "${USE_X_TOOLKIT}" != "none" ; then
15526 WIDGET_OBJ
=widget.o
15528 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15530 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15532 $as_echo "#define USE_LUCID 1" >>confdefs.h
15534 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15536 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15541 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15542 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15546 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15547 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15548 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15552 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15553 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15556 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15562 case "$USE_X_TOOLKIT" in
15563 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15564 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15565 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15569 if test "$USE_X_TOOLKIT" = "none"; then
15570 LIBXT_OTHER
="\$(LIBXSM)"
15571 OLDXMENU_TARGET
="really-oldXMenu"
15573 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15574 OLDXMENU_TARGET
="really-lwlib"
15578 ## The X Menu stuff is present in the X10 distribution, but missing
15579 ## from X11. If we have X10, just use the installed library;
15580 ## otherwise, use our own copy.
15581 if test "${HAVE_X11}" = "yes" ; then
15583 $as_echo "#define HAVE_X11 1" >>confdefs.h
15586 if test "$USE_X_TOOLKIT" = "none"; then
15587 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15589 OLDXMENU
="\${lwlibdir}/liblw.a"
15591 LIBXMENU
="\$(OLDXMENU)"
15592 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15593 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15595 ## For a syntactically valid Makefile; not actually used for anything.
15596 ## See comments in src/Makefile.in.
15598 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15599 if test "${HAVE_X_WINDOWS}" = "yes"; then
15608 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15621 if test "${HAVE_MENUS}" = "yes" ; then
15623 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15627 if test "${GNU_MALLOC}" = "yes" ; then
15629 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15634 if test "${REL_ALLOC}" = "yes" ; then
15636 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15639 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15643 if test "$opsys" = "cygwin"; then
15644 CYGWIN_OBJ
="sheap.o"
15645 ## Cygwin differs because of its unexec().
15647 POST_ALLOC_OBJ
=lastfile.o
15650 PRE_ALLOC_OBJ
=lastfile.o
15657 # Configure gnulib here, now that we know LIBS.
15668 LIBC_FATAL_STDERR_
=1
15669 export LIBC_FATAL_STDERR_
15671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15672 # for constant arguments. Useless!
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15674 $as_echo_n "checking for working alloca.h... " >&6; }
15675 if test "${ac_cv_working_alloca_h+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #include <alloca.h>
15684 char *p = (char *) alloca (2 * sizeof (int));
15690 if ac_fn_c_try_link
"$LINENO"; then :
15691 ac_cv_working_alloca_h
=yes
15693 ac_cv_working_alloca_h
=no
15695 rm -f core conftest.err conftest.
$ac_objext \
15696 conftest
$ac_exeext conftest.
$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15699 $as_echo "$ac_cv_working_alloca_h" >&6; }
15700 if test $ac_cv_working_alloca_h = yes; then
15702 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15707 $as_echo_n "checking for alloca... " >&6; }
15708 if test "${ac_cv_func_alloca_works+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15714 # define alloca __builtin_alloca
15717 # include <malloc.h>
15718 # define alloca _alloca
15720 # ifdef HAVE_ALLOCA_H
15721 # include <alloca.h>
15726 # ifndef alloca /* predefined by HP cc +Olibcalls */
15737 char *p = (char *) alloca (1);
15743 if ac_fn_c_try_link
"$LINENO"; then :
15744 ac_cv_func_alloca_works
=yes
15746 ac_cv_func_alloca_works
=no
15748 rm -f core conftest.err conftest.
$ac_objext \
15749 conftest
$ac_exeext conftest.
$ac_ext
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15752 $as_echo "$ac_cv_func_alloca_works" >&6; }
15754 if test $ac_cv_func_alloca_works = yes; then
15756 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15759 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15760 # that cause trouble. Some versions do not even contain alloca or
15761 # contain a buggy version. If you still want to use their alloca,
15762 # use ar to extract alloca.o from them instead of compiling alloca.c.
15768 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15770 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15774 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15775 if test "${ac_cv_os_cray+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 #if defined CRAY && ! defined CRAY2
15787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15788 $EGREP "webecray" >/dev
/null
2>&1; then :
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15797 $as_echo "$ac_cv_os_cray" >&6; }
15798 if test $ac_cv_os_cray = yes; then
15799 for ac_func
in _getb67 GETB67 getb67
; do
15800 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15801 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15802 eval as_val
=\$
$as_ac_var
15803 if test "x$as_val" = x
""yes; then :
15805 cat >>confdefs.h
<<_ACEOF
15806 #define CRAY_STACKSEG_END $ac_func
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15816 $as_echo_n "checking stack direction for C alloca... " >&6; }
15817 if test "${ac_cv_c_stack_direction+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15820 if test "$cross_compiling" = yes; then :
15821 ac_cv_c_stack_direction
=0
15823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 $ac_includes_default
15827 find_stack_direction (int *addr, int depth)
15829 int dir, dummy = 0;
15832 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15833 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15834 return dir + dummy;
15838 main (int argc, char **argv)
15840 return find_stack_direction (0, argc + !argv + 20) < 0;
15843 if ac_fn_c_try_run
"$LINENO"; then :
15844 ac_cv_c_stack_direction
=1
15846 ac_cv_c_stack_direction
=-1
15848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15854 $as_echo "$ac_cv_c_stack_direction" >&6; }
15855 cat >>confdefs.h
<<_ACEOF
15856 #define STACK_DIRECTION $ac_cv_c_stack_direction
15865 for ac_func
in $ac_func_list
15867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15868 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15869 eval as_val
=\$
$as_ac_var
15870 if test "x$as_val" = x
""yes; then :
15871 cat >>confdefs.h
<<_ACEOF
15872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15882 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15883 if test "${ac_cv_c_bigendian+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15886 ac_cv_c_bigendian
=unknown
15887 # See if we're dealing with a universal compiler.
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 #ifndef __APPLE_CC__
15891 not a universal capable compiler
15896 if ac_fn_c_try_compile
"$LINENO"; then :
15898 # Check for potential -arch flags. It is not universal unless
15899 # there are at least two -arch flags with different values.
15902 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15903 if test -n "$ac_prev"; then
15905 i?
86 | x86_64 | ppc | ppc64
)
15906 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15909 ac_cv_c_bigendian
=universal
15915 elif test "x$ac_word" = "x-arch"; then
15920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15921 if test $ac_cv_c_bigendian = unknown
; then
15922 # See if sys/param.h defines the BYTE_ORDER macro.
15923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 #include <sys/types.h>
15926 #include <sys/param.h>
15931 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15932 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15934 bogus endian macros
15941 if ac_fn_c_try_compile
"$LINENO"; then :
15942 # It does; now see whether it defined to BIG_ENDIAN or not.
15943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #include <sys/param.h>
15951 #if BYTE_ORDER != BIG_ENDIAN
15959 if ac_fn_c_try_compile
"$LINENO"; then :
15960 ac_cv_c_bigendian
=yes
15962 ac_cv_c_bigendian
=no
15964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15968 if test $ac_cv_c_bigendian = unknown
; then
15969 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <limits.h>
15977 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15978 bogus endian macros
15985 if ac_fn_c_try_compile
"$LINENO"; then :
15986 # It does; now see whether it defined to _BIG_ENDIAN or not.
15987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 #include <limits.h>
15994 #ifndef _BIG_ENDIAN
16002 if ac_fn_c_try_compile
"$LINENO"; then :
16003 ac_cv_c_bigendian
=yes
16005 ac_cv_c_bigendian
=no
16007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16011 if test $ac_cv_c_bigendian = unknown
; then
16012 # Compile a test program.
16013 if test "$cross_compiling" = yes; then :
16014 # Try to guess by grepping values from an object file.
16015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 short int ascii_mm[] =
16018 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16019 short int ascii_ii[] =
16020 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16021 int use_ascii (int i) {
16022 return ascii_mm[i] + ascii_ii[i];
16024 short int ebcdic_ii[] =
16025 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16026 short int ebcdic_mm[] =
16027 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16028 int use_ebcdic (int i) {
16029 return ebcdic_mm[i] + ebcdic_ii[i];
16036 return use_ascii (foo) == use_ebcdic (foo);
16041 if ac_fn_c_try_compile
"$LINENO"; then :
16042 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16043 ac_cv_c_bigendian
=yes
16045 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16046 if test "$ac_cv_c_bigendian" = unknown
; then
16047 ac_cv_c_bigendian
=no
16049 # finding both strings is unlikely to happen, but who knows?
16050 ac_cv_c_bigendian
=unknown
16054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 $ac_includes_default
16063 /* Are we little or big endian? From Harbison&Steele. */
16067 char c[sizeof (long int)];
16070 return u.c[sizeof (long int) - 1] == 1;
16076 if ac_fn_c_try_run
"$LINENO"; then :
16077 ac_cv_c_bigendian
=no
16079 ac_cv_c_bigendian
=yes
16081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16088 $as_echo "$ac_cv_c_bigendian" >&6; }
16089 case $ac_cv_c_bigendian in #(
16091 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16097 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16101 as_fn_error
"unknown endianness
16102 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16107 $as_echo_n "checking for inline... " >&6; }
16108 if test "${ac_cv_c_inline+set}" = set; then :
16109 $as_echo_n "(cached) " >&6
16112 for ac_kw
in inline __inline__ __inline
; do
16113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #ifndef __cplusplus
16117 static $ac_kw foo_t static_foo () {return 0; }
16118 $ac_kw foo_t foo () {return 0; }
16122 if ac_fn_c_try_compile
"$LINENO"; then :
16123 ac_cv_c_inline
=$ac_kw
16125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16126 test "$ac_cv_c_inline" != no
&& break
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16131 $as_echo "$ac_cv_c_inline" >&6; }
16133 case $ac_cv_c_inline in
16136 case $ac_cv_c_inline in
16138 *) ac_val
=$ac_cv_c_inline;;
16140 cat >>confdefs.h
<<_ACEOF
16141 #ifndef __cplusplus
16142 #define inline $ac_val
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16150 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16151 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16152 $as_echo_n "(cached) " >&6
16154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 /* On HP-UX before 11.23, strtold returns a struct instead of
16157 long double. Reject implementations like that, by requiring
16158 compatibility with the C99 prototype. */
16159 #include <stdlib.h>
16160 static long double (*p) (char const *, char **) = strtold;
16162 test (char const *nptr, char **endptr)
16165 r = strtold (nptr, endptr);
16171 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16176 if ac_fn_c_try_link
"$LINENO"; then :
16177 gl_cv_func_c99_strtold
=yes
16179 gl_cv_func_c99_strtold
=no
16181 rm -f core conftest.err conftest.
$ac_objext \
16182 conftest
$ac_exeext conftest.
$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16185 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16186 if test $gl_cv_func_c99_strtold = yes; then
16188 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16198 GNULIB_EUIDACCESS
=0;
16199 GNULIB_FACCESSAT
=0;
16203 GNULIB_FTRUNCATE
=0;
16205 GNULIB_GETDOMAINNAME
=0;
16206 GNULIB_GETDTABLESIZE
=0;
16207 GNULIB_GETGROUPS
=0;
16208 GNULIB_GETHOSTNAME
=0;
16210 GNULIB_GETLOGIN_R
=0;
16211 GNULIB_GETPAGESIZE
=0;
16212 GNULIB_GETUSERSHELL
=0;
16213 GNULIB_GROUP_MEMBER
=0;
16224 GNULIB_READLINKAT
=0;
16228 GNULIB_SYMLINKAT
=0;
16229 GNULIB_TTYNAME_R
=0;
16230 GNULIB_UNISTD_H_GETOPT
=0;
16231 GNULIB_UNISTD_H_NONBLOCKING
=0;
16232 GNULIB_UNISTD_H_SIGPIPE
=0;
16246 HAVE_GETDTABLESIZE
=1;
16248 HAVE_GETHOSTNAME
=1;
16250 HAVE_GETPAGESIZE
=1;
16251 HAVE_GROUP_MEMBER
=1;
16266 HAVE_DECL_ENVIRON
=1;
16267 HAVE_DECL_FCHDIR
=1;
16268 HAVE_DECL_GETDOMAINNAME
=1;
16269 HAVE_DECL_GETLOGIN_R
=1;
16270 HAVE_DECL_GETPAGESIZE
=1;
16271 HAVE_DECL_GETUSERSHELL
=1;
16272 HAVE_DECL_TTYNAME_R
=1;
16274 HAVE_SYS_PARAM_H
=0;
16279 REPLACE_FCHOWNAT
=0;
16281 REPLACE_GETDOMAINNAME
=0;
16282 REPLACE_GETLOGIN_R
=0;
16283 REPLACE_GETGROUPS
=0;
16284 REPLACE_GETPAGESIZE
=0;
16292 REPLACE_READLINK
=0;
16296 REPLACE_TTYNAME_R
=0;
16298 REPLACE_UNLINKAT
=0;
16301 UNISTD_H_HAVE_WINSOCK2_H
=0;
16302 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16308 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16309 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16315 #include <sys/types.h>
16316 #include <sys/stat.h>
16320 struct stat s; s.st_dm_mode;
16325 if ac_fn_c_try_compile
"$LINENO"; then :
16326 ac_cv_struct_st_dm_mode
=yes
16328 ac_cv_struct_st_dm_mode
=no
16330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16333 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16335 if test $ac_cv_struct_st_dm_mode = yes; then
16337 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16342 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16343 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16349 cat >>confdefs.h
<<_ACEOF
16350 #define HAVE_DECL_STRMODE $ac_have_decl
16356 GNULIB_CALLOC_POSIX
=0;
16357 GNULIB_CANONICALIZE_FILE_NAME
=0;
16358 GNULIB_GETLOADAVG
=0;
16359 GNULIB_GETSUBOPT
=0;
16361 GNULIB_MALLOC_POSIX
=0;
16365 GNULIB_MKOSTEMPS
=0;
16371 GNULIB_REALLOC_POSIX
=0;
16378 GNULIB_SYSTEM_POSIX
=0;
16384 HAVE_CANONICALIZE_FILE_NAME
=1;
16385 HAVE_DECL_GETLOADAVG
=1;
16399 HAVE_DECL_SETENV
=1;
16403 HAVE_STRUCT_RANDOM_DATA
=1;
16404 HAVE_SYS_LOADAVG_H
=0;
16406 HAVE_DECL_UNSETENV
=1;
16408 REPLACE_CANONICALIZE_FILE_NAME
=0;
16414 REPLACE_REALPATH
=0;
16417 REPLACE_UNSETENV
=0;
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16423 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16424 if test "${gl_cv_have_include_next+set}" = set; then :
16425 $as_echo_n "(cached) " >&6
16427 rm -rf conftestd1a conftestd1b conftestd2
16428 mkdir conftestd1a conftestd1b conftestd2
16429 cat <<EOF > conftestd1a/conftest.h
16430 #define DEFINED_IN_CONFTESTD1
16431 #include_next <conftest.h>
16432 #ifdef DEFINED_IN_CONFTESTD2
16435 #error "include_next doesn't work"
16438 cat <<EOF > conftestd1b/conftest.h
16439 #define DEFINED_IN_CONFTESTD1
16441 #include_next <conftest.h>
16442 #ifdef DEFINED_IN_CONFTESTD2
16445 #error "include_next doesn't work"
16448 cat <<EOF > conftestd2/conftest.h
16449 #ifndef DEFINED_IN_CONFTESTD1
16450 #error "include_next test doesn't work"
16452 #define DEFINED_IN_CONFTESTD2
16454 gl_save_CPPFLAGS
="$CPPFLAGS"
16455 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include <conftest.h>
16460 if ac_fn_c_try_compile
"$LINENO"; then :
16461 gl_cv_have_include_next
=yes
16463 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #include <conftest.h>
16468 if ac_fn_c_try_compile
"$LINENO"; then :
16469 gl_cv_have_include_next
=buggy
16471 gl_cv_have_include_next
=no
16473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16477 CPPFLAGS
="$gl_save_CPPFLAGS"
16478 rm -rf conftestd1a conftestd1b conftestd2
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16482 $as_echo "$gl_cv_have_include_next" >&6; }
16483 PRAGMA_SYSTEM_HEADER
=
16484 if test $gl_cv_have_include_next = yes; then
16485 INCLUDE_NEXT
=include_next
16486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16487 if test -n "$GCC"; then
16488 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16491 if test $gl_cv_have_include_next = buggy
; then
16492 INCLUDE_NEXT
=include
16493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16495 INCLUDE_NEXT
=include
16496 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16503 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16504 if test "${gl_cv_pragma_columns+set}" = set; then :
16505 $as_echo_n "(cached) " >&6
16507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16516 $EGREP "choke me" >/dev
/null
2>&1; then :
16517 gl_cv_pragma_columns
=yes
16519 gl_cv_pragma_columns
=no
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16526 $as_echo "$gl_cv_pragma_columns" >&6; }
16527 if test $gl_cv_pragma_columns = yes; then
16528 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16549 if test $gl_cv_have_include_next = yes; then
16550 gl_cv_next_getopt_h
='<'getopt.h
'>'
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16553 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16554 if test "${gl_cv_next_getopt_h+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16558 if test $ac_cv_header_getopt_h = yes; then
16561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 #include <getopt.h>
16567 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16568 *) gl_absname_cpp
="$ac_cpp" ;;
16570 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16571 sed -n '\#/getopt.h#{
16572 s#.*"\(.*/getopt.h\)".*#\1#
16578 gl_cv_next_getopt_h
='<'getopt.h
'>'
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16584 $as_echo "$gl_cv_next_getopt_h" >&6; }
16586 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16588 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16590 gl_next_as_first_directive
='<'getopt.h
'>'
16592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16593 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16595 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16600 if test $ac_cv_header_getopt_h = yes; then
16609 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16610 for ac_header
in getopt.h
16612 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16613 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16614 cat >>confdefs.h
<<_ACEOF
16615 #define HAVE_GETOPT_H 1
16619 gl_replace_getopt
=yes
16626 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16627 for ac_func
in getopt_long_only
16629 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16630 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16631 cat >>confdefs.h
<<_ACEOF
16632 #define HAVE_GETOPT_LONG_ONLY 1
16636 gl_replace_getopt
=yes
16642 if test -z "$gl_replace_getopt"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16644 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16645 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16646 $as_echo_n "(cached) " >&6
16649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 #include <unistd.h>
16655 int *p = &optreset; return optreset;
16660 if ac_fn_c_try_link
"$LINENO"; then :
16663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 #include <getopt.h>
16669 return !getopt_clip;
16674 if ac_fn_c_try_compile
"$LINENO"; then :
16679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16681 rm -f core conftest.err conftest.
$ac_objext \
16682 conftest
$ac_exeext conftest.
$ac_ext
16684 gl_save_CPPFLAGS
=$CPPFLAGS
16685 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16686 if test "$cross_compiling" = yes; then :
16688 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16689 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16690 *) gl_cv_func_getopt_posix
="guessing yes";;
16694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16697 #include <unistd.h>
16698 #include <stdlib.h>
16699 #include <string.h>
16705 static char program[] = "program";
16706 static char a[] = "-a";
16707 static char foo[] = "foo";
16708 static char bar[] = "bar";
16709 char *argv[] = { program, a, foo, bar, NULL };
16712 optind = OPTIND_MIN;
16715 c = getopt (4, argv, "ab");
16718 c = getopt (4, argv, "ab");
16721 if (!(optind == 2))
16724 /* Some internal state exists at this point. */
16726 static char program[] = "program";
16727 static char donald[] = "donald";
16728 static char p[] = "-p";
16729 static char billy[] = "billy";
16730 static char duck[] = "duck";
16731 static char a[] = "-a";
16732 static char bar[] = "bar";
16733 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16736 optind = OPTIND_MIN;
16739 c = getopt (7, argv, "+abp:q:");
16742 if (!(strcmp (argv[0], "program") == 0))
16744 if (!(strcmp (argv[1], "donald") == 0))
16746 if (!(strcmp (argv[2], "-p") == 0))
16748 if (!(strcmp (argv[3], "billy") == 0))
16750 if (!(strcmp (argv[4], "duck") == 0))
16752 if (!(strcmp (argv[5], "-a") == 0))
16754 if (!(strcmp (argv[6], "bar") == 0))
16756 if (!(optind == 1))
16759 /* Detect MacOS 10.5, AIX 7.1 bug. */
16761 static char program[] = "program";
16762 static char ab[] = "-ab";
16763 char *argv[3] = { program, ab, NULL };
16764 optind = OPTIND_MIN;
16766 if (getopt (2, argv, "ab:") != 'a')
16768 if (getopt (2, argv, "ab:") != '?')
16780 if ac_fn_c_try_run
"$LINENO"; then :
16781 gl_cv_func_getopt_posix
=yes
16783 gl_cv_func_getopt_posix
=no
16785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16789 CPPFLAGS
=$gl_save_CPPFLAGS
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16793 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16794 case "$gl_cv_func_getopt_posix" in
16795 *no
) gl_replace_getopt
=yes ;;
16799 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16801 $as_echo_n "checking for working GNU getopt function... " >&6; }
16802 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16803 $as_echo_n "(cached) " >&6
16805 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16806 # optstring is necessary for programs like m4 that have POSIX-mandated
16807 # semantics for supporting options interspersed with files.
16808 # Also, since getopt_long is a GNU extension, we require optind=0.
16809 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16810 # so take care to revert to the correct (non-)export state.
16811 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16812 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16813 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
16814 x
) gl_had_POSIXLY_CORRECT
=yes ;;
16815 *) gl_had_POSIXLY_CORRECT
= ;;
16818 export POSIXLY_CORRECT
16819 if test "$cross_compiling" = yes; then :
16820 case $host_os:$ac_cv_have_decl_optreset in
16821 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
16822 *:yes) gl_cv_func_getopt_gnu
=no
;;
16823 *) gl_cv_func_getopt_gnu
=yes;;
16827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 #include <getopt.h>
16830 #include <stddef.h>
16831 #include <string.h>
16838 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16839 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16840 OSF/1 5.1, Solaris 10. */
16842 static char conftest[] = "conftest";
16843 static char plus[] = "-+";
16844 char *argv[3] = { conftest, plus, NULL };
16846 if (getopt (2, argv, "+a") != '?')
16849 /* This code succeeds on glibc 2.8, mingw,
16850 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16851 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16853 static char program[] = "program";
16854 static char p[] = "-p";
16855 static char foo[] = "foo";
16856 static char bar[] = "bar";
16857 char *argv[] = { program, p, foo, bar, NULL };
16860 if (getopt (4, argv, "p::") != 'p')
16862 else if (optarg != NULL)
16864 else if (getopt (4, argv, "p::") != -1)
16866 else if (optind != 2)
16869 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16871 static char program[] = "program";
16872 static char foo[] = "foo";
16873 static char p[] = "-p";
16874 char *argv[] = { program, foo, p, NULL };
16876 if (getopt (3, argv, "-p") != 1)
16878 else if (getopt (3, argv, "-p") != 'p')
16881 /* This code fails on glibc 2.11. */
16883 static char program[] = "program";
16884 static char b[] = "-b";
16885 static char a[] = "-a";
16886 char *argv[] = { program, b, a, NULL };
16887 optind = opterr = 0;
16888 if (getopt (3, argv, "+:a:b") != 'b')
16890 else if (getopt (3, argv, "+:a:b") != ':')
16893 /* This code dumps core on glibc 2.14. */
16895 static char program[] = "program";
16896 static char w[] = "-W";
16897 static char dummy[] = "dummy";
16898 char *argv[] = { program, w, dummy, NULL };
16899 optind = opterr = 1;
16900 if (getopt (3, argv, "W;") != 'W')
16909 if ac_fn_c_try_run
"$LINENO"; then :
16910 gl_cv_func_getopt_gnu
=yes
16912 gl_cv_func_getopt_gnu
=no
16914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16918 case $gl_had_POSIXLY_CORRECT in
16920 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
16921 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16926 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16927 if test "$gl_cv_func_getopt_gnu" = "no"; then
16928 gl_replace_getopt
=yes
16939 if test -n "$gl_replace_getopt"; then :
16946 if test $REPLACE_GETOPT = 1; then
16950 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16954 GNULIB_UNISTD_H_GETOPT
=1
16957 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16958 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
16964 cat >>confdefs.h
<<_ACEOF
16965 #define HAVE_DECL_GETENV $ac_have_decl
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16970 $as_echo_n "checking for unsigned long long int... " >&6; }
16971 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16972 $as_echo_n "(cached) " >&6
16974 ac_cv_type_unsigned_long_long_int
=yes
16975 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* For now, do not test the preprocessor; as of 2007 there are too many
16980 implementations with broken preprocessors. Perhaps this can
16981 be revisited in 2012. In the meantime, code should not expect
16982 #if to work with literals wider than 32 bits. */
16983 /* Test literals. */
16984 long long int ll = 9223372036854775807ll;
16985 long long int nll = -9223372036854775807LL;
16986 unsigned long long int ull = 18446744073709551615ULL;
16987 /* Test constant expressions. */
16988 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16990 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16996 /* Test availability of runtime routines for shift and division. */
16997 long long int llmax = 9223372036854775807ll;
16998 unsigned long long int ullmax = 18446744073709551615ull;
16999 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17000 | (llmax / ll) | (llmax % ll)
17001 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17002 | (ullmax / ull) | (ullmax % ull));
17008 if ac_fn_c_try_link
"$LINENO"; then :
17011 ac_cv_type_unsigned_long_long_int
=no
17013 rm -f core conftest.err conftest.
$ac_objext \
17014 conftest
$ac_exeext conftest.
$ac_ext
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17018 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17019 if test $ac_cv_type_unsigned_long_long_int = yes; then
17021 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17028 $as_echo_n "checking for long long int... " >&6; }
17029 if test "${ac_cv_type_long_long_int+set}" = set; then :
17030 $as_echo_n "(cached) " >&6
17032 ac_cv_type_long_long_int
=yes
17033 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17034 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17035 if test $ac_cv_type_long_long_int = yes; then
17036 if test "$cross_compiling" = yes; then :
17039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 #include <limits.h>
17044 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17045 # define LLONG_MAX (HALF - 1 + HALF)
17050 long long int n = 1;
17054 long long int m = n << i;
17057 if (LLONG_MAX / 2 < m)
17065 if ac_fn_c_try_run
"$LINENO"; then :
17068 ac_cv_type_long_long_int
=no
17070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17078 $as_echo "$ac_cv_type_long_long_int" >&6; }
17079 if test $ac_cv_type_long_long_int = yes; then
17081 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17090 gl_cv_c_multiarch
=no
17091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17093 #ifndef __APPLE_CC__
17094 not a universal capable compiler
17099 if ac_fn_c_try_compile
"$LINENO"; then :
17103 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17104 if test -n "$prev"; then
17106 i?
86 | x86_64 | ppc | ppc64
)
17107 if test -z "$arch" ||
test "$arch" = "$word"; then
17110 gl_cv_c_multiarch
=yes
17116 if test "x$word" = "x-arch"; then
17123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17124 if test $gl_cv_c_multiarch = yes; then
17125 APPLE_UNIVERSAL_BUILD
=1
17127 APPLE_UNIVERSAL_BUILD
=0
17134 if test $ac_cv_type_long_long_int = yes; then
17135 HAVE_LONG_LONG_INT
=1
17137 HAVE_LONG_LONG_INT
=0
17141 if test $ac_cv_type_unsigned_long_long_int = yes; then
17142 HAVE_UNSIGNED_LONG_LONG_INT
=1
17144 HAVE_UNSIGNED_LONG_LONG_INT
=0
17149 if test $ac_cv_header_wchar_h = yes; then
17156 if test $ac_cv_header_inttypes_h = yes; then
17163 if test $ac_cv_header_sys_types_h = yes; then
17179 if test $gl_cv_have_include_next = yes; then
17180 gl_cv_next_stdint_h
='<'stdint.h
'>'
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17183 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17184 if test "${gl_cv_next_stdint_h+set}" = set; then :
17185 $as_echo_n "(cached) " >&6
17188 if test $ac_cv_header_stdint_h = yes; then
17191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17193 #include <stdint.h>
17197 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17198 *) gl_absname_cpp
="$ac_cpp" ;;
17200 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17201 sed -n '\#/stdint.h#{
17202 s#.*"\(.*/stdint.h\)".*#\1#
17208 gl_cv_next_stdint_h
='<'stdint.h
'>'
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17214 $as_echo "$gl_cv_next_stdint_h" >&6; }
17216 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17218 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17220 gl_next_as_first_directive
='<'stdint.h
'>'
17222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17223 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17225 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17230 if test $ac_cv_header_stdint_h = yes; then
17237 if test $ac_cv_header_stdint_h = yes; then
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17239 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17240 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17241 $as_echo_n "(cached) " >&6
17243 gl_cv_header_working_stdint_h
=no
17244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17248 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17249 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17250 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17251 #include <stdint.h>
17252 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17253 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17254 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17258 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17259 included before <wchar.h>. */
17260 #include <stddef.h>
17261 #include <signal.h>
17263 # include <stdio.h>
17265 # include <wchar.h>
17270 int8_t a1 = INT8_MAX;
17271 int8_t a1min = INT8_MIN;
17274 int16_t a2 = INT16_MAX;
17275 int16_t a2min = INT16_MIN;
17278 int32_t a3 = INT32_MAX;
17279 int32_t a3min = INT32_MIN;
17282 int64_t a4 = INT64_MAX;
17283 int64_t a4min = INT64_MIN;
17286 uint8_t b1 = UINT8_MAX;
17288 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17291 uint16_t b2 = UINT16_MAX;
17294 uint32_t b3 = UINT32_MAX;
17297 uint64_t b4 = UINT64_MAX;
17299 int_least8_t c1 = INT8_C (0x7f);
17300 int_least8_t c1max = INT_LEAST8_MAX;
17301 int_least8_t c1min = INT_LEAST8_MIN;
17302 int_least16_t c2 = INT16_C (0x7fff);
17303 int_least16_t c2max = INT_LEAST16_MAX;
17304 int_least16_t c2min = INT_LEAST16_MIN;
17305 int_least32_t c3 = INT32_C (0x7fffffff);
17306 int_least32_t c3max = INT_LEAST32_MAX;
17307 int_least32_t c3min = INT_LEAST32_MIN;
17308 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17309 int_least64_t c4max = INT_LEAST64_MAX;
17310 int_least64_t c4min = INT_LEAST64_MIN;
17311 uint_least8_t d1 = UINT8_C (0xff);
17312 uint_least8_t d1max = UINT_LEAST8_MAX;
17313 uint_least16_t d2 = UINT16_C (0xffff);
17314 uint_least16_t d2max = UINT_LEAST16_MAX;
17315 uint_least32_t d3 = UINT32_C (0xffffffff);
17316 uint_least32_t d3max = UINT_LEAST32_MAX;
17317 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17318 uint_least64_t d4max = UINT_LEAST64_MAX;
17319 int_fast8_t e1 = INT_FAST8_MAX;
17320 int_fast8_t e1min = INT_FAST8_MIN;
17321 int_fast16_t e2 = INT_FAST16_MAX;
17322 int_fast16_t e2min = INT_FAST16_MIN;
17323 int_fast32_t e3 = INT_FAST32_MAX;
17324 int_fast32_t e3min = INT_FAST32_MIN;
17325 int_fast64_t e4 = INT_FAST64_MAX;
17326 int_fast64_t e4min = INT_FAST64_MIN;
17327 uint_fast8_t f1 = UINT_FAST8_MAX;
17328 uint_fast16_t f2 = UINT_FAST16_MAX;
17329 uint_fast32_t f3 = UINT_FAST32_MAX;
17330 uint_fast64_t f4 = UINT_FAST64_MAX;
17332 intptr_t g = INTPTR_MAX;
17333 intptr_t gmin = INTPTR_MIN;
17336 uintptr_t h = UINTPTR_MAX;
17338 intmax_t i = INTMAX_MAX;
17339 uintmax_t j = UINTMAX_MAX;
17341 #include <limits.h> /* for CHAR_BIT */
17342 #define TYPE_MINIMUM(t) \
17343 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17344 #define TYPE_MAXIMUM(t) \
17345 ((t) ((t) 0 < (t) -1 \
17347 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17350 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17351 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17353 /* Detect bug in FreeBSD 6.0 / ia64. */
17354 int check_SIG_ATOMIC:
17355 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17356 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17358 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17360 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17361 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17363 /* Detect bug in mingw. */
17365 WINT_MIN == TYPE_MINIMUM (wint_t)
17366 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17369 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17371 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17372 int check_UINT16_C:
17373 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17375 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17377 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17380 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17383 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17386 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17388 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17389 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17390 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17391 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17392 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17393 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17394 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17395 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17396 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17397 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17398 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17409 if ac_fn_c_try_compile
"$LINENO"; then :
17410 if test "$cross_compiling" = yes; then :
17411 gl_cv_header_working_stdint_h
=yes
17414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17418 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17419 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17420 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17421 #include <stdint.h>
17424 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17425 included before <wchar.h>. */
17426 #include <stddef.h>
17427 #include <signal.h>
17429 # include <stdio.h>
17431 # include <wchar.h>
17436 #include <string.h>
17437 #define MVAL(macro) MVAL1(macro)
17438 #define MVAL1(expression) #expression
17439 static const char *macro_values[] =
17473 for (mv = macro_values; *mv != NULL; mv++)
17475 const char *value = *mv;
17476 /* Test whether it looks like a cast expression. */
17477 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17478 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17479 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17480 || strncmp (value, "((int)"/*)*/, 6) == 0
17481 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17482 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17483 return mv - macro_values + 1;
17491 if ac_fn_c_try_run
"$LINENO"; then :
17492 gl_cv_header_working_stdint_h
=yes
17494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17504 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17506 if test "$gl_cv_header_working_stdint_h" = yes; then
17509 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17511 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17512 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17513 eval as_val
=\$
$as_ac_Header
17514 if test "x$as_val" = x
""yes; then :
17515 cat >>confdefs.h
<<_ACEOF
17516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17523 if test $ac_cv_header_sys_inttypes_h = yes; then
17524 HAVE_SYS_INTTYPES_H
=1
17526 HAVE_SYS_INTTYPES_H
=0
17529 if test $ac_cv_header_sys_bitypes_h = yes; then
17530 HAVE_SYS_BITYPES_H
=1
17532 HAVE_SYS_BITYPES_H
=0
17538 if test $APPLE_UNIVERSAL_BUILD = 0; then
17541 for gltype
in ptrdiff_t size_t
; do
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17543 $as_echo_n "checking for bit size of $gltype... " >&6; }
17544 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17545 $as_echo_n "(cached) " >&6
17547 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17548 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17549 included before <wchar.h>. */
17550 #include <stddef.h>
17551 #include <signal.h>
17553 # include <stdio.h>
17555 # include <wchar.h>
17558 #include <limits.h>"; then :
17564 eval gl_cv_bitsizeof_
${gltype}=\
$result
17567 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17569 $as_echo "$ac_res" >&6; }
17570 eval result
=\
$gl_cv_bitsizeof_${gltype}
17571 if test $result = unknown
; then
17574 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17575 cat >>confdefs.h
<<_ACEOF
17576 #define BITSIZEOF_${GLTYPE} $result
17579 eval BITSIZEOF_
${GLTYPE}=\
$result
17586 for gltype
in sig_atomic_t wchar_t wint_t
; do
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17588 $as_echo_n "checking for bit size of $gltype... " >&6; }
17589 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17590 $as_echo_n "(cached) " >&6
17592 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17593 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17594 included before <wchar.h>. */
17595 #include <stddef.h>
17596 #include <signal.h>
17598 # include <stdio.h>
17600 # include <wchar.h>
17603 #include <limits.h>"; then :
17609 eval gl_cv_bitsizeof_
${gltype}=\
$result
17612 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17614 $as_echo "$ac_res" >&6; }
17615 eval result
=\
$gl_cv_bitsizeof_${gltype}
17616 if test $result = unknown
; then
17619 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17620 cat >>confdefs.h
<<_ACEOF
17621 #define BITSIZEOF_${GLTYPE} $result
17624 eval BITSIZEOF_
${GLTYPE}=\
$result
17630 for gltype
in sig_atomic_t wchar_t wint_t
; do
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17632 $as_echo_n "checking whether $gltype is signed... " >&6; }
17633 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17634 $as_echo_n "(cached) " >&6
17636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17640 included before <wchar.h>. */
17641 #include <stddef.h>
17642 #include <signal.h>
17644 # include <stdio.h>
17646 # include <wchar.h>
17649 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17658 if ac_fn_c_try_compile
"$LINENO"; then :
17663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17664 eval gl_cv_type_
${gltype}_signed
=\
$result
17667 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17669 $as_echo "$ac_res" >&6; }
17670 eval result
=\
$gl_cv_type_${gltype}_signed
17671 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17672 if test "$result" = yes; then
17673 cat >>confdefs.h
<<_ACEOF
17674 #define HAVE_SIGNED_${GLTYPE} 1
17677 eval HAVE_SIGNED_
${GLTYPE}=1
17679 eval HAVE_SIGNED_
${GLTYPE}=0
17684 gl_cv_type_ptrdiff_t_signed
=yes
17685 gl_cv_type_size_t_signed
=no
17686 if test $APPLE_UNIVERSAL_BUILD = 0; then
17689 for gltype
in ptrdiff_t size_t
; do
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17691 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17692 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17693 $as_echo_n "(cached) " >&6
17695 eval gl_cv_type_
${gltype}_suffix
=no
17696 eval result
=\
$gl_cv_type_${gltype}_signed
17697 if test "$result" = yes; then
17702 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17704 '') gltype1
='int';;
17705 l
) gltype1
='long int';;
17706 ll
) gltype1
='long long int';;
17707 i64
) gltype1
='__int64';;
17708 u
) gltype1
='unsigned int';;
17709 ul
) gltype1
='unsigned long int';;
17710 ull
) gltype1
='unsigned long long int';;
17711 ui64
)gltype1
='unsigned __int64';;
17713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17717 included before <wchar.h>. */
17718 #include <stddef.h>
17719 #include <signal.h>
17721 # include <stdio.h>
17723 # include <wchar.h>
17726 extern $gltype foo;
17727 extern $gltype1 foo;
17736 if ac_fn_c_try_compile
"$LINENO"; then :
17737 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17740 eval result
=\
$gl_cv_type_${gltype}_suffix
17741 test "$result" != no
&& break
17744 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17746 $as_echo "$ac_res" >&6; }
17747 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17748 eval result
=\
$gl_cv_type_${gltype}_suffix
17749 test "$result" = no
&& result
=
17750 eval ${GLTYPE}_SUFFIX
=\
$result
17751 cat >>confdefs.h
<<_ACEOF
17752 #define ${GLTYPE}_SUFFIX $result
17761 for gltype
in sig_atomic_t wchar_t wint_t
; do
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17763 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17764 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17765 $as_echo_n "(cached) " >&6
17767 eval gl_cv_type_
${gltype}_suffix
=no
17768 eval result
=\
$gl_cv_type_${gltype}_signed
17769 if test "$result" = yes; then
17774 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17776 '') gltype1
='int';;
17777 l
) gltype1
='long int';;
17778 ll
) gltype1
='long long int';;
17779 i64
) gltype1
='__int64';;
17780 u
) gltype1
='unsigned int';;
17781 ul
) gltype1
='unsigned long int';;
17782 ull
) gltype1
='unsigned long long int';;
17783 ui64
)gltype1
='unsigned __int64';;
17785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17789 included before <wchar.h>. */
17790 #include <stddef.h>
17791 #include <signal.h>
17793 # include <stdio.h>
17795 # include <wchar.h>
17798 extern $gltype foo;
17799 extern $gltype1 foo;
17808 if ac_fn_c_try_compile
"$LINENO"; then :
17809 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17812 eval result
=\
$gl_cv_type_${gltype}_suffix
17813 test "$result" != no
&& break
17816 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17818 $as_echo "$ac_res" >&6; }
17819 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17820 eval result
=\
$gl_cv_type_${gltype}_suffix
17821 test "$result" = no
&& result
=
17822 eval ${GLTYPE}_SUFFIX
=\
$result
17823 cat >>confdefs.h
<<_ACEOF
17824 #define ${GLTYPE}_SUFFIX $result
17834 if test -n "$STDINT_H"; then
17835 GL_GENERATE_STDINT_H_TRUE
=
17836 GL_GENERATE_STDINT_H_FALSE
='#'
17838 GL_GENERATE_STDINT_H_TRUE
='#'
17839 GL_GENERATE_STDINT_H_FALSE
=
17848 GNULIB_STRTOIMAX
=0;
17849 GNULIB_STRTOUMAX
=0;
17850 HAVE_DECL_IMAXABS
=1;
17851 HAVE_DECL_IMAXDIV
=1;
17852 HAVE_DECL_STRTOIMAX
=1;
17853 HAVE_DECL_STRTOUMAX
=1;
17854 INT32_MAX_LT_INTMAX_MAX
=1;
17855 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
17856 PRI_MACROS_BROKEN
=0;
17857 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
17858 UINT32_MAX_LT_UINTMAX_MAX
=1;
17859 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
17875 if test $gl_cv_have_include_next = yes; then
17876 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17879 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17880 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17881 $as_echo_n "(cached) " >&6
17884 if test $ac_cv_header_inttypes_h = yes; then
17887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 #include <inttypes.h>
17893 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17894 *) gl_absname_cpp
="$ac_cpp" ;;
17896 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17897 sed -n '\#/inttypes.h#{
17898 s#.*"\(.*/inttypes.h\)".*#\1#
17904 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17910 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17912 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
17914 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17916 gl_next_as_first_directive
='<'inttypes.h
'>'
17918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17919 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
17921 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
17930 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17948 GNULIB_UTIMENSAT
=0;
17962 REPLACE_FUTIMENS
=0;
17968 REPLACE_UTIMENSAT
=0;
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17974 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17975 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17976 $as_echo_n "(cached) " >&6
17978 rm -f conftest.sym conftest.
file
17979 echo >conftest.
file
17980 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17981 if test "$cross_compiling" = yes; then :
17982 # When cross-compiling, be pessimistic so we will end up using the
17983 # replacement version of lstat that checks for trailing slashes and
17984 # calls lstat a second time when necessary.
17985 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990 $ac_includes_default
17995 /* Linux will dereference the symlink and fail, as required by
17996 POSIX. That is better in the sense that it means we will not
17997 have to compile and use the lstat wrapper. */
17998 return lstat ("conftest.sym/", &sbuf) == 0;
18004 if ac_fn_c_try_run
"$LINENO"; then :
18005 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18007 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18009 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18010 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18014 # If the 'ln -s' command failed, then we probably don't even
18015 # have an lstat function.
18016 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18018 rm -f conftest.sym conftest.
file
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18022 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18023 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18025 cat >>confdefs.h
<<_ACEOF
18026 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18032 GNULIB_NANOSLEEP
=0;
18036 HAVE_DECL_LOCALTIME_R
=1;
18040 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18041 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18042 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18043 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18050 GNULIB_PTHREAD_SIGMASK
=0;
18051 GNULIB_SIGNAL_H_SIGPIPE
=0;
18052 GNULIB_SIGPROCMASK
=0;
18053 GNULIB_SIGACTION
=0;
18054 HAVE_POSIX_SIGNALBLOCKING
=1;
18055 HAVE_PTHREAD_SIGMASK
=1;
18059 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18061 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18063 HAVE_SIGHANDLER_T
=1;
18064 REPLACE_PTHREAD_SIGMASK
=0;
18069 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18070 #include <signal.h>
18071 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18072 #include <sys/types.h>
18075 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18077 cat >>confdefs.h
<<_ACEOF
18078 #define HAVE_SIGSET_T 1
18081 gl_cv_type_sigset_t
=yes
18083 gl_cv_type_sigset_t
=no
18086 if test $gl_cv_type_sigset_t != yes; then
18094 if test $ac_cv_header_sys_socket_h = no
; then
18095 for ac_header
in ws2tcpip.h
18097 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18098 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18099 cat >>confdefs.h
<<_ACEOF
18100 #define HAVE_WS2TCPIP_H 1
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18110 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18111 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18112 $as_echo_n "(cached) " >&6
18114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h. */
18117 #include <stdbool.h>
18119 "error: bool is not defined"
18122 "error: false is not defined"
18125 "error: false is not 0"
18128 "error: true is not defined"
18131 "error: true is not 1"
18133 #ifndef __bool_true_false_are_defined
18134 "error: __bool_true_false_are_defined is not defined"
18137 struct s { _Bool s: 1; _Bool t; } s;
18139 char a[true == 1 ? 1 : -1];
18140 char b[false == 0 ? 1 : -1];
18141 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18142 char d[(bool) 0.5 == true ? 1 : -1];
18143 /* See body of main program for 'e'. */
18144 char f[(_Bool) 0.0 == false ? 1 : -1];
18146 char h[sizeof (_Bool)];
18147 char i[sizeof s.t];
18148 enum { j = false, k = true, l = false * true, m = true * 256 };
18149 /* The following fails for
18150 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18152 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18153 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18154 /* Catch a bug in an HP-UX C compiler. See
18155 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18156 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18168 /* Refer to every declared value, to avoid compiler optimizations. */
18169 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18170 + !m + !n + !o + !p + !q + !pq);
18176 if ac_fn_c_try_compile
"$LINENO"; then :
18177 ac_cv_header_stdbool_h
=yes
18179 ac_cv_header_stdbool_h
=no
18181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18184 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18185 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18186 if test "x$ac_cv_type__Bool" = x
""yes; then :
18188 cat >>confdefs.h
<<_ACEOF
18189 #define HAVE__BOOL 1
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18202 $as_echo_n "checking for wchar_t... " >&6; }
18203 if test "${gt_cv_c_wchar_t+set}" = set; then :
18204 $as_echo_n "(cached) " >&6
18206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18208 #include <stddef.h>
18209 wchar_t foo = (wchar_t)'\0';
18218 if ac_fn_c_try_compile
"$LINENO"; then :
18219 gt_cv_c_wchar_t
=yes
18223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18226 $as_echo "$gt_cv_c_wchar_t" >&6; }
18227 if test $gt_cv_c_wchar_t = yes; then
18229 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18241 GNULIB_FPRINTF_POSIX
=0;
18258 GNULIB_OBSTACK_PRINTF
=0;
18259 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18263 GNULIB_PRINTF_POSIX
=0;
18272 GNULIB_SPRINTF_POSIX
=0;
18273 GNULIB_STDIO_H_NONBLOCKING
=0;
18274 GNULIB_STDIO_H_SIGPIPE
=0;
18276 GNULIB_VASPRINTF
=0;
18281 GNULIB_VFPRINTF_POSIX
=0;
18283 GNULIB_VPRINTF_POSIX
=0;
18284 GNULIB_VSNPRINTF
=0;
18285 GNULIB_VSPRINTF_POSIX
=0;
18286 HAVE_DECL_FPURGE
=1;
18287 HAVE_DECL_FSEEKO
=1;
18288 HAVE_DECL_FTELLO
=1;
18289 HAVE_DECL_GETDELIM
=1;
18290 HAVE_DECL_GETLINE
=1;
18291 HAVE_DECL_OBSTACK_PRINTF
=1;
18292 HAVE_DECL_SNPRINTF
=1;
18293 HAVE_DECL_VSNPRINTF
=1;
18311 REPLACE_GETDELIM
=0;
18313 REPLACE_OBSTACK_PRINTF
=0;
18319 REPLACE_RENAMEAT
=0;
18320 REPLACE_SNPRINTF
=0;
18322 REPLACE_STDIO_READ_FUNCS
=0;
18323 REPLACE_STDIO_WRITE_FUNCS
=0;
18325 REPLACE_VASPRINTF
=0;
18326 REPLACE_VDPRINTF
=0;
18327 REPLACE_VFPRINTF
=0;
18329 REPLACE_VSNPRINTF
=0;
18330 REPLACE_VSPRINTF
=0;
18333 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18335 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18337 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18344 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18345 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18351 cat >>confdefs.h
<<_ACEOF
18352 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18355 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18356 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18362 cat >>confdefs.h
<<_ACEOF
18363 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18369 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18370 if test "${ac_cv_header_stat_broken+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375 #include <sys/types.h>
18376 #include <sys/stat.h>
18378 #if defined S_ISBLK && defined S_IFDIR
18379 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18382 #if defined S_ISBLK && defined S_IFCHR
18383 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18386 #if defined S_ISLNK && defined S_IFREG
18387 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18390 #if defined S_ISSOCK && defined S_IFREG
18391 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18395 if ac_fn_c_try_compile
"$LINENO"; then :
18396 ac_cv_header_stat_broken
=no
18398 ac_cv_header_stat_broken
=yes
18400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18403 $as_echo "$ac_cv_header_stat_broken" >&6; }
18404 if test $ac_cv_header_stat_broken = yes; then
18406 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18413 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18414 if test "${ac_cv_c_restrict+set}" = set; then :
18415 $as_echo_n "(cached) " >&6
18417 ac_cv_c_restrict
=no
18418 # The order here caters to the fact that C++ does not require restrict.
18419 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 typedef int * int_ptr;
18423 int foo (int_ptr $ac_kw ip) {
18430 int * $ac_kw t = s;
18437 if ac_fn_c_try_compile
"$LINENO"; then :
18438 ac_cv_c_restrict
=$ac_kw
18440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18441 test "$ac_cv_c_restrict" != no
&& break
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18446 $as_echo "$ac_cv_c_restrict" >&6; }
18448 case $ac_cv_c_restrict in
18450 no
) $as_echo "#define restrict /**/" >>confdefs.h
18452 *) cat >>confdefs.h
<<_ACEOF
18453 #define restrict $ac_cv_c_restrict
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18463 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18464 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18465 $as_echo_n "(cached) " >&6
18467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18474 static struct timespec x; x.tv_sec = x.tv_nsec;
18479 if ac_fn_c_try_compile
"$LINENO"; then :
18480 gl_cv_sys_struct_timespec_in_time_h
=yes
18482 gl_cv_sys_struct_timespec_in_time_h
=no
18484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18487 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18489 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18490 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18491 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18492 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18493 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18496 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18497 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18498 $as_echo_n "(cached) " >&6
18500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 #include <sys/time.h>
18507 static struct timespec x; x.tv_sec = x.tv_nsec;
18512 if ac_fn_c_try_compile
"$LINENO"; then :
18513 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18515 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18520 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18521 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18522 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18525 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18526 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18527 $as_echo_n "(cached) " >&6
18529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18531 #include <pthread.h>
18536 static struct timespec x; x.tv_sec = x.tv_nsec;
18541 if ac_fn_c_try_compile
"$LINENO"; then :
18542 gl_cv_sys_struct_timespec_in_pthread_h
=yes
18544 gl_cv_sys_struct_timespec_in_pthread_h
=no
18546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18549 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18550 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18551 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
18570 if test $gl_cv_have_include_next = yes; then
18571 gl_cv_next_time_h
='<'time.h
'>'
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18574 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18575 if test "${gl_cv_next_time_h+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18585 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18586 *) gl_absname_cpp
="$ac_cpp" ;;
18588 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18589 sed -n '\#/time.h#{
18590 s#.*"\(.*/time.h\)".*#\1#
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18599 $as_echo "$gl_cv_next_time_h" >&6; }
18601 NEXT_TIME_H
=$gl_cv_next_time_h
18603 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18605 gl_next_as_first_directive
='<'time.h
'>'
18607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18608 gl_next_as_first_directive
=$gl_cv_next_time_h
18610 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
18617 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18618 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
18624 cat >>confdefs.h
<<_ACEOF
18625 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18632 GL_COND_LIBTOOL_TRUE
=
18633 GL_COND_LIBTOOL_FALSE
='#'
18635 GL_COND_LIBTOOL_TRUE
='#'
18636 GL_COND_LIBTOOL_FALSE
=
18639 gl_cond_libtool
=false
18652 gl_source_base
='lib'
18655 if test $ac_cv_func_alloca_works = no
; then
18659 # Define an additional variable used in the Makefile substitution.
18660 if test $ac_cv_working_alloca_h = yes; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18662 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18663 if test "${gl_cv_rpl_alloca+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18676 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
18677 gl_cv_rpl_alloca
=yes
18679 gl_cv_rpl_alloca
=no
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18686 $as_echo "$gl_cv_rpl_alloca" >&6; }
18687 if test $gl_cv_rpl_alloca = yes; then
18689 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18699 if test -n "$ALLOCA_H"; then
18700 GL_GENERATE_ALLOCA_H_TRUE
=
18701 GL_GENERATE_ALLOCA_H_FALSE
='#'
18703 GL_GENERATE_ALLOCA_H_TRUE
='#'
18704 GL_GENERATE_ALLOCA_H_FALSE
=
18733 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18736 if test $HAVE_DUP2 = 1; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18738 $as_echo_n "checking whether dup2 works... " >&6; }
18739 if test "${gl_cv_func_dup2_works+set}" = set; then :
18740 $as_echo_n "(cached) " >&6
18742 if test "$cross_compiling" = yes; then :
18744 mingw
*) # on this platform, dup2 always returns 0 for success
18745 gl_cv_func_dup2_works
=no
;;
18746 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18747 gl_cv_func_dup2_works
=no
;;
18748 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18749 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18750 gl_cv_func_dup2_works
=no
;;
18751 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18752 gl_cv_func_dup2_works
=no
;;
18753 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18754 gl_cv_func_dup2_works
=no
;;
18755 *) gl_cv_func_dup2_works
=yes;;
18758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18761 #include <unistd.h>
18769 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18772 if (dup2 (1, 1) == 0)
18775 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18779 if (dup2 (0, 0) != -1)
18781 /* Many gnulib modules require POSIX conformance of EBADF. */
18782 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18791 if ac_fn_c_try_run
"$LINENO"; then :
18792 gl_cv_func_dup2_works
=yes
18794 gl_cv_func_dup2_works
=no
18796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18803 $as_echo "$gl_cv_func_dup2_works" >&6; }
18804 if test "$gl_cv_func_dup2_works" = no
; then
18808 if test $ac_cv_func_dup2 = yes; then
18819 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18842 # Persuade glibc <stdlib.h> to declare getloadavg().
18847 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18848 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18850 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18851 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
18854 gl_func_getloadavg_done
=no
18856 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18857 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18858 # to get the right answer into the cache.
18859 # For kstat on solaris, we need to test for libelf and libkvm to force the
18860 # definition of SVR4 below.
18861 if test $gl_func_getloadavg_done = no
; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18863 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18864 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18865 $as_echo_n "(cached) " >&6
18867 ac_check_lib_save_LIBS
=$LIBS
18869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18882 return elf_begin ();
18887 if ac_fn_c_try_link
"$LINENO"; then :
18888 ac_cv_lib_elf_elf_begin
=yes
18890 ac_cv_lib_elf_elf_begin
=no
18892 rm -f core conftest.err conftest.
$ac_objext \
18893 conftest
$ac_exeext conftest.
$ac_ext
18894 LIBS
=$ac_check_lib_save_LIBS
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18897 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18898 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18903 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18904 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18905 $as_echo_n "(cached) " >&6
18907 ac_check_lib_save_LIBS
=$LIBS
18909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18912 /* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18922 return kvm_open ();
18927 if ac_fn_c_try_link
"$LINENO"; then :
18928 ac_cv_lib_kvm_kvm_open
=yes
18930 ac_cv_lib_kvm_kvm_open
=no
18932 rm -f core conftest.err conftest.
$ac_objext \
18933 conftest
$ac_exeext conftest.
$ac_ext
18934 LIBS
=$ac_check_lib_save_LIBS
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18937 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18938 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
18942 # Check for the 4.4BSD definition of getloadavg.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18944 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18945 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18946 $as_echo_n "(cached) " >&6
18948 ac_check_lib_save_LIBS
=$LIBS
18949 LIBS
="-lutil $LIBS"
18950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18959 char getloadavg ();
18963 return getloadavg ();
18968 if ac_fn_c_try_link
"$LINENO"; then :
18969 ac_cv_lib_util_getloadavg
=yes
18971 ac_cv_lib_util_getloadavg
=no
18973 rm -f core conftest.err conftest.
$ac_objext \
18974 conftest
$ac_exeext conftest.
$ac_ext
18975 LIBS
=$ac_check_lib_save_LIBS
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18978 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18979 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
18980 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
18985 if test $gl_func_getloadavg_done = no
; then
18986 # There is a commonly available library for RS/6000 AIX.
18987 # Since it is not a standard part of AIX, it might be installed locally.
18988 gl_getloadavg_LIBS
=$LIBS
18989 LIBS
="-L/usr/local/lib $LIBS"
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18991 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18992 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18993 $as_echo_n "(cached) " >&6
18995 ac_check_lib_save_LIBS
=$LIBS
18996 LIBS
="-lgetloadavg $LIBS"
18997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19006 char getloadavg ();
19010 return getloadavg ();
19015 if ac_fn_c_try_link
"$LINENO"; then :
19016 ac_cv_lib_getloadavg_getloadavg
=yes
19018 ac_cv_lib_getloadavg_getloadavg
=no
19020 rm -f core conftest.err conftest.
$ac_objext \
19021 conftest
$ac_exeext conftest.
$ac_ext
19022 LIBS
=$ac_check_lib_save_LIBS
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19025 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19026 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19027 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19029 LIBS
=$gl_getloadavg_LIBS
19034 # Set up the replacement function if necessary.
19035 if test $gl_func_getloadavg_done = no
; then
19038 # Solaris has libkstat which does not require root.
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19040 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19041 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19042 $as_echo_n "(cached) " >&6
19044 ac_check_lib_save_LIBS
=$LIBS
19045 LIBS
="-lkstat $LIBS"
19046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19055 char kstat_open ();
19059 return kstat_open ();
19064 if ac_fn_c_try_link
"$LINENO"; then :
19065 ac_cv_lib_kstat_kstat_open
=yes
19067 ac_cv_lib_kstat_kstat_open
=no
19069 rm -f core conftest.err conftest.
$ac_objext \
19070 conftest
$ac_exeext conftest.
$ac_ext
19071 LIBS
=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19074 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19075 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19076 cat >>confdefs.h
<<_ACEOF
19077 #define HAVE_LIBKSTAT 1
19080 LIBS
="-lkstat $LIBS"
19084 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19086 # AIX has libperfstat which does not require root
19087 if test $gl_func_getloadavg_done = no
; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19089 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19090 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19091 $as_echo_n "(cached) " >&6
19093 ac_check_lib_save_LIBS
=$LIBS
19094 LIBS
="-lperfstat $LIBS"
19095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19098 /* Override any GCC internal prototype to avoid an error.
19099 Use char because int might match the return type of a GCC
19100 builtin and then its argument prototype would still apply. */
19104 char perfstat_cpu_total ();
19108 return perfstat_cpu_total ();
19113 if ac_fn_c_try_link
"$LINENO"; then :
19114 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19116 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19118 rm -f core conftest.err conftest.
$ac_objext \
19119 conftest
$ac_exeext conftest.
$ac_ext
19120 LIBS
=$ac_check_lib_save_LIBS
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19123 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19124 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19125 cat >>confdefs.h
<<_ACEOF
19126 #define HAVE_LIBPERFSTAT 1
19129 LIBS
="-lperfstat $LIBS"
19133 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19136 if test $gl_func_getloadavg_done = no
; then
19137 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19138 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19139 gl_func_getloadavg_done
=yes
19141 $as_echo "#define DGUX 1" >>confdefs.h
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19144 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19145 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19148 ac_check_lib_save_LIBS
=$LIBS
19150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19159 char dg_sys_info ();
19163 return dg_sys_info ();
19168 if ac_fn_c_try_link
"$LINENO"; then :
19169 ac_cv_lib_dgc_dg_sys_info
=yes
19171 ac_cv_lib_dgc_dg_sys_info
=no
19173 rm -f core conftest.err conftest.
$ac_objext \
19174 conftest
$ac_exeext conftest.
$ac_ext
19175 LIBS
=$ac_check_lib_save_LIBS
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19178 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19179 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19180 cat >>confdefs.h
<<_ACEOF
19181 #define HAVE_LIBDGC 1
19196 if test "x$gl_save_LIBS" = x
; then
19197 GETLOADAVG_LIBS
=$LIBS
19199 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19204 # Test whether the system declares getloadavg. Solaris has the function
19205 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19206 for ac_header
in sys
/loadavg.h
19208 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19209 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19210 cat >>confdefs.h
<<_ACEOF
19211 #define HAVE_SYS_LOADAVG_H 1
19218 if test $ac_cv_header_sys_loadavg_h = yes; then
19219 HAVE_SYS_LOADAVG_H
=1
19221 HAVE_SYS_LOADAVG_H
=0
19223 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19224 # include <sys/loadavg.h>
19226 #include <stdlib.h>
19228 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19231 HAVE_DECL_GETLOADAVG
=0
19235 if test $HAVE_GETLOADAVG = 0; then
19244 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19247 # Figure out what our getloadavg.c needs.
19249 # On HPUX9, an unprivileged user can get load averages this way.
19250 if test $gl_func_getloadavg_done = no
; then
19251 for ac_func
in pstat_getdynamic
19253 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19254 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19255 cat >>confdefs.h
<<_ACEOF
19256 #define HAVE_PSTAT_GETDYNAMIC 1
19258 gl_func_getloadavg_done
=yes
19264 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19265 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19266 # Irix 4.0.5F has the header but not the library.
19267 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19268 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19269 gl_func_getloadavg_done
=yes
19271 $as_echo "#define SVR4 1" >>confdefs.h
19275 if test $gl_func_getloadavg_done = no
; then
19276 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19277 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19278 gl_func_getloadavg_done
=yes
19280 $as_echo "#define UMAX 1" >>confdefs.h
19283 $as_echo "#define UMAX4_3 1" >>confdefs.h
19290 if test $gl_func_getloadavg_done = no
; then
19291 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19293 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19300 if test $gl_func_getloadavg_done = no
; then
19301 for ac_header
in mach
/mach.h
19303 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19304 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19305 cat >>confdefs.h
<<_ACEOF
19306 #define HAVE_MACH_MACH_H 1
19315 for ac_header
in nlist.h
19317 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19318 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19319 cat >>confdefs.h
<<_ACEOF
19320 #define HAVE_NLIST_H 1
19322 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19324 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19326 cat >>confdefs.h
<<_ACEOF
19327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19340 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19341 x.n_un.n_name = "";
19349 if ac_fn_c_try_link
"$LINENO"; then :
19351 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19354 rm -f core conftest.err conftest.
$ac_objext \
19355 conftest
$ac_exeext conftest.
$ac_ext
19367 GNULIB_GETLOADAVG
=1
19378 if test $REPLACE_GETOPT = 1; then
19387 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19397 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19411 if test -n "$gl_replace_getopt"; then :
19418 if test $REPLACE_GETOPT = 1; then
19422 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19426 GNULIB_UNISTD_H_GETOPT
=1
19429 if test $REPLACE_GETOPT = 1; then
19438 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19448 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19459 if test $ac_cv_func_lstat = yes; then
19461 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
19468 if test $REPLACE_LSTAT = 1; then
19477 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19501 if test $APPLE_UNIVERSAL_BUILD = 1; then
19502 # A universal build on Apple MacOS X platforms.
19503 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19504 # But we need a configuration result that is valid in both modes.
19505 gl_cv_func_working_mktime
=no
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19508 $as_echo_n "checking for working mktime... " >&6; }
19509 if test "${gl_cv_func_working_mktime+set}" = set; then :
19510 $as_echo_n "(cached) " >&6
19512 if test "$cross_compiling" = yes; then :
19513 gl_cv_func_working_mktime
=no
19515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 /* Test program from Paul Eggert and Tony Leneis. */
19518 #include <limits.h>
19519 #include <stdlib.h>
19522 #ifdef HAVE_UNISTD_H
19523 # include <unistd.h>
19527 # define alarm(X) /* empty */
19530 /* Work around redefinition to rpl_putenv by other config tests. */
19533 static time_t time_t_max;
19534 static time_t time_t_min;
19536 /* Values we'll use to set the TZ environment variable. */
19537 static char *tz_strings[] = {
19538 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19539 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19541 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19543 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19544 Based on a problem report from Andreas Jaeger. */
19546 spring_forward_gap ()
19548 /* glibc (up to about 1998-10-07) failed this test. */
19551 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19552 instead of "TZ=America/Vancouver" in order to detect the bug even
19553 on systems that don't support the Olson extension, or don't have the
19554 full zoneinfo tables installed. */
19555 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19564 return mktime (&tm) != (time_t) -1;
19568 mktime_test1 (time_t now)
19571 return ! (lt = localtime (&now)) || mktime (lt) == now;
19575 mktime_test (time_t now)
19577 return (mktime_test1 (now)
19578 && mktime_test1 ((time_t) (time_t_max - now))
19579 && mktime_test1 ((time_t) (time_t_min + now)));
19585 /* Based on code from Ariel Faigon. */
19595 return tm.tm_mon == 2 && tm.tm_mday == 31;
19599 bigtime_test (int j)
19603 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19604 now = mktime (&tm);
19605 if (now != (time_t) -1)
19607 struct tm *lt = localtime (&now);
19609 && lt->tm_year == tm.tm_year
19610 && lt->tm_mon == tm.tm_mon
19611 && lt->tm_mday == tm.tm_mday
19612 && lt->tm_hour == tm.tm_hour
19613 && lt->tm_min == tm.tm_min
19614 && lt->tm_sec == tm.tm_sec
19615 && lt->tm_yday == tm.tm_yday
19616 && lt->tm_wday == tm.tm_wday
19617 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19618 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19627 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19628 ignoring leap seconds. */
19629 unsigned long int answer = 2527315200UL;
19633 tm.tm_year = 2050 - 1900;
19636 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19639 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19640 instead of "TZ=America/Vancouver" in order to detect the bug even
19641 on systems that don't support the Olson extension, or don't have the
19642 full zoneinfo tables installed. */
19643 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19647 /* Check that the result is either a failure, or close enough
19648 to the correct answer that we can assume the discrepancy is
19649 due to leap seconds. */
19650 return (t == (time_t) -1
19651 || (0 < t && answer - 120 <= t && t <= answer + 120));
19660 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19661 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19663 /* This test makes some buggy mktime implementations loop.
19664 Give up after 60 seconds; a mktime slower than that
19665 isn't worth using anyway. */
19668 time_t_max = (! time_t_signed
19670 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19672 time_t_min = (! time_t_signed
19674 : time_t_signed_magnitude
19678 delta = time_t_max / 997; /* a suitable prime number */
19679 for (i = 0; i < N_STRINGS; i++)
19682 putenv (tz_strings[i]);
19684 for (t = 0; t <= time_t_max - delta; t += delta)
19685 if (! mktime_test (t))
19687 if (! (mktime_test ((time_t) 1)
19688 && mktime_test ((time_t) (60 * 60))
19689 && mktime_test ((time_t) (60 * 60 * 24))))
19692 for (j = 1; ; j <<= 1)
19693 if (! bigtime_test (j))
19695 else if (INT_MAX / 2 < j)
19697 if (! bigtime_test (INT_MAX))
19700 if (! irix_6_4_bug ())
19702 if (! spring_forward_gap ())
19704 if (! year_2050_test ())
19709 if ac_fn_c_try_run
"$LINENO"; then :
19710 gl_cv_func_working_mktime
=yes
19712 gl_cv_func_working_mktime
=no
19714 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19715 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19721 $as_echo "$gl_cv_func_working_mktime" >&6; }
19723 if test $gl_cv_func_working_mktime = no
; then
19729 if test $REPLACE_MKTIME = 1; then
19738 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
19758 LIB_PTHREAD_SIGMASK
=
19759 if test $ac_cv_func_pthread_sigmask != yes; then
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
19762 $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
19763 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19764 $as_echo_n "(cached) " >&6
19766 ac_func_search_save_LIBS
=$LIBS
19767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19776 char pthread_sigmask ();
19780 return pthread_sigmask ();
19785 for ac_lib
in '' pthread c_r
; do
19786 if test -z "$ac_lib"; then
19787 ac_res
="none required"
19790 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19792 if ac_fn_c_try_link
"$LINENO"; then :
19793 ac_cv_search_pthread_sigmask
=$ac_res
19795 rm -f core conftest.err conftest.
$ac_objext \
19797 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19801 if test "${ac_cv_search_pthread_sigmask+set}" = set; then :
19804 ac_cv_search_pthread_sigmask
=no
19806 rm conftest.
$ac_ext
19807 LIBS
=$ac_func_search_save_LIBS
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
19810 $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
19811 ac_res
=$ac_cv_search_pthread_sigmask
19812 if test "$ac_res" != no
; then :
19813 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19818 if test "$ac_cv_search_pthread_sigmask" = no
; then
19819 HAVE_PTHREAD_SIGMASK
=0
19820 elif test "$ac_cv_search_pthread_sigmask" != 'none required'; then
19821 LIB_PTHREAD_SIGMASK
=$ac_cv_search_pthread_sigmask
19826 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
19835 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19843 GNULIB_PTHREAD_SIGMASK
=1
19852 if test $ac_cv_func_readlink = no
; then
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19856 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19857 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19858 $as_echo_n "(cached) " >&6
19860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19862 #include <unistd.h>
19863 /* Cause compilation failure if original declaration has wrong type. */
19864 ssize_t readlink (const char *, char *, size_t);
19873 if ac_fn_c_try_compile
"$LINENO"; then :
19874 gl_cv_decl_readlink_works
=yes
19876 gl_cv_decl_readlink_works
=no
19878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19881 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19883 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19884 if test "${gl_cv_func_readlink_works+set}" = set; then :
19885 $as_echo_n "(cached) " >&6
19887 # We have readlink, so assume ln -s works.
19888 ln -s conftest.no-such conftest.link
19889 ln -s conftest.link conftest.lnk2
19890 if test "$cross_compiling" = yes; then :
19891 gl_cv_func_readlink_works
="guessing no"
19893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19895 #include <unistd.h>
19901 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19906 if ac_fn_c_try_run
"$LINENO"; then :
19907 gl_cv_func_readlink_works
=yes
19909 gl_cv_func_readlink_works
=no
19911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19915 rm -f conftest.link conftest.lnk2
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19918 $as_echo "$gl_cv_func_readlink_works" >&6; }
19919 if test "$gl_cv_func_readlink_works" != yes; then
19921 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19924 elif test "$gl_cv_decl_readlink_works" != yes; then
19929 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
19938 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
19966 if test $gl_cv_have_include_next = yes; then
19967 gl_cv_next_signal_h
='<'signal.h
'>'
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19970 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19971 if test "${gl_cv_next_signal_h+set}" = set; then :
19972 $as_echo_n "(cached) " >&6
19975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19977 #include <signal.h>
19981 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19982 *) gl_absname_cpp
="$ac_cpp" ;;
19984 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19985 sed -n '\#/signal.h#{
19986 s#.*"\(.*/signal.h\)".*#\1#
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19995 $as_echo "$gl_cv_next_signal_h" >&6; }
19997 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
19999 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20001 gl_next_as_first_directive
='<'signal.h
'>'
20003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20004 gl_next_as_first_directive
=$gl_cv_next_signal_h
20006 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20012 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20013 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20014 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20015 #include <signal.h>
20018 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20021 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20028 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20029 #include <signal.h>
20032 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20035 HAVE_SIGHANDLER_T
=0
20041 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20042 /* <sys/types.h> is not needed according to POSIX, but the
20043 <sys/socket.h> in i386-unknown-freebsd4.10 and
20044 powerpc-apple-darwin5.5 required it. */
20045 #include <sys/types.h>
20046 #if HAVE_SYS_SOCKET_H
20047 # include <sys/socket.h>
20048 #elif HAVE_WS2TCPIP_H
20049 # include <ws2tcpip.h>
20053 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20057 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20058 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20059 $as_echo_n "(cached) " >&6
20061 # Systems have either "struct sockaddr *" or
20062 # "void *" as the second argument to getpeername
20063 gl_cv_socklen_t_equiv
=
20064 for arg2
in "struct sockaddr" void
; do
20065 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20068 #include <sys/types.h>
20069 #include <sys/socket.h>
20071 int getpeername (int, $arg2 *, $t *);
20076 getpeername (0, 0, &len);
20081 if ac_fn_c_try_compile
"$LINENO"; then :
20082 gl_cv_socklen_t_equiv
="$t"
20084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20085 test "$gl_cv_socklen_t_equiv" != "" && break
20087 test "$gl_cv_socklen_t_equiv" != "" && break
20092 if test "$gl_cv_socklen_t_equiv" = ""; then
20093 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20096 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20098 cat >>confdefs.h
<<_ACEOF
20099 #define socklen_t $gl_cv_socklen_t_equiv
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20106 $as_echo_n "checking for ssize_t... " >&6; }
20107 if test "${gt_cv_ssize_t+set}" = set; then :
20108 $as_echo_n "(cached) " >&6
20110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20112 #include <sys/types.h>
20116 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20122 if ac_fn_c_try_compile
"$LINENO"; then :
20127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20130 $as_echo "$gt_cv_ssize_t" >&6; }
20131 if test $gt_cv_ssize_t = no
; then
20133 $as_echo "#define ssize_t int" >>confdefs.h
20139 NEXT_STDARG_H
='<stdarg.h>'
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20141 $as_echo_n "checking for va_copy... " >&6; }
20142 if test "${gl_cv_func_va_copy+set}" = set; then :
20143 $as_echo_n "(cached) " >&6
20146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148 #include <stdarg.h>
20154 void (*func) (va_list, va_list) = va_copy;
20161 if ac_fn_c_try_compile
"$LINENO"; then :
20162 gl_cv_func_va_copy
=yes
20164 gl_cv_func_va_copy
=no
20166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20170 $as_echo "$gl_cv_func_va_copy" >&6; }
20171 if test $gl_cv_func_va_copy = no
; then
20172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20173 /* end confdefs.h. */
20174 #if defined _AIX && !defined __GNUC__
20179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20180 $EGREP "vaccine" >/dev
/null
2>&1; then :
20187 if test $gl_aixcc = yes; then
20197 if test $gl_cv_have_include_next = yes; then
20198 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20201 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20202 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20203 $as_echo_n "(cached) " >&6
20206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <stdarg.h>
20212 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20213 *) gl_absname_cpp
="$ac_cpp" ;;
20215 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20216 sed -n '\#/stdarg.h#{
20217 s#.*"\(.*/stdarg.h\)".*#\1#
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20226 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20228 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20230 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20232 gl_next_as_first_directive
='<'stdarg.h
'>'
20234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20235 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20237 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20242 if test "$gl_cv_next_stdarg_h" = '""'; then
20243 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20244 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20248 saved_as_echo_n
="$as_echo_n"
20250 if test "${gl_cv_func___va_copy+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256 #include <stdarg.h>
20269 if ac_fn_c_try_compile
"$LINENO"; then :
20270 gl_cv_func___va_copy
=yes
20272 gl_cv_func___va_copy
=no
20274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20277 as_echo_n
="$saved_as_echo_n"
20279 if test $gl_cv_func___va_copy = yes; then
20281 $as_echo "#define va_copy __va_copy" >>confdefs.h
20286 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20292 if test -n "$STDARG_H"; then
20293 GL_GENERATE_STDARG_H_TRUE
=
20294 GL_GENERATE_STDARG_H_FALSE
='#'
20296 GL_GENERATE_STDARG_H_TRUE
='#'
20297 GL_GENERATE_STDARG_H_FALSE
=
20305 # Define two additional variables used in the Makefile substitution.
20307 if test "$ac_cv_header_stdbool_h" = yes; then
20310 STDBOOL_H
='stdbool.h'
20313 if test -n "$STDBOOL_H"; then
20314 GL_GENERATE_STDBOOL_H_TRUE
=
20315 GL_GENERATE_STDBOOL_H_FALSE
='#'
20317 GL_GENERATE_STDBOOL_H_TRUE
='#'
20318 GL_GENERATE_STDBOOL_H_FALSE
=
20322 if test "$ac_cv_type__Bool" = yes; then
20333 if test $gt_cv_c_wchar_t = no
; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20338 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20339 if test "${gl_cv_decl_null_works+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20344 #include <stddef.h>
20345 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20355 if ac_fn_c_try_compile
"$LINENO"; then :
20356 gl_cv_decl_null_works
=yes
20358 gl_cv_decl_null_works
=no
20360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20363 $as_echo "$gl_cv_decl_null_works" >&6; }
20364 if test $gl_cv_decl_null_works = no
; then
20369 if test -n "$STDDEF_H"; then
20370 GL_GENERATE_STDDEF_H_TRUE
=
20371 GL_GENERATE_STDDEF_H_FALSE
='#'
20373 GL_GENERATE_STDDEF_H_TRUE
='#'
20374 GL_GENERATE_STDDEF_H_FALSE
=
20377 if test -n "$STDDEF_H"; then
20386 if test $gl_cv_have_include_next = yes; then
20387 gl_cv_next_stddef_h
='<'stddef.h
'>'
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20390 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20391 if test "${gl_cv_next_stddef_h+set}" = set; then :
20392 $as_echo_n "(cached) " >&6
20395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20396 /* end confdefs.h. */
20397 #include <stddef.h>
20401 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20402 *) gl_absname_cpp
="$ac_cpp" ;;
20404 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20405 sed -n '\#/stddef.h#{
20406 s#.*"\(.*/stddef.h\)".*#\1#
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20415 $as_echo "$gl_cv_next_stddef_h" >&6; }
20417 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
20419 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20421 gl_next_as_first_directive
='<'stddef.h
'>'
20423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20424 gl_next_as_first_directive
=$gl_cv_next_stddef_h
20426 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
20445 if test $gl_cv_have_include_next = yes; then
20446 gl_cv_next_stdio_h
='<'stdio.h
'>'
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20449 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20450 if test "${gl_cv_next_stdio_h+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20460 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20461 *) gl_absname_cpp
="$ac_cpp" ;;
20463 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20464 sed -n '\#/stdio.h#{
20465 s#.*"\(.*/stdio.h\)".*#\1#
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20474 $as_echo "$gl_cv_next_stdio_h" >&6; }
20476 NEXT_STDIO_H
=$gl_cv_next_stdio_h
20478 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20480 gl_next_as_first_directive
='<'stdio.h
'>'
20482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20483 gl_next_as_first_directive
=$gl_cv_next_stdio_h
20485 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
20526 if test $gl_cv_have_include_next = yes; then
20527 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20530 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20531 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20532 $as_echo_n "(cached) " >&6
20535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20537 #include <stdlib.h>
20541 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20542 *) gl_absname_cpp
="$ac_cpp" ;;
20544 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20545 sed -n '\#/stdlib.h#{
20546 s#.*"\(.*/stdlib.h\)".*#\1#
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20555 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20557 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
20559 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20561 gl_next_as_first_directive
='<'stdlib.h
'>'
20563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20564 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
20566 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
20576 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20584 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20592 if test "$ac_cv_have_decl_strtoimax" != yes; then
20593 HAVE_DECL_STRTOIMAX
=0
20595 for ac_func
in strtoimax
20597 ac_fn_c_check_func
"$LINENO" "strtoimax" "ac_cv_func_strtoimax"
20598 if test "x$ac_cv_func_strtoimax" = x
""yes; then :
20599 cat >>confdefs.h
<<_ACEOF
20600 #define HAVE_STRTOIMAX 1
20608 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
; then
20617 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
20620 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20621 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
20627 cat >>confdefs.h
<<_ACEOF
20628 #define HAVE_DECL_STRTOLL $ac_have_decl
20648 if test "$ac_cv_have_decl_strtoumax" != yes; then
20649 HAVE_DECL_STRTOUMAX
=0
20651 for ac_func
in strtoumax
20653 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20654 if test "x$ac_cv_func_strtoumax" = x
""yes; then :
20655 cat >>confdefs.h
<<_ACEOF
20656 #define HAVE_STRTOUMAX 1
20664 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
; then
20673 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
20676 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20677 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
20683 cat >>confdefs.h
<<_ACEOF
20684 #define HAVE_DECL_STRTOULL $ac_have_decl
20703 if test $ac_cv_func_symlink = no
; then
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20707 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20708 if test "${gl_cv_func_symlink_works+set}" = set; then :
20709 $as_echo_n "(cached) " >&6
20711 if test "$cross_compiling" = yes; then :
20712 gl_cv_func_symlink_works
="guessing no"
20714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20715 /* end confdefs.h. */
20716 #include <unistd.h>
20722 if (!symlink ("a", "conftest.link/"))
20724 if (symlink ("conftest.f", "conftest.lnk2"))
20726 else if (!symlink ("a", "conftest.lnk2/"))
20734 if ac_fn_c_try_run
"$LINENO"; then :
20735 gl_cv_func_symlink_works
=yes
20737 gl_cv_func_symlink_works
=no
20739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20743 rm -f conftest.f conftest.link conftest.lnk2
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20746 $as_echo "$gl_cv_func_symlink_works" >&6; }
20747 if test "$gl_cv_func_symlink_works" != yes; then
20752 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
20761 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
20791 if test $gl_cv_have_include_next = yes; then
20792 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20795 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20796 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20800 if test $ac_cv_header_sys_stat_h = yes; then
20803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20805 #include <sys/stat.h>
20809 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20810 *) gl_absname_cpp
="$ac_cpp" ;;
20812 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20813 sed -n '\#/sys/stat.h#{
20814 s#.*"\(.*/sys/stat.h\)".*#\1#
20820 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20826 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20828 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
20830 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20832 gl_next_as_first_directive
='<'sys
/stat.h
'>'
20834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20835 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
20837 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
20843 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20844 #include <sys/stat.h>
20846 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
20850 $as_echo "#define nlink_t int" >>confdefs.h
20868 if test $ac_cv_have_decl_localtime_r = no
; then
20869 HAVE_DECL_LOCALTIME_R
=0
20873 if test $ac_cv_func_localtime_r = yes; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20876 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20877 if test "${gl_cv_time_r_posix+set}" = set; then :
20878 $as_echo_n "(cached) " >&6
20880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20886 /* We don't need to append 'restrict's to the argument types,
20887 even though the POSIX signature has the 'restrict's,
20888 since C99 says they can't affect type compatibility. */
20889 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20891 /* Check the return type is a pointer.
20892 On HP-UX 10 it is 'int'. */
20893 *localtime_r (0, 0);
20899 if ac_fn_c_try_compile
"$LINENO"; then :
20900 gl_cv_time_r_posix
=yes
20902 gl_cv_time_r_posix
=no
20904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20908 $as_echo "$gl_cv_time_r_posix" >&6; }
20909 if test $gl_cv_time_r_posix = yes; then
20910 REPLACE_LOCALTIME_R
=0
20912 REPLACE_LOCALTIME_R
=1
20918 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
20927 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
20958 if test $gl_cv_have_include_next = yes; then
20959 gl_cv_next_unistd_h
='<'unistd.h
'>'
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20962 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20963 if test "${gl_cv_next_unistd_h+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20967 if test $ac_cv_header_unistd_h = yes; then
20970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20972 #include <unistd.h>
20976 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20977 *) gl_absname_cpp
="$ac_cpp" ;;
20979 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20980 sed -n '\#/unistd.h#{
20981 s#.*"\(.*/unistd.h\)".*#\1#
20987 gl_cv_next_unistd_h
='<'unistd.h
'>'
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
20993 $as_echo "$gl_cv_next_unistd_h" >&6; }
20995 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
20997 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20999 gl_next_as_first_directive
='<'unistd.h
'>'
21001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21002 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21004 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21009 if test $ac_cv_header_unistd_h = yes; then
21018 gl_gnulib_enabled_dosname
=false
21019 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21020 gl_gnulib_enabled_sigprocmask
=false
21021 gl_gnulib_enabled_stat
=false
21022 gl_gnulib_enabled_strtoll
=false
21023 gl_gnulib_enabled_strtoull
=false
21024 gl_gnulib_enabled_verify
=false
21025 func_gl_gnulib_m4code_dosname
()
21027 if ! $gl_gnulib_enabled_dosname; then
21028 gl_gnulib_enabled_dosname
=true
21031 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21033 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21036 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21039 func_gl_gnulib_m4code_sigprocmask
()
21041 if ! $gl_gnulib_enabled_sigprocmask; then
21045 if test $gl_cv_type_sigset_t = yes; then
21046 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21047 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21048 gl_cv_func_sigprocmask
=1
21052 if test -z "$gl_cv_func_sigprocmask"; then
21053 HAVE_POSIX_SIGNALBLOCKING
=0
21056 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21065 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21074 GNULIB_SIGPROCMASK
=1
21080 gl_gnulib_enabled_sigprocmask
=true
21083 func_gl_gnulib_m4code_stat
()
21085 if ! $gl_gnulib_enabled_stat; then
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21090 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21091 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21092 $as_echo_n "(cached) " >&6
21094 if test "$cross_compiling" = yes; then :
21096 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21097 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21101 /* end confdefs.h. */
21102 #include <sys/stat.h>
21107 struct stat st; return stat (".", &st) != stat ("./", &st);
21112 if ac_fn_c_try_run
"$LINENO"; then :
21113 gl_cv_func_stat_dir_slash
=yes
21115 gl_cv_func_stat_dir_slash
=no
21117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21123 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21125 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21126 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21130 # Assume that if we have lstat, we can also check symlinks.
21131 if test $ac_cv_func_lstat = yes; then
21132 ln -s conftest.tmp conftest.lnk
21134 if test "$cross_compiling" = yes; then :
21135 gl_cv_func_stat_file_slash
="guessing no"
21137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21139 #include <sys/stat.h>
21146 if (!stat ("conftest.tmp/", &st))
21149 if (!stat ("conftest.lnk/", &st))
21158 if ac_fn_c_try_run
"$LINENO"; then :
21159 gl_cv_func_stat_file_slash
=yes
21161 gl_cv_func_stat_file_slash
=no
21163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21167 rm -f conftest.tmp conftest.lnk
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21170 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21171 case $gl_cv_func_stat_dir_slash in
21172 *no
) REPLACE_STAT
=1
21174 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21177 case $gl_cv_func_stat_file_slash in
21178 *no
) REPLACE_STAT
=1
21180 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21184 if test $REPLACE_STAT = 1; then
21193 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21211 gl_gnulib_enabled_stat
=true
21212 if $condition; then
21213 func_gl_gnulib_m4code_dosname
21215 if $condition; then
21216 func_gl_gnulib_m4code_verify
21220 func_gl_gnulib_m4code_strtoll
()
21222 if ! $gl_gnulib_enabled_strtoll; then
21226 if test "$ac_cv_type_long_long_int" = yes; then
21227 for ac_func
in strtoll
21229 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21230 if test "x$ac_cv_func_strtoll" = x
""yes; then :
21231 cat >>confdefs.h
<<_ACEOF
21232 #define HAVE_STRTOLL 1
21238 if test $ac_cv_func_strtoll = no
; then
21243 if test $HAVE_STRTOLL = 0; then
21252 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21269 gl_gnulib_enabled_strtoll
=true
21272 func_gl_gnulib_m4code_strtoull
()
21274 if ! $gl_gnulib_enabled_strtoull; then
21278 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21279 for ac_func
in strtoull
21281 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21282 if test "x$ac_cv_func_strtoull" = x
""yes; then :
21283 cat >>confdefs.h
<<_ACEOF
21284 #define HAVE_STRTOULL 1
21290 if test $ac_cv_func_strtoull = no
; then
21295 if test $HAVE_STRTOULL = 0; then
21304 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
21321 gl_gnulib_enabled_strtoull
=true
21324 func_gl_gnulib_m4code_verify
()
21326 if ! $gl_gnulib_enabled_verify; then
21327 gl_gnulib_enabled_verify
=true
21330 if test $REPLACE_GETOPT = 1; then
21331 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21333 if test $REPLACE_LSTAT = 1; then
21334 func_gl_gnulib_m4code_dosname
21336 if test $REPLACE_LSTAT = 1; then
21337 func_gl_gnulib_m4code_stat
21339 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21340 func_gl_gnulib_m4code_sigprocmask
21342 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21343 func_gl_gnulib_m4code_stat
21345 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
; then
21346 func_gl_gnulib_m4code_verify
21348 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
21349 func_gl_gnulib_m4code_strtoll
21351 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
; then
21352 func_gl_gnulib_m4code_verify
21354 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
21355 func_gl_gnulib_m4code_strtoull
21358 if $gl_gnulib_enabled_dosname; then
21359 gl_GNULIB_ENABLED_dosname_TRUE
=
21360 gl_GNULIB_ENABLED_dosname_FALSE
='#'
21362 gl_GNULIB_ENABLED_dosname_TRUE
='#'
21363 gl_GNULIB_ENABLED_dosname_FALSE
=
21366 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21367 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
21368 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
21370 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
21371 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
21374 if $gl_gnulib_enabled_sigprocmask; then
21375 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
21376 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
21378 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
21379 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
21382 if $gl_gnulib_enabled_stat; then
21383 gl_GNULIB_ENABLED_stat_TRUE
=
21384 gl_GNULIB_ENABLED_stat_FALSE
='#'
21386 gl_GNULIB_ENABLED_stat_TRUE
='#'
21387 gl_GNULIB_ENABLED_stat_FALSE
=
21390 if $gl_gnulib_enabled_strtoll; then
21391 gl_GNULIB_ENABLED_strtoll_TRUE
=
21392 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
21394 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
21395 gl_GNULIB_ENABLED_strtoll_FALSE
=
21398 if $gl_gnulib_enabled_strtoull; then
21399 gl_GNULIB_ENABLED_strtoull_TRUE
=
21400 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
21402 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
21403 gl_GNULIB_ENABLED_strtoull_FALSE
=
21406 if $gl_gnulib_enabled_verify; then
21407 gl_GNULIB_ENABLED_verify_TRUE
=
21408 gl_GNULIB_ENABLED_verify_FALSE
='#'
21410 gl_GNULIB_ENABLED_verify_TRUE
='#'
21411 gl_GNULIB_ENABLED_verify_FALSE
=
21414 # End of code from modules
21435 gl_source_base
='tests'
21436 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
21438 gl_module_indicator_condition
=$gltests_WITNESS
21449 LIBGNU_LIBDEPS
="$gl_libdeps"
21451 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
21456 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
21459 ## The -headerpad option tells ld (see man page) to leave room at the
21460 ## end of the header for adding load commands. Needed for dumping.
21461 ## 0x690 is the total size of 30 segment load commands (at 56
21462 ## each); under Cocoa 31 commands are required.
21463 if test "$HAVE_NS" = "yes"; then
21464 libs_nsgui
="-framework AppKit"
21465 headerpad_extra
=6C8
21468 headerpad_extra
=690
21470 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21472 ## This is here because src/Makefile.in did some extra fiddling around
21473 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21474 ## #ifndef LD_SWITCH_SYSTEM
21475 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21476 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21477 ## not using gcc, darwin system not on an alpha (ie darwin, since
21478 ## darwin + alpha does not occur).
21479 ## Because this was done in src/Makefile.in, the resulting part of
21480 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21481 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21482 ## rather than LD_SWITCH_SYSTEM.
21483 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21484 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
21487 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
21488 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
21489 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
21490 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21491 ## had different values in configure (in ac_link) and src/Makefile.in.
21492 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21493 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
21495 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
21498 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21499 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21508 ## gnu: GNU needs its own crt0.
21509 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
21511 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21512 ## library search parth, i.e. it won't search /usr/lib for libc and
21513 ## friends. Using -nostartfiles instead avoids this problem, and
21514 ## will also work on earlier NetBSD releases.
21515 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
21517 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21518 ## MkLinux/LinuxPPC needs this.
21519 ## ibms390x only supports opsys = gnu-linux so it can be added here.
21522 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
21528 if test "x$ORDINARY_LINK" = "xyes"; then
21532 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21535 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21536 ## freebsd, gnu-* not on macppc|ibms390x.
21537 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21539 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21540 ## places that are difficult to figure out at make time. Fortunately,
21541 ## these same versions allow you to pass arbitrary flags on to the
21542 ## linker, so there is no reason not to use it as a linker.
21544 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21545 ## searching for libraries in its internal directories, so we have to
21546 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21547 LD_FIRSTFLAG
="-nostdlib"
21550 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21551 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
21556 ## FIXME? The logic here is not precisely the same as that above.
21557 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21558 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21560 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21563 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
21566 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21567 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21573 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21574 ## immediately undefine it again and redefine it to empty.
21575 ## Was the C_SWITCH_X_SITE part really necessary?
21576 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21582 ## Ask GCC where to find libgcc.a.
21583 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21588 ## If we're using X11/GNUstep, define some consequences.
21589 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
21591 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21594 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21601 #### Report on what we decided to do.
21602 #### Report GTK as a toolkit, even if it doesn't use Xt.
21603 #### It makes printing result more understandable as using GTK sets
21604 #### toolkit_scroll_bars to yes by default.
21605 if test "${HAVE_GTK}" = "yes"; then
21610 if test -n "$machfile"; then
21611 and_machfile
=" and \`${machfile}'"
21615 Configured for \`${canonical}'.
21617 Where should the build process find the source code? ${srcdir}
21618 What operating system and machine description files should Emacs use?
21619 \`${opsysfile}'${and_machfile}
21620 What compiler should emacs be built with? ${CC} ${CFLAGS}
21621 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21622 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21623 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21624 What window system should Emacs use? ${window_system}
21625 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21627 if test -n "${x_includes}"; then
21628 echo " Where do we find X Windows header files? ${x_includes}"
21630 echo " Where do we find X Windows header files? Standard dirs"
21632 if test -n "${x_libraries}"; then
21633 echo " Where do we find X Windows libraries? ${x_libraries}"
21635 echo " Where do we find X Windows libraries? Standard dirs"
21638 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21639 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21640 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21641 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21642 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21643 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21644 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21645 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21647 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21648 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21649 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21650 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21651 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21652 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
21653 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21655 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21656 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21657 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21658 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21660 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21663 if test $USE_XASSERTS = yes; then
21664 echo " Compiling with asserts turned on."
21665 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21670 if test "$HAVE_NS" = "yes"; then
21672 echo "You must run \"make install\" in order to test the built application.
21673 The installed application will go to nextstep/Emacs.app and can be
21674 run or moved from there."
21675 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21676 echo "The application will be fully self-contained."
21678 echo "The lisp resources for the application will be installed under ${prefix}.
21679 You may need to run \"make install\" with sudo. The application will fail
21680 to run if these resources are not installed."
21686 # Remove any trailing slashes in these variables.
21687 test "${prefix}" != NONE
&&
21688 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21689 test "${exec_prefix}" != NONE
&&
21690 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21692 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"
21694 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"
21697 opt_makefile
=test
/automated
/Makefile
21699 if test -f $srcdir/${opt_makefile}.
in; then
21700 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21701 ac_config_files
="$ac_config_files test/automated/Makefile"
21705 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21709 ac_config_commands
="$ac_config_commands mkdirs"
21712 ac_config_commands
="$ac_config_commands epaths"
21715 ac_config_commands
="$ac_config_commands gdbinit"
21718 cat >confcache
<<\_ACEOF
21719 # This file is a shell script that caches the results of configure
21720 # tests run on this system so they can be shared between configure
21721 # scripts and configure runs, see configure's option --config-cache.
21722 # It is not useful on other systems. If it contains results you don't
21723 # want to keep, you may remove or edit it.
21725 # config.status only pays attention to the cache file if you give it
21726 # the --recheck option to rerun configure.
21728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21730 # following values.
21734 # The following way of writing the cache mishandles newlines in values,
21735 # but we know of no workaround that is simple, portable, and efficient.
21736 # So, we kill variables containing newlines.
21737 # Ultrix sh set writes to stderr and can't be redirected directly,
21738 # and sets the high bit in the cache file unless we assign to the vars.
21740 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21741 eval ac_val
=\$
$ac_var
21745 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21749 _ | IFS | as_nl
) ;; #(
21750 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21751 *) { eval $ac_var=; unset $ac_var;} ;;
21757 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21758 *${as_nl}ac_space
=\
*)
21759 # `set' does not quote correctly, so add quotes: double-quote
21760 # substitution turns \\\\ into \\, and sed turns \\ into \.
21763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21766 # `set' quotes correctly as required by POSIX, so do not add quotes.
21767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21776 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21778 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21780 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21781 if test -w "$cache_file"; then
21782 test "x$cache_file" != "x/dev/null" &&
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21784 $as_echo "$as_me: updating cache $cache_file" >&6;}
21785 cat confcache
>$cache_file
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21793 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21794 # Let make expand exec_prefix.
21795 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21797 DEFS
=-DHAVE_CONFIG_H
21801 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21802 # 1. Remove the extension, and $U if already installed.
21803 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21804 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21806 # will be set to the directory where LIBOBJS objects are built.
21807 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21808 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
21810 LIBOBJS
=$ac_libobjs
21812 LTLIBOBJS
=$ac_ltlibobjs
21815 if test -n "$EXEEXT"; then
21817 am__EXEEXT_FALSE
='#'
21819 am__EXEEXT_TRUE
='#'
21823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21824 as_fn_error
"conditional \"AMDEP\" was never defined.
21825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21828 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
21829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21832 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21833 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
21834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21836 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21837 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21841 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21842 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
21843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21845 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21846 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
21847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21849 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21850 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21853 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21854 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21857 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21858 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21861 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21862 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21865 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21866 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21869 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21870 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21873 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21874 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21877 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21878 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21881 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21882 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21888 if test -n "$gl_LIBOBJS"; then
21889 # Remove the extension.
21890 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21891 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21892 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21893 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21896 gl_LIBOBJS
=$gl_libobjs
21898 gl_LTLIBOBJS
=$gl_ltlibobjs
21904 if test -n "$gltests_LIBOBJS"; then
21905 # Remove the extension.
21906 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21907 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21908 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21909 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21912 gltests_LIBOBJS
=$gltests_libobjs
21914 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21918 : ${CONFIG_STATUS=./config.status}
21920 ac_clean_files_save
=$ac_clean_files
21921 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21927 # Generated by $as_me.
21928 # Run this file to recreate the current configuration.
21929 # Compiler output produced by configure, useful for debugging
21930 # configure, is in config.log if it exists.
21933 ac_cs_recheck=false
21936 SHELL=\${CONFIG_SHELL-$SHELL}
21939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
21940 ## -------------------- ##
21941 ## M4sh Initialization. ##
21942 ## -------------------- ##
21944 # Be more Bourne compatible
21945 DUALCASE
=1; export DUALCASE
# for MKS sh
21946 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
21949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21950 # is contrary to our usage. Disable this feature.
21951 alias -g '${1+"$@"}'='"$@"'
21952 setopt NO_GLOB_SUBST
21954 case `(set -o) 2>/dev/null` in #(
21966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21967 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21970 # Prefer a ksh shell builtin over an external printf program on Solaris,
21971 # but without wasting forks for bash or zsh.
21972 if test -z "$BASH_VERSION$ZSH_VERSION" \
21973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21974 as_echo='print
-r --'
21975 as_echo_n='print
-rn --'
21976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21977 as_echo='printf %s
\n'
21978 as_echo_n='printf %s
'
21980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21981 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
21982 as_echo_n='/usr
/ucb
/echo -n'
21984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21985 as_echo_n_body='eval
21989 expr "X$arg" : "X\\(.*\\)$as_nl";
21990 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21992 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
21994 export as_echo_n_body
21995 as_echo_n='sh
-c $as_echo_n_body as_echo
'
21997 export as_echo_body
21998 as_echo='sh
-c $as_echo_body as_echo
'
22001 # The user is always right.
22002 if test "${PATH_SEPARATOR+set}" != set; then
22004 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22005 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22012 # We need space, tab and new line, in precisely that order. Quoting is
22013 # there to prevent editors from complaining about space-tab.
22014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22015 # splitting by setting IFS to empty value.)
22018 # Find who we are. Look in the path if we contain no directory separator.
22020 *[\\/]* ) as_myself=$0 ;;
22021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22022 for as_dir in $PATH
22025 test -z "$as_dir" && as_dir=.
22026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22032 # We did not find ourselves, most probably we were run as `sh COMMAND'
22033 # in which case we are not to be found in the path.
22034 if test "x$as_myself" = x
; then
22037 if test ! -f "$as_myself"; then
22038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22042 # Unset variables that we do not need and which cause bugs (e.g. in
22043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22044 # suppresses any "Segmentation fault" message there. '((' could
22045 # trigger a bug in pdksh 5.2.14.
22046 for as_var
in BASH_ENV ENV MAIL MAILPATH
22047 do eval test x\
${$as_var+set} = xset \
22048 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22061 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22064 # as_fn_error ERROR [LINENO LOG_FD]
22065 # ---------------------------------
22066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22068 # script with status $?, using 1 if that was 0.
22071 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22073 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22076 $as_echo "$as_me: error: $1" >&2
22077 as_fn_exit
$as_status
22081 # as_fn_set_status STATUS
22082 # -----------------------
22083 # Set $? to STATUS, without forking.
22084 as_fn_set_status
()
22087 } # as_fn_set_status
22089 # as_fn_exit STATUS
22090 # -----------------
22091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22095 as_fn_set_status
$1
22101 # Portably unset VAR.
22104 { eval $1=; unset $1;}
22106 as_unset
=as_fn_unset
22107 # as_fn_append VAR VALUE
22108 # ----------------------
22109 # Append the text in VALUE to the end of the definition contained in VAR. Take
22110 # advantage of any shell optimizations that allow amortized linear growth over
22111 # repeated appends, instead of the typical quadratic growth present in naive
22113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22114 eval 'as_fn_append ()
22125 # as_fn_arith ARG...
22126 # ------------------
22127 # Perform arithmetic evaluation on the ARGs, and store the result in the
22128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22129 # must be portable across $(()) and expr.
22130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22131 eval 'as_fn_arith ()
22138 as_val
=`expr "$@" || test $? -eq 1`
22143 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22144 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22150 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22151 as_basename
=basename
22156 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22162 as_me
=`$as_basename -- "$0" ||
22163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22164 X"$0" : 'X\(//\)$' \| \
22165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22167 sed '/^.*\/\([^/][^/]*\)\/*$/{
22181 # Avoid depending upon Character Ranges.
22182 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22183 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22184 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22185 as_cr_digits
='0123456789'
22186 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22188 ECHO_C
= ECHO_N
= ECHO_T
=
22189 case `echo -n x` in #(((((
22191 case `echo 'xy\c'` in
22192 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22194 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22201 rm -f conf$$ conf$$.exe conf$$.
file
22202 if test -d conf$$.dir
; then
22203 rm -f conf$$.dir
/conf$$.
file
22206 mkdir conf$$.dir
2>/dev
/null
22208 if (echo >conf$$.
file) 2>/dev
/null
; then
22209 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22211 # ... but there are two gotchas:
22212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22214 # In both cases, we have to default to `cp -p'.
22215 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22217 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22225 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22226 rmdir conf$$.dir
2>/dev
/null
22231 # Create "$as_dir" as a directory, including parents if necessary.
22236 -*) as_dir
=.
/$as_dir;;
22238 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22242 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22243 *) as_qdir
=$as_dir;;
22245 as_dirs
="'$as_qdir' $as_dirs"
22246 as_dir
=`$as_dirname -- "$as_dir" ||
22247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248 X"$as_dir" : 'X\(//\)[^/]' \| \
22249 X"$as_dir" : 'X\(//\)$' \| \
22250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22251 $as_echo X"$as_dir" |
22252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22256 /^X\(\/\/\)[^/].*/{
22269 test -d "$as_dir" && break
22271 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22272 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
22276 if mkdir
-p .
2>/dev
/null
; then
22277 as_mkdir_p
='mkdir -p "$as_dir"'
22279 test -d .
/-p && rmdir .
/-p
22283 if test -x / >/dev
/null
2>&1; then
22284 as_test_x
='test -x'
22286 if ls -dL / >/dev
/null
2>&1; then
22293 if test -d "$1"; then
22299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22300 ???[sx]*):;;*)false;;esac;fi
22304 as_executable_p
=$as_test_x
22306 # Sed expression to map a string onto a valid CPP name.
22307 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22309 # Sed expression to map a string onto a valid variable name.
22310 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22314 ## ----------------------------------- ##
22315 ## Main body of $CONFIG_STATUS script. ##
22316 ## ----------------------------------- ##
22318 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22321 # Save the log message, to keep $0 and so on meaningful, and to
22322 # report actual input values of CONFIG_FILES etc. instead of their
22323 # values after options handling.
22325 This file was extended by emacs $as_me 24.0.50, which was
22326 generated by GNU Autoconf 2.65. Invocation command line was
22328 CONFIG_FILES = $CONFIG_FILES
22329 CONFIG_HEADERS = $CONFIG_HEADERS
22330 CONFIG_LINKS = $CONFIG_LINKS
22331 CONFIG_COMMANDS = $CONFIG_COMMANDS
22334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22339 case $ac_config_files in *"
22340 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22343 case $ac_config_headers in *"
22344 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22349 # Files that config.status was made for.
22350 config_files="$ac_config_files"
22351 config_headers="$ac_config_headers"
22352 config_commands="$ac_config_commands"
22356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22358 \`$as_me' instantiates files and other configuration actions
22359 from templates according to the current configuration. Unless the files
22360 and actions are specified as TAGs, all are instantiated by default.
22362 Usage: $0 [OPTION]... [TAG]...
22364 -h, --help print this help, then exit
22365 -V, --version print version number and configuration settings, then exit
22366 --config print configuration, then exit
22367 -q, --quiet, --silent
22368 do not print progress messages
22369 -d, --debug don't remove temporary files
22370 --recheck update $as_me by reconfiguring in the same conditions
22371 --file=FILE[:TEMPLATE]
22372 instantiate the configuration file FILE
22373 --header=FILE[:TEMPLATE]
22374 instantiate the configuration header FILE
22376 Configuration files:
22379 Configuration headers:
22382 Configuration commands:
22385 Report bugs to the package provider."
22388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22391 emacs config.status 24.0.50
22392 configured by $0, generated by GNU Autoconf 2.65,
22393 with options \\"\$ac_cs_config\\"
22395 Copyright (C) 2009 Free Software Foundation, Inc.
22396 This config.status script is free software; the Free Software Foundation
22397 gives unlimited permission to copy, distribute and modify it."
22404 test -n "\$AWK" || AWK=awk
22407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22408 # The default lists apply if the user does not specify any file.
22414 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22415 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22426 # Handling of the options.
22427 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22429 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22430 $as_echo "$ac_cs_version"; exit ;;
22431 --config |
--confi |
--conf |
--con |
--co |
--c )
22432 $as_echo "$ac_cs_config"; exit ;;
22433 --debug |
--debu |
--deb |
--de |
--d |
-d )
22435 --file |
--fil |
--fi |
--f )
22438 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22440 as_fn_append CONFIG_FILES
" '$ac_optarg'"
22441 ac_need_defaults
=false
;;
22442 --header |
--heade |
--head |
--hea )
22445 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22447 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
22448 ac_need_defaults
=false
;;
22450 # Conflict between --help and --header
22451 as_fn_error
"ambiguous option: \`$1'
22452 Try \`$0 --help' for more information.";;
22453 --help |
--hel |
-h )
22454 $as_echo "$ac_cs_usage"; exit ;;
22455 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22456 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22459 # This is an error.
22460 -*) as_fn_error
"unrecognized option: \`$1'
22461 Try \`$0 --help' for more information." ;;
22463 *) as_fn_append ac_config_targets
" $1"
22464 ac_need_defaults
=false
;;
22470 ac_configure_extra_args
=
22472 if $ac_cs_silent; then
22474 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22479 if \$ac_cs_recheck; then
22480 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22482 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22483 CONFIG_SHELL='$SHELL'
22484 export CONFIG_SHELL
22489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22494 ## Running $as_me. ##
22500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22504 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22505 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
22509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22511 # Handling of arguments.
22512 for ac_config_target
in $ac_config_targets
22514 case $ac_config_target in
22515 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22516 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22517 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22518 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22519 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
22520 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22521 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
22522 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
22523 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
22524 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
22525 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
22526 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22527 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22528 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22529 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
22530 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
22531 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
22532 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
22534 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22539 # If the user did not use the arguments to specify the items to instantiate,
22540 # then the envvar interface is used. Set only those that are not.
22541 # We use the long form for the default assignment because of an extremely
22542 # bizarre bug on SunOS 4.1.3.
22543 if $ac_need_defaults; then
22544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22549 # Have a temporary directory for convenience. Make it in the build tree
22550 # simply because there is no reason against having it here, and in addition,
22551 # creating and moving files from /tmp can sometimes cause problems.
22552 # Hook for its removal unless debugging.
22553 # Note that there is a small window in which the directory will not be cleaned:
22554 # after its creation but before its name has been assigned to `$tmp'.
22558 trap 'exit_status=$?
22559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22561 trap 'as_fn_exit 1' 1 2 13 15
22563 # Create a (secure) tmp directory for tmp files.
22566 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22567 test -n "$tmp" && test -d "$tmp"
22570 tmp
=.
/conf$$
-$RANDOM
22571 (umask 077 && mkdir
"$tmp")
22572 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
22574 # Set up the scripts for CONFIG_FILES section.
22575 # No need to generate them if there are no CONFIG_FILES.
22576 # This happens for instance with `./config.status config.h'.
22577 if test -n "$CONFIG_FILES"; then
22579 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
22580 ac_cs_awk_getline
=:
22581 ac_cs_awk_pipe_init
=
22582 ac_cs_awk_read_file
='
22583 while ((getline aline < (F[key])) > 0)
22586 ac_cs_awk_pipe_fini
=
22588 ac_cs_awk_getline
=false
22589 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
22590 ac_cs_awk_read_file
='
22592 print "cat " F[key] " &&"
22593 '$ac_cs_awk_pipe_init
22594 # The final `:' finishes the AND list.
22595 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
22597 ac_cr
=`echo X | tr X '\015'`
22598 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22599 # But we know of no other shell where ac_cr would be empty at this
22600 # point, so we can use a bashism as a fallback.
22601 if test "x$ac_cr" = x
; then
22602 eval ac_cr
=\$
\'\\r
\'
22604 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22605 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22608 ac_cs_awk_cr
=$ac_cr
22611 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22614 # Create commands to substitute file output variables.
22616 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22617 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22618 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
22621 } >conf$
$files.sh
&&
22622 . .
/conf$
$files.sh ||
22623 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
22624 rm -f conf$
$files.sh
22627 echo "cat >conf$$subs.awk <<_ACEOF" &&
22628 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22630 } >conf$$subs.sh ||
22631 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22634 for ac_last_try in false false false false false :; do
22635 . ./conf$$subs.sh ||
22636 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22638 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22639 if test $ac_delim_n = $ac_delim_num; then
22641 elif $ac_last_try; then
22642 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22644 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22647 rm -f conf$$subs.sh
22649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22650 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22654 s/^/S["/; s
/!.
*/"]=/
22664 s/\(.\{148\}\)..*/\1/
22666 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22671 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22678 s/\(.\{148\}\)..*/\1/
22680 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22684 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22689 ' <conf$$subs.awk | sed '
22694 ' >>$CONFIG_STATUS || ac_write_fail=1
22695 rm -f conf$$subs.awk
22696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22698 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22699 for (key in S) S_is_set[key] = 1
22701 \$ac_cs_awk_pipe_init
22705 nfields = split(line, field, "@
")
22707 len = length(field[1])
22708 for (i = 2; i < nfields; i++) {
22710 keylen = length(key)
22711 if (S_is_set[key]) {
22713 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22714 len += length(value) + length(field[++i])
22719 if (nfields == 3 && !substed) {
22721 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22722 \$ac_cs_awk_read_file
22728 \$ac_cs_awk_pipe_fini
22731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22732 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22733 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22736 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22737 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
22740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22742 # trailing colons and then remove the whole line if VPATH becomes empty
22743 # (actually we leave an empty line to preserve line numbers).
22744 if test "x
$srcdir" = x.; then
22745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22746 s/:*\$(srcdir):*/:/
22747 s/:*\${srcdir}:*/:/
22749 s/^\([^=]*=[ ]*\):*/\1/
22755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22756 fi # test -n "$CONFIG_FILES"
22758 # Set up the scripts for CONFIG_HEADERS section.
22759 # No need to generate them if there are no CONFIG_HEADERS.
22760 # This happens for instance with `./config.status Makefile'.
22761 if test -n "$CONFIG_HEADERS"; then
22762 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22766 # Transform confdefs.h into an awk script `defines.awk', embedded as
22767 # here-document in config.status, that substitutes the proper values into
22768 # config.h.in to produce config.h.
22770 # Create a delimiter string that does not exist in confdefs.h, to ease
22771 # handling of long lines.
22773 for ac_last_try in false false :; do
22774 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22775 if test -z "$ac_t"; then
22777 elif $ac_last_try; then
22778 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
22780 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22784 # For the awk script, D is an array of macro values keyed by name,
22785 # likewise P contains macro parameters if any. Preserve backslash
22786 # newline sequences.
22788 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22790 s/.\{148\}/&'"$ac_delim"'/g
22793 s/^[ ]*#[ ]*define[ ][ ]*/ /
22800 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22802 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22807 D["\
1"]=" \
3\\\\\\n
"\\/p
22809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22814 s/.\{148\}/&'"$ac_delim"'/g
22819 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22822 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22824 ' <confdefs.h | sed '
22825 s/'"$ac_delim"'/"\\\
22826 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22829 for (key in D) D_is_set[key] = 1
22832 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22834 split(line, arg, " ")
22835 if (arg[1] == "#") {
22839 defundef
= substr
(arg
[1], 2)
22842 split(mac1
, mac2
, "(") #)
22844 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22845 if (D_is_set
[macro
]) {
22846 # Preserve the white space surrounding the "#".
22847 print prefix
"define", macro P
[macro
] D
[macro
]
22850 # Replace #undef with comments. This is necessary, for example,
22851 # in the case of _POSIX_SOURCE, which is predefined and required
22852 # on some systems where configure will not decide to define it.
22853 if (defundef
== "undef") {
22854 print
"/*", prefix defundef
, macro
, "*/"
22862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22863 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
22864 fi # test -n "$CONFIG_HEADERS"
22867 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22872 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22874 case $ac_mode$ac_tag in
22876 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
22877 :[FH
]-) ac_tag
=-:-;;
22878 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22895 -) ac_f
="$tmp/stdin";;
22896 *) # Look for the file first in the build tree, then in the source tree
22897 # (if the path is not absolute). The absolute path cannot be DOS-style,
22898 # because $ac_f cannot contain `:'.
22902 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22904 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
22906 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22907 as_fn_append ac_file_inputs
" '$ac_f'"
22910 # Let's still pretend it is `configure' which instantiates (i.e., don't
22911 # use $as_me), people would be surprised to read:
22912 # /* config.h. Generated by config.status. */
22913 configure_input
='Generated from '`
22914 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22916 if test x
"$ac_file" != x-
; then
22917 configure_input
="$ac_file. $configure_input"
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22919 $as_echo "$as_me: creating $ac_file" >&6;}
22921 # Neutralize special characters interpreted by sed in replacement strings.
22922 case $configure_input in #(
22923 *\
&* |
*\|
* |
*\\* )
22924 ac_sed_conf_input
=`$as_echo "$configure_input" |
22925 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22926 *) ac_sed_conf_input
=$configure_input;;
22930 *:-:* |
*:-) cat >"$tmp/stdin" \
22931 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
22936 ac_dir
=`$as_dirname -- "$ac_file" ||
22937 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22938 X"$ac_file" : 'X\(//\)[^/]' \| \
22939 X"$ac_file" : 'X\(//\)$' \| \
22940 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22941 $as_echo X"$ac_file" |
22942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22946 /^X\(\/\/\)[^/].*/{
22959 as_dir
="$ac_dir"; as_fn_mkdir_p
22963 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22965 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22966 # A ".." for each directory in $ac_dir_suffix.
22967 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22968 case $ac_top_builddir_sub in
22969 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22970 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22973 ac_abs_top_builddir
=$ac_pwd
22974 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22975 # for backward compatibility:
22976 ac_top_builddir
=$ac_top_build_prefix
22979 .
) # We are building in place.
22981 ac_top_srcdir
=$ac_top_builddir_sub
22982 ac_abs_top_srcdir
=$ac_pwd ;;
22983 [\\/]* | ?
:[\\/]* ) # Absolute name.
22984 ac_srcdir
=$srcdir$ac_dir_suffix;
22985 ac_top_srcdir
=$srcdir
22986 ac_abs_top_srcdir
=$srcdir ;;
22987 *) # Relative name.
22988 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22989 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22990 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22992 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23002 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23003 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23005 ac_MKDIR_P
=$MKDIR_P
23007 [\\/$
]* | ?
:[\\/]* ) ;;
23008 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23013 # If the template does not know about datarootdir, expand it.
23014 # FIXME: This hack should be removed a few years after 2.60.
23015 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23026 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23027 *datarootdir
*) ac_datarootdir_seen
=yes;;
23028 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23030 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23033 ac_datarootdir_hack='
23034 s&@datadir@&$datadir&g
23035 s&@docdir@&$docdir&g
23036 s&@infodir@&$infodir&g
23037 s&@localedir@&$localedir&g
23038 s&@mandir@&$mandir&g
23039 s&\\\${datarootdir}&$datarootdir&g' ;;
23043 # Neutralize VPATH when `$srcdir' = `.'.
23044 # Shell code in configure.ac might set extrasub.
23045 # FIXME: do we really want to maintain this feature?
23046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23047 ac_sed_extra="$ac_vpsub
23050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23052 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23053 s|@configure_input@|
$ac_sed_conf_input|
;t t
23054 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23055 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23056 s
&@srcdir@
&$ac_srcdir&;t t
23057 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23058 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23059 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23060 s
&@builddir@
&$ac_builddir&;t t
23061 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23062 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23063 s
&@INSTALL@
&$ac_INSTALL&;t t
23064 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23065 $ac_datarootdir_hack
23067 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23068 if $ac_cs_awk_getline; then
23069 $AWK -f "$tmp/subs.
awk"
23071 $AWK -f "$tmp/subs.
awk" | $SHELL
23073 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23079 which seems to be undefined. Please make sure it is defined." >&5
23080 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23081 which seems to be undefined. Please make sure it is defined." >&2;}
23085 -) cat "$tmp/out" && rm -f "$tmp/out";;
23086 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23088 || as_fn_error "could not create $ac_file" "$LINENO" 5
23094 if test x"$ac_file" != x-; then
23096 $as_echo "/* $configure_input */" \
23097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23098 } >"$tmp/config.h" \
23099 || as_fn_error "could not create $ac_file" "$LINENO" 5
23100 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23102 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23105 mv "$tmp/config.h" "$ac_file" \
23106 || as_fn_error "could not create $ac_file" "$LINENO" 5
23109 $as_echo "/* $configure_input */" \
23110 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23111 || as_fn_error "could not create -" "$LINENO" 5
23113 # Compute "$ac_file"'s index
in $config_headers.
23116 for _am_header
in $config_headers :; do
23117 case $_am_header in
23118 $_am_arg |
$_am_arg:* )
23121 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23124 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23125 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23126 X"$_am_arg" : 'X\(//\)[^/]' \| \
23127 X"$_am_arg" : 'X\(//\)$' \| \
23128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23129 $as_echo X"$_am_arg" |
23130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23134 /^X\(\/\/\)[^/].*/{
23146 s/.*/./; q'`/stamp-h
$_am_stamp_count
23149 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23150 $as_echo "$as_me: executing $ac_file commands" >&6;}
23155 case $ac_file$ac_mode in
23156 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23157 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23158 # are listed without --file. Let's play safe and only enable the eval
23159 # if we detect the quoting.
23160 case $CONFIG_FILES in
23161 *\'*) eval set x
"$CONFIG_FILES" ;;
23162 *) set x
$CONFIG_FILES ;;
23167 # Strip MF so we end up with the name of the file.
23168 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23169 # Check whether this is an Automake generated Makefile or not.
23170 # We used to match only the files named `Makefile.in', but
23171 # some people rename them; so instead we look at the file content.
23172 # Grep'ing the first line is not enough: some people post-process
23173 # each Makefile.in and add a new line on top of each file to say so.
23174 # Grep'ing the whole file is not good either: AIX grep has a line
23175 # limit of 2048, but all sed's we know have understand at least 4000.
23176 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23177 dirpart
=`$as_dirname -- "$mf" ||
23178 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23179 X"$mf" : 'X\(//\)[^/]' \| \
23180 X"$mf" : 'X\(//\)$' \| \
23181 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23187 /^X\(\/\/\)[^/].*/{
23203 # Extract the definition of DEPDIR, am__include, and am__quote
23204 # from the Makefile without running `make'.
23205 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23206 test -z "$DEPDIR" && continue
23207 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23208 test -z "am__include" && continue
23209 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23210 # When using ansi2knr, U may be empty or an underscore; expand it
23211 U
=`sed -n 's/^U = //p' < "$mf"`
23212 # Find all dependency output files, they are included files with
23213 # $(DEPDIR) in their names. We invoke sed twice because it is the
23214 # simplest approach to changing $(DEPDIR) to its actual value in the
23216 for file in `sed -n "
23217 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23218 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23219 # Make sure the directory exists.
23220 test -f "$dirpart/$file" && continue
23221 fdir
=`$as_dirname -- "$file" ||
23222 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$file" : 'X\(//\)[^/]' \| \
23224 X"$file" : 'X\(//\)$' \| \
23225 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23226 $as_echo X"$file" |
23227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23231 /^X\(\/\/\)[^/].*/{
23244 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23245 # echo "creating $dirpart/$file"
23246 echo '# dummy' > "$dirpart/$file"
23252 for dir
in etc lisp
; do
23253 test -d ${dir} || mkdir
${dir}
23257 echo creating src
/epaths.h
23258 ${MAKE-make} epaths-force
23261 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23262 echo creating src
/.gdbinit
23263 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23273 ac_clean_files
=$ac_clean_files_save
23275 test $ac_write_fail = 0 ||
23276 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23279 # configure is writing to config.log, and then calls config.status.
23280 # config.status does its own redirection, appending to config.log.
23281 # Unfortunately, on DOS this fails, as config.log is still kept open
23282 # by configure, so config.status won't be able to write to it; its
23283 # output is simply discarded. So we exec the FD to /dev/null,
23284 # effectively closing config.log, so it can be properly (re)opened and
23285 # appended to by config.status. When coming back to configure, we
23286 # need to make the FD available again.
23287 if test "$no_create" != yes; then
23289 ac_config_status_args
=
23290 test "$silent" = yes &&
23291 ac_config_status_args
="$ac_config_status_args --quiet"
23293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23296 # would make configure fail if this is the last instruction.
23297 $ac_cs_success || as_fn_exit $?
23299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23301 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}