2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.1.50'
553 PACKAGE_STRING
='emacs 24.1.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
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_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
642 WINDOWS_64_BIT_ST_SIZE
643 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
645 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
656 REPLACE_STDIO_WRITE_FUNCS
657 REPLACE_STDIO_READ_FUNCS
666 REPLACE_OBSTACK_PRINTF
691 HAVE_DECL_OBSTACK_PRINTF
697 GNULIB_VSPRINTF_POSIX
701 GNULIB_VFPRINTF_POSIX
708 GNULIB_STDIO_H_SIGPIPE
709 GNULIB_STDIO_H_NONBLOCKING
724 GNULIB_OBSTACK_PRINTF_POSIX
725 GNULIB_OBSTACK_PRINTF
750 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
752 GL_GENERATE_STDDEF_H_FALSE
753 GL_GENERATE_STDDEF_H_TRUE
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
761 GL_GENERATE_STDARG_H_FALSE
762 GL_GENERATE_STDARG_H_TRUE
764 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
766 GL_GENERATE_STDALIGN_H_FALSE
767 GL_GENERATE_STDALIGN_H_TRUE
769 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
773 REPLACE_PTHREAD_SIGMASK
775 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
776 HAVE_STRUCT_SIGACTION_SA_SIGACTION
782 HAVE_POSIX_SIGNALBLOCKING
785 GNULIB_SIGNAL_H_SIGPIPE
787 GNULIB_PTHREAD_SIGMASK
795 HAVE_DECL_LOCALTIME_R
834 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
836 UINT64_MAX_EQ_ULONG_MAX
837 UINT32_MAX_LT_UINTMAX_MAX
840 INT64_MAX_EQ_LONG_MAX
841 INT32_MAX_LT_INTMAX_MAX
851 GL_GENERATE_STDINT_H_FALSE
852 GL_GENERATE_STDINT_H_TRUE
861 HAVE_SIGNED_SIG_ATOMIC_T
864 BITSIZEOF_SIG_ATOMIC_T
867 APPLE_UNIVERSAL_BUILD
871 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
876 HAVE_UNSIGNED_LONG_LONG_INT
878 GNULIB_GL_UNISTD_H_GETOPT
881 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
900 REPLACE_CANONICALIZE_FILE_NAME
905 HAVE_STRUCT_RANDOM_DATA
927 HAVE_CANONICALIZE_FILE_NAME
957 GNULIB_CANONICALIZE_FILE_NAME
961 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
962 UNISTD_H_HAVE_WINSOCK2_H
983 REPLACE_GETDOMAINNAME
994 HAVE_DECL_SETHOSTNAME
995 HAVE_DECL_GETUSERSHELL
996 HAVE_DECL_GETPAGESIZE
998 HAVE_DECL_GETDOMAINNAME
1037 GNULIB_UNISTD_H_SIGPIPE
1038 GNULIB_UNISTD_H_NONBLOCKING
1064 GNULIB_GETDTABLESIZE
1065 GNULIB_GETDOMAINNAME
1081 GL_GENERATE_ALLOCA_H_FALSE
1082 GL_GENERATE_ALLOCA_H_TRUE
1085 GL_COND_LIBTOOL_FALSE
1086 GL_COND_LIBTOOL_TRUE
1118 x_default_search_path
1187 INSTALL_ARCH_INDEP_EXTRA
1189 LD_SWITCH_X_SITE_RPATH
1257 INSTALL_STRIP_PROGRAM
1299 program_transform_name
1310 ac_subst_files
='deps_frag
1314 enable_option_checking
1337 with_toolkit_scroll_bars
1349 with_pkg_config_prog
1353 enable_ns_self_contained
1355 enable_locallisppath
1357 enable_use_lisp_union_type
1360 enable_dependency_tracking
1365 ac_precious_vars
='build_alias
1377 # Initialize some variables set by options.
1379 ac_init_version
=false
1380 ac_unrecognized_opts
=
1381 ac_unrecognized_sep
=
1382 # The variables have the same names as the options, with
1383 # dashes changed to underlines.
1384 cache_file
=/dev
/null
1391 program_transform_name
=s
,x
,x
,
1399 # Installation directory options.
1400 # These are left unexpanded so users can "make install exec_prefix=/foo"
1401 # and all the variables that are supposed to be based on exec_prefix
1402 # by default will actually change.
1403 # Use braces instead of parens because sh, perl, etc. also accept them.
1404 # (The list follows the same order as the GNU Coding Standards.)
1405 bindir
='${exec_prefix}/bin'
1406 sbindir
='${exec_prefix}/sbin'
1407 libexecdir
='${exec_prefix}/libexec'
1408 datarootdir
='${prefix}/share'
1409 datadir
='${datarootdir}'
1410 sysconfdir
='${prefix}/etc'
1411 sharedstatedir
='${prefix}/com'
1412 localstatedir
='${prefix}/var'
1413 includedir
='${prefix}/include'
1414 oldincludedir
='/usr/include'
1415 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1416 infodir
='${datarootdir}/info'
1421 libdir
='${exec_prefix}/lib'
1422 localedir
='${datarootdir}/locale'
1423 mandir
='${datarootdir}/man'
1429 # If the previous option needs an argument, assign it.
1430 if test -n "$ac_prev"; then
1431 eval $ac_prev=\
$ac_option
1437 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1441 # Accept the important Cygnus configure options, so we can diagnose typos.
1443 case $ac_dashdash$ac_option in
1447 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1449 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1450 bindir
=$ac_optarg ;;
1452 -build |
--build |
--buil |
--bui |
--bu)
1453 ac_prev
=build_alias
;;
1454 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1455 build_alias
=$ac_optarg ;;
1457 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1458 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1459 ac_prev
=cache_file
;;
1460 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1461 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1462 cache_file
=$ac_optarg ;;
1464 --config-cache |
-C)
1465 cache_file
=config.cache
;;
1467 -datadir |
--datadir |
--datadi |
--datad)
1469 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1470 datadir
=$ac_optarg ;;
1472 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1473 |
--dataroo |
--dataro |
--datar)
1474 ac_prev
=datarootdir
;;
1475 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1476 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1477 datarootdir
=$ac_optarg ;;
1479 -disable-* |
--disable-*)
1480 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1483 as_fn_error
"invalid feature name: $ac_useropt"
1484 ac_useropt_orig
=$ac_useropt
1485 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1488 "enable_
$ac_useropt"
1490 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1491 ac_unrecognized_sep
=', ';;
1493 eval enable_
$ac_useropt=no
;;
1495 -docdir |
--docdir |
--docdi |
--doc |
--do)
1497 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1498 docdir
=$ac_optarg ;;
1500 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1502 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1503 dvidir
=$ac_optarg ;;
1505 -enable-* |
--enable-*)
1506 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1509 as_fn_error
"invalid feature name: $ac_useropt"
1510 ac_useropt_orig
=$ac_useropt
1511 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1514 "enable_
$ac_useropt"
1516 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1517 ac_unrecognized_sep
=', ';;
1519 eval enable_
$ac_useropt=\
$ac_optarg ;;
1521 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1522 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1523 |
--exec |
--exe |
--ex)
1524 ac_prev
=exec_prefix
;;
1525 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1526 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1527 |
--exec=* |
--exe=* |
--ex=*)
1528 exec_prefix
=$ac_optarg ;;
1530 -gas |
--gas |
--ga |
--g)
1531 # Obsolete; use --with-gas.
1534 -help |
--help |
--hel |
--he |
-h)
1535 ac_init_help
=long
;;
1536 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1537 ac_init_help
=recursive
;;
1538 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1539 ac_init_help
=short
;;
1541 -host |
--host |
--hos |
--ho)
1542 ac_prev
=host_alias
;;
1543 -host=* |
--host=* |
--hos=* |
--ho=*)
1544 host_alias
=$ac_optarg ;;
1546 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1548 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1550 htmldir
=$ac_optarg ;;
1552 -includedir |
--includedir |
--includedi |
--included |
--include \
1553 |
--includ |
--inclu |
--incl |
--inc)
1554 ac_prev
=includedir
;;
1555 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1556 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1557 includedir
=$ac_optarg ;;
1559 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1561 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1562 infodir
=$ac_optarg ;;
1564 -libdir |
--libdir |
--libdi |
--libd)
1566 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1567 libdir
=$ac_optarg ;;
1569 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1570 |
--libexe |
--libex |
--libe)
1571 ac_prev
=libexecdir
;;
1572 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1573 |
--libexe=* |
--libex=* |
--libe=*)
1574 libexecdir
=$ac_optarg ;;
1576 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1577 ac_prev
=localedir
;;
1578 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1579 localedir
=$ac_optarg ;;
1581 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1582 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1583 ac_prev
=localstatedir
;;
1584 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1585 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1586 localstatedir
=$ac_optarg ;;
1588 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1590 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1591 mandir
=$ac_optarg ;;
1593 -nfp |
--nfp |
--nf)
1594 # Obsolete; use --without-fp.
1597 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1598 |
--no-cr |
--no-c |
-n)
1601 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1602 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1605 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1606 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1607 |
--oldin |
--oldi |
--old |
--ol |
--o)
1608 ac_prev
=oldincludedir
;;
1609 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1610 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1611 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1612 oldincludedir
=$ac_optarg ;;
1614 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1616 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1617 prefix
=$ac_optarg ;;
1619 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1620 |
--program-pre |
--program-pr |
--program-p)
1621 ac_prev
=program_prefix
;;
1622 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1623 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1624 program_prefix
=$ac_optarg ;;
1626 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1627 |
--program-suf |
--program-su |
--program-s)
1628 ac_prev
=program_suffix
;;
1629 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1630 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1631 program_suffix
=$ac_optarg ;;
1633 -program-transform-name |
--program-transform-name \
1634 |
--program-transform-nam |
--program-transform-na \
1635 |
--program-transform-n |
--program-transform- \
1636 |
--program-transform |
--program-transfor \
1637 |
--program-transfo |
--program-transf \
1638 |
--program-trans |
--program-tran \
1639 |
--progr-tra |
--program-tr |
--program-t)
1640 ac_prev
=program_transform_name
;;
1641 -program-transform-name=* |
--program-transform-name=* \
1642 |
--program-transform-nam=* |
--program-transform-na=* \
1643 |
--program-transform-n=* |
--program-transform-=* \
1644 |
--program-transform=* |
--program-transfor=* \
1645 |
--program-transfo=* |
--program-transf=* \
1646 |
--program-trans=* |
--program-tran=* \
1647 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1648 program_transform_name
=$ac_optarg ;;
1650 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1652 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1653 pdfdir
=$ac_optarg ;;
1655 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1657 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1660 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1661 |
-silent |
--silent |
--silen |
--sile |
--sil)
1664 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1666 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1668 sbindir
=$ac_optarg ;;
1670 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1671 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1672 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1674 ac_prev
=sharedstatedir
;;
1675 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1676 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1677 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1679 sharedstatedir
=$ac_optarg ;;
1681 -site |
--site |
--sit)
1683 -site=* |
--site=* |
--sit=*)
1686 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1688 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1689 srcdir
=$ac_optarg ;;
1691 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1692 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1693 ac_prev
=sysconfdir
;;
1694 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1695 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1696 sysconfdir
=$ac_optarg ;;
1698 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1699 ac_prev
=target_alias
;;
1700 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1701 target_alias
=$ac_optarg ;;
1703 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1706 -version |
--version |
--versio |
--versi |
--vers |
-V)
1707 ac_init_version
=: ;;
1710 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1713 as_fn_error
"invalid package name: $ac_useropt"
1714 ac_useropt_orig
=$ac_useropt
1715 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1720 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1721 ac_unrecognized_sep
=', ';;
1723 eval with_
$ac_useropt=\
$ac_optarg ;;
1725 -without-* |
--without-*)
1726 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1729 as_fn_error
"invalid package name: $ac_useropt"
1730 ac_useropt_orig
=$ac_useropt
1731 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1736 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1737 ac_unrecognized_sep
=', ';;
1739 eval with_
$ac_useropt=no
;;
1742 # Obsolete; use --with-x.
1745 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1746 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1747 ac_prev
=x_includes
;;
1748 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1749 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1750 x_includes
=$ac_optarg ;;
1752 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1753 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1754 ac_prev
=x_libraries
;;
1755 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1756 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1757 x_libraries
=$ac_optarg ;;
1759 -*) as_fn_error
"unrecognized option: \`$ac_option'
1760 Try \`$0 --help' for more information."
1764 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1765 # Reject names that are not valid shell variable names.
1766 case $ac_envvar in #(
1767 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1768 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1770 eval $ac_envvar=\
$ac_optarg
1771 export $ac_envvar ;;
1774 # FIXME: should be removed in autoconf 3.0.
1775 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1776 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1777 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1778 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1784 if test -n "$ac_prev"; then
1785 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1786 as_fn_error
"missing argument to $ac_option"
1789 if test -n "$ac_unrecognized_opts"; then
1790 case $enable_option_checking in
1792 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1793 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1797 # Check all directory arguments for consistency.
1798 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1799 datadir sysconfdir sharedstatedir localstatedir includedir \
1800 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1801 libdir localedir mandir
1803 eval ac_val
=\$
$ac_var
1804 # Remove trailing slashes.
1807 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1808 eval $ac_var=\
$ac_val;;
1810 # Be sure to have absolute directory names.
1812 [\\/$
]* | ?
:[\\/]* ) continue;;
1813 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1815 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1818 # There might be people who depend on the old broken behavior: `$host'
1819 # used to hold the argument of --host etc.
1820 # FIXME: To remove some day.
1823 target
=$target_alias
1825 # FIXME: To remove some day.
1826 if test "x$host_alias" != x
; then
1827 if test "x$build_alias" = x
; then
1828 cross_compiling
=maybe
1829 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1830 If a cross compiler is detected then cross compile mode will be used." >&2
1831 elif test "x$build_alias" != "x$host_alias"; then
1837 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1839 test "$silent" = yes && exec 6>/dev
/null
1842 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1843 ac_ls_di
=`ls -di .` &&
1844 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1845 as_fn_error
"working directory cannot be determined"
1846 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1847 as_fn_error
"pwd does not report name of working directory"
1850 # Find the source files, if location was not specified.
1851 if test -z "$srcdir"; then
1852 ac_srcdir_defaulted
=yes
1853 # Try the directory containing this script, then the parent directory.
1854 ac_confdir
=`$as_dirname -- "$as_myself" ||
1855 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1856 X"$as_myself" : 'X\(//\)[^/]' \| \
1857 X"$as_myself" : 'X\(//\)$' \| \
1858 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1859 $as_echo X"$as_myself" |
1860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1878 if test ! -r "$srcdir/$ac_unique_file"; then
1882 ac_srcdir_defaulted
=no
1884 if test ! -r "$srcdir/$ac_unique_file"; then
1885 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1886 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1888 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1890 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1892 # When building in place, set srcdir=.
1893 if test "$ac_abs_confdir" = "$ac_pwd"; then
1896 # Remove unnecessary trailing slashes from srcdir.
1897 # Double slashes in file names in object file debugging info
1898 # mess up M-x gdb in Emacs.
1900 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1902 for ac_var
in $ac_precious_vars; do
1903 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1904 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1905 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1906 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1910 # Report the --help message.
1912 if test "$ac_init_help" = "long"; then
1913 # Omit some internal or obsolete options to make the list less imposing.
1914 # This message is too long to be a string in the A/UX 3.1 sh.
1916 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1918 Usage: $0 [OPTION]... [VAR=VALUE]...
1920 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1921 VAR=VALUE. See below for descriptions of some of the useful variables.
1923 Defaults for the options are specified in brackets.
1926 -h, --help display this help and exit
1927 --help=short display options specific to this package
1928 --help=recursive display the short help of all the included packages
1929 -V, --version display version information and exit
1930 -q, --quiet, --silent do not print \`checking...' messages
1931 --cache-file=FILE cache test results in FILE [disabled]
1932 -C, --config-cache alias for \`--cache-file=config.cache'
1933 -n, --no-create do not create output files
1934 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1936 Installation directories:
1937 --prefix=PREFIX install architecture-independent files in PREFIX
1938 [$ac_default_prefix]
1939 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1942 By default, \`make install' will install all the files in
1943 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1944 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1945 for instance \`--prefix=\$HOME'.
1947 For better control, use the options below.
1949 Fine tuning of the installation directories:
1950 --bindir=DIR user executables [EPREFIX/bin]
1951 --sbindir=DIR system admin executables [EPREFIX/sbin]
1952 --libexecdir=DIR program executables [EPREFIX/libexec]
1953 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1954 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1955 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1956 --libdir=DIR object code libraries [EPREFIX/lib]
1957 --includedir=DIR C header files [PREFIX/include]
1958 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1959 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1960 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1961 --infodir=DIR info documentation [DATAROOTDIR/info]
1962 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1963 --mandir=DIR man documentation [DATAROOTDIR/man]
1964 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1965 --htmldir=DIR html documentation [DOCDIR]
1966 --dvidir=DIR dvi documentation [DOCDIR]
1967 --pdfdir=DIR pdf documentation [DOCDIR]
1968 --psdir=DIR ps documentation [DOCDIR]
1974 --program-prefix=PREFIX prepend PREFIX to installed program names
1975 --program-suffix=SUFFIX append SUFFIX to installed program names
1976 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1979 --x-includes=DIR X include files are
in DIR
1980 --x-libraries=DIR X library files are
in DIR
1983 --build=BUILD configure
for building on BUILD
[guessed
]
1984 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1988 if test -n "$ac_init_help"; then
1989 case $ac_init_help in
1990 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1995 --disable-option-checking ignore unrecognized
--enable/--with options
1996 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1997 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1998 --disable-ns-self-contained
1999 disable self contained build under NeXTstep
2000 --enable-asserts compile code with asserts enabled
2001 --enable-locallisppath=PATH
2002 directories Emacs should search
for lisp files
2003 specific to this site
2004 --enable-checking[=LIST
]
2005 enable expensive run-time checks. With LIST
, enable
2006 only specific categories of checks. Categories are
:
2007 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2008 stringfreelist
, xmallocoverrun
, conslist
2009 --enable-use-lisp-union-type
2010 use a union
for the Lisp_Object data
type. This is
2011 only useful
for development
for catching certain
2013 --enable-profiling build emacs with profiling support. This might not
2014 work on all platforms
2015 --enable-autodepend automatically generate dependencies to .h-files.
2016 Requires GNU Make and Gcc. Enabled
if GNU Make and
2018 --disable-dependency-tracking speeds up one-time build
2019 --enable-dependency-tracking do not reject slow dependency extractors
2020 --disable-largefile omit support
for large files
2021 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2024 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2025 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2026 --without-pop don
't support POP mail retrieval with movemail
2027 --with-kerberos support Kerberos-authenticated POP
2028 --with-kerberos5 support Kerberos version 5 authenticated POP
2029 --with-hesiod support Hesiod to get the POP server host
2030 --with-mmdf support MMDF mailboxes
2031 --with-mail-unlink unlink, rather than empty, mail spool after reading
2032 --with-mailhost=HOSTNAME
2033 string giving default POP mail host
2034 --without-sound don't compile with sound support
2035 --without-sync-input process async input synchronously
2036 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2037 lucid or athena
, motif
, no
)
2038 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2039 --without-xpm don
't compile with XPM image support
2040 --without-jpeg don't compile with JPEG image support
2041 --without-tiff don
't compile with TIFF image support
2042 --without-gif don't compile with GIF image support
2043 --without-png don
't compile with PNG image support
2044 --without-rsvg don't compile with SVG image support
2045 --without-xml2 don
't compile with XML parsing support
2046 --without-imagemagick don't compile with ImageMagick image support
2047 --without-xft don
't use XFT for anti aliased fonts
2048 --without-libotf don't use libotf
for OpenType font support
2049 --without-m17n-flt don
't use m17n-flt for text shaping
2050 --without-toolkit-scroll-bars
2051 don't use Motif or Xaw3d scroll bars
2052 --without-xaw3d don
't use Xaw3d
2053 --without-xim don't use X11 XIM
2054 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2055 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2057 --without-dbus don't compile with D-Bus support
2058 --without-gconf don
't compile with GConf support
2059 --without-gsettings don't compile with GSettings support
2060 --without-selinux don
't compile with SELinux support
2061 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2062 --without-makeinfo don
't require makeinfo for building manuals
2063 --without-compress-info don't
compress the installed Info pages
2064 --with-pkg-config-prog=PATH
2065 path to pkg-config
for finding GTK and librsvg
2066 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2067 /usr
/lib
, or
/usr
/lib64 on some platforms.
2068 --with-gameuser=USER user
for shared game score files
2069 --with-gnustep-conf=PATH
2070 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2071 or
/etc
/GNUstep
/GNUstep.conf
2072 --with-x use the X Window System
2074 Some influential environment variables
:
2075 CC C compiler
command
2076 CFLAGS C compiler flags
2077 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2078 nonstandard directory
<lib dir
>
2079 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2080 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2081 you have headers
in a nonstandard directory
<include dir
>
2083 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2085 Use these variables to override the choices made by
`configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2088 Report bugs to the package provider.
2093 if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2112 ac_abs_top_builddir=$ac_pwd
2113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114 # for backward compatibility:
2115 ac_top_builddir=$ac_top_build_prefix
2118 .) # We are building in place.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2148 test -n "$ac_init_help" && exit $ac_status
2149 if $ac_init_version; then
2151 emacs configure 24.1.50
2152 generated by GNU Autoconf 2.65
2154 Copyright (C) 2009 Free Software Foundation, Inc.
2155 This configure script is free software; the Free Software Foundation
2156 gives unlimited permission to copy, distribute and modify it.
2161 ## ------------------------ ##
2162 ## Autoconf initialization. ##
2163 ## ------------------------ ##
2165 # ac_fn_c_try_compile LINENO
2166 # --------------------------
2167 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_c_try_compile ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext
2172 if { { ac_try="$ac_compile"
2174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2175 *) ac_try_echo
=$ac_try;;
2177 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_compile") 2>conftest.err
2181 if test -s conftest.err
; then
2182 grep -v '^ *+' conftest.err
>conftest.er1
2183 cat conftest.er1
>&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest.
$ac_objext; then :
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.
$ac_ext >&5
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2199 as_fn_set_status
$ac_retval
2201 } # ac_fn_c_try_compile
2203 # ac_fn_c_try_cpp LINENO
2204 # ----------------------
2205 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2208 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2209 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } >/dev/null && {
2225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 as_fn_set_status $ac_retval
2240 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2241 # -------------------------------------------------------
2242 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2243 # the include files in INCLUDES and setting the cache variable VAR
2245 ac_fn_c_check_header_mongrel ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2258 # Is the header compilable?
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2260 $as_echo_n "checking $2 usability... " >&6; }
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_header_compiler=yes
2269 ac_header_compiler=no
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2273 $as_echo "$ac_header_compiler" >&6; }
2275 # Is the header present?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2277 $as_echo_n "checking $2 presence... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2282 if ac_fn_c_try_cpp "$LINENO"; then :
2283 ac_header_preproc=yes
2285 ac_header_preproc=no
2287 rm -f conftest.err conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2289 $as_echo "$ac_header_preproc" >&6; }
2291 # So? What about this header?
2292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2295 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2297 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2301 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2303 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2305 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2307 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2317 eval "$3=\$ac_header_compiler"
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325 } # ac_fn_c_check_header_mongrel
2327 # ac_fn_c_try_run LINENO
2328 # ----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330 # that executables *can* be run.
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2337 *) ac_try_echo
=$ac_try;;
2339 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=$ac_status
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2369 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370 # -------------------------------------------------------
2371 # Tests whether HEADER exists and can be compiled using the include files in
2372 # INCLUDES, setting the cache variable VAR accordingly.
2373 ac_fn_c_check_header_compile ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_check_header_compile
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2410 *) ac_try_echo
=$ac_try;;
2412 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2416 if test -s conftest.err
; then
2417 grep -v '^ *+' conftest.err
>conftest.er1
2418 cat conftest.er1
>&5
2419 mv -f conftest.er1 conftest.err
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest
$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest
$ac_exeext
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2442 as_fn_set_status
$ac_retval
2444 } # ac_fn_c_try_link
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl
()
2451 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2471 if ac_fn_c_try_compile
"$LINENO"; then :
2476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2483 } # ac_fn_c_check_decl
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc
()
2490 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 if ac_fn_c_try_cpp
"$LINENO"; then :
2505 rm -f conftest.err conftest.
$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_c_check_header_preproc
2514 # ac_fn_c_check_func LINENO FUNC VAR
2515 # ----------------------------------
2516 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2517 ac_fn_c_check_func
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2529 #define $2 innocuous_$2
2531 /* System header to define __stub macros and hopefully few prototypes,
2532 which can conflict with char $2 (); below.
2533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2534 <limits.h> exists even on freestanding compilers. */
2537 # include <limits.h>
2539 # include <assert.h>
2544 /* Override any GCC internal prototype to avoid an error.
2545 Use char because int might match the return type of a GCC
2546 builtin and then its argument prototype would still apply. */
2551 /* The GNU C library defines this for functions which it implements
2552 to always fail with ENOSYS. Some functions are actually named
2553 something starting with __ and the normal name is an alias. */
2554 #if defined __stub_$2 || defined __stub___$2
2566 if ac_fn_c_try_link
"$LINENO"; then :
2571 rm -f core conftest.err conftest.
$ac_objext \
2572 conftest
$ac_exeext conftest.
$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2579 } # ac_fn_c_check_func
2581 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2582 # ----------------------------------------------------
2583 # Tries to find if the field MEMBER exists in type AGGR, after including
2584 # INCLUDES, setting cache variable VAR accordingly.
2585 ac_fn_c_check_member
()
2587 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2589 $as_echo_n "checking for $2.$3... " >&6; }
2590 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2591 $as_echo_n "(cached) " >&6
2593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2606 if ac_fn_c_try_compile
"$LINENO"; then :
2609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2616 if (sizeof ac_aggr.$3)
2622 if ac_fn_c_try_compile
"$LINENO"; then :
2627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2636 } # ac_fn_c_check_member
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type
()
2644 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2663 if ac_fn_c_try_compile
"$LINENO"; then :
2664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2676 if ac_fn_c_try_compile
"$LINENO"; then :
2681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2690 } # ac_fn_c_check_type
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2697 ac_fn_c_compute_int
()
2699 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2715 if ac_fn_c_try_compile
"$LINENO"; then :
2718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731 if ac_fn_c_try_compile
"$LINENO"; then :
2732 ac_hi
=$ac_mid; break
2734 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2735 if test $ac_lo -le $ac_mid; then
2739 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 static int test_array [1 - 2 * !(($2) < 0)];
2757 if ac_fn_c_try_compile
"$LINENO"; then :
2760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2773 if ac_fn_c_try_compile
"$LINENO"; then :
2774 ac_lo
=$ac_mid; break
2776 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2777 if test $ac_mid -le $ac_hi; then
2781 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 if ac_fn_c_try_compile
"$LINENO"; then :
2810 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2815 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2830 FILE *f = fopen ("conftest.val", "w");
2835 long int i = longval ();
2838 fprintf (f, "%ld", i);
2842 unsigned long int i = ulongval ();
2845 fprintf (f, "%lu", i);
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2855 if ac_fn_c_try_run
"$LINENO"; then :
2856 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2866 as_fn_set_status
$ac_retval
2868 } # ac_fn_c_compute_int
2869 cat >config.log
<<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2873 It was created by emacs $as_me 24.1.50, which was
2874 generated by GNU Autoconf 2.65. Invocation command line was
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 $as_echo "PATH: $as_dir"
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2934 ac_must_keep_next
=false
2940 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2942 |
-silent |
--silent |
--silen |
--sile |
--sil)
2945 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2948 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2950 as_fn_append ac_configure_args1
" '$ac_arg'"
2951 if test $ac_must_keep_next = true
; then
2952 ac_must_keep_next
=false
# Got value, back to normal.
2955 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2956 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2957 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2958 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2963 -* ) ac_must_keep_next
=true
;;
2966 as_fn_append ac_configure_args
" '$ac_arg'"
2971 { ac_configure_args0
=; unset ac_configure_args0
;}
2972 { ac_configure_args1
=; unset ac_configure_args1
;}
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2990 # The following way of writing the cache mishandles newlines in values,
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3028 for ac_var in $ac_subst_vars
3030 eval ac_val=\$$ac_var
3032 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3034 $as_echo "$ac_var='\''$ac_val'\''"
3038 if test -n "$ac_subst_files"; then
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3045 for ac_var
in $ac_subst_files
3047 eval ac_val
=\$
$ac_var
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3051 $as_echo "$ac_var='\''$ac_val'\''"
3056 if test -s confdefs.h; then
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3074 for ac_signal
in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest
* confdefs.h
3082 $as_echo "/* confdefs.h */" > confdefs.h
3084 # Predefined preprocessor variables.
3086 cat >>confdefs.h
<<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3090 cat >>confdefs.h
<<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3094 cat >>confdefs.h
<<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3098 cat >>confdefs.h
<<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3102 cat >>confdefs.h
<<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3106 cat >>confdefs.h
<<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1
=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE
; then
3118 ac_site_file1
=$prefix/share
/config.site
3119 ac_site_file2
=$prefix/etc
/config.site
3121 ac_site_file1
=$ac_default_prefix/share
/config.site
3122 ac_site_file2
=$ac_default_prefix/etc
/config.site
3124 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3126 test "x$ac_site_file" = xNONE
&& continue
3127 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special files
3137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3138 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3142 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3143 *) .
"./$cache_file";;
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3152 as_fn_append ac_header_list
" sys/select.h"
3153 as_fn_append ac_header_list
" sys/time.h"
3154 as_fn_append ac_header_list
" utime.h"
3155 as_fn_append ac_header_list
" linux/version.h"
3156 as_fn_append ac_header_list
" sys/systeminfo.h"
3157 as_fn_append ac_header_list
" stdio_ext.h"
3158 as_fn_append ac_header_list
" fcntl.h"
3159 as_fn_append ac_header_list
" coff.h"
3160 as_fn_append ac_header_list
" pty.h"
3161 as_fn_append ac_header_list
" sys/vlimit.h"
3162 as_fn_append ac_header_list
" sys/resource.h"
3163 as_fn_append ac_header_list
" sys/utsname.h"
3164 as_fn_append ac_header_list
" pwd.h"
3165 as_fn_append ac_header_list
" utmp.h"
3166 as_fn_append ac_header_list
" dirent.h"
3167 as_fn_append ac_header_list
" util.h"
3168 as_fn_append ac_header_list
" sys/socket.h"
3169 as_fn_append ac_header_list
" stdlib.h"
3170 as_fn_append ac_header_list
" unistd.h"
3171 as_fn_append ac_header_list
" sys/param.h"
3172 as_fn_append ac_header_list
" pthread.h"
3173 as_fn_append ac_header_list
" malloc/malloc.h"
3174 as_fn_append ac_header_list
" maillock.h"
3175 as_fn_append ac_header_list
" sys/un.h"
3176 as_fn_append ac_func_list
" tzset"
3177 as_fn_append ac_func_list
" readlinkat"
3178 gl_getopt_required
=GNU
3179 as_fn_append ac_header_list
" getopt.h"
3180 as_fn_append ac_header_list
" wchar.h"
3181 as_fn_append ac_header_list
" stdint.h"
3182 as_fn_append ac_header_list
" inttypes.h"
3183 as_fn_append ac_func_list
" lstat"
3184 as_fn_append ac_func_list
" alarm"
3185 as_fn_append ac_func_list
" pthread_sigmask"
3186 as_fn_append ac_func_list
" readlink"
3187 as_fn_append ac_func_list
" strtoimax"
3188 as_fn_append ac_func_list
" strtoumax"
3189 as_fn_append ac_func_list
" symlink"
3190 as_fn_append ac_header_list
" sys/stat.h"
3191 as_fn_append ac_func_list
" localtime_r"
3192 # Check that the precious variables saved in the cache have kept the same
3194 ac_cache_corrupted
=false
3195 for ac_var
in $ac_precious_vars; do
3196 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3197 eval ac_new_set
=\
$ac_env_${ac_var}_set
3198 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3199 eval ac_new_val
=\
$ac_env_${ac_var}_value
3200 case $ac_old_set,$ac_new_set in
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3204 ac_cache_corrupted
=: ;;
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3208 ac_cache_corrupted
=: ;;
3211 if test "x$ac_old_val" != "x$ac_new_val"; then
3212 # differences in whitespace do not lead to failure.
3213 ac_old_val_w
=`echo x $ac_old_val`
3214 ac_new_val_w
=`echo x $ac_new_val`
3215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3218 ac_cache_corrupted
=:
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3222 eval $ac_var=\
$ac_old_val
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3230 # Pass precious variables to config.status.
3231 if test "$ac_new_set" = set; then
3233 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 *) ac_arg
=$ac_var=$ac_new_val ;;
3236 case " $ac_configure_args " in
3237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3238 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3242 if $ac_cache_corrupted; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3247 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3249 ## -------------------- ##
3250 ## Main body of script. ##
3251 ## -------------------- ##
3254 ac_cpp
='$CPP $CPPFLAGS'
3255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3260 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3264 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3265 for ac_t
in install-sh
install.sh shtool
; do
3266 if test -f "$ac_dir/$ac_t"; then
3268 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3273 if test -z "$ac_aux_dir"; then
3274 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3277 # These three variables are undocumented and unsupported,
3278 # and are intended to be withdrawn in a future Autoconf release.
3279 # They can cause serious problems if a builder's source tree is in a directory
3280 # whose full name contains unusual characters.
3281 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3282 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3283 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3286 am__api_version
='1.11'
3288 # Find a good install program. We prefer a C program (faster),
3289 # so one script is as good as another. But avoid the broken or
3290 # incompatible versions:
3291 # SysV /etc/install, /usr/sbin/install
3292 # SunOS /usr/etc/install
3293 # IRIX /sbin/install
3295 # AmigaOS /C/install, which installs bootblocks on floppy discs
3296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3299 # OS/2's system install, which has a completely different semantic
3300 # ./install, which can be erroneously created by make from ./install.sh.
3301 # Reject install programs that cannot install multiple files.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3303 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3304 if test -z "$INSTALL"; then
3305 if test "${ac_cv_path_install+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir
=.
3313 # Account for people who put trailing slashes in PATH elements.
3314 case $as_dir/ in #((
3315 .
/ | .
// |
/[cC
]/* | \
3316 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3317 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3320 # OSF1 and SCO ODT 3.0 have their own names for install.
3321 # Don't use installbsd from OSF since it installs stuff as root
3323 for ac_prog
in ginstall scoinst
install; do
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3326 if test $ac_prog = install &&
3327 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3328 # AIX install. It has an incompatible calling convention.
3330 elif test $ac_prog = install &&
3331 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3332 # program-specific install script used by HP pwplus--don't use.
3335 rm -rf conftest.one conftest.two conftest.dir
3336 echo one
> conftest.one
3337 echo two
> conftest.two
3339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3340 test -s conftest.one
&& test -s conftest.two
&&
3341 test -s conftest.dir
/conftest.one
&&
3342 test -s conftest.dir
/conftest.two
3344 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3357 rm -rf conftest.one conftest.two conftest.dir
3360 if test "${ac_cv_path_install+set}" = set; then
3361 INSTALL
=$ac_cv_path_install
3363 # As a last resort, use the slow shell script. Don't cache a
3364 # value for INSTALL within a source directory, because that will
3365 # break other packages using the cache if that directory is
3366 # removed, or if the value is a relative name.
3367 INSTALL
=$ac_install_sh
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3371 $as_echo "$INSTALL" >&6; }
3373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3374 # It thinks the first close brace ends the variable substitution.
3375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3379 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3382 $as_echo_n "checking whether build environment is sane... " >&6; }
3385 echo timestamp
> conftest.
file
3386 # Reject unsafe characters in $srcdir or the absolute working directory
3387 # name. Accept space and tab only in the latter.
3391 *[\\\"\
#\$\&\'\`$am_lf]*)
3392 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3395 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3396 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3399 # Do `set' in a subshell so we don't clobber the current shell's
3400 # arguments. Must try -L first in case configure is actually a
3401 # symlink; some systems play weird games with the mod time of symlinks
3402 # (eg FreeBSD returns the mod time of the symlink's containing
3405 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3406 if test "$*" = "X"; then
3408 set X
`ls -t "$srcdir/configure" conftest.file`
3411 if test "$*" != "X $srcdir/configure conftest.file" \
3412 && test "$*" != "X conftest.file $srcdir/configure"; then
3414 # If neither matched, then we have a broken ls. This can happen
3415 # if, for instance, CONFIG_SHELL is bash and it inherits a
3416 # broken ls alias from the environment. This has actually
3417 # happened. Such a system could not be considered "sane".
3418 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3419 alias in your environment" "$LINENO" 5
3422 test "$2" = conftest.
file
3428 as_fn_error
"newly created file is older than distributed files!
3429 Check your system clock" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3433 test "$program_prefix" != NONE
&&
3434 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3435 # Use a double $ so make ignores it.
3436 test "$program_suffix" != NONE
&&
3437 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3438 # Double any \ or $.
3439 # By default was `s,x,x', remove it if useless.
3440 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3441 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3443 # expand $ac_aux_dir to an absolute path
3444 am_aux_dir
=`cd $ac_aux_dir && pwd`
3446 if test x
"${MISSING+set}" != xset
; then
3449 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3451 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3454 # Use eval to expand $SHELL
3455 if eval "$MISSING --run true"; then
3456 am_missing_run
="$MISSING --run "
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3460 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3463 if test x
"${install_sh}" != xset
; then
3466 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3468 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3472 # Installed binaries are usually stripped using `strip' when the user
3473 # run `make install-strip'. However `strip' might not be the right
3474 # tool to use in cross-compilation environments, therefore Automake
3475 # will honor the `STRIP' environment variable to overrule this program.
3476 if test "$cross_compiling" != no
; then
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3479 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$STRIP"; then
3486 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 STRIP
=$ac_cv_prog_STRIP
3506 if test -n "$STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3508 $as_echo "$STRIP" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3516 if test -z "$ac_cv_prog_STRIP"; then
3518 # Extract the first word of "strip", so it can be a program name with args.
3519 set dummy strip
; ac_word
=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$ac_ct_STRIP"; then
3526 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_STRIP
="strip"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3546 if test -n "$ac_ct_STRIP"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3548 $as_echo "$ac_ct_STRIP" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3554 if test "x$ac_ct_STRIP" = x
; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned
=yes ;;
3566 STRIP
="$ac_cv_prog_STRIP"
3570 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3573 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3574 if test -z "$MKDIR_P"; then
3575 if test "${ac_cv_path_mkdir+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_prog
in mkdir gmkdir
; do
3584 for ac_exec_ext
in '' $ac_executable_extensions; do
3585 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3586 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3587 'mkdir (GNU coreutils) '* | \
3588 'mkdir (coreutils) '* | \
3589 'mkdir (fileutils) '4.1*)
3590 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3600 test -d .
/--version && rmdir .
/--version
3601 if test "${ac_cv_path_mkdir+set}" = set; then
3602 MKDIR_P
="$ac_cv_path_mkdir -p"
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for MKDIR_P within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 MKDIR_P
="$ac_install_sh -d"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3612 $as_echo "$MKDIR_P" >&6; }
3617 [\\/$
]* | ?
:[\\/]*) ;;
3618 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3621 for ac_prog
in gawk mawk nawk
awk
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy
$ac_prog; ac_word
=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_AWK+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$AWK"; then
3631 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir
=.
3638 for ac_exec_ext
in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_AWK
="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$AWK"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3653 $as_echo "$AWK" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$AWK" && break
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3666 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3668 $as_echo_n "(cached) " >&6
3670 cat >conftest.
make <<\_ACEOF
3673 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3678 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3680 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3684 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 SET_MAKE
="MAKE=${MAKE-make}"
3694 rm -rf .tst
2>/dev
/null
3695 mkdir .tst
2>/dev
/null
3696 if test -d .tst
; then
3701 rmdir .tst
2>/dev
/null
3703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3705 # is not polluted with repeated "-I."
3706 am__isrc
=' -I$(srcdir)'
3707 # test to see if srcdir already configured
3708 if test -f $srcdir/config.status
; then
3709 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3713 # test whether we have cygpath
3714 if test -z "$CYGPATH_W"; then
3715 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3716 CYGPATH_W
='cygpath -w'
3723 # Define the identity of the package.
3728 cat >>confdefs.h
<<_ACEOF
3729 #define PACKAGE "$PACKAGE"
3733 cat >>confdefs.h
<<_ACEOF
3734 #define VERSION "$VERSION"
3737 # Some tools Automake needs.
3739 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3742 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3745 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3748 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3751 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3753 # We need awk for the "check" target. The system "awk" is bad on
3755 # Always define AMTAR for backward compatibility.
3757 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3759 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3768 lispdir
='${datadir}/emacs/${version}/lisp'
3769 leimdir
='${datadir}/emacs/${version}/leim'
3770 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3771 '${datadir}/emacs/site-lisp'
3772 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3773 etcdir
='${datadir}/emacs/${version}/etc'
3774 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3775 docdir
='${datadir}/emacs/${version}/etc'
3776 gamedir
='${localstatedir}/games/emacs'
3781 # Check whether --with-pop was given.
3782 if test "${with_pop+set}" = set; then :
3788 if test "$with_pop" = yes; then
3789 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3794 # Check whether --with-kerberos was given.
3795 if test "${with_kerberos+set}" = set; then :
3796 withval
=$with_kerberos;
3801 if test "$with_kerberos" != no
; then
3802 $as_echo "#define KERBEROS 1" >>confdefs.h
3807 # Check whether --with-kerberos5 was given.
3808 if test "${with_kerberos5+set}" = set; then :
3809 withval
=$with_kerberos5;
3814 if test "${with_kerberos5}" != no
; then
3815 if test "${with_kerberos}" = no
; then
3817 $as_echo "#define KERBEROS 1" >>confdefs.h
3821 $as_echo "#define KERBEROS5 1" >>confdefs.h
3826 # Check whether --with-hesiod was given.
3827 if test "${with_hesiod+set}" = set; then :
3828 withval
=$with_hesiod;
3833 if test "$with_hesiod" != no
; then
3835 $as_echo "#define HESIOD 1" >>confdefs.h
3840 # Check whether --with-mmdf was given.
3841 if test "${with_mmdf+set}" = set; then :
3847 if test "$with_mmdf" != no
; then
3849 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3854 # Check whether --with-mail-unlink was given.
3855 if test "${with_mail_unlink+set}" = set; then :
3856 withval
=$with_mail_unlink;
3861 if test "$with_mail_unlink" != no
; then
3863 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3868 # Check whether --with-mailhost was given.
3869 if test "${with_mailhost+set}" = set; then :
3870 withval
=$with_mailhost;
3871 cat >>confdefs.h
<<_ACEOF
3872 #define MAILHOST "$withval"
3879 # Check whether --with-sound was given.
3880 if test "${with_sound+set}" = set; then :
3881 withval
=$with_sound;
3888 # Check whether --with-sync-input was given.
3889 if test "${with_sync_input+set}" = set; then :
3890 withval
=$with_sync_input;
3895 if test "$with_sync_input" = yes; then
3897 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3902 # Check whether --with-x-toolkit was given.
3903 if test "${with_x_toolkit+set}" = set; then :
3904 withval
=$with_x_toolkit; case "${withval}" in
3905 y | ye |
yes ) val
=gtk
;;
3907 l | lu | luc | luci | lucid
) val
=lucid
;;
3908 a |
at | ath | athe | athen | athena
) val
=athena
;;
3909 m | mo | mot | moti | motif
) val
=motif
;;
3910 g | gt | gtk
) val
=gtk
;;
3913 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3914 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3915 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3924 # Check whether --with-wide-int was given.
3925 if test "${with_wide_int+set}" = set; then :
3926 withval
=$with_wide_int;
3931 if test "$with_wide_int" = yes; then
3933 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3938 # Check whether --with-xpm was given.
3939 if test "${with_xpm+set}" = set; then :
3946 # Check whether --with-jpeg was given.
3947 if test "${with_jpeg+set}" = set; then :
3954 # Check whether --with-tiff was given.
3955 if test "${with_tiff+set}" = set; then :
3962 # Check whether --with-gif was given.
3963 if test "${with_gif+set}" = set; then :
3970 # Check whether --with-png was given.
3971 if test "${with_png+set}" = set; then :
3978 # Check whether --with-rsvg was given.
3979 if test "${with_rsvg+set}" = set; then :
3986 # Check whether --with-xml2 was given.
3987 if test "${with_xml2+set}" = set; then :
3994 # Check whether --with-imagemagick was given.
3995 if test "${with_imagemagick+set}" = set; then :
3996 withval
=$with_imagemagick;
3998 with_imagemagick
=yes
4003 # Check whether --with-xft was given.
4004 if test "${with_xft+set}" = set; then :
4011 # Check whether --with-libotf was given.
4012 if test "${with_libotf+set}" = set; then :
4013 withval
=$with_libotf;
4019 # Check whether --with-m17n-flt was given.
4020 if test "${with_m17n_flt+set}" = set; then :
4021 withval
=$with_m17n_flt;
4028 # Check whether --with-toolkit-scroll-bars was given.
4029 if test "${with_toolkit_scroll_bars+set}" = set; then :
4030 withval
=$with_toolkit_scroll_bars;
4032 with_toolkit_scroll_bars
=yes
4036 # Check whether --with-xaw3d was given.
4037 if test "${with_xaw3d+set}" = set; then :
4038 withval
=$with_xaw3d;
4044 # Check whether --with-xim was given.
4045 if test "${with_xim+set}" = set; then :
4052 # Check whether --with-ns was given.
4053 if test "${with_ns+set}" = set; then :
4061 # Check whether --with-gpm was given.
4062 if test "${with_gpm+set}" = set; then :
4069 # Check whether --with-dbus was given.
4070 if test "${with_dbus+set}" = set; then :
4077 # Check whether --with-gconf was given.
4078 if test "${with_gconf+set}" = set; then :
4079 withval
=$with_gconf;
4085 # Check whether --with-gsettings was given.
4086 if test "${with_gsettings+set}" = set; then :
4087 withval
=$with_gsettings;
4093 # Check whether --with-selinux was given.
4094 if test "${with_selinux+set}" = set; then :
4095 withval
=$with_selinux;
4101 # Check whether --with-gnutls was given.
4102 if test "${with_gnutls+set}" = set; then :
4103 withval
=$with_gnutls;
4109 ## For the times when you want to build Emacs but don't have
4110 ## a suitable makeinfo, and can live without the manuals.
4112 # Check whether --with-makeinfo was given.
4113 if test "${with_makeinfo+set}" = set; then :
4114 withval
=$with_makeinfo;
4120 ## Makefile.in needs the cache file name.
4123 ## This is an option because I do not know if all info/man support
4124 ## compressed files, nor how to test if they do so.
4126 # Check whether --with-compress-info was given.
4127 if test "${with_compress_info+set}" = set; then :
4128 withval
=$with_compress_info;
4130 with_compress_info
=yes
4133 if test $with_compress_info = yes; then
4141 # Check whether --with-pkg-config-prog was given.
4142 if test "${with_pkg_config_prog+set}" = set; then :
4143 withval
=$with_pkg_config_prog;
4146 if test "X${with_pkg_config_prog}" != X
; then
4147 if test "${with_pkg_config_prog}" != yes; then
4148 PKG_CONFIG
="${with_pkg_config_prog}"
4154 # Check whether --with-crt-dir was given.
4155 if test "${with_crt_dir+set}" = set; then :
4156 withval
=$with_crt_dir;
4159 CRT_DIR
="${with_crt_dir}"
4162 # Check whether --with-gameuser was given.
4163 if test "${with_gameuser+set}" = set; then :
4164 withval
=$with_gameuser;
4167 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4168 && gameuser
="${with_gameuser}"
4169 test "X$gameuser" = X
&& gameuser
=games
4172 # Check whether --with-gnustep-conf was given.
4173 if test "${with_gnustep_conf+set}" = set; then :
4174 withval
=$with_gnustep_conf;
4177 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4178 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4179 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4180 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4182 # Check whether --enable-ns-self-contained was given.
4183 if test "${enable_ns_self_contained+set}" = set; then :
4184 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4186 EN_NS_SELF_CONTAINED
=yes
4190 # Check whether --enable-asserts was given.
4191 if test "${enable_asserts+set}" = set; then :
4192 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4198 # Check whether --enable-locallisppath was given.
4199 if test "${enable_locallisppath+set}" = set; then :
4200 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4202 elif test "${enableval}" != "yes"; then
4203 locallisppath
=${enableval}
4208 # Check whether --enable-checking was given.
4209 if test "${enable_checking+set}" = set; then :
4210 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4213 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4214 for check
in $ac_checking_flags
4217 # these set all the flags to specific states
4218 yes) ac_enable_checking
=1 ;;
4219 no
) ac_enable_checking
= ;
4220 ac_gc_check_stringbytes
= ;
4221 ac_gc_check_string_overrun
= ;
4222 ac_gc_check_string_free_list
= ;
4223 ac_xmalloc_overrun
= ;
4224 ac_gc_check_cons_list
= ;;
4225 all
) ac_enable_checking
=1 ;
4226 ac_gc_check_stringbytes
=1 ;
4227 ac_gc_check_string_overrun
=1 ;
4228 ac_gc_check_string_free_list
=1 ;
4229 ac_xmalloc_overrun
=1 ;
4230 ac_gc_check_cons_list
=1 ;;
4231 # these enable particular checks
4232 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4233 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4234 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4235 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4236 conslist
) ac_gc_check_cons_list
=1 ;;
4237 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4242 if test x
$ac_enable_checking != x
; then
4244 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4247 if test x
$ac_gc_check_stringbytes != x
; then
4249 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4252 if test x
$ac_gc_check_string_overrun != x
; then
4254 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4257 if test x
$ac_gc_check_string_free_list != x
; then
4259 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4262 if test x
$ac_xmalloc_overrun != x
; then
4264 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4267 if test x
$ac_gc_check_cons_list != x
; then
4269 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4273 # Check whether --enable-use-lisp-union-type was given.
4274 if test "${enable_use_lisp_union_type+set}" = set; then :
4275 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4277 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4284 # Check whether --enable-profiling was given.
4285 if test "${enable_profiling+set}" = set; then :
4286 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4289 if test x
$ac_enable_profiling != x
; then
4290 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4296 # Check whether --enable-autodepend was given.
4297 if test "${enable_autodepend+set}" = set; then :
4298 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4300 ac_enable_autodepend
=yes
4304 #### Make srcdir absolute, if it isn't already. It's important to
4305 #### avoid running the path through pwd unnecessarily, since pwd can
4306 #### give you automounter prefixes, which can go away. We do all this
4307 #### so Emacs can find its files when run uninstalled.
4308 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4313 ## We may be able to use the $PWD environment variable to make this
4314 ## absolute. But sometimes PWD is inaccurate.
4315 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4316 ## but that tested only for a well-formed and valid PWD,
4317 ## it did not object when PWD was well-formed and valid but just wrong.
4318 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4322 srcdir
="`(cd ${srcdir}; pwd)`"
4325 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4328 #### Given the configuration name, set opsysfile to the
4329 #### name of s/*.h file we should use.
4331 ### Canonicalize the configuration name.
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4335 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4338 $as_echo_n "checking build system type... " >&6; }
4339 if test "${ac_cv_build+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4342 ac_build_alias
=$build_alias
4343 test "x$ac_build_alias" = x
&&
4344 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x
&&
4346 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4347 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4352 $as_echo "$ac_cv_build" >&6; }
4353 case $ac_cv_build in
4355 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4358 ac_save_IFS
=$IFS; IFS
='-'
4364 # Remember, the first character of IFS is used to create $*,
4365 # except with old shells:
4368 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4372 $as_echo_n "checking host system type... " >&6; }
4373 if test "${ac_cv_host+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 if test "x$host_alias" = x
; then
4377 ac_cv_host
=$ac_cv_build
4379 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4380 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4385 $as_echo "$ac_cv_host" >&6; }
4388 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4391 ac_save_IFS
=$IFS; IFS
='-'
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4401 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4405 configuration
=${host_alias-${build_alias-$host}}
4409 ### If you add support for a new configuration, add code to this
4410 ### switch statement to recognize your configuration name and select
4411 ### the appropriate operating system file.
4413 ### You would hope that you could choose an s/*.h
4414 ### file based on the operating system portion. However, it turns out
4415 ### that each s/*.h file is pretty manufacturer-specific.
4416 ### So we basically have to have a special case for each
4417 ### configuration name.
4419 ### As far as handling version numbers on operating systems is
4420 ### concerned, make sure things will fail in a fixable way. If
4421 ### /etc/MACHINES doesn't say anything about version numbers, be
4422 ### prepared to handle anything reasonably. If version numbers
4423 ### matter, be sure /etc/MACHINES says something about it.
4425 opsys
='' unported
=no
4426 case "${canonical}" in
4428 ## GNU/Linux and similar ports
4438 ## FreeBSD kernel + glibc based userland
4453 ## Apple Darwin / Mac OS X
4455 case "${canonical}" in
4462 ## Use fink packages if available.
4463 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4464 ## if test -d /sw/include && test -d /sw/lib; then
4465 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4466 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4470 ## HP 9000 series 700 and 800, running HP/UX
4471 hppa
*-hp-hpux10.2
* )
4474 hppa
*-hp-hpux1[1-9]* )
4476 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4480 rs6000-ibm-aix4.
[23]* )
4483 powerpc-ibm-aix4.
[23]* )
4486 rs6000-ibm-aix
[56]* )
4489 powerpc-ibm-aix
[56]* )
4493 ## Silicon Graphics machines
4497 # Without defining _LANGUAGE_C, things get masked out in the headers
4498 # so that, for instance, grepping for `free' in stdlib.h fails and
4499 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4500 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4505 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4506 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4507 case "${canonical}" in
4509 amd64-
*-*|x86_64-
*-*) ;;
4513 case "${canonical}" in
4514 *-sunos5.6
* |
*-solaris2.6
* )
4518 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4520 emacs_check_sunpro_c
=yes
4522 *-sunos5* |
*-solaris* )
4524 emacs_check_sunpro_c
=yes
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.
4542 case "${canonical}" in
4543 *-cygwin ) opsys
=cygwin
;;
4544 *-darwin* ) opsys
=darwin
;;
4545 *-sysv4.2uw
* ) opsys
=unixware
;;
4546 *-sysv5uw* ) opsys
=unixware
;;
4547 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4548 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4557 ### If the code above didn't choose an operating system, just choose
4558 ### an operating system based on the configuration name. You really
4559 ### only want to use this when you have no idea what the right
4560 ### operating system is; if you know what operating systems a machine
4561 ### runs, it's cleaner to make it explicit in the case statement
4563 if test x
"${opsys}" = x
; then
4564 case "${canonical}" in
4565 *-gnu* ) opsys
=gnu
;;
4574 if test $unported = yes; then
4575 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4576 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4579 opsysfile
="s/${opsys}.h"
4582 #### Choose a compiler.
4585 ac_cpp
='$CPP $CPPFLAGS'
4586 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4591 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC
="$CC" # Let the user override the test.
4600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir
=.
4605 for ac_exec_ext
in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$ac_cv_prog_CC"; then
4630 # Extract the first word of "gcc", so it can be a program name with args.
4631 set dummy gcc
; ac_word
=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 for ac_exec_ext
in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_CC
="gcc"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4658 if test -n "$ac_ct_CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660 $as_echo "$ac_ct_CC" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4666 if test "x$ac_ct_CC" = x
; then
4669 case $cross_compiling:$ac_tool_warned in
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned
=yes ;;
4681 if test -z "$CC"; then
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4684 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_CC+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$CC"; then
4691 ac_cv_prog_CC
="$CC" # Let the user override the test.
4693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir
=.
4698 for ac_exec_ext
in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 if test -n "$CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4713 $as_echo "$CC" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4722 if test -z "$CC"; then
4723 # Extract the first word of "cc", so it can be a program name with args.
4724 set dummy cc
; ac_word
=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_CC+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4730 if test -n "$CC"; then
4731 ac_cv_prog_CC
="$CC" # Let the user override the test.
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_exec_ext
in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742 ac_prog_rejected
=yes
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test $ac_prog_rejected = yes; then
4754 # We found a bogon in the path, so make sure we never use it.
4755 set dummy
$ac_cv_prog_CC
4757 if test $# != 0; then
4758 # We chose a different compiler from the bogus one.
4759 # However, it has the same basename, so the bogon will be chosen
4760 # first if we set CC to just the basename; use the full file name.
4762 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 if test -z "$CC"; then
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog
in cl.exe
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CC+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$CC"; then
4790 ac_cv_prog_CC
="$CC" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$CC" && break
4822 if test -z "$CC"; then
4824 for ac_prog
in cl.exe
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy
$ac_prog; ac_word
=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$ac_ct_CC"; then
4834 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir
=.
4841 for ac_exec_ext
in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_CC
="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4854 if test -n "$ac_ct_CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4856 $as_echo "$ac_ct_CC" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$ac_ct_CC" && break
4866 if test "x$ac_ct_CC" = x
; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned
=yes ;;
4882 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4884 as_fn_error
"no acceptable C compiler found in \$PATH
4885 See \`config.log' for more details." "$LINENO" 5; }
4887 # Provide some information about the compiler.
4888 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4891 for ac_option
in --version -v -V -qversion; do
4892 { { ac_try
="$ac_compiler $ac_option >&5"
4894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 $as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4901 if test -s conftest.err; then
4903 ... rest of stderr output deleted ...
4904 10q' conftest.err >conftest.er1
4905 cat conftest.er1 >&5
4907 rm -f conftest.er1 conftest.err
4908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909 test $ac_status = 0; }
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4923 ac_clean_files_save=$ac_clean_files
4924 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4925 # Try to create an executable without -o first, disregard a.out.
4926 # It will help us diagnose broken compilers, and finding out an intuition
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4929 $as_echo_n "checking whether the C compiler works... " >&6; }
4930 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4932 # The possible output files:
4933 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4936 for ac_file in $ac_files
4939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4945 if { { ac_try="$ac_link_default"
4947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4948 *) ac_try_echo
=$ac_try;;
4950 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_link_default") 2>&5
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }; then :
4956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4958 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4959 # so that the user can short-circuit this test for compilers unknown to
4961 for ac_file
in $ac_files ''
4963 test -f "$ac_file" ||
continue
4965 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4968 # We found the default executable, but exeext='' is most
4972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4974 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4976 # We set ac_cv_exeext here because the later test for it is not
4977 # safe: cross compilers may not add the suffix if given an `-o'
4978 # argument, so we may need to know it at that point already.
4979 # Even if this section looks crufty: it has the advantage of
4986 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4991 if test -z "$ac_file"; then :
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.
$ac_ext >&5
4997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4999 { as_fn_set_status
77
5000 as_fn_error
"C compiler cannot create executables
5001 See \`config.log' for more details." "$LINENO" 5; }; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004 $as_echo "yes" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5007 $as_echo_n "checking for C compiler default output file name... " >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5009 $as_echo "$ac_file" >&6; }
5010 ac_exeext
=$ac_cv_exeext
5012 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5013 ac_clean_files
=$ac_clean_files_save
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5015 $as_echo_n "checking for suffix of executables... " >&6; }
5016 if { { ac_try
="$ac_link"
5018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5022 $as_echo "$ac_try_echo"; } >&5
5023 (eval "$ac_link") 2>&5
5025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026 test $ac_status = 0; }; then :
5027 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5028 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5029 # work properly (i.e., refer to `conftest.exe'), while it won't with
5031 for ac_file
in conftest.exe conftest conftest.
*; do
5032 test -f "$ac_file" ||
continue
5034 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5035 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5044 See \`config.log' for more details." "$LINENO" 5; }
5046 rm -f conftest conftest
$ac_cv_exeext
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5048 $as_echo "$ac_cv_exeext" >&6; }
5050 rm -f conftest.
$ac_ext
5051 EXEEXT
=$ac_cv_exeext
5053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5059 FILE *f = fopen ("conftest.out", "w");
5060 return ferror (f) || fclose (f) != 0;
5066 ac_clean_files
="$ac_clean_files conftest.out"
5067 # Check that the compiler produces executables we can run. If not, either
5068 # the compiler is broken, or we cross compile.
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5070 $as_echo_n "checking whether we are cross compiling... " >&6; }
5071 if test "$cross_compiling" != yes; then
5072 { { ac_try
="$ac_link"
5074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5078 $as_echo "$ac_try_echo"; } >&5
5079 (eval "$ac_link") 2>&5
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5083 if { ac_try='./conftest$ac_cv_exeext'
5084 { { case "(($ac_try" in
5085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5086 *) ac_try_echo
=$ac_try;;
5088 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_try") 2>&5
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; }; then
5096 if test "$cross_compiling" = maybe
; then
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error
"cannot run C compiled programs.
5102 If you meant to cross compile, use \`--host'.
5103 See \`config.log' for more details." "$LINENO" 5; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5108 $as_echo "$cross_compiling" >&6; }
5110 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5111 ac_clean_files
=$ac_clean_files_save
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5113 $as_echo_n "checking for suffix of object files... " >&6; }
5114 if test "${ac_cv_objext+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5128 rm -f conftest.o conftest.obj
5129 if { { ac_try
="$ac_compile"
5131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5135 $as_echo "$ac_try_echo"; } >&5
5136 (eval "$ac_compile") 2>&5
5138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }; then :
5140 for ac_file in conftest.o conftest.obj conftest.*; do
5141 test -f "$ac_file" || continue;
5143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5149 $as_echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error "cannot compute suffix of object files
: cannot compile
5155 See \
`config.log' for more details." "$LINENO" 5; }
5157 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5160 $as_echo "$ac_cv_objext" >&6; }
5161 OBJEXT=$ac_cv_objext
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5164 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5165 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5182 if ac_fn_c_try_compile "$LINENO"; then :
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5192 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5193 if test $ac_compiler_gnu = yes; then
5198 ac_test_CFLAGS=${CFLAGS+set}
5199 ac_save_CFLAGS=$CFLAGS
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5201 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5202 if test "${ac_cv_prog_cc_g+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5205 ac_save_c_werror_flag=$ac_c_werror_flag
5206 ac_c_werror_flag=yes
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5220 if ac_fn_c_try_compile "$LINENO"; then :
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5235 if ac_fn_c_try_compile "$LINENO"; then :
5238 ac_c_werror_flag=$ac_save_c_werror_flag
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5251 if ac_fn_c_try_compile "$LINENO"; then :
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_c_werror_flag=$ac_save_c_werror_flag
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5262 $as_echo "$ac_cv_prog_cc_g" >&6; }
5263 if test "$ac_test_CFLAGS" = set; then
5264 CFLAGS=$ac_save_CFLAGS
5265 elif test $ac_cv_prog_cc_g = yes; then
5266 if test "$GCC" = yes; then
5272 if test "$GCC" = yes; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5279 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5280 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5283 ac_cv_prog_cc_c89=no
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5289 #include <sys/types.h>
5290 #include <sys/stat.h>
5291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5292 struct buf { int x; };
5293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5294 static char *e (p, i)
5300 static char *f (char * (*g) (char **, int), char **p, ...)
5305 s = g (p, va_arg (v,int));
5310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5311 function prototypes and stuff, but not '\xHH' hex character constants.
5312 These don't provoke an error unfortunately, instead are silently treated
5313 as 'x'. The following induces an error, until -std is added to get
5314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5315 array size at least. It's necessary to write '\x00'==0 to get something
5316 that's true only with -std. */
5317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5320 inside strings and character constants. */
5322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5324 int test (int i, double x);
5325 struct s1 {int (*f) (int a);};
5326 struct s2 {int (*f) (double a);};
5327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5341 CC="$ac_save_CC $ac_arg"
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 ac_cv_prog_cc_c89=$ac_arg
5345 rm -f core conftest.err conftest.$ac_objext
5346 test "x$ac_cv_prog_cc_c89" != "xno" && break
5348 rm -f conftest.$ac_ext
5353 case "x$ac_cv_prog_cc_c89" in
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356 $as_echo "none needed" >&6; } ;;
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5359 $as_echo "unsupported" >&6; } ;;
5361 CC="$CC $ac_cv_prog_cc_c89"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5365 if test "x$ac_cv_prog_cc_c89" != xno; then :
5370 ac_cpp='$CPP $CPPFLAGS'
5371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 DEPDIR="${am__leading_dot}deps"
5376 ac_config_commands="$ac_config_commands depfiles"
5379 am_make=${MAKE-make}
5380 cat > confinc << 'END'
5382 @echo this is the am__doit target
5385 # If we don't find an include directive, just comment out the code.
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5387 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5391 # First try GNU make style include.
5392 echo "include confinc" > confmf
5393 # Ignore all kinds of additional output from `make'.
5394 case `$am_make -s -f confmf 2> /dev/null` in #(
5395 *the\ am__doit\ target*)
5401 # Now try BSD make style include.
5402 if test "$am__include" = "#"; then
5403 echo '.include
"confinc"' > confmf
5404 case `$am_make -s -f confmf 2> /dev/null` in #(
5405 *the\ am__doit\ target*)
5406 am__include=.include
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5415 $as_echo "$_am_result" >&6; }
5416 rm -f confinc confmf
5418 # Check whether --enable-dependency-tracking was given.
5419 if test "${enable_dependency_tracking+set}" = set; then :
5420 enableval=$enable_dependency_tracking;
5423 if test "x$enable_dependency_tracking" != xno; then
5424 am_depcomp="$ac_aux_dir/depcomp"
5427 if test "x$enable_dependency_tracking" != xno
; then
5437 depcc
="$CC" am_compiler_list
=
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5440 $as_echo_n "checking dependency style of $depcc... " >&6; }
5441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5445 # We make a subdir and do the tests there. Otherwise we can end up
5446 # making bogus files that we don't know about and never remove. For
5447 # instance it was reported that on HP-UX the gcc test will end up
5448 # making a dummy file named `D' -- because `-MD' means `put the output
5451 # Copy depcomp to subdir because otherwise we won't find it if we're
5452 # using a relative directory.
5453 cp "$am_depcomp" conftest.dir
5455 # We will build objects and dependencies in a subdirectory because
5456 # it helps to detect inapplicable dependency modes. For instance
5457 # both Tru64's cc and ICC support -MD to output dependencies as a
5458 # side effect of compilation, but ICC will put the dependencies in
5459 # the current directory while Tru64 will put them in the object
5463 am_cv_CC_dependencies_compiler_type
=none
5464 if test "$am_compiler_list" = ""; then
5465 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5468 case " $depcc " in #(
5469 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5472 for depmode
in $am_compiler_list; do
5473 # Setup a source with many dependencies, because some compilers
5474 # like to wrap large dependency lists on column 80 (with \), and
5475 # we should not choose a depcomp mode which is confused by this.
5477 # We need to recreate these files for each test, as the compiler may
5478 # overwrite some of them when testing with obscure command lines.
5479 # This happens at least with the AIX C compiler.
5481 for i
in 1 2 3 4 5 6; do
5482 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5484 # Solaris 8's {/usr,}/bin/sh.
5485 touch sub
/conftst
$i.h
5487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5490 # mode. It turns out that the SunPro C++ compiler does not properly
5491 # handle `-M -o', and we need to detect this. Also, some Intel
5492 # versions had trouble with output in subdirs
5493 am__obj
=sub
/conftest.
${OBJEXT-o}
5494 am__minus_obj
="-o $am__obj"
5497 # This depmode causes a compiler race in universal mode.
5498 test "$am__universal" = false ||
continue
5501 # after this tag, mechanisms are not by side-effect, so they'll
5502 # only be used when explicitly requested
5503 if test "x$enable_dependency_tracking" = xyes
; then
5509 msvisualcpp | msvcmsys
)
5510 # This compiler won't grok `-c -o', but also, the minuso test has
5511 # not run yet. These depmodes are late enough in the game, and
5512 # so weak that their functioning should not be impacted.
5513 am__obj
=conftest.
${OBJEXT-o}
5518 if depmode
=$depmode \
5519 source=sub
/conftest.c object
=$am__obj \
5520 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5521 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5522 >/dev
/null
2>conftest.err
&&
5523 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5524 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5525 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5526 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5527 # icc doesn't choke on unknown options, it will just issue warnings
5528 # or remarks (even with -Werror). So we grep stderr for any message
5529 # that says an option was ignored or not supported.
5530 # When given -MP, icc 7.0 and 7.1 complain thusly:
5531 # icc: Command line warning: ignoring option '-M'; no argument required
5532 # The diagnosis changed in icc 8.0:
5533 # icc: Command line remark: option '-MP' not supported
5534 if (grep 'ignoring option' conftest.err ||
5535 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5536 am_cv_CC_dependencies_compiler_type
=$depmode
5545 am_cv_CC_dependencies_compiler_type
=none
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5550 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5551 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5554 test "x$enable_dependency_tracking" != xno \
5555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5557 am__fastdepCC_FALSE
='#'
5559 am__fastdepCC_TRUE
='#'
5560 am__fastdepCC_FALSE
=
5564 if test "x$CC" != xcc
; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5566 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5569 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5571 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5572 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5574 $as_echo_n "(cached) " >&6
5576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5587 # Make sure it works both with $CC and with simple cc.
5588 # We do the test twice because some compilers refuse to overwrite an
5589 # existing .o file with -o, though they will create one.
5590 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5592 if { { case "(($ac_try" in
5593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5597 $as_echo "$ac_try_echo"; } >&5
5598 (eval "$ac_try") 2>&5
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; } &&
5602 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5604 *) ac_try_echo
=$ac_try;;
5606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5607 $as_echo "$ac_try_echo"; } >&5
5608 (eval "$ac_try") 2>&5
5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611 test $ac_status = 0; };
5613 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5614 if test "x$CC" != xcc
; then
5615 # Test first that cc exists at all.
5616 if { ac_try
='cc -c conftest.$ac_ext >&5'
5617 { { case "(($ac_try" in
5618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; }; then
5627 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5629 if { { 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; } &&
5639 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5653 # cc exists but doesn't like -o.
5654 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5659 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5661 rm -f core conftest*
5664 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666 $as_echo "yes" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5671 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5675 # FIXME: we rely on the cache variable name because
5676 # there is no other way.
5678 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5679 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5680 if test "$am_t" != yes; then
5681 # Losing compiler, so override with the script.
5682 # FIXME: It is wrong to rewrite CC.
5683 # But if we don't then we get into trouble of one sort or another.
5684 # A longer-term fix would be to have automake use am__CC in this case,
5685 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5686 CC="$am_aux_dir/compile $CC"
5691 if test x$GCC = xyes; then
5692 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5694 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5697 # Initialize gnulib right after choosing the compiler.
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5706 # On Suns, sometimes $CPP names a directory.
5707 if test -n "$CPP" && test -d "$CPP"; then
5710 if test -z "$CPP"; then
5711 if test "${ac_cv_prog_CPP+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5714 # Double quotes because CPP needs to be expanded
5715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5718 for ac_c_preproc_warn_flag in '' yes
5720 # Use a header file that comes with gcc, so configuring glibc
5721 # with a fresh cross-compiler works.
5722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5723 # <limits.h> exists even on freestanding compilers.
5724 # On the NeXT, cc -E runs the code through the compiler's parser,
5725 # not just through cpp. "Syntax error" is here to catch this case.
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5729 # include <limits.h>
5731 # include <assert.h>
5735 if ac_fn_c_try_cpp "$LINENO"; then :
5738 # Broken: fails on valid input.
5741 rm -f conftest.err conftest.$ac_ext
5743 # OK, works on sane cases. Now check whether nonexistent headers
5744 # can be detected and how.
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <ac_nonexistent.h>
5749 if ac_fn_c_try_cpp "$LINENO"; then :
5750 # Broken: success on invalid input.
5753 # Passes both tests.
5757 rm -f conftest.err conftest.$ac_ext
5760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 rm -f conftest.err conftest.
$ac_ext
5762 if $ac_preproc_ok; then :
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5775 $as_echo "$CPP" >&6; }
5777 for ac_c_preproc_warn_flag
in '' yes
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5788 # include <limits.h>
5790 # include <assert.h>
5794 if ac_fn_c_try_cpp
"$LINENO"; then :
5797 # Broken: fails on valid input.
5800 rm -f conftest.err conftest.
$ac_ext
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <ac_nonexistent.h>
5808 if ac_fn_c_try_cpp
"$LINENO"; then :
5809 # Broken: success on invalid input.
5812 # Passes both tests.
5816 rm -f conftest.err conftest.
$ac_ext
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.
$ac_ext
5821 if $ac_preproc_ok; then :
5824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5827 See \`config.log' for more details." "$LINENO" 5; }
5831 ac_cpp
='$CPP $CPPFLAGS'
5832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5839 if test "${ac_cv_path_GREP+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5842 if test -z "$GREP"; then
5843 ac_path_GREP_found
=false
5844 # Loop through the user's path and test for each of PROGNAME-LIST
5845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5846 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5849 test -z "$as_dir" && as_dir
=.
5850 for ac_prog
in grep ggrep
; do
5851 for ac_exec_ext
in '' $ac_executable_extensions; do
5852 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5854 # Check for GNU ac_path_GREP and select it if it is found.
5855 # Check for GNU $ac_path_GREP
5856 case `"$ac_path_GREP" --version 2>&1` in
5858 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5861 $as_echo_n 0123456789 >"conftest.in"
5864 cat "conftest.in" "conftest.in" >"conftest.tmp"
5865 mv "conftest.tmp" "conftest.in"
5866 cp "conftest.in" "conftest.nl"
5867 $as_echo 'GREP' >> "conftest.nl"
5868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5869 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5870 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5872 # Best one so far, save it but keep looking for a better one
5873 ac_cv_path_GREP
="$ac_path_GREP"
5874 ac_path_GREP_max
=$ac_count
5876 # 10*(2^10) chars as input seems more than enough
5877 test $ac_count -gt 10 && break
5879 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5882 $ac_path_GREP_found && break 3
5887 if test -z "$ac_cv_path_GREP"; then
5888 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5891 ac_cv_path_GREP
=$GREP
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5896 $as_echo "$ac_cv_path_GREP" >&6; }
5897 GREP
="$ac_cv_path_GREP"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5901 $as_echo_n "checking for egrep... " >&6; }
5902 if test "${ac_cv_path_EGREP+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5905 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5906 then ac_cv_path_EGREP
="$GREP -E"
5908 if test -z "$EGREP"; then
5909 ac_path_EGREP_found
=false
5910 # Loop through the user's path and test for each of PROGNAME-LIST
5911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5912 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5915 test -z "$as_dir" && as_dir
=.
5916 for ac_prog
in egrep; do
5917 for ac_exec_ext
in '' $ac_executable_extensions; do
5918 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5920 # Check for GNU ac_path_EGREP and select it if it is found.
5921 # Check for GNU $ac_path_EGREP
5922 case `"$ac_path_EGREP" --version 2>&1` in
5924 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5927 $as_echo_n 0123456789 >"conftest.in"
5930 cat "conftest.in" "conftest.in" >"conftest.tmp"
5931 mv "conftest.tmp" "conftest.in"
5932 cp "conftest.in" "conftest.nl"
5933 $as_echo 'EGREP' >> "conftest.nl"
5934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5935 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5936 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5938 # Best one so far, save it but keep looking for a better one
5939 ac_cv_path_EGREP
="$ac_path_EGREP"
5940 ac_path_EGREP_max
=$ac_count
5942 # 10*(2^10) chars as input seems more than enough
5943 test $ac_count -gt 10 && break
5945 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5948 $ac_path_EGREP_found && break 3
5953 if test -z "$ac_cv_path_EGREP"; then
5954 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5957 ac_cv_path_EGREP
=$EGREP
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5963 $as_echo "$ac_cv_path_EGREP" >&6; }
5964 EGREP
="$ac_cv_path_EGREP"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5970 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5971 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5984 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5985 gl_cv_c_amsterdam_compiler
=yes
5987 gl_cv_c_amsterdam_compiler
=no
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5994 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5995 if test -z "$AR"; then
5996 if test $gl_cv_c_amsterdam_compiler = yes; then
5998 if test -z "$ARFLAGS"; then
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6004 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_AR+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if test -n "$AR"; then
6011 ac_cv_prog_AR
="$AR" # Let the user override the test.
6013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir
=.
6018 for ac_exec_ext
in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 if test -n "$AR"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6033 $as_echo "$AR" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6041 if test -z "$ac_cv_prog_AR"; then
6043 # Extract the first word of "ar", so it can be a program name with args.
6044 set dummy
ar; ac_word
=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6050 if test -n "$ac_ct_AR"; then
6051 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir
=.
6058 for ac_exec_ext
in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_AR
="ar"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6071 if test -n "$ac_ct_AR"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6073 $as_echo "$ac_ct_AR" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6079 if test "x$ac_ct_AR" = x
; then
6082 case $cross_compiling:$ac_tool_warned in
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned
=yes ;;
6094 if test -z "$ARFLAGS"; then
6099 if test -z "$ARFLAGS"; then
6105 if test -z "$RANLIB"; then
6106 if test $gl_cv_c_amsterdam_compiler = yes; then
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir
=.
6125 for ac_exec_ext
in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 RANLIB
=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB
=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib
; ac_word
=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir
=.
6165 for ac_exec_ext
in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6186 if test "x$ac_ct_RANLIB" = x
; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193 ac_tool_warned
=yes ;;
6195 RANLIB
=$ac_ct_RANLIB
6198 RANLIB
="$ac_cv_prog_RANLIB"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6206 $as_echo_n "checking for ANSI C header files... " >&6; }
6207 if test "${ac_cv_header_stdc+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6225 if ac_fn_c_try_compile
"$LINENO"; then :
6226 ac_cv_header_stdc
=yes
6228 ac_cv_header_stdc
=no
6230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6232 if test $ac_cv_header_stdc = yes; then
6233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 $EGREP "memchr" >/dev
/null
2>&1; then :
6243 ac_cv_header_stdc
=no
6249 if test $ac_cv_header_stdc = yes; then
6250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "free" >/dev
/null
2>&1; then :
6260 ac_cv_header_stdc
=no
6266 if test $ac_cv_header_stdc = yes; then
6267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6268 if test "$cross_compiling" = yes; then :
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6275 #if ((' ' & 0x0FF) == 0x020)
6276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6279 # define ISLOWER(c) \
6280 (('a' <= (c) && (c) <= 'i') \
6281 || ('j' <= (c) && (c) <= 'r') \
6282 || ('s' <= (c) && (c) <= 'z'))
6283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6291 for (i = 0; i < 256; i++)
6292 if (XOR (islower (i), ISLOWER (i))
6293 || toupper (i) != TOUPPER (i))
6298 if ac_fn_c_try_run
"$LINENO"; then :
6301 ac_cv_header_stdc
=no
6303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6304 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6310 $as_echo "$ac_cv_header_stdc" >&6; }
6311 if test $ac_cv_header_stdc = yes; then
6313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6318 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6319 inttypes.h stdint.h unistd.h
6321 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6324 eval as_val
=\$
$as_ac_Header
6325 if test "x$as_val" = x
""yes; then :
6326 cat >>confdefs.h
<<_ACEOF
6327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6338 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6339 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6346 if test "$MINIX" = yes; then
6348 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6351 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6354 $as_echo "#define _MINIX 1" >>confdefs.h
6361 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6368 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6369 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 # define __EXTENSIONS__ 1
6376 $ac_includes_default
6385 if ac_fn_c_try_compile
"$LINENO"; then :
6386 ac_cv_safe_to_define___extensions__
=yes
6388 ac_cv_safe_to_define___extensions__
=no
6390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6394 test $ac_cv_safe_to_define___extensions__ = yes &&
6395 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6397 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6399 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6401 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6403 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6405 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6414 # Check whether --enable-largefile was given.
6415 if test "${enable_largefile+set}" = set; then :
6416 enableval
=$enable_largefile;
6419 if test "$enable_largefile" != no
; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6422 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6423 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6426 ac_cv_sys_largefile_CC
=no
6427 if test "$GCC" != yes; then
6430 # IRIX 6.2 and later do not support large files by default,
6431 # so use the C compiler's -n32 option if that helps.
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 /* Check that off_t can represent 2**63 - 1 correctly.
6436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6437 since some C++ compilers masquerading as C compilers
6438 incorrectly reject 9223372036854775807. */
6439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6441 && LARGE_OFF_T % 2147483647 == 1)
6451 if ac_fn_c_try_compile
"$LINENO"; then :
6454 rm -f core conftest.err conftest.
$ac_objext
6456 if ac_fn_c_try_compile
"$LINENO"; then :
6457 ac_cv_sys_largefile_CC
=' -n32'; break
6459 rm -f core conftest.err conftest.
$ac_objext
6463 rm -f conftest.
$ac_ext
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6467 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6468 if test "$ac_cv_sys_largefile_CC" != no
; then
6469 CC
=$CC$ac_cv_sys_largefile_CC
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6473 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6474 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <sys/types.h>
6481 /* Check that off_t can represent 2**63 - 1 correctly.
6482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6483 since some C++ compilers masquerading as C compilers
6484 incorrectly reject 9223372036854775807. */
6485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6487 && LARGE_OFF_T % 2147483647 == 1)
6497 if ac_fn_c_try_compile
"$LINENO"; then :
6498 ac_cv_sys_file_offset_bits
=no
; break
6500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #define _FILE_OFFSET_BITS 64
6504 #include <sys/types.h>
6505 /* Check that off_t can represent 2**63 - 1 correctly.
6506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6507 since some C++ compilers masquerading as C compilers
6508 incorrectly reject 9223372036854775807. */
6509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6511 && LARGE_OFF_T % 2147483647 == 1)
6521 if ac_fn_c_try_compile
"$LINENO"; then :
6522 ac_cv_sys_file_offset_bits
=64; break
6524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 ac_cv_sys_file_offset_bits
=unknown
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6530 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6531 case $ac_cv_sys_file_offset_bits in #(
6534 cat >>confdefs.h
<<_ACEOF
6535 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6540 if test $ac_cv_sys_file_offset_bits = unknown
; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6542 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6543 if test "${ac_cv_sys_large_files+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6550 /* Check that off_t can represent 2**63 - 1 correctly.
6551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552 since some C++ compilers masquerading as C compilers
6553 incorrectly reject 9223372036854775807. */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556 && LARGE_OFF_T % 2147483647 == 1)
6566 if ac_fn_c_try_compile
"$LINENO"; then :
6567 ac_cv_sys_large_files
=no
; break
6569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #define _LARGE_FILES 1
6573 #include <sys/types.h>
6574 /* Check that off_t can represent 2**63 - 1 correctly.
6575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6576 since some C++ compilers masquerading as C compilers
6577 incorrectly reject 9223372036854775807. */
6578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6580 && LARGE_OFF_T % 2147483647 == 1)
6590 if ac_fn_c_try_compile
"$LINENO"; then :
6591 ac_cv_sys_large_files
=1; break
6593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 ac_cv_sys_large_files
=unknown
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6599 $as_echo "$ac_cv_sys_large_files" >&6; }
6600 case $ac_cv_sys_large_files in #(
6603 cat >>confdefs.h
<<_ACEOF
6604 #define _LARGE_FILES $ac_cv_sys_large_files
6614 case $ac_cv_prog_cc_stdc in #(
6616 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6619 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6620 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6623 ac_cv_prog_cc_c99
=no
6625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6628 #include <stdbool.h>
6633 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6634 #define debug(...) fprintf (stderr, __VA_ARGS__)
6635 #define showlist(...) puts (#__VA_ARGS__)
6636 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6638 test_varargs_macros (void)
6643 debug ("X = %d\n", x);
6644 showlist (The first, second, and third items.);
6645 report (x>y, "x is %d but y is %d", x, y);
6648 // Check long long types.
6649 #define BIG64 18446744073709551615ull
6650 #define BIG32 4294967295ul
6651 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6653 your preprocessor is broken;
6657 your preprocessor is broken;
6659 static long long int bignum = -9223372036854775807LL;
6660 static unsigned long long int ubignum = BIG64;
6662 struct incomplete_array
6670 const wchar_t *name;
6674 typedef const char *ccp;
6677 test_restrict (ccp restrict text)
6679 // See if C++-style comments work.
6680 // Iterate through items via the restricted pointer.
6681 // Also check for declarations in for loops.
6682 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6687 // Check varargs and va_copy.
6689 test_varargs (const char *format, ...)
6692 va_start (args, format);
6694 va_copy (args_copy, args);
6705 str = va_arg (args_copy, const char *);
6708 number = va_arg (args_copy, int);
6711 fnumber = va_arg (args_copy, double);
6726 _Bool success = false;
6729 if (test_restrict ("String literal") == 0)
6731 char *restrict newvar = "Another string";
6734 test_varargs ("s, d' f .", "string", 65, 34.234);
6735 test_varargs_macros ();
6737 // Check flexible array members.
6738 struct incomplete_array *ia =
6739 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6741 for (int i = 0; i < ia->datasize; ++i)
6742 ia->data[i] = i * 1.234;
6744 // Check named initializers.
6745 struct named_init ni = {
6747 .name = L"Test wide string",
6748 .average = 543.34343,
6753 int dynamic_array[ni.number];
6754 dynamic_array[ni.number - 1] = 543;
6756 // work around unused variable warnings
6757 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6758 || dynamic_array[ni.number - 1] != 543);
6764 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6766 CC
="$ac_save_CC $ac_arg"
6767 if ac_fn_c_try_compile
"$LINENO"; then :
6768 ac_cv_prog_cc_c99
=$ac_arg
6770 rm -f core conftest.err conftest.
$ac_objext
6771 test "x$ac_cv_prog_cc_c99" != "xno" && break
6773 rm -f conftest.
$ac_ext
6778 case "x$ac_cv_prog_cc_c99" in
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6781 $as_echo "none needed" >&6; } ;;
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6784 $as_echo "unsupported" >&6; } ;;
6786 CC
="$CC $ac_cv_prog_cc_c99"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6788 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6790 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6791 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6795 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6798 ac_cv_prog_cc_c89
=no
6800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6804 #include <sys/types.h>
6805 #include <sys/stat.h>
6806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6807 struct buf { int x; };
6808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6809 static char *e (p, i)
6815 static char *f (char * (*g) (char **, int), char **p, ...)
6820 s = g (p, va_arg (v,int));
6825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6826 function prototypes and stuff, but not '\xHH' hex character constants.
6827 These don't provoke an error unfortunately, instead are silently treated
6828 as 'x'. The following induces an error, until -std is added to get
6829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6830 array size at least. It's necessary to write '\x00'==0 to get something
6831 that's true only with -std. */
6832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6835 inside strings and character constants. */
6837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6839 int test (int i, double x);
6840 struct s1 {int (*f) (int a);};
6841 struct s2 {int (*f) (double a);};
6842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6853 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6856 CC
="$ac_save_CC $ac_arg"
6857 if ac_fn_c_try_compile
"$LINENO"; then :
6858 ac_cv_prog_cc_c89
=$ac_arg
6860 rm -f core conftest.err conftest.
$ac_objext
6861 test "x$ac_cv_prog_cc_c89" != "xno" && break
6863 rm -f conftest.
$ac_ext
6868 case "x$ac_cv_prog_cc_c89" in
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6871 $as_echo "none needed" >&6; } ;;
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6874 $as_echo "unsupported" >&6; } ;;
6876 CC
="$CC $ac_cv_prog_cc_c89"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6880 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6881 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6883 ac_cv_prog_cc_stdc
=no
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6890 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6891 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6895 case $ac_cv_prog_cc_stdc in #(
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6898 $as_echo "unsupported" >&6; } ;; #(
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;; #(
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6904 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6909 # Code from module alloca-opt:
6910 # Code from module allocator:
6911 # Code from module careadlinkat:
6912 # Code from module crypto/md5:
6913 # Code from module crypto/sha1:
6914 # Code from module crypto/sha256:
6915 # Code from module crypto/sha512:
6916 # Code from module dosname:
6917 # Code from module dtoastr:
6918 # Code from module dup2:
6919 # Code from module extensions:
6921 # Code from module filemode:
6922 # Code from module getloadavg:
6923 # Code from module getopt-gnu:
6924 # Code from module getopt-posix:
6925 # Code from module gettext-h:
6926 # Code from module ignore-value:
6927 # Code from module include_next:
6928 # Code from module intprops:
6929 # Code from module inttypes-incomplete:
6930 # Code from module largefile:
6932 # Code from module lstat:
6933 # Code from module manywarnings:
6934 # Code from module mktime:
6935 # Code from module multiarch:
6936 # Code from module nocrash:
6937 # Code from module pathmax:
6938 # Code from module pthread_sigmask:
6939 # Code from module readlink:
6940 # Code from module signal-h:
6941 # Code from module sigprocmask:
6942 # Code from module snippet/_Noreturn:
6943 # Code from module snippet/arg-nonnull:
6944 # Code from module snippet/c++defs:
6945 # Code from module snippet/warn-on-use:
6946 # Code from module socklen:
6947 # Code from module ssize_t:
6948 # Code from module stat:
6949 # Code from module stdalign:
6950 # Code from module stdarg:
6954 # Code from module stdbool:
6955 # Code from module stddef:
6956 # Code from module stdint:
6957 # Code from module stdio:
6958 # Code from module stdlib:
6959 # Code from module strftime:
6960 # Code from module strtoimax:
6961 # Code from module strtoll:
6962 # Code from module strtoull:
6963 # Code from module strtoumax:
6964 # Code from module symlink:
6965 # Code from module sys_stat:
6966 # Code from module sys_types:
6967 # Code from module time:
6968 # Code from module time_r:
6969 # Code from module u64:
6970 # Code from module unistd:
6971 # Code from module verify:
6972 # Code from module warnings:
6975 # Check whether --enable-gcc-warnings was given.
6976 if test "${enable_gcc_warnings+set}" = set; then :
6977 enableval
=$enable_gcc_warnings; case $enableval in
6979 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
6981 gl_gcc_warnings
=$enableval
6988 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
6989 # ------------------------------------------------
6990 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
6991 # Otherwise, run RUN-IF-NOT-FOUND.
6994 # When compiling with GCC, prefer -isystem to -I when including system
6995 # include files, to avoid generating useless diagnostics for the files.
6996 if test "$gl_gcc_warnings" != yes; then
7001 # This, $nw, is the list of warnings we disable.
7004 case $with_x_toolkit in
7005 lucid | athena | motif
)
7006 # Old toolkits mishandle 'const'.
7007 nw
="$nw -Wwrite-strings"
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7011 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7012 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7016 gl_save_compiler_FLAGS
="$CFLAGS"
7017 as_fn_append CFLAGS
" -Werror"
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7029 if ac_fn_c_try_compile
"$LINENO"; then :
7030 gl_cv_warn_c__Werror
=yes
7032 gl_cv_warn_c__Werror
=no
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 CFLAGS
="$gl_save_compiler_FLAGS"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7039 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7040 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7041 as_fn_append WERROR_CFLAGS
" -Werror"
7049 nw
="$nw -Waggregate-return" # anachronistic
7050 nw
="$nw -Wlong-long" # C90 is anachronistic
7051 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7052 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7053 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7054 nw
="$nw -Wcast-qual" # Too many warnings for now
7055 nw
="$nw -Wconversion" # Too many warnings for now
7056 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7057 nw
="$nw -Wsign-conversion" # Too many warnings for now
7058 nw
="$nw -Woverlength-strings" # Not a problem these days
7059 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7060 nw
="$nw -Wpadded" # Our structs are not padded
7061 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7062 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7063 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7064 nw
="$nw -Wvla" # warnings in gettext.h
7065 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7066 nw
="$nw -Wswitch-enum" # Too many warnings for now
7067 nw
="$nw -Wswitch-default" # Too many warnings for now
7068 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7069 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7071 # Emacs doesn't care about shadowing; see
7072 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7075 # The following lines should be removable at some point.
7076 nw
="$nw -Wstack-protector"
7077 nw
="$nw -Wstrict-overflow"
7078 nw
="$nw -Wsuggest-attribute=const"
7079 nw
="$nw -Wsuggest-attribute=pure"
7083 if test -n "$GCC"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7086 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7087 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7091 gl_save_CFLAGS
="$CFLAGS"
7092 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7104 if ac_fn_c_try_compile
"$LINENO"; then :
7105 gl_cv_cc_nomfi_supported
=yes
7107 gl_cv_cc_nomfi_supported
=no
7109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7110 CFLAGS
="$gl_save_CFLAGS"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7114 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7116 if test "$gl_cv_cc_nomfi_supported" = yes; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7118 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7119 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7123 gl_save_CFLAGS
="$CFLAGS"
7124 CFLAGS
="$CFLAGS -W -Werror"
7125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 typedef struct { int a; int b; } s_t;
7141 if ac_fn_c_try_compile
"$LINENO"; then :
7142 gl_cv_cc_nomfi_needed
=no
7144 gl_cv_cc_nomfi_needed
=yes
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7147 CFLAGS
="$gl_save_CFLAGS"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7152 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7157 for gl_manywarn_item
in \
7161 -Wformat-nonliteral \
7164 -Wmissing-include-dirs \
7174 -Wtraditional-conversion \
7175 -Wdeclaration-after-statement \
7178 -Wunsafe-loop-optimizations \
7180 -Wbad-function-cast \
7188 -Waggregate-return \
7189 -Wstrict-prototypes \
7190 -Wold-style-definition \
7191 -Wmissing-prototypes \
7192 -Wmissing-declarations \
7193 -Wmissing-noreturn \
7194 -Wmissing-format-attribute \
7199 -Wunreachable-code \
7204 -Wvolatile-register-var \
7205 -Wdisabled-optimization \
7207 -Woverlength-strings \
7208 -Wbuiltin-macro-redefined \
7210 -Wpacked-bitfield-compat \
7213 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7215 # The following are not documented in the manual but are included in
7216 # output from gcc --help=warnings.
7217 for gl_manywarn_item
in \
7219 -Wcoverage-mismatch \
7222 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7224 # More warnings from gcc 4.6.2 --help=warnings.
7225 for gl_manywarn_item
in \
7229 -Wdeprecated-declarations \
7231 -Wdouble-promotion \
7234 -Wformat-contains-nul \
7235 -Wformat-extra-args \
7236 -Wformat-zero-length \
7241 -Wpointer-to-int-cast \
7243 -Wsuggest-attribute=const \
7244 -Wsuggest-attribute=noreturn \
7245 -Wsuggest-attribute=pure \
7248 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7251 # Disable the missing-field-initializers warning if needed
7252 if test "$gl_cv_cc_nomfi_needed" = yes; then
7253 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7264 *" $gl_warn_item "*)
7267 gl_warn_set
="$gl_warn_set $gl_warn_item"
7274 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7276 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7277 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7281 gl_save_compiler_FLAGS
="$CFLAGS"
7282 as_fn_append CFLAGS
" $w"
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7294 if ac_fn_c_try_compile
"$LINENO"; then :
7295 eval "$as_gl_Warn=yes"
7297 eval "$as_gl_Warn=no"
7299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 CFLAGS
="$gl_save_compiler_FLAGS"
7303 eval ac_res
=\$
$as_gl_Warn
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7305 $as_echo "$ac_res" >&6; }
7306 eval as_val
=\$
$as_gl_Warn
7307 if test "x$as_val" = x
""yes; then :
7308 as_fn_append WARN_CFLAGS
" $w"
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7314 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7315 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7316 $as_echo_n "(cached) " >&6
7319 gl_save_compiler_FLAGS
="$CFLAGS"
7320 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7332 if ac_fn_c_try_compile
"$LINENO"; then :
7333 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7335 gl_cv_warn_c__Wno_missing_field_initializers
=no
7337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7338 CFLAGS
="$gl_save_compiler_FLAGS"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7342 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7343 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7344 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7349 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7350 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7354 gl_save_compiler_FLAGS
="$CFLAGS"
7355 as_fn_append CFLAGS
" -Wno-sign-compare"
7356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7367 if ac_fn_c_try_compile
"$LINENO"; then :
7368 gl_cv_warn_c__Wno_sign_compare
=yes
7370 gl_cv_warn_c__Wno_sign_compare
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7373 CFLAGS
="$gl_save_compiler_FLAGS"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7377 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7378 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7379 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7382 # Too many warnings for now
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7384 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7385 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7389 gl_save_compiler_FLAGS
="$CFLAGS"
7390 as_fn_append CFLAGS
" -Wno-type-limits"
7391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7402 if ac_fn_c_try_compile
"$LINENO"; then :
7403 gl_cv_warn_c__Wno_type_limits
=yes
7405 gl_cv_warn_c__Wno_type_limits
=no
7407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 CFLAGS
="$gl_save_compiler_FLAGS"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7412 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7413 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7414 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7417 # Too many warnings for now
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7419 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7420 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7424 gl_save_compiler_FLAGS
="$CFLAGS"
7425 as_fn_append CFLAGS
" -Wno-switch"
7426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7437 if ac_fn_c_try_compile
"$LINENO"; then :
7438 gl_cv_warn_c__Wno_switch
=yes
7440 gl_cv_warn_c__Wno_switch
=no
7442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7443 CFLAGS
="$gl_save_compiler_FLAGS"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7447 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7448 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7449 as_fn_append WARN_CFLAGS
" -Wno-switch"
7452 # Too many warnings for now
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7454 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7455 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7459 gl_save_compiler_FLAGS
="$CFLAGS"
7460 as_fn_append CFLAGS
" -Wno-unused-parameter"
7461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7472 if ac_fn_c_try_compile
"$LINENO"; then :
7473 gl_cv_warn_c__Wno_unused_parameter
=yes
7475 gl_cv_warn_c__Wno_unused_parameter
=no
7477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7478 CFLAGS
="$gl_save_compiler_FLAGS"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7482 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7483 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7484 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7487 # Too many warnings for now
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7489 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7490 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7494 gl_save_compiler_FLAGS
="$CFLAGS"
7495 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7507 if ac_fn_c_try_compile
"$LINENO"; then :
7508 gl_cv_warn_c__Wno_format_nonliteral
=yes
7510 gl_cv_warn_c__Wno_format_nonliteral
=no
7512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7513 CFLAGS
="$gl_save_compiler_FLAGS"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7517 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7518 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7519 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7524 # In spite of excluding -Wlogical-op above, it is enabled, as of
7525 # gcc 4.5.0 20090517.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7527 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7528 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7532 gl_save_compiler_FLAGS
="$CFLAGS"
7533 as_fn_append CFLAGS
" -Wno-logical-op"
7534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7545 if ac_fn_c_try_compile
"$LINENO"; then :
7546 gl_cv_warn_c__Wno_logical_op
=yes
7548 gl_cv_warn_c__Wno_logical_op
=no
7550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7551 CFLAGS
="$gl_save_compiler_FLAGS"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7555 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7556 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7557 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7563 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7564 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7568 gl_save_compiler_FLAGS
="$CFLAGS"
7569 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7581 if ac_fn_c_try_compile
"$LINENO"; then :
7582 gl_cv_warn_c__fdiagnostics_show_option
=yes
7584 gl_cv_warn_c__fdiagnostics_show_option
=no
7586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7587 CFLAGS
="$gl_save_compiler_FLAGS"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7591 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7592 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7593 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7598 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7599 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7603 gl_save_compiler_FLAGS
="$CFLAGS"
7604 as_fn_append CFLAGS
" -funit-at-a-time"
7605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7616 if ac_fn_c_try_compile
"$LINENO"; then :
7617 gl_cv_warn_c__funit_at_a_time
=yes
7619 gl_cv_warn_c__funit_at_a_time
=no
7621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 CFLAGS
="$gl_save_compiler_FLAGS"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7626 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7627 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7628 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7634 $as_echo "#define lint 1" >>confdefs.h
7637 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7640 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7643 # We use a slightly smaller set of warning options for lib/.
7644 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7646 nw
="$nw -Wunused-macros"
7650 set x
$WARN_CFLAGS; shift
7654 *" $gl_warn_item "*)
7657 gl_warn_set
="$gl_warn_set $gl_warn_item"
7661 GNULIB_WARN_CFLAGS
=$gl_warn_set
7669 # Extract the first word of "install-info", so it can be a program name with args.
7670 set dummy install-info
; ac_word
=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7676 case $INSTALL_INFO in
7678 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7682 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7685 test -z "$as_dir" && as_dir
=.
7686 for ac_exec_ext
in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7700 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7701 if test -n "$INSTALL_INFO"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7703 $as_echo "$INSTALL_INFO" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 # Extract the first word of "gzip", so it can be a program name with args.
7711 set dummy
gzip; ac_word
=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7719 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir
=.
7727 for ac_exec_ext
in '' $ac_executable_extensions; do
7728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7741 if test -n "$GZIP_PROG"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7743 $as_echo "$GZIP_PROG" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 # Extract the first word of "paxctl", so it can be a program name with args.
7751 set dummy paxctl
; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7759 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7763 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 PAXCTL
=$ac_cv_path_PAXCTL
7781 if test -n "$PAXCTL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7783 $as_echo "$PAXCTL" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7792 ## Need makeinfo >= 4.7 (?) to build the manuals.
7793 # Extract the first word of "makeinfo", so it can be a program name with args.
7794 set dummy makeinfo
; ac_word
=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7802 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7809 test -z "$as_dir" && as_dir
=.
7810 for ac_exec_ext
in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7824 MAKEINFO
=$ac_cv_path_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7834 if test "$MAKEINFO" != "no" && \
7835 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7839 ## Makeinfo is unusual. For a released Emacs, the manuals are
7840 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7841 ## therefore in the category of "special tools" not normally required, which
7842 ## configure does not have to check for (eg autoconf itself).
7843 ## In a Bazaar checkout on the other hand, the manuals are not included.
7844 ## So makeinfo is a requirement to build from Bazaar, and configure
7845 ## should test for it as it does for any other build requirement.
7846 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7847 ## with pre-built manuals, from a Bazaar checkout.
7850 if test "$MAKEINFO" = "no"; then
7852 if test "x${with_makeinfo}" = "xno"; then
7854 elif test ! -e $srcdir/info
/emacs
; then
7855 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7856 source tree does not seem to have pre-built manuals in the \`info' directory.
7857 Either install a suitable version of makeinfo, or re-run configure
7858 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7864 INFO_OPTS
=--no-split
7869 if test x
$GCC = xyes
; then
7870 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7871 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7873 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7874 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7878 late_LDFLAGS
=$LDFLAGS
7879 if test x
$GCC = xyes
; then
7880 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7882 LDFLAGS
="$LDFLAGS -znocombreloc"
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7886 $as_echo_n "checking for -znocombreloc... " >&6; }
7887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7898 if ac_fn_c_try_link
"$LINENO"; then :
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7902 LDFLAGS
=$late_LDFLAGS
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7906 rm -f core conftest.err conftest.
$ac_objext \
7907 conftest
$ac_exeext conftest.
$ac_ext
7910 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7912 your-opsys-here
) CANNOT_DUMP
=yes ;;
7915 test "$CANNOT_DUMP" = "yes" && \
7917 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7923 UNEXEC_OBJ
=unexelf.o
7925 # MSDOS uses unexcoff.o
7926 # MSWindows uses unexw32.o
7928 UNEXEC_OBJ
=unexaix.o
7934 UNEXEC_OBJ
=unexmacosx.o
7937 UNEXEC_OBJ
=unexhp9k800.o
7940 # Use the Solaris dldump() function, called from unexsol.c, to dump
7941 # emacs, instead of the generic ELF dump code found in unexelf.c.
7942 # The resulting binary has a complete symbol table, and is better
7943 # for debugging and other observability tools (debuggers, pstack, etc).
7945 # If you encounter a problem using dldump(), please consider sending
7946 # a message to the OpenSolaris tools-linking mailing list:
7947 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7949 # It is likely that dldump() works with older Solaris too, but this has
7950 # not been tested, so for now this change is for Solaris 10 or newer.
7951 UNEXEC_OBJ
=unexsol.o
7958 ## Let `ld' find image libs and similar things in /usr/local/lib.
7959 ## The system compiler, GCC, has apparently been modified to not
7960 ## look there, contrary to what a stock GCC would do.
7961 ### It's not our place to do this. See bug#10313#17.
7962 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7967 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7968 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7972 ### It's not our place to do this. See bug#10313#17.
7973 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7978 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7979 ## otherwise Emacs dumps core on elf systems.
7980 LD_SWITCH_SYSTEM
="-Z"
7985 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7987 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
7988 ## which has not been defined yet. When this was handled with cpp,
7989 ## it was expanded to null when configure sourced the s/*.h file.
7990 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7991 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7992 ## (or somesuch), but because it is supposed to go at the _front_
7993 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7994 ## Compare with the gnu-linux case below, which added to the end
7995 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7996 ## LD_SWITCH_SYSTEM_TEMACS.
7999 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8006 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8007 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8012 ## With ELF, make sure that all common symbols get allocated to in the
8013 ## data section. Otherwise, the dump of temacs may miss variables in
8014 ## the shared library that have been initialized. For example, with
8015 ## GNU libc, __malloc_initialized would normally be resolved to the
8016 ## shared library's .bss section, which is fatal.
8017 if test "x$GCC" = "xyes"; then
8018 C_SWITCH_MACHINE
="-fno-common"
8020 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8023 UNEXEC_OBJ
=unexalpha.o
8032 ## Some programs in src produce warnings saying certain subprograms
8033 ## are too complex and need a MAXMEM value greater than 2000 for
8034 ## additional optimization. --nils@exp-math.uni-essen.de
8035 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8036 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8037 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8038 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8044 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8045 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8047 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8049 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8051 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8053 ## Motif needs -lgen.
8054 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8059 ### Make sure subsequent tests use flags consistent with the build flags.
8061 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8062 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8064 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8067 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8069 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8080 START_FILES
='pre-crt0.o'
8083 ## Adding -lm confuses the dynamic linker, so omit it.
8085 START_FILES
='pre-crt0.o'
8088 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8089 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8091 gnu-linux | gnu-kfreebsd
)
8092 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8093 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8095 hpux10-20 | hpux11
)
8097 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8100 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8101 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8110 for file in x
$LIB_STANDARD $START_FILES; do
8112 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8116 if test "x$crt_files" != x
; then
8118 ## If user specified a crt-dir, use that unconditionally.
8121 if test "X$CRT_DIR" = "X"; then
8123 CRT_DIR
=/usr
/lib
# default
8125 case "$canonical" in
8126 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8127 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8128 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8129 ## For anything else (eg /usr/lib32), it is up the user to specify
8130 ## the location (bug#5655).
8131 ## Test for crtn.o, not just the directory, because sometimes the
8132 ## directory exists but does not have the relevant files (bug#1287).
8133 ## FIXME better to test for binary compatibility somehow.
8134 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8137 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8141 hpux10-20
) CRT_DIR
=/lib
;;
8144 test "x${GCC}" = xyes
&& crt_gcc
=yes
8150 for file in $crt_files; do
8152 ## If we're using gcc, try to determine it automatically by asking
8153 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8154 ## system-dependent default from above.]
8155 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8157 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8160 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8161 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8162 X"$crt_file" : 'X\(//\)[^/]' \| \
8163 X"$crt_file" : 'X\(//\)$' \| \
8164 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8165 $as_echo X"$crt_file" |
8166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8189 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8192 test "x$crt_missing" = x || \
8193 as_fn_error
"Required file(s) not found:$crt_missing
8194 Try using the --with-crt-dir option." "$LINENO" 5
8196 fi # crt_files != ""
8202 if test -f $CRT_DIR/crti.o
; then
8204 test -f $CRT_DIR/crtn.o || \
8205 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8207 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8208 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8214 # Extract the first word of "pkg-config", so it can be a program name with args.
8215 set dummy pkg-config
; ac_word
=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8223 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir
=.
8231 for ac_exec_ext
in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8245 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8246 if test -n "$PKG_CONFIG"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8248 $as_echo "$PKG_CONFIG" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8259 if test "${with_sound}" != "no"; then
8260 # Sound support for GNU/Linux and the free BSDs.
8261 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8263 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8265 eval as_val
=\$
$as_ac_Header
8266 if test "x$as_val" = x
""yes; then :
8267 cat >>confdefs.h
<<_ACEOF
8268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8270 have_sound_header
=yes
8275 # Emulation library used on NetBSD.
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8277 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8278 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 ac_check_lib_save_LIBS
=$LIBS
8282 LIBS
="-lossaudio $LIBS"
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8286 /* Override any GCC internal prototype to avoid an error.
8287 Use char because int might match the return type of a GCC
8288 builtin and then its argument prototype would still apply. */
8296 return _oss_ioctl ();
8301 if ac_fn_c_try_link
"$LINENO"; then :
8302 ac_cv_lib_ossaudio__oss_ioctl
=yes
8304 ac_cv_lib_ossaudio__oss_ioctl
=no
8306 rm -f core conftest.err conftest.
$ac_objext \
8307 conftest
$ac_exeext conftest.
$ac_ext
8308 LIBS
=$ac_check_lib_save_LIBS
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8311 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8312 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8321 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8325 if test "$PKG_CONFIG" = "no" ; then
8328 PKG_CONFIG_MIN_VERSION
=0.9.0
8329 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8331 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8333 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8334 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8335 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8342 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8343 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8345 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8352 ## If we have a custom action on failure, don't print errors, but
8353 ## do set a variable so people can do so.
8354 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8361 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8362 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8366 if test $succeeded = yes; then
8372 if test $HAVE_ALSA = yes; then
8373 SAVE_CFLAGS
="$CFLAGS"
8375 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8376 LIBS
="$ALSA_LIBS $LIBS"
8377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 #include <asoundlib.h>
8383 snd_lib_error_set_handler (0);
8388 if ac_fn_c_try_compile
"$LINENO"; then :
8389 emacs_alsa_normal
=yes
8391 emacs_alsa_normal
=no
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8394 if test "$emacs_alsa_normal" != yes; then
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <alsa/asoundlib.h>
8401 snd_lib_error_set_handler (0);
8406 if ac_fn_c_try_compile
"$LINENO"; then :
8407 emacs_alsa_subdir
=yes
8409 emacs_alsa_subdir
=no
8411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8412 if test "$emacs_alsa_subdir" != yes; then
8413 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8415 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8418 CFLAGS
="$SAVE_CFLAGS"
8420 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8421 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8423 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8427 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8429 gnu-linux|freebsd|netbsd
)
8431 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8443 for ac_header
in $ac_header_list
8445 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8448 eval as_val
=\$
$as_ac_Header
8449 if test "x$as_val" = x
""yes; then :
8450 cat >>confdefs.h
<<_ACEOF
8451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8493 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <sys/personality.h>
8500 personality (PER_LINUX32)
8505 if ac_fn_c_try_compile
"$LINENO"; then :
8506 emacs_cv_personality_linux32
=yes
8508 emacs_cv_personality_linux32
=no
8510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8512 $as_echo "$emacs_cv_personality_linux32" >&6; }
8514 if test $emacs_cv_personality_linux32 = yes; then
8516 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8520 for ac_header
in term.h
8522 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8523 if test "x$ac_cv_header_term_h" = x
""yes; then :
8524 cat >>confdefs.h
<<_ACEOF
8525 #define HAVE_TERM_H 1
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8533 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8534 if test "${ac_cv_header_time+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 #include <sys/types.h>
8540 #include <sys/time.h>
8546 if ((struct tm *) 0)
8552 if ac_fn_c_try_compile
"$LINENO"; then :
8553 ac_cv_header_time
=yes
8555 ac_cv_header_time
=no
8557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8560 $as_echo "$ac_cv_header_time" >&6; }
8561 if test $ac_cv_header_time = yes; then
8563 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8567 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8568 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8574 cat >>confdefs.h
<<_ACEOF
8575 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8578 if test $ac_cv_have_decl_sys_siglist != yes; then
8579 # For Tru64, at least:
8580 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8581 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8587 cat >>confdefs.h
<<_ACEOF
8588 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8591 if test $ac_cv_have_decl___sys_siglist = yes; then
8593 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8598 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8599 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <sys/types.h>
8605 #include <sys/wait.h>
8607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8623 if ac_fn_c_try_compile
"$LINENO"; then :
8624 ac_cv_header_sys_wait_h
=yes
8626 ac_cv_header_sys_wait_h
=no
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8631 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8632 if test $ac_cv_header_sys_wait_h = yes; then
8634 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8640 $as_echo_n "checking for struct utimbuf... " >&6; }
8641 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 #ifdef TIME_WITH_SYS_TIME
8647 #include <sys/time.h>
8650 #ifdef HAVE_SYS_TIME_H
8651 #include <sys/time.h>
8662 static struct utimbuf x; x.actime = x.modtime;
8667 if ac_fn_c_try_compile
"$LINENO"; then :
8668 emacs_cv_struct_utimbuf
=yes
8670 emacs_cv_struct_utimbuf
=no
8672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8675 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8676 if test $emacs_cv_struct_utimbuf = yes; then
8678 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8683 $as_echo_n "checking for speed_t... " >&6; }
8684 if test "${emacs_cv_speed_t+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <termios.h>
8698 if ac_fn_c_try_compile
"$LINENO"; then :
8699 emacs_cv_speed_t
=yes
8703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8706 $as_echo "$emacs_cv_speed_t" >&6; }
8707 if test $emacs_cv_speed_t = yes; then
8709 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8714 $as_echo_n "checking for struct timeval... " >&6; }
8715 if test "${emacs_cv_struct_timeval+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #ifdef TIME_WITH_SYS_TIME
8721 #include <sys/time.h>
8724 #ifdef HAVE_SYS_TIME_H
8725 #include <sys/time.h>
8733 static struct timeval x; x.tv_sec = x.tv_usec;
8738 if ac_fn_c_try_compile
"$LINENO"; then :
8739 emacs_cv_struct_timeval
=yes
8741 emacs_cv_struct_timeval
=no
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8746 $as_echo "$emacs_cv_struct_timeval" >&6; }
8747 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8748 if test $emacs_cv_struct_timeval = yes; then
8750 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8755 $as_echo_n "checking for struct exception... " >&6; }
8756 if test "${emacs_cv_struct_exception+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8765 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8770 if ac_fn_c_try_compile
"$LINENO"; then :
8771 emacs_cv_struct_exception
=yes
8773 emacs_cv_struct_exception
=no
8775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8778 $as_echo "$emacs_cv_struct_exception" >&6; }
8779 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8780 if test $emacs_cv_struct_exception != yes; then
8782 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8789 for ac_header
in net
/if.h
8791 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8796 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8797 cat >>confdefs.h
<<_ACEOF
8798 #define HAVE_NET_IF_H 1
8805 for ac_header
in ifaddrs.h
8807 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8808 #if HAVE_SYS_SOCKET_H
8809 #include <sys/socket.h>
8812 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8813 cat >>confdefs.h
<<_ACEOF
8814 #define HAVE_IFADDRS_H 1
8821 for ac_header
in net
/if_dl.h
8823 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8824 #if HAVE_SYS_SOCKET_H
8825 #include <sys/socket.h>
8828 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8829 cat >>confdefs.h
<<_ACEOF
8830 #define HAVE_NET_IF_DL_H 1
8837 for ac_func
in getifaddrs freeifaddrs
8839 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8840 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8841 eval as_val
=\$
$as_ac_var
8842 if test "x$as_val" = x
""yes; then :
8843 cat >>confdefs.h
<<_ACEOF
8844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8851 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8852 #if HAVE_SYS_SOCKET_H
8853 #include <sys/socket.h>
8859 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8861 cat >>confdefs.h
<<_ACEOF
8862 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8867 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8868 #if HAVE_SYS_SOCKET_H
8869 #include <sys/socket.h>
8875 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8877 cat >>confdefs.h
<<_ACEOF
8878 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8883 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8884 #if HAVE_SYS_SOCKET_H
8885 #include <sys/socket.h>
8891 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8893 cat >>confdefs.h
<<_ACEOF
8894 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8899 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8900 #if HAVE_SYS_SOCKET_H
8901 #include <sys/socket.h>
8907 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8909 cat >>confdefs.h
<<_ACEOF
8910 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8915 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8916 #if HAVE_SYS_SOCKET_H
8917 #include <sys/socket.h>
8923 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8925 cat >>confdefs.h
<<_ACEOF
8926 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8931 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8932 #if HAVE_SYS_SOCKET_H
8933 #include <sys/socket.h>
8939 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8941 cat >>confdefs.h
<<_ACEOF
8942 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8951 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8952 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 char __attribute__ ((__aligned__ (1 << 3))) c;
8966 if ac_fn_c_try_compile
"$LINENO"; then :
8967 emacs_cv_attribute_aligned
=yes
8969 emacs_cv_attribute_aligned
=no
8971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8974 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8975 if test $emacs_cv_attribute_aligned = yes; then
8977 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8985 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8987 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8989 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
8990 if test "x$testval" != x
; then
8993 ac_enable_autodepend
=no
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8996 $as_echo "$HAVE_GNU_MAKE" >&6; }
8997 if test $HAVE_GNU_MAKE = yes; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8999 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9000 SAVE_CFLAGS
="$CFLAGS"
9001 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9013 if ac_fn_c_try_compile
"$LINENO"; then :
9016 ac_enable_autodepend
=no
9018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9019 CFLAGS
="$SAVE_CFLAGS"
9020 test -f deps.d || ac_enable_autodepend
=no
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9023 $as_echo "$ac_enable_autodepend" >&6; }
9025 if test $ac_enable_autodepend = yes; then
9026 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9027 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9028 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9029 deps_frag
=autodeps.mk
9032 deps_frag
=$srcdir/src
/$deps_frag
9038 lisp_frag
=$srcdir/src
/lisp.mk
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9043 $as_echo_n "checking for long file names... " >&6; }
9044 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9047 ac_cv_sys_long_file_names
=yes
9048 # Test for long file names in all the places we know might matter:
9049 # . the current directory, where building will happen
9050 # $prefix/lib where we will be installing things
9051 # $exec_prefix/lib likewise
9052 # $TMPDIR if set, where it might want to write temporary files
9053 # /tmp where it might want to write temporary files
9056 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9057 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9058 # in the usual case where exec_prefix is '${prefix}'.
9060 . |
/* | ?
:[\\/]*) ;; #(
9063 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9064 ac_xdir
=$ac_dir/cf$$
9065 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9066 ac_tf1
=$ac_xdir/conftest9012345
9067 ac_tf2
=$ac_xdir/conftest9012346
9068 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9069 ac_cv_sys_long_file_names
=no
9070 rm -f -r "$ac_xdir" 2>/dev
/null
9071 test $ac_cv_sys_long_file_names = no
&& break
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9075 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9076 if test $ac_cv_sys_long_file_names = yes; then
9078 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9083 #### Choose a window system.
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9086 $as_echo_n "checking for X... " >&6; }
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then :
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno
; then
9096 # The user explicitly disabled X.
9099 case $x_includes,$x_libraries in #(
9100 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9101 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes
=no ac_x_libraries
=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir
; then
9109 cat >Imakefile
<<'_ACEOF'
9111 @echo incroot='${INCROOT}'
9113 @echo usrlibdir='${USRLIBDIR}'
9115 @echo libdir='${LIBDIR}'
9117 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var
in incroot usrlibdir libdir
; do
9120 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension
in a so sl dylib la dll
; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir
=$ac_im_libdir; break
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr
/include
) ac_x_includes
= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9136 case $ac_im_usrlibdir in
9137 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9142 rm -f -r conftest.dir
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9160 /usr/local/X11/include
9161 /usr/local/X11R7/include
9162 /usr/local/X11R6/include
9163 /usr/local/X11R5/include
9164 /usr/local/X11R4/include
9166 /usr/local/include/X11
9167 /usr/local/include/X11R7
9168 /usr/local/include/X11R6
9169 /usr/local/include/X11R5
9170 /usr/local/include/X11R4
9174 /usr/XFree86/include/X11
9178 /usr/unsupported/include
9180 /usr/local/x11r5/include
9181 /usr/lpp/Xamples/include
9183 /usr/openwin/include
9184 /usr/openwin/share/include'
9186 if test "$ac_x_includes" = no
; then
9187 # Guess where to find include files, by looking for Xlib.h.
9188 # First, try using that file with no special directory specified.
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9193 if ac_fn_c_try_cpp
"$LINENO"; then :
9194 # We can compile using X headers with no special include directory.
9197 for ac_dir
in $ac_x_header_dirs; do
9198 if test -r "$ac_dir/X11/Xlib.h"; then
9199 ac_x_includes
=$ac_dir
9204 rm -f conftest.err conftest.
$ac_ext
9205 fi # $ac_x_includes = no
9207 if test "$ac_x_libraries" = no
; then
9208 # Check for the libraries.
9209 # See if we find them without any special options.
9210 # Don't add to $LIBS permanently.
9213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <X11/Xlib.h>
9224 if ac_fn_c_try_link
"$LINENO"; then :
9226 # We can link X programs with no special library path.
9230 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9232 # Don't even attempt the hair of trying to link an X program!
9233 for ac_extension
in a so sl dylib la dll
; do
9234 if test -r "$ac_dir/libX11.$ac_extension"; then
9235 ac_x_libraries
=$ac_dir
9241 rm -f core conftest.err conftest.
$ac_objext \
9242 conftest
$ac_exeext conftest.
$ac_ext
9243 fi # $ac_x_libraries = no
9245 case $ac_x_includes,$ac_x_libraries in #(
9247 # Didn't find X, or a directory has "'" in its name.
9248 ac_cv_have_x
="have_x=no";; #(
9250 # Record where we found X for the cache.
9251 ac_cv_have_x
="have_x=yes\
9252 ac_x_includes='$ac_x_includes'\
9253 ac_x_libraries='$ac_x_libraries'"
9259 eval "$ac_cv_have_x"
9262 if test "$have_x" != yes; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9264 $as_echo "$have_x" >&6; }
9267 # If each of the values was on the command line, it overrides each guess.
9268 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9269 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9270 # Update the cache value to reflect the command line values.
9271 ac_cv_have_x
="have_x=yes\
9272 ac_x_includes='$x_includes'\
9273 ac_x_libraries='$x_libraries'"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9275 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9278 if test "$no_x" = yes; then
9284 LD_SWITCH_X_SITE_RPATH
=
9285 if test "${x_libraries}" != NONE
; then
9286 if test -n "${x_libraries}"; then
9287 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9288 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9290 x_default_search_path
=""
9291 x_search_path
=${x_libraries}
9292 if test -z "${x_search_path}"; then
9293 x_search_path
=/usr
/lib
9295 for x_library
in `echo ${x_search_path}: | \
9296 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9298 ${x_library}/X11/%L/%T/%N%C%S:\
9299 ${x_library}/X11/%l/%T/%N%C%S:\
9300 ${x_library}/X11/%T/%N%C%S:\
9301 ${x_library}/X11/%L/%T/%N%S:\
9302 ${x_library}/X11/%l/%T/%N%S:\
9303 ${x_library}/X11/%T/%N%S"
9304 if test x
"${x_default_search_path}" = x
; then
9305 x_default_search_path
=${x_search_path}
9307 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9313 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9314 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9317 if test x
"${x_includes}" = x
; then
9318 bitmapdir
=/usr
/include
/X11
/bitmaps
9320 # accumulate include directories that have X11 bitmap subdirectories
9322 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9323 if test -d "${bmd}/X11/bitmaps"; then
9324 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9326 if test -d "${bmd}/bitmaps"; then
9327 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9330 if test ${bmd_acc} != "dummyval"; then
9331 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9338 tmp_CPPFLAGS
="$CPPFLAGS"
9339 tmp_CFLAGS
="$CFLAGS"
9340 CPPFLAGS
="$CPPFLAGS -x objective-c"
9341 CFLAGS
="$CFLAGS -x objective-c"
9342 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9344 if test "${with_ns}" != no
; then
9345 if test "${opsys}" = darwin
; then
9347 ns_appdir
=`pwd`/nextstep
/Emacs.app
9348 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9349 ns_appresdir
=${ns_appdir}/Contents
/Resources
9350 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9351 elif test -f $GNUSTEP_CONFIG_FILE; then
9353 ns_appdir
=`pwd`/nextstep
/Emacs.app
9354 ns_appbindir
=${ns_appdir}
9355 ns_appresdir
=${ns_appdir}/Resources
9356 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9357 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9358 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9359 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9360 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9361 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9362 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9363 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9364 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9365 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9366 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9367 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9372 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9373 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #include <GNUstepBase/GSConfig.h>
9382 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9391 if ac_fn_c_try_compile
"$LINENO"; then :
9392 emacs_cv_objc_exceptions
=yes
9394 emacs_cv_objc_exceptions
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9399 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9400 if test $emacs_cv_objc_exceptions = yes; then
9402 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9404 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9408 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9410 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9411 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9414 as_fn_error
"\`--with-ns' was specified, but the include
9415 files are missing or cannot be compiled." "$LINENO" 5
9419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #include <Foundation/NSObjCRuntime.h>
9430 if ac_fn_c_try_compile
"$LINENO"; then :
9431 ns_have_nsinteger
=yes
9433 ns_have_nsinteger
=no
9435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9436 if test $ns_have_nsinteger = yes; then
9438 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9444 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9445 ns_self_contained
=no
9449 if test "${HAVE_NS}" = yes; then
9450 if test "$with_toolkit_scroll_bars" = "no"; then
9451 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9454 window_system
=nextstep
9456 # set up packaging dirs
9457 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9458 ns_self_contained
=yes
9459 prefix
=${ns_appresdir}
9460 exec_prefix
=${ns_appbindir}
9461 libexecdir
="\${ns_appbindir}/libexec"
9462 archlibdir
="\${ns_appbindir}/libexec"
9463 docdir
="\${ns_appresdir}/etc"
9464 etcdir
="\${ns_appresdir}/etc"
9465 infodir
="\${ns_appresdir}/info"
9466 mandir
="\${ns_appresdir}/man"
9467 lispdir
="\${ns_appresdir}/lisp"
9468 leimdir
="\${ns_appresdir}/leim"
9469 INSTALL_ARCH_INDEP_EXTRA
=
9471 ns_frag
=$srcdir/src
/ns.mk
9472 NS_OBJ
="fontset.o fringe.o image.o"
9473 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9475 CFLAGS
="$tmp_CFLAGS"
9476 CPPFLAGS
="$tmp_CPPFLAGS"
9484 case "${window_system}" in
9488 case "${with_x_toolkit}" in
9489 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9490 motif
) USE_X_TOOLKIT
=MOTIF
;;
9492 USE_X_TOOLKIT
=none
;;
9493 gtk3
) with_gtk3
=yes
9494 USE_X_TOOLKIT
=none
;;
9495 no
) USE_X_TOOLKIT
=none
;;
9496 * ) USE_X_TOOLKIT
=maybe
;;
9506 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9507 # Extract the first word of "X", so it can be a program name with args.
9508 set dummy X
; ac_word
=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9514 if test -n "$HAVE_XSERVER"; then
9515 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9521 test -z "$as_dir" && as_dir
=.
9522 for ac_exec_ext
in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_prog_HAVE_XSERVER
="true"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9535 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9536 if test -n "$HAVE_XSERVER"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9538 $as_echo "$HAVE_XSERVER" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9545 if test "$HAVE_XSERVER" = true ||
9546 test -n "$DISPLAY" ||
9547 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9548 as_fn_error
"You seem to be running X, but no X development libraries
9549 were found. You should install the relevant development files for X
9550 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9551 sure you have development files for image handling, i.e.
9552 tiff, gif, jpeg, png and xpm.
9553 If you are sure you want Emacs compiled without X window support, pass
9555 to configure." "$LINENO" 5
9559 ### If we're using X11, we should use the X menu package.
9562 yes ) HAVE_MENUS
=yes ;;
9565 # Does the opsystem file prohibit the use of the GNU malloc?
9566 # Assume not, until told otherwise.
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9570 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9571 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9577 static void hook (void) {}
9581 malloc_set_state (malloc_get_state ());
9582 __after_morecore_hook = hook;
9583 __malloc_initialize_hook = hook;
9588 if ac_fn_c_try_link
"$LINENO"; then :
9589 emacs_cv_var_doug_lea_malloc
=yes
9591 emacs_cv_var_doug_lea_malloc
=no
9593 rm -f core conftest.err conftest.
$ac_objext \
9594 conftest
$ac_exeext conftest.
$ac_ext
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9597 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9598 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9603 ## darwin ld insists on the use of malloc routines in the System framework.
9604 darwin|sol2-10
) system_malloc
=yes ;;
9607 if test "${system_malloc}" = "yes"; then
9609 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9613 (The GNU allocators don't work with this system configuration.)"
9617 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9618 VMLIMIT_OBJ
=vm-limit.o
9623 if test "$doug_lea_malloc" = "yes" ; then
9624 if test "$GNU_MALLOC" = yes ; then
9626 (Using Doug Lea's new malloc from the GNU C Library.)"
9629 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9632 ## Use mmap directly for allocating larger buffers.
9633 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9634 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9635 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9637 gnu
*) REL_ALLOC
=no
;;
9641 if test x
"${REL_ALLOC}" = x
; then
9642 REL_ALLOC
=${GNU_MALLOC}
9645 use_mmap_for_buffers
=no
9647 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9657 for ac_func
in getpagesize
9659 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9660 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9661 cat >>confdefs.h
<<_ACEOF
9662 #define HAVE_GETPAGESIZE 1
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9669 $as_echo_n "checking for working mmap... " >&6; }
9670 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 if test "$cross_compiling" = yes; then :
9674 ac_cv_func_mmap_fixed_mapped
=no
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 /* malloc might have been renamed as rpl_malloc. */
9682 /* Thanks to Mike Haertel and Jim Avera for this test.
9683 Here is a matrix of mmap possibilities:
9684 mmap private not fixed
9685 mmap private fixed at somewhere currently unmapped
9686 mmap private fixed at somewhere already mapped
9687 mmap shared not fixed
9688 mmap shared fixed at somewhere currently unmapped
9689 mmap shared fixed at somewhere already mapped
9690 For private mappings, we should verify that changes cannot be read()
9691 back from the file, nor mmap's back from the file at a different
9692 address. (There have been systems where private was not correctly
9693 implemented like the infamous i386 svr4.0, and systems where the
9694 VM page cache was not coherent with the file system buffer cache
9695 like early versions of FreeBSD and possibly contemporary NetBSD.)
9696 For shared mappings, we should conversely verify that changes get
9697 propagated back to all the places they're supposed to be.
9699 Grep wants private fixed already mapped.
9700 The main things grep needs to know about mmap are:
9701 * does it exist and is it safe to write into the mmap'd area
9702 * how to use it (BSD variants) */
9705 #include <sys/mman.h>
9707 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9711 /* This mess was copied from the GNU getpagesize.h. */
9712 #ifndef HAVE_GETPAGESIZE
9713 # ifdef _SC_PAGESIZE
9714 # define getpagesize() sysconf(_SC_PAGESIZE)
9715 # else /* no _SC_PAGESIZE */
9716 # ifdef HAVE_SYS_PARAM_H
9717 # include <sys/param.h>
9718 # ifdef EXEC_PAGESIZE
9719 # define getpagesize() EXEC_PAGESIZE
9720 # else /* no EXEC_PAGESIZE */
9722 # define getpagesize() NBPG * CLSIZE
9725 # endif /* no CLSIZE */
9726 # else /* no NBPG */
9728 # define getpagesize() NBPC
9729 # else /* no NBPC */
9731 # define getpagesize() PAGESIZE
9732 # endif /* PAGESIZE */
9733 # endif /* no NBPC */
9734 # endif /* no NBPG */
9735 # endif /* no EXEC_PAGESIZE */
9736 # else /* no HAVE_SYS_PARAM_H */
9737 # define getpagesize() 8192 /* punt totally */
9738 # endif /* no HAVE_SYS_PARAM_H */
9739 # endif /* no _SC_PAGESIZE */
9741 #endif /* no HAVE_GETPAGESIZE */
9746 char *data, *data2, *data3;
9751 pagesize = getpagesize ();
9753 /* First, make a file with some known garbage in it. */
9754 data = (char *) malloc (pagesize);
9757 for (i = 0; i < pagesize; ++i)
9758 *(data + i) = rand ();
9760 fd = creat ("conftest.mmap", 0600);
9763 if (write (fd, data, pagesize) != pagesize)
9767 /* Next, check that the tail of a page is zero-filled. File must have
9768 non-zero length, otherwise we risk SIGBUS for entire page. */
9769 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9773 if (write (fd2, cdata2, 1) != 1)
9775 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9776 if (data2 == MAP_FAILED)
9778 for (i = 0; i < pagesize; ++i)
9782 if (munmap (data2, pagesize))
9785 /* Next, try to mmap the file at a fixed address which already has
9786 something else allocated at it. If we can, also make sure that
9787 we see the same garbage. */
9788 fd = open ("conftest.mmap", O_RDWR);
9791 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9792 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9794 for (i = 0; i < pagesize; ++i)
9795 if (*(data + i) != *(data2 + i))
9798 /* Finally, make sure that changes to the mapped area do not
9799 percolate back to the file as seen by read(). (This is a bug on
9800 some variants of i386 svr4.0.) */
9801 for (i = 0; i < pagesize; ++i)
9802 *(data2 + i) = *(data2 + i) + 1;
9803 data3 = (char *) malloc (pagesize);
9806 if (read (fd, data3, pagesize) != pagesize)
9808 for (i = 0; i < pagesize; ++i)
9809 if (*(data + i) != *(data3 + i))
9815 if ac_fn_c_try_run
"$LINENO"; then :
9816 ac_cv_func_mmap_fixed_mapped
=yes
9818 ac_cv_func_mmap_fixed_mapped
=no
9820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9826 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9829 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9832 rm -f conftest.mmap conftest.txt
9834 if test $use_mmap_for_buffers = yes; then
9836 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9841 LIBS
="$LIBS_SYSTEM $LIBS"
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9844 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9845 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9848 ac_check_lib_save_LIBS
=$LIBS
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9863 return dnet_ntoa ();
9868 if ac_fn_c_try_link
"$LINENO"; then :
9869 ac_cv_lib_dnet_dnet_ntoa
=yes
9871 ac_cv_lib_dnet_dnet_ntoa
=no
9873 rm -f core conftest.err conftest.
$ac_objext \
9874 conftest
$ac_exeext conftest.
$ac_ext
9875 LIBS
=$ac_check_lib_save_LIBS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9878 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9879 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9880 cat >>confdefs.h
<<_ACEOF
9881 #define HAVE_LIBDNET 1
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9890 $as_echo_n "checking for main in -lXbsd... " >&6; }
9891 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_check_lib_save_LIBS
=$LIBS
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9908 if ac_fn_c_try_link
"$LINENO"; then :
9909 ac_cv_lib_Xbsd_main
=yes
9911 ac_cv_lib_Xbsd_main
=no
9913 rm -f core conftest.err conftest.
$ac_objext \
9914 conftest
$ac_exeext conftest.
$ac_ext
9915 LIBS
=$ac_check_lib_save_LIBS
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9918 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9919 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9920 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9928 if test "$ac_cv_header_pthread_h"; then
9929 if test "$GMALLOC_OBJ" = gmalloc.o
; then
9930 emacs_pthread_function
=pthread_atfork
9932 emacs_pthread_function
=pthread_self
9934 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9936 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9937 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9938 $as_echo_n "(cached) " >&6
9940 ac_check_lib_save_LIBS
=$LIBS
9941 LIBS
="-lpthread $LIBS"
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9951 char $emacs_pthread_function ();
9955 return $emacs_pthread_function ();
9960 if ac_fn_c_try_link
"$LINENO"; then :
9961 eval "$as_ac_Lib=yes"
9963 eval "$as_ac_Lib=no"
9965 rm -f core conftest.err conftest.
$ac_objext \
9966 conftest
$ac_exeext conftest.
$ac_ext
9967 LIBS
=$ac_check_lib_save_LIBS
9969 eval ac_res
=\$
$as_ac_Lib
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9971 $as_echo "$ac_res" >&6; }
9972 eval as_val
=\$
$as_ac_Lib
9973 if test "x$as_val" = x
""yes; then :
9978 if test "$HAVE_PTHREAD" = yes; then
9979 case "${canonical}" in
9981 *) LIB_PTHREAD
="-lpthread"
9982 LIBS
="$LIB_PTHREAD $LIBS" ;;
9985 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9991 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9992 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9995 ac_check_lib_save_LIBS
=$LIBS
9996 LIBS
="-lpthreads $LIBS"
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10010 return cma_open ();
10015 if ac_fn_c_try_link
"$LINENO"; then :
10016 ac_cv_lib_pthreads_cma_open
=yes
10018 ac_cv_lib_pthreads_cma_open
=no
10020 rm -f core conftest.err conftest.
$ac_objext \
10021 conftest
$ac_exeext conftest.
$ac_ext
10022 LIBS
=$ac_check_lib_save_LIBS
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10025 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10026 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10027 cat >>confdefs.h
<<_ACEOF
10028 #define HAVE_LIBPTHREADS 1
10031 LIBS
="-lpthreads $LIBS"
10036 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10037 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10038 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10039 ## added to LIBS in configure would never contain the pthreads part,
10040 ## but the value used in Makefiles might. FIXME?
10042 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10043 ## be harmless on older versions of X where it happens to exist.
10044 test "$opsys" = "aix4-2" && \
10045 test $ac_cv_lib_pthreads_cma_open = yes && \
10046 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10052 $as_echo_n "checking for -bbigtoc option... " >&6; }
10053 if test "${gdb_cv_bigtoc+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10058 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10059 *) gdb_cv_bigtoc
=-bbigtoc ;;
10062 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10074 if ac_fn_c_try_link
"$LINENO"; then :
10079 rm -f core conftest.err conftest.
$ac_objext \
10080 conftest
$ac_exeext conftest.
$ac_ext
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10084 $as_echo "$gdb_cv_bigtoc" >&6; }
10088 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10089 # used for the tests that follow. We set them back to REAL_CFLAGS and
10090 # REAL_CPPFLAGS later on.
10092 REAL_CFLAGS
="$CFLAGS"
10093 REAL_CPPFLAGS
="$CPPFLAGS"
10095 if test "${HAVE_X11}" = "yes"; then
10096 DEFS
="$C_SWITCH_X_SITE $DEFS"
10097 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10099 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10100 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10102 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10103 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10104 # but it's more convenient here to set LD_RUN_PATH since this
10105 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10106 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10107 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10111 if test "${opsys}" = "gnu-linux"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10113 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10120 XOpenDisplay ("foo");
10125 if ac_fn_c_try_link
"$LINENO"; then :
10126 xgnu_linux_first_failure
=no
10128 xgnu_linux_first_failure
=yes
10130 rm -f core conftest.err conftest.
$ac_objext \
10131 conftest
$ac_exeext conftest.
$ac_ext
10132 if test "${xgnu_linux_first_failure}" = "yes"; then
10133 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10134 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10135 OLD_CPPFLAGS
="$CPPFLAGS"
10137 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10138 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10139 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10140 LIBS
="$LIBS -b i486-linuxaout"
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10147 XOpenDisplay ("foo");
10152 if ac_fn_c_try_link
"$LINENO"; then :
10153 xgnu_linux_second_failure
=no
10155 xgnu_linux_second_failure
=yes
10157 rm -f core conftest.err conftest.
$ac_objext \
10158 conftest
$ac_exeext conftest.
$ac_ext
10159 if test "${xgnu_linux_second_failure}" = "yes"; then
10160 # If we get the same failure with -b, there is no use adding -b.
10161 # So take it out. This plays safe.
10162 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10163 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10164 CPPFLAGS
="$OLD_CPPFLAGS"
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10178 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10179 # header files included from there.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10181 $as_echo_n "checking for Xkb... " >&6; }
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 #include <X11/Xlib.h>
10185 #include <X11/XKBlib.h>
10189 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10194 if ac_fn_c_try_link
"$LINENO"; then :
10199 rm -f core conftest.err conftest.
$ac_objext \
10200 conftest
$ac_exeext conftest.
$ac_ext
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10202 $as_echo "$emacs_xkb" >&6; }
10203 if test $emacs_xkb = yes; then
10205 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10209 for ac_func
in XrmSetDatabase XScreenResourceString \
10210 XScreenNumberOfScreen
10212 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10213 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10214 eval as_val
=\$
$as_ac_var
10215 if test "x$as_val" = x
""yes; then :
10216 cat >>confdefs.h
<<_ACEOF
10217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225 if test "${window_system}" = "x11"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10227 $as_echo_n "checking X11 version 6... " >&6; }
10228 if test "${emacs_cv_x11_version_6+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 #include <X11/Xlib.h>
10237 #if XlibSpecificationRelease < 6
10245 if ac_fn_c_try_link
"$LINENO"; then :
10246 emacs_cv_x11_version_6
=yes
10248 emacs_cv_x11_version_6
=no
10250 rm -f core conftest.err conftest.
$ac_objext \
10251 conftest
$ac_exeext conftest.
$ac_ext
10254 if test $emacs_cv_x11_version_6 = yes; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10256 $as_echo "6 or newer" >&6; }
10258 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10261 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10263 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10268 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10274 $as_echo "before 6" >&6; }
10279 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10281 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10282 if test "${with_rsvg}" != "no"; then
10283 RSVG_REQUIRED
=2.11.0
10284 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10289 if test "$PKG_CONFIG" = "no" ; then
10292 PKG_CONFIG_MIN_VERSION
=0.9.0
10293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10295 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10297 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10298 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10299 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10306 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10307 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10309 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313 $as_echo "no" >&6; }
10316 ## If we have a custom action on failure, don't print errors, but
10317 ## do set a variable so people can do so.
10318 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10325 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10326 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10330 if test $succeeded = yes; then
10339 if test $HAVE_RSVG = yes; then
10341 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10343 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10344 LIBS
="$RSVG_LIBS $LIBS"
10349 HAVE_IMAGEMAGICK
=no
10350 if test "${HAVE_X11}" = "yes"; then
10351 if test "${with_imagemagick}" != "no"; then
10352 ## 6.2.8 is the earliest version known to work, but earlier versions
10353 ## might work - let us know if you find one.
10354 ## 6.0.7 does not work. See bug#7955.
10355 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10359 if test "$PKG_CONFIG" = "no" ; then
10362 PKG_CONFIG_MIN_VERSION
=0.9.0
10363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10365 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10367 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10368 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10369 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10376 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10377 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10379 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 IMAGEMAGICK_CFLAGS
=""
10385 IMAGEMAGICK_LIBS
=""
10386 ## If we have a custom action on failure, don't print errors, but
10387 ## do set a variable so people can do so.
10388 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10400 if test $succeeded = yes; then
10401 HAVE_IMAGEMAGICK
=yes
10409 if test $HAVE_IMAGEMAGICK = yes; then
10411 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10413 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10414 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10415 for ac_func
in MagickExportImagePixels
10417 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10418 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10419 cat >>confdefs.h
<<_ACEOF
10420 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10433 if test "${with_gtk3}" = "yes"; then
10436 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10441 if test "$PKG_CONFIG" = "no" ; then
10444 PKG_CONFIG_MIN_VERSION
=0.9.0
10445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10449 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10450 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10451 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10458 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10459 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10461 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10468 ## If we have a custom action on failure, don't print errors, but
10469 ## do set a variable so people can do so.
10470 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10477 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10478 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10482 if test $succeeded = yes; then
10488 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10489 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10492 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10494 GTK_OBJ
=emacsgtkfixed.o
10497 if test "$pkg_check_gtk" != "yes"; then
10499 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10502 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10507 if test "$PKG_CONFIG" = "no" ; then
10510 PKG_CONFIG_MIN_VERSION
=0.9.0
10511 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10513 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10515 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10516 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10517 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10524 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10525 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10527 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10534 ## If we have a custom action on failure, don't print errors, but
10535 ## do set a variable so people can do so.
10536 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10543 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10544 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10548 if test $succeeded = yes; then
10554 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10555 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10560 if test x
"$pkg_check_gtk" = xyes
; then
10564 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10565 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10566 LIBS
="$GTK_LIBS $LIBS"
10568 for ac_func
in gtk_main
10570 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10571 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10572 cat >>confdefs.h
<<_ACEOF
10573 #define HAVE_GTK_MAIN 1
10579 if test "${GTK_COMPILES}" != "yes"; then
10580 if test "$USE_X_TOOLKIT" != "maybe"; then
10581 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10586 $as_echo "#define USE_GTK 1" >>confdefs.h
10588 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10590 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10594 closing open displays. This is no problem if you just use
10595 one display, but if you use more than one and close one of them
10596 Emacs may crash." >&5
10597 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10598 closing open displays. This is no problem if you just use
10599 one display, but if you use more than one and close one of them
10600 Emacs may crash." >&2;}
10609 if test "${HAVE_GTK}" = "yes"; then
10611 if test "$with_toolkit_scroll_bars" != no
; then
10612 with_toolkit_scroll_bars
=yes
10615 HAVE_GTK_FILE_SELECTION
=no
10616 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10617 #include <gtk/gtk.h>
10619 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10620 HAVE_GTK_FILE_SELECTION
=yes
10622 HAVE_GTK_FILE_SELECTION
=no
10625 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10626 for ac_func
in gtk_file_selection_new
10628 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10629 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10630 cat >>confdefs.h
<<_ACEOF
10631 #define HAVE_GTK_FILE_SELECTION_NEW 1
10640 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10641 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10642 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10643 gtk_orientable_set_orientation \
10644 gtk_window_set_has_resize_grip
10646 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10648 eval as_val
=\$
$as_ac_var
10649 if test "x$as_val" = x
""yes; then :
10650 cat >>confdefs.h
<<_ACEOF
10651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10661 if test "${with_dbus}" = "yes"; then
10665 if test "$PKG_CONFIG" = "no" ; then
10668 PKG_CONFIG_MIN_VERSION
=0.9.0
10669 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10671 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10673 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10674 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10675 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10682 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10683 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10685 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10692 ## If we have a custom action on failure, don't print errors, but
10693 ## do set a variable so people can do so.
10694 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10706 if test $succeeded = yes; then
10712 if test "$HAVE_DBUS" = yes; then
10713 LIBS
="$LIBS $DBUS_LIBS"
10715 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10717 for ac_func
in dbus_watch_get_unix_fd \
10718 dbus_type_is_valid \
10719 dbus_validate_bus_name \
10720 dbus_validate_path \
10721 dbus_validate_interface \
10722 dbus_validate_member
10724 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10725 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10726 eval as_val
=\$
$as_ac_var
10727 if test "x$as_val" = x
""yes; then :
10728 cat >>confdefs.h
<<_ACEOF
10729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10735 DBUS_OBJ
=dbusbind.o
10741 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10745 if test "$PKG_CONFIG" = "no" ; then
10748 PKG_CONFIG_MIN_VERSION
=0.9.0
10749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10751 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10753 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10754 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10755 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10762 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10763 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10765 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10770 GSETTINGS_CFLAGS
=""
10772 ## If we have a custom action on failure, don't print errors, but
10773 ## do set a variable so people can do so.
10774 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10786 if test $succeeded = yes; then
10792 if test "$HAVE_GSETTINGS" = "yes"; then
10794 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10796 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10797 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10802 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10806 if test "$PKG_CONFIG" = "no" ; then
10809 PKG_CONFIG_MIN_VERSION
=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10812 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10814 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10815 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10816 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10823 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10824 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10826 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10833 ## If we have a custom action on failure, don't print errors, but
10834 ## do set a variable so people can do so.
10835 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10847 if test $succeeded = yes; then
10853 if test "$HAVE_GCONF" = yes; then
10855 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10857 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10858 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10862 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10863 SAVE_CFLAGS
="$CFLAGS"
10865 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
10866 LIBS
="$SETTINGS_LIBS $LIBS"
10867 for ac_func
in g_type_init
10869 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10870 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10871 cat >>confdefs.h
<<_ACEOF
10872 #define HAVE_G_TYPE_INIT 1
10878 CFLAGS
="$SAVE_CFLAGS"
10887 if test "${with_selinux}" = "yes"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10889 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10890 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10893 ac_check_lib_save_LIBS
=$LIBS
10894 LIBS
="-lselinux $LIBS"
10895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10904 char lgetfilecon ();
10908 return lgetfilecon ();
10913 if ac_fn_c_try_link
"$LINENO"; then :
10914 ac_cv_lib_selinux_lgetfilecon
=yes
10916 ac_cv_lib_selinux_lgetfilecon
=no
10918 rm -f core conftest.err conftest.
$ac_objext \
10919 conftest
$ac_exeext conftest.
$ac_ext
10920 LIBS
=$ac_check_lib_save_LIBS
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10923 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10924 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10925 HAVE_LIBSELINUX
=yes
10930 if test "$HAVE_LIBSELINUX" = yes; then
10932 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10934 LIBSELINUX_LIBS
=-lselinux
10940 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
10941 if test "${with_gnutls}" = "yes" ; then
10945 if test "$PKG_CONFIG" = "no" ; then
10948 PKG_CONFIG_MIN_VERSION
=0.9.0
10949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10951 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10953 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10954 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10955 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10962 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10963 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10965 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 LIBGNUTLS_CFLAGS
=""
10972 ## If we have a custom action on failure, don't print errors, but
10973 ## do set a variable so people can do so.
10974 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10981 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10982 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10986 if test $succeeded = yes; then
10992 if test "${HAVE_GNUTLS}" = "yes"; then
10994 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10998 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
10999 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11000 for ac_func
in gnutls_certificate_set_verify_function
11002 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11003 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11004 cat >>confdefs.h
<<_ACEOF
11005 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11007 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11012 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11014 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11024 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11025 if test "$with_xaw3d" != no
; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11027 $as_echo_n "checking for xaw3d... " >&6; }
11028 if test "${emacs_cv_xaw3d+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 #include <X11/Intrinsic.h>
11035 #include <X11/Xaw3d/Simple.h>
11044 if ac_fn_c_try_link
"$LINENO"; then :
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11046 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11047 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11050 ac_check_lib_save_LIBS
=$LIBS
11051 LIBS
="-lXaw3d $LIBS"
11052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11061 char XawScrollbarSetThumb ();
11065 return XawScrollbarSetThumb ();
11070 if ac_fn_c_try_link
"$LINENO"; then :
11071 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11073 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11075 rm -f core conftest.err conftest.
$ac_objext \
11076 conftest
$ac_exeext conftest.
$ac_ext
11077 LIBS
=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11080 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11081 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11090 rm -f core conftest.err conftest.
$ac_objext \
11091 conftest
$ac_exeext conftest.
$ac_ext
11097 if test $emacs_cv_xaw3d = yes; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11099 $as_echo "yes; using Lucid toolkit" >&6; }
11100 USE_X_TOOLKIT
=LUCID
11104 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11110 $as_echo_n "checking for libXaw... " >&6; }
11111 if test "${emacs_cv_xaw+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 #include <X11/Intrinsic.h>
11118 #include <X11/Xaw/Simple.h>
11127 if ac_fn_c_try_link
"$LINENO"; then :
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11136 if test $emacs_cv_xaw = yes; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11138 $as_echo "yes; using Lucid toolkit" >&6; }
11139 USE_X_TOOLKIT
=LUCID
11141 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11142 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11144 as_fn_error
"No X toolkit could be found.
11145 If you are sure you want Emacs compiled without an X toolkit, pass
11146 --with-x-toolkit=no
11147 to configure. Otherwise, install the development libraries for the toolkit
11148 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11153 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11156 if test "${USE_X_TOOLKIT}" != "none"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11158 $as_echo_n "checking X11 toolkit version... " >&6; }
11159 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 #include <X11/Intrinsic.h>
11168 #if XtSpecificationRelease < 6
11176 if ac_fn_c_try_link
"$LINENO"; then :
11177 emacs_cv_x11_toolkit_version_6
=yes
11179 emacs_cv_x11_toolkit_version_6
=no
11181 rm -f core conftest.err conftest.
$ac_objext \
11182 conftest
$ac_exeext conftest.
$ac_ext
11185 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11186 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11188 $as_echo "6 or newer" >&6; }
11190 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11192 LIBXTR6
="-lSM -lICE"
11194 ## Use libw.a along with X11R6 Xt.
11195 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11199 $as_echo "before 6" >&6; }
11203 if test x
$HAVE_X11XTR6 = xyes
; then
11204 LIBS
="-lXt -lSM -lICE $LIBS"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11209 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11210 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11213 ac_check_lib_save_LIBS
=$LIBS
11215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11224 char XmuConvertStandardSelection ();
11228 return XmuConvertStandardSelection ();
11233 if ac_fn_c_try_link
"$LINENO"; then :
11234 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11236 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11238 rm -f core conftest.err conftest.
$ac_objext \
11239 conftest
$ac_exeext conftest.
$ac_ext
11240 LIBS
=$ac_check_lib_save_LIBS
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11243 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11244 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11245 cat >>confdefs.h
<<_ACEOF
11246 #define HAVE_LIBXMU 1
11253 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11259 ## These systems don't supply Xmu.
11261 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11266 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11267 if test "${HAVE_X11}" = "yes"; then
11268 if test "${USE_X_TOOLKIT}" != "none"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11270 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11271 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
11274 ac_check_lib_save_LIBS
=$LIBS
11275 LIBS
="-lXext $LIBS"
11276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11285 char XShapeQueryExtension ();
11289 return XShapeQueryExtension ();
11294 if ac_fn_c_try_link
"$LINENO"; then :
11295 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11297 ac_cv_lib_Xext_XShapeQueryExtension
=no
11299 rm -f core conftest.err conftest.
$ac_objext \
11300 conftest
$ac_exeext conftest.
$ac_ext
11301 LIBS
=$ac_check_lib_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11304 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11305 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11306 cat >>confdefs.h
<<_ACEOF
11307 #define HAVE_LIBXEXT 1
11310 LIBS
="-lXext $LIBS"
11318 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11320 $as_echo_n "checking for Motif version 2.1... " >&6; }
11321 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11330 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11333 Motif version prior to 2.1.
11339 if ac_fn_c_try_compile
"$LINENO"; then :
11340 emacs_cv_motif_version_2_1
=yes
11342 emacs_cv_motif_version_2_1
=no
11344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11347 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11348 if test $emacs_cv_motif_version_2_1 = yes; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11350 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11351 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11354 ac_check_lib_save_LIBS
=$LIBS
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11365 char XpCreateContext ();
11369 return XpCreateContext ();
11374 if ac_fn_c_try_link
"$LINENO"; then :
11375 ac_cv_lib_Xp_XpCreateContext
=yes
11377 ac_cv_lib_Xp_XpCreateContext
=no
11379 rm -f core conftest.err conftest.
$ac_objext \
11380 conftest
$ac_exeext conftest.
$ac_ext
11381 LIBS
=$ac_check_lib_save_LIBS
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11384 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11385 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11391 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11392 if test "${emacs_cv_lesstif+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 # We put this in CFLAGS temporarily to precede other -I options
11396 # that might be in CFLAGS temporarily.
11397 # We put this in CPPFLAGS where it precedes the other -I options.
11398 OLD_CPPFLAGS
=$CPPFLAGS
11400 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11401 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11413 if ac_fn_c_try_compile
"$LINENO"; then :
11414 emacs_cv_lesstif
=yes
11416 emacs_cv_lesstif
=no
11418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11421 $as_echo "$emacs_cv_lesstif" >&6; }
11422 if test $emacs_cv_lesstif = yes; then
11423 # Make sure this -I option remains in CPPFLAGS after it is set
11424 # back to REAL_CPPFLAGS.
11425 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11426 # have those other -I options anyway. Ultimately, having this
11427 # directory ultimately in CPPFLAGS will be enough.
11428 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11429 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11432 CPPFLAGS
=$OLD_CPPFLAGS
11435 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11436 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11439 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11446 USE_TOOLKIT_SCROLL_BARS
=no
11447 if test "${with_toolkit_scroll_bars}" != "no"; then
11448 if test "${USE_X_TOOLKIT}" != "none"; then
11449 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11450 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11453 USE_TOOLKIT_SCROLL_BARS
=yes
11454 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11455 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11457 USE_TOOLKIT_SCROLL_BARS
=yes
11459 elif test "${HAVE_GTK}" = "yes"; then
11460 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11462 USE_TOOLKIT_SCROLL_BARS
=yes
11463 elif test "${HAVE_NS}" = "yes"; then
11464 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11466 USE_TOOLKIT_SCROLL_BARS
=yes
11470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11473 #include <X11/Xlib.h>
11474 #include <X11/Xresource.h>
11483 if ac_fn_c_try_compile
"$LINENO"; then :
11486 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11494 if test "${with_xim}" != "no"; then
11496 $as_echo "#define USE_XIM 1" >>confdefs.h
11501 if test "${HAVE_XIM}" != "no"; then
11502 late_CFLAGS
=$CFLAGS
11503 if test "$GCC" = yes; then
11504 CFLAGS
="$CFLAGS --pedantic-errors"
11506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11509 #include <X11/Xlib.h>
11510 #include <X11/Xresource.h>
11519 XPointer *client_data;
11521 /* If we're not using GCC, it's probably not XFree86, and this is
11522 probably right, but we can't use something like --pedantic-errors. */
11523 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11524 char*, XIMProc, XPointer*);
11526 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11532 if ac_fn_c_try_compile
"$LINENO"; then :
11533 emacs_cv_arg6_star
=yes
11535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11536 if test "$emacs_cv_arg6_star" = yes; then
11537 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11540 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11543 CFLAGS
=$late_CFLAGS
11546 ### Start of font-backend (under any platform) section.
11547 # (nothing here yet -- this is a placeholder)
11548 ### End of font-backend (under any platform) section.
11550 ### Start of font-backend (under X11) section.
11551 if test "${HAVE_X11}" = "yes"; then
11555 if test "$PKG_CONFIG" = "no" ; then
11558 PKG_CONFIG_MIN_VERSION
=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11561 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11563 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11564 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11565 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11572 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11573 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11575 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 FONTCONFIG_CFLAGS
=""
11582 ## If we have a custom action on failure, don't print errors, but
11583 ## do set a variable so people can do so.
11584 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11596 if test $succeeded = yes; then
11603 ## Use -lXft if available, unless `--with-xft=no'.
11605 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11608 if test "x${with_xft}" != "xno"; then
11613 if test "$PKG_CONFIG" = "no" ; then
11616 PKG_CONFIG_MIN_VERSION
=0.9.0
11617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11619 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11621 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11622 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11623 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11630 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11631 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11633 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11640 ## If we have a custom action on failure, don't print errors, but
11641 ## do set a variable so people can do so.
11642 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11654 if test $succeeded = yes; then
11660 ## Because xftfont.c uses XRenderQueryExtension, we also
11661 ## need to link to -lXrender.
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11664 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11665 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11668 ac_check_lib_save_LIBS
=$LIBS
11669 LIBS
="-lXrender $LIBS"
11670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11679 char XRenderQueryExtension ();
11683 return XRenderQueryExtension ();
11688 if ac_fn_c_try_link
"$LINENO"; then :
11689 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11691 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11693 rm -f core conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 LIBS
=$ac_check_lib_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11698 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11699 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11703 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11704 OLD_CPPFLAGS
="$CPPFLAGS"
11705 OLD_CFLAGS
="$CFLAGS"
11707 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11708 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11709 XFT_LIBS
="-lXrender $XFT_LIBS"
11710 LIBS
="$XFT_LIBS $LIBS"
11711 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11712 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11714 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11715 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11718 ac_check_lib_save_LIBS
=$LIBS
11719 LIBS
="-lXft $XFT_LIBS $LIBS"
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11729 char XftFontOpen ();
11733 return XftFontOpen ();
11738 if ac_fn_c_try_link
"$LINENO"; then :
11739 ac_cv_lib_Xft_XftFontOpen
=yes
11741 ac_cv_lib_Xft_XftFontOpen
=no
11743 rm -f core conftest.err conftest.
$ac_objext \
11744 conftest
$ac_exeext conftest.
$ac_ext
11745 LIBS
=$ac_check_lib_save_LIBS
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11748 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11749 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11757 if test "${HAVE_XFT}" = "yes"; then
11759 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11762 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11764 CPPFLAGS
="$OLD_CPPFLAGS"
11765 CFLAGS
="$OLD_CFLAGS"
11767 fi # "${HAVE_XFT}" = "yes"
11768 fi # "$HAVE_XFT" != no
11769 fi # "x${with_xft}" != "xno"
11771 ## We used to allow building with FreeType and without Xft.
11772 ## However, the ftx font backend driver is not in good shape.
11773 if test "$HAVE_XFT" != "yes"; then
11780 if test "$PKG_CONFIG" = "no" ; then
11783 PKG_CONFIG_MIN_VERSION
=0.9.0
11784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11786 $as_echo_n "checking for freetype2... " >&6; }
11788 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11789 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11790 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11797 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11798 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11800 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11807 ## If we have a custom action on failure, don't print errors, but
11808 ## do set a variable so people can do so.
11809 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11821 if test $succeeded = yes; then
11828 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11832 if test "${HAVE_FREETYPE}" = "yes"; then
11834 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11836 if test "${with_libotf}" != "no"; then
11840 if test "$PKG_CONFIG" = "no" ; then
11843 PKG_CONFIG_MIN_VERSION
=0.9.0
11844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11846 $as_echo_n "checking for libotf... " >&6; }
11848 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11849 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11850 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11857 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11858 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11860 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11867 ## If we have a custom action on failure, don't print errors, but
11868 ## do set a variable so people can do so.
11869 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11881 if test $succeeded = yes; then
11887 if test "$HAVE_LIBOTF" = "yes"; then
11889 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11892 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11893 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11896 ac_check_lib_save_LIBS
=$LIBS
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11907 char OTF_get_variation_glyphs ();
11911 return OTF_get_variation_glyphs ();
11916 if ac_fn_c_try_link
"$LINENO"; then :
11917 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11919 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11921 rm -f core conftest.err conftest.
$ac_objext \
11922 conftest
$ac_exeext conftest.
$ac_ext
11923 LIBS
=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11926 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11927 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11928 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11930 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11933 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11935 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11943 if test "${HAVE_LIBOTF}" = yes; then
11944 if test "${with_m17n_flt}" != "no"; then
11948 if test "$PKG_CONFIG" = "no" ; then
11951 PKG_CONFIG_MIN_VERSION
=0.9.0
11952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11954 $as_echo_n "checking for m17n-flt... " >&6; }
11956 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11957 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11958 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11965 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11966 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11968 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11975 ## If we have a custom action on failure, don't print errors, but
11976 ## do set a variable so people can do so.
11977 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11989 if test $succeeded = yes; then
11995 if test "$HAVE_M17N_FLT" = "yes"; then
11997 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12009 ### End of font-backend (under X11) section.
12020 ### Use -lXpm if available, unless `--with-xpm=no'.
12023 if test "${HAVE_X11}" = "yes"; then
12024 if test "${with_xpm}" != "no"; then
12025 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12026 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12028 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12029 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12032 ac_check_lib_save_LIBS
=$LIBS
12033 LIBS
="-lXpm -lX11 $LIBS"
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12043 char XpmReadFileToPixmap ();
12047 return XpmReadFileToPixmap ();
12052 if ac_fn_c_try_link
"$LINENO"; then :
12053 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12055 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12057 rm -f core conftest.err conftest.
$ac_objext \
12058 conftest
$ac_exeext conftest.
$ac_ext
12059 LIBS
=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12062 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12063 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12070 if test "${HAVE_XPM}" = "yes"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12072 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include "X11/xpm.h"
12076 #ifndef XpmReturnAllocPixels
12077 no_return_alloc_pixels
12081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12090 if test "${HAVE_XPM}" = "yes"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092 $as_echo "yes" >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12100 if test "${HAVE_XPM}" = "yes"; then
12102 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12109 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12112 if test "${HAVE_X11}" = "yes"; then
12113 if test "${with_jpeg}" != "no"; then
12114 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12117 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12118 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 ac_check_lib_save_LIBS
=$LIBS
12122 LIBS
="-ljpeg $LIBS"
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12132 char jpeg_destroy_compress ();
12136 return jpeg_destroy_compress ();
12141 if ac_fn_c_try_link
"$LINENO"; then :
12142 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12144 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12146 rm -f core conftest.err conftest.
$ac_objext \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12151 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12152 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12161 if test "${HAVE_JPEG}" = "yes"; then
12162 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <jpeglib.h>
12167 version=JPEG_LIB_VERSION
12170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12172 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12176 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12182 if test "${HAVE_JPEG}" = "yes"; then
12188 ### Use -lpng if available, unless `--with-png=no'.
12191 if test "${HAVE_X11}" = "yes"; then
12192 if test "${with_png}" != "no"; then
12193 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12194 # in /usr/include/libpng.
12195 for ac_header
in png.h libpng
/png.h
12197 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12198 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12199 eval as_val
=\$
$as_ac_Header
12200 if test "x$as_val" = x
""yes; then :
12201 cat >>confdefs.h
<<_ACEOF
12202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12209 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12211 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12212 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12215 ac_check_lib_save_LIBS
=$LIBS
12216 LIBS
="-lpng -lz -lm $LIBS"
12217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12226 char png_get_channels ();
12230 return png_get_channels ();
12235 if ac_fn_c_try_link
"$LINENO"; then :
12236 ac_cv_lib_png_png_get_channels
=yes
12238 ac_cv_lib_png_png_get_channels
=no
12240 rm -f core conftest.err conftest.
$ac_objext \
12241 conftest
$ac_exeext conftest.
$ac_ext
12242 LIBS
=$ac_check_lib_save_LIBS
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12245 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12246 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12253 if test "${HAVE_PNG}" = "yes"; then
12255 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12257 LIBPNG
="-lpng -lz -lm"
12262 ### Use -ltiff if available, unless `--with-tiff=no'.
12265 if test "${HAVE_X11}" = "yes"; then
12266 if test "${with_tiff}" != "no"; then
12267 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12268 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12270 # At least one tiff package requires the jpeg library.
12271 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12273 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12274 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12277 ac_check_lib_save_LIBS
=$LIBS
12278 LIBS
="-ltiff $tifflibs $LIBS"
12279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12288 char TIFFGetVersion ();
12292 return TIFFGetVersion ();
12297 if ac_fn_c_try_link
"$LINENO"; then :
12298 ac_cv_lib_tiff_TIFFGetVersion
=yes
12300 ac_cv_lib_tiff_TIFFGetVersion
=no
12302 rm -f core conftest.err conftest.
$ac_objext \
12303 conftest
$ac_exeext conftest.
$ac_ext
12304 LIBS
=$ac_check_lib_save_LIBS
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12307 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12308 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12317 if test "${HAVE_TIFF}" = "yes"; then
12319 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12326 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12329 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12330 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12331 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12332 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12333 # Earlier versions can crash Emacs.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12335 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12336 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12339 ac_check_lib_save_LIBS
=$LIBS
12341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12350 char EGifPutExtensionLast ();
12354 return EGifPutExtensionLast ();
12359 if ac_fn_c_try_link
"$LINENO"; then :
12360 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12362 ac_cv_lib_gif_EGifPutExtensionLast
=no
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12366 LIBS
=$ac_check_lib_save_LIBS
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12369 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12370 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12380 if test "$HAVE_GIF" = yes; then
12382 elif test "$HAVE_GIF" = maybe
; then
12383 # If gif_lib.h but no libgif, try libungif.
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12385 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12386 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12389 ac_check_lib_save_LIBS
=$LIBS
12390 LIBS
="-lungif $LIBS"
12391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12400 char EGifPutExtensionLast ();
12404 return EGifPutExtensionLast ();
12409 if ac_fn_c_try_link
"$LINENO"; then :
12410 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12412 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12414 rm -f core conftest.err conftest.
$ac_objext \
12415 conftest
$ac_exeext conftest.
$ac_ext
12416 LIBS
=$ac_check_lib_save_LIBS
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12419 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12420 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12426 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12429 if test "${HAVE_GIF}" = "yes"; then
12431 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12437 if test "${HAVE_X11}" = "yes"; then
12440 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12441 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12442 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12443 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12444 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12445 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12446 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12447 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12448 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12449 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12451 if test "X${MISSING}" != X
; then
12452 as_fn_error
"The following required libraries were not found:
12454 Maybe some development libraries/packages are missing?
12455 If you don't want to link with them give
12457 as options to configure" "$LINENO" 5
12461 ### Use -lgpm if available, unless `--with-gpm=no'.
12464 if test "${with_gpm}" != "no"; then
12465 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12466 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12468 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12469 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12472 ac_check_lib_save_LIBS
=$LIBS
12474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12487 return Gpm_Open ();
12492 if ac_fn_c_try_link
"$LINENO"; then :
12493 ac_cv_lib_gpm_Gpm_Open
=yes
12495 ac_cv_lib_gpm_Gpm_Open
=no
12497 rm -f core conftest.err conftest.
$ac_objext \
12498 conftest
$ac_exeext conftest.
$ac_ext
12499 LIBS
=$ac_check_lib_save_LIBS
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12502 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12503 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12511 if test "${HAVE_GPM}" = "yes"; then
12513 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12525 ### Use NeXTstep API to implement GUI.
12526 if test "${HAVE_NS}" = "yes"; then
12528 $as_echo "#define HAVE_NS 1" >>confdefs.h
12530 if test "${NS_IMPL_COCOA}" = "yes"; then
12532 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12535 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12537 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12539 # See also .m.o rule in Makefile.in */
12540 # FIXME: are all these flags really needed? Document here why. */
12541 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12542 ## Extra CFLAGS applied to src/*.m files.
12543 GNU_OBJC_CFLAGS
="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12545 # We also have mouse menus.
12551 ### Use session management (-lSM -lICE) if available
12554 if test "${HAVE_X11}" = "yes"; then
12555 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12556 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12558 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12559 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12562 ac_check_lib_save_LIBS
=$LIBS
12563 LIBS
="-lSM -lICE $LIBS"
12564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12573 char SmcOpenConnection ();
12577 return SmcOpenConnection ();
12582 if ac_fn_c_try_link
"$LINENO"; then :
12583 ac_cv_lib_SM_SmcOpenConnection
=yes
12585 ac_cv_lib_SM_SmcOpenConnection
=no
12587 rm -f core conftest.err conftest.
$ac_objext \
12588 conftest
$ac_exeext conftest.
$ac_ext
12589 LIBS
=$ac_check_lib_save_LIBS
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12592 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12593 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12601 if test "${HAVE_X_SM}" = "yes"; then
12603 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12605 LIBXSM
="-lSM -lICE"
12608 *) LIBS
="$LIBXSM $LIBS" ;;
12614 ### Use libxml (-lxml2) if available
12616 if test "${with_xml2}" != "no"; then
12617 ### I'm not sure what the version number should be, so I just guessed.
12621 if test "$PKG_CONFIG" = "no" ; then
12624 PKG_CONFIG_MIN_VERSION
=0.9.0
12625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12627 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12629 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12630 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12631 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12638 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12639 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12641 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12648 ## If we have a custom action on failure, don't print errors, but
12649 ## do set a variable so people can do so.
12650 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12662 if test $succeeded = yes; then
12668 if test "${HAVE_LIBXML2}" = "yes"; then
12669 LIBS
="$LIBXML2_LIBS $LIBS"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12671 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12672 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12675 ac_check_lib_save_LIBS
=$LIBS
12676 LIBS
="-lxml2 $LIBS"
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12686 char htmlReadMemory ();
12690 return htmlReadMemory ();
12695 if ac_fn_c_try_link
"$LINENO"; then :
12696 ac_cv_lib_xml2_htmlReadMemory
=yes
12698 ac_cv_lib_xml2_htmlReadMemory
=no
12700 rm -f core conftest.err conftest.
$ac_objext \
12701 conftest
$ac_exeext conftest.
$ac_ext
12702 LIBS
=$ac_check_lib_save_LIBS
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12705 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12706 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12712 if test "${HAVE_LIBXML2}" = "yes"; then
12714 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12725 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12727 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12728 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12742 if ac_fn_c_try_link
"$LINENO"; then :
12743 emacs_cv_netdb_declares_h_errno
=yes
12745 emacs_cv_netdb_declares_h_errno
=no
12747 rm -f core conftest.err conftest.
$ac_objext \
12748 conftest
$ac_exeext conftest.
$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12751 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12752 if test $emacs_cv_netdb_declares_h_errno = yes; then
12754 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12758 # fmod, logb, and frexp are found in -lm on most systems.
12759 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12761 $as_echo_n "checking for sqrt in -lm... " >&6; }
12762 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12765 ac_check_lib_save_LIBS
=$LIBS
12767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 /* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12785 if ac_fn_c_try_link
"$LINENO"; then :
12786 ac_cv_lib_m_sqrt
=yes
12788 ac_cv_lib_m_sqrt
=no
12790 rm -f core conftest.err conftest.
$ac_objext \
12791 conftest
$ac_exeext conftest.
$ac_ext
12792 LIBS
=$ac_check_lib_save_LIBS
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12795 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12796 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12797 cat >>confdefs.h
<<_ACEOF
12798 #define HAVE_LIBM 1
12806 # Check for mail-locking functions in a "mail" library. Probably this should
12807 # have the same check as for liblockfile below.
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12809 $as_echo_n "checking for maillock in -lmail... " >&6; }
12810 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12811 $as_echo_n "(cached) " >&6
12813 ac_check_lib_save_LIBS
=$LIBS
12814 LIBS
="-lmail $LIBS"
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12828 return maillock ();
12833 if ac_fn_c_try_link
"$LINENO"; then :
12834 ac_cv_lib_mail_maillock
=yes
12836 ac_cv_lib_mail_maillock
=no
12838 rm -f core conftest.err conftest.
$ac_objext \
12839 conftest
$ac_exeext conftest.
$ac_ext
12840 LIBS
=$ac_check_lib_save_LIBS
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12843 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12844 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12850 if test $have_mail = yes; then
12852 LIBS
="$LIBS_MAIL $LIBS"
12854 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12860 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12861 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12864 ac_check_lib_save_LIBS
=$LIBS
12865 LIBS
="-llockfile $LIBS"
12866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12869 /* Override any GCC internal prototype to avoid an error.
12870 Use char because int might match the return type of a GCC
12871 builtin and then its argument prototype would still apply. */
12879 return maillock ();
12884 if ac_fn_c_try_link
"$LINENO"; then :
12885 ac_cv_lib_lockfile_maillock
=yes
12887 ac_cv_lib_lockfile_maillock
=no
12889 rm -f core conftest.err conftest.
$ac_objext \
12890 conftest
$ac_exeext conftest.
$ac_ext
12891 LIBS
=$ac_check_lib_save_LIBS
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12894 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12895 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12901 if test $have_lockfile = yes; then
12902 LIBS_MAIL
=-llockfile
12903 LIBS
="$LIBS_MAIL $LIBS"
12905 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12908 # If we have the shared liblockfile, assume we must use it for mail
12909 # locking (e.g. Debian). If we couldn't link against liblockfile
12910 # (no liblockfile.a installed), ensure that we don't need to.
12911 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12912 set dummy liblockfile.so
; ac_word
=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12918 if test -n "$liblockfile"; then
12919 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12922 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12923 for as_dir
in $as_dummy
12926 test -z "$as_dir" && as_dir
=.
12927 for ac_exec_ext
in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_liblockfile
="yes"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12940 liblockfile
=$ac_cv_prog_liblockfile
12941 if test -n "$liblockfile"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12943 $as_echo "$liblockfile" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12950 if test $ac_cv_prog_liblockfile = yes; then
12951 as_fn_error
"Shared liblockfile found but can't link against it.
12952 This probably means that movemail could lose mail.
12953 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12956 for ac_func
in touchlock
12958 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12959 if test "x$ac_cv_func_touchlock" = x
""yes; then :
12960 cat >>confdefs.h
<<_ACEOF
12961 #define HAVE_TOUCHLOCK 1
12972 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12973 ## interlock access to the mail spool. The alternative is a lock file named
12974 ## /usr/spool/mail/$USER.lock.
12977 aix4-2
) mail_lock
="lockf" ;;
12979 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12981 ## On GNU/Linux systems, both methods are used by various mail programs.
12982 ## I assume most people are using newer mailers that have heard of flock.
12983 ## Change this if you need to.
12984 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12985 ## configure gets the right answers, and that means *NOT* using flock.
12986 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12987 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12988 ## Debian maintainer hasn't provided a clean fix for Emacs.
12989 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12990 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12991 ## correct logic. -- fx
12992 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12993 ## liblockfile is a Free Software replacement for libmail, used on
12994 ## Debian systems and elsewhere. -rfr.
12997 if test $have_mail = yes ||
test $have_lockfile = yes; then
12998 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13004 case "$mail_lock" in
13006 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13010 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13013 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13018 for ac_func
in gethostname \
13019 rename closedir mkdir
rmdir getrusage get_current_dir_name \
13020 random lrand48 logb frexp fmod rint cbrt setsid \
13021 strerror fpathconf
select euidaccess getpagesize setlocale \
13022 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13023 __fpending strsignal setitimer \
13024 sendto recvfrom getsockname getpeername \
13025 gai_strerror mkstemp getline getdelim fsync sync \
13026 difftime posix_memalign \
13027 getpwent endpwent getgrent endgrent \
13028 cfmakeraw cfsetspeed copysign __executable_start
13030 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13031 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13032 eval as_val
=\$
$as_ac_var
13033 if test "x$as_val" = x
""yes; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13043 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13044 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13053 __builtin_unwind_init ();
13058 if ac_fn_c_try_link
"$LINENO"; then :
13059 emacs_cv_func___builtin_unwind_init
=yes
13061 emacs_cv_func___builtin_unwind_init
=no
13063 rm -f core conftest.err conftest.
$ac_objext \
13064 conftest
$ac_exeext conftest.
$ac_ext
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13067 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13068 if test $emacs_cv_func___builtin_unwind_init = yes; then
13070 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13079 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13080 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086 #include <sys/types.h> /* for off_t */
13091 int (*fp) (FILE *, off_t, int) = fseeko;
13092 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13097 if ac_fn_c_try_link
"$LINENO"; then :
13098 ac_cv_sys_largefile_source
=no
; break
13100 rm -f core conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #define _LARGEFILE_SOURCE 1
13105 #include <sys/types.h> /* for off_t */
13110 int (*fp) (FILE *, off_t, int) = fseeko;
13111 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13116 if ac_fn_c_try_link
"$LINENO"; then :
13117 ac_cv_sys_largefile_source
=1; break
13119 rm -f core conftest.err conftest.
$ac_objext \
13120 conftest
$ac_exeext conftest.
$ac_ext
13121 ac_cv_sys_largefile_source
=unknown
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13126 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13127 case $ac_cv_sys_largefile_source in #(
13130 cat >>confdefs.h
<<_ACEOF
13131 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13137 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13138 # in glibc 2.1.3, but that breaks too many other things.
13139 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13140 if test $ac_cv_sys_largefile_source != unknown
; then
13142 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13148 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13149 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13152 # Use it with a single arg.
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 $ac_includes_default
13164 if ac_fn_c_try_compile
"$LINENO"; then :
13165 ac_cv_func_getpgrp_void
=no
13167 ac_cv_func_getpgrp_void
=yes
13169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13173 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13174 if test $ac_cv_func_getpgrp_void = yes; then
13176 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13182 for ac_func
in grantpt
13184 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13185 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13186 cat >>confdefs.h
<<_ACEOF
13187 #define HAVE_GRANTPT 1
13194 # PTY-related GNU extensions.
13195 for ac_func
in getpt
13197 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
13198 if test "x$ac_cv_func_getpt" = x
""yes; then :
13199 cat >>confdefs.h
<<_ACEOF
13200 #define HAVE_GETPT 1
13207 # Check this now, so that we will NOT find the above functions in ncurses.
13208 # That is because we have not set up to link ncurses in lib-src.
13209 # It's better to believe a function is not available
13210 # than to expect to find it in ncurses.
13211 # Also we need tputs and friends to be able to build at all.
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13213 $as_echo_n "checking for library containing tputs... " >&6; }
13214 # Run a test program that contains a call to tputs, a call that is
13215 # never executed. This tests whether a pre-'main' dynamic linker
13216 # works with the library. It's too much trouble to actually call
13217 # tputs in the test program, due to portability hassles. When
13218 # cross-compiling, assume the test program will run if it links.
13220 # Maybe curses should be tried earlier?
13221 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13222 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13224 if test -z "$tputs_library"; then
13226 msg
='none required'
13228 LIBS_TERMCAP
=-l$tputs_library
13230 LIBS
="$LIBS_TERMCAP $LIBS"
13232 if test "$cross_compiling" = yes; then :
13233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 extern void tputs (const char *, int, int (*)(int));
13237 int main (int argc, char **argv)
13240 tputs (argv[0], 0, 0);
13245 if ac_fn_c_try_link
"$LINENO"; then :
13250 rm -f core conftest.err conftest.
$ac_objext \
13251 conftest
$ac_exeext conftest.
$ac_ext
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 extern void tputs (const char *, int, int (*)(int));
13257 int main (int argc, char **argv)
13260 tputs (argv[0], 0, 0);
13265 if ac_fn_c_try_run
"$LINENO"; then :
13270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13275 if test "X$msg" != Xno
; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13280 $as_echo "$msg" >&6; }
13281 if test "X$msg" = Xno
; then
13282 as_fn_error
"The required function \`tputs' was not found in any library.
13283 The following libraries were tried (in order):
13284 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13285 Please try installing whichever of these libraries is most appropriate
13286 for your system, together with its header files.
13287 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13290 ## Use termcap instead of terminfo?
13291 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13293 ## FIXME? In the cases below where we unconditionally set
13294 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13295 ## if that was found above to have tputs.
13296 ## Should we use the gnu* logic everywhere?
13298 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13299 ## The ncurses library has been moved out of the System framework in
13300 ## Mac OS X 10.2. So if configure detects it, set the command-line
13301 ## option to use it.
13302 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13304 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13308 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13309 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 #include <osreldate.h>
13318 #if __FreeBSD_version < 400000
13326 if ac_fn_c_try_link
"$LINENO"; then :
13327 emacs_cv_freebsd_terminfo
=yes
13329 emacs_cv_freebsd_terminfo
=no
13331 rm -f core conftest.err conftest.
$ac_objext \
13332 conftest
$ac_exeext conftest.
$ac_ext
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13337 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13339 if test $emacs_cv_freebsd_terminfo = yes; then
13340 LIBS_TERMCAP
="-lncurses"
13343 LIBS_TERMCAP
="-ltermcap"
13348 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13350 LIBS_TERMCAP
="-ltermcap"
13354 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13356 ## hpux: Make sure we get select from libc rather than from libcurses
13357 ## because libcurses on HPUX 10.10 has a broken version of select.
13358 ## We used to use -lc -lcurses, but this may be cleaner.
13359 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13360 # set that way, now it uses the default). Isn't this a contradiction?
13361 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13365 TERMCAP_OBJ
=tparam.o
13366 if test $TERMINFO = yes; then
13368 $as_echo "#define TERMINFO 1" >>confdefs.h
13370 TERMCAP_OBJ
=terminfo.o
13376 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <netinet/in.h>
13381 #include <arpa/nameser.h>
13382 #include <resolv.h>
13391 if ac_fn_c_try_link
"$LINENO"; then :
13396 rm -f core conftest.err conftest.
$ac_objext \
13397 conftest
$ac_exeext conftest.
$ac_ext
13398 if test "$have_res_init" = no
; then
13400 LIBS
="$LIBS -lresolv"
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13402 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13405 #include <netinet/in.h>
13406 #include <arpa/nameser.h>
13407 #include <resolv.h>
13416 if ac_fn_c_try_link
"$LINENO"; then :
13421 rm -f core conftest.err conftest.
$ac_objext \
13422 conftest
$ac_exeext conftest.
$ac_ext
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13424 $as_echo "$have_res_init" >&6; }
13425 if test "$have_res_init" = yes ; then
13431 if test "$have_res_init" = yes; then
13433 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13437 # Do we need the Hesiod library to provide the support routines?
13439 if test "$with_hesiod" != no
; then
13440 # Don't set $LIBS here -- see comments above. FIXME which comments?
13441 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13442 if test "x$ac_cv_func_res_send" = x
""yes; then :
13445 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13446 if test "x$ac_cv_func___res_send" = x
""yes; then :
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13450 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13451 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13454 ac_check_lib_save_LIBS
=$LIBS
13455 LIBS
="-lresolv $LIBS"
13456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13469 return res_send ();
13474 if ac_fn_c_try_link
"$LINENO"; then :
13475 ac_cv_lib_resolv_res_send
=yes
13477 ac_cv_lib_resolv_res_send
=no
13479 rm -f core conftest.err conftest.
$ac_objext \
13480 conftest
$ac_exeext conftest.
$ac_ext
13481 LIBS
=$ac_check_lib_save_LIBS
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13484 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13485 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13489 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13490 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13493 ac_check_lib_save_LIBS
=$LIBS
13494 LIBS
="-lresolv $LIBS"
13495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13504 char __res_send ();
13508 return __res_send ();
13513 if ac_fn_c_try_link
"$LINENO"; then :
13514 ac_cv_lib_resolv___res_send
=yes
13516 ac_cv_lib_resolv___res_send
=no
13518 rm -f core conftest.err conftest.
$ac_objext \
13519 conftest
$ac_exeext conftest.
$ac_ext
13520 LIBS
=$ac_check_lib_save_LIBS
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13523 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13524 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13534 if test "$resolv" = yes ; then
13539 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13540 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13544 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13545 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13546 $as_echo_n "(cached) " >&6
13548 ac_check_lib_save_LIBS
=$LIBS
13549 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char hes_getmailhost ();
13563 return hes_getmailhost ();
13568 if ac_fn_c_try_link
"$LINENO"; then :
13569 ac_cv_lib_hesiod_hes_getmailhost
=yes
13571 ac_cv_lib_hesiod_hes_getmailhost
=no
13573 rm -f core conftest.err conftest.
$ac_objext \
13574 conftest
$ac_exeext conftest.
$ac_ext
13575 LIBS
=$ac_check_lib_save_LIBS
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13578 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13579 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13588 if test x
"$hesiod" = xyes
; then
13590 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13597 # Do we need libresolv (due to res_init or Hesiod)?
13598 if test "$resolv" = yes ; then
13600 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13608 # These tell us which Kerberos-related libraries to use.
13615 if test "${with_kerberos}" != no
; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13617 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13618 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 ac_check_lib_save_LIBS
=$LIBS
13622 LIBS
="-lcom_err $LIBS"
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13641 if ac_fn_c_try_link
"$LINENO"; then :
13642 ac_cv_lib_com_err_com_err
=yes
13644 ac_cv_lib_com_err_com_err
=no
13646 rm -f core conftest.err conftest.
$ac_objext \
13647 conftest
$ac_exeext conftest.
$ac_ext
13648 LIBS
=$ac_check_lib_save_LIBS
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13651 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13652 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13658 if test $have_com_err = yes; then
13659 COM_ERRLIB
=-lcom_err
13660 LIBS
="$COM_ERRLIB $LIBS"
13662 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13666 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13667 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13670 ac_check_lib_save_LIBS
=$LIBS
13671 LIBS
="-lcrypto $LIBS"
13672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13675 /* Override any GCC internal prototype to avoid an error.
13676 Use char because int might match the return type of a GCC
13677 builtin and then its argument prototype would still apply. */
13681 char mit_des_cbc_encrypt ();
13685 return mit_des_cbc_encrypt ();
13690 if ac_fn_c_try_link
"$LINENO"; then :
13691 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13693 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13695 rm -f core conftest.err conftest.
$ac_objext \
13696 conftest
$ac_exeext conftest.
$ac_ext
13697 LIBS
=$ac_check_lib_save_LIBS
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13700 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13701 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13707 if test $have_crypto = yes; then
13709 LIBS
="$CRYPTOLIB $LIBS"
13711 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13715 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13716 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13719 ac_check_lib_save_LIBS
=$LIBS
13720 LIBS
="-lk5crypto $LIBS"
13721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13730 char mit_des_cbc_encrypt ();
13734 return mit_des_cbc_encrypt ();
13739 if ac_fn_c_try_link
"$LINENO"; then :
13740 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13742 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13744 rm -f core conftest.err conftest.
$ac_objext \
13745 conftest
$ac_exeext conftest.
$ac_ext
13746 LIBS
=$ac_check_lib_save_LIBS
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13749 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13750 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13756 if test $have_k5crypto = yes; then
13757 CRYPTOLIB
=-lk5crypto
13758 LIBS
="$CRYPTOLIB $LIBS"
13760 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13764 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13765 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13766 $as_echo_n "(cached) " >&6
13768 ac_check_lib_save_LIBS
=$LIBS
13769 LIBS
="-lkrb5 $LIBS"
13770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13773 /* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13779 char krb5_init_context ();
13783 return krb5_init_context ();
13788 if ac_fn_c_try_link
"$LINENO"; then :
13789 ac_cv_lib_krb5_krb5_init_context
=yes
13791 ac_cv_lib_krb5_krb5_init_context
=no
13793 rm -f core conftest.err conftest.
$ac_objext \
13794 conftest
$ac_exeext conftest.
$ac_ext
13795 LIBS
=$ac_check_lib_save_LIBS
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13798 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13799 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13805 if test $have_krb5=yes; then
13807 LIBS
="$KRB5LIB $LIBS"
13809 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13812 if test "${with_kerberos5}" = no
; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13814 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13815 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13818 ac_check_lib_save_LIBS
=$LIBS
13819 LIBS
="-ldes425 $LIBS"
13820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13829 char des_cbc_encrypt ();
13833 return des_cbc_encrypt ();
13838 if ac_fn_c_try_link
"$LINENO"; then :
13839 ac_cv_lib_des425_des_cbc_encrypt
=yes
13841 ac_cv_lib_des425_des_cbc_encrypt
=no
13843 rm -f core conftest.err conftest.
$ac_objext \
13844 conftest
$ac_exeext conftest.
$ac_ext
13845 LIBS
=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13848 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13849 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13855 if test $have_des425 = yes; then
13857 LIBS
="$DESLIB $LIBS"
13859 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13863 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13864 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13867 ac_check_lib_save_LIBS
=$LIBS
13869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13878 char des_cbc_encrypt ();
13882 return des_cbc_encrypt ();
13887 if ac_fn_c_try_link
"$LINENO"; then :
13888 ac_cv_lib_des_des_cbc_encrypt
=yes
13890 ac_cv_lib_des_des_cbc_encrypt
=no
13892 rm -f core conftest.err conftest.
$ac_objext \
13893 conftest
$ac_exeext conftest.
$ac_ext
13894 LIBS
=$ac_check_lib_save_LIBS
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13897 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13898 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13904 if test $have_des = yes; then
13906 LIBS
="$DESLIB $LIBS"
13908 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13913 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13914 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13917 ac_check_lib_save_LIBS
=$LIBS
13918 LIBS
="-lkrb4 $LIBS"
13919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13922 /* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13928 char krb_get_cred ();
13932 return krb_get_cred ();
13937 if ac_fn_c_try_link
"$LINENO"; then :
13938 ac_cv_lib_krb4_krb_get_cred
=yes
13940 ac_cv_lib_krb4_krb_get_cred
=no
13942 rm -f core conftest.err conftest.
$ac_objext \
13943 conftest
$ac_exeext conftest.
$ac_ext
13944 LIBS
=$ac_check_lib_save_LIBS
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13947 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13948 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13954 if test $have_krb4 = yes; then
13956 LIBS
="$KRB4LIB $LIBS"
13958 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13962 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13963 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 ac_check_lib_save_LIBS
=$LIBS
13968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13977 char krb_get_cred ();
13981 return krb_get_cred ();
13986 if ac_fn_c_try_link
"$LINENO"; then :
13987 ac_cv_lib_krb_krb_get_cred
=yes
13989 ac_cv_lib_krb_krb_get_cred
=no
13991 rm -f core conftest.err conftest.
$ac_objext \
13992 conftest
$ac_exeext conftest.
$ac_ext
13993 LIBS
=$ac_check_lib_save_LIBS
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13996 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13997 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14003 if test $have_krb = yes; then
14005 LIBS
="$KRB4LIB $LIBS"
14007 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14013 if test "${with_kerberos5}" != no
; then
14014 for ac_header
in krb5.h
14016 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14017 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14018 cat >>confdefs.h
<<_ACEOF
14019 #define HAVE_KRB5_H 1
14021 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14023 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14025 cat >>confdefs.h
<<_ACEOF
14026 #define HAVE_KRB5_ERROR_TEXT 1
14031 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14033 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14035 cat >>confdefs.h
<<_ACEOF
14036 #define HAVE_KRB5_ERROR_E_TEXT 1
14047 for ac_header
in des.h
14049 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_des_h" = x
""yes; then :
14051 cat >>confdefs.h
<<_ACEOF
14052 #define HAVE_DES_H 1
14056 for ac_header
in kerberosIV
/des.h
14058 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14059 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14060 cat >>confdefs.h
<<_ACEOF
14061 #define HAVE_KERBEROSIV_DES_H 1
14065 for ac_header
in kerberos
/des.h
14067 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14068 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14069 cat >>confdefs.h
<<_ACEOF
14070 #define HAVE_KERBEROS_DES_H 1
14085 for ac_header
in krb.h
14087 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14088 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14089 cat >>confdefs.h
<<_ACEOF
14090 #define HAVE_KRB_H 1
14094 for ac_header
in kerberosIV
/krb.h
14096 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14098 cat >>confdefs.h
<<_ACEOF
14099 #define HAVE_KERBEROSIV_KRB_H 1
14103 for ac_header
in kerberos
/krb.h
14105 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14106 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14107 cat >>confdefs.h
<<_ACEOF
14108 #define HAVE_KERBEROS_KRB_H 1
14124 for ac_header
in com_err.h
14126 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14127 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14128 cat >>confdefs.h
<<_ACEOF
14129 #define HAVE_COM_ERR_H 1
14147 for ac_func
in $ac_func_list
14149 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14150 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14151 eval as_val
=\$
$as_ac_var
14152 if test "x$as_val" = x
""yes; then :
14153 cat >>confdefs.h
<<_ACEOF
14154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14164 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14165 if test "${emacs_cv_localtime_cache+set}" = set; then :
14166 $as_echo_n "(cached) " >&6
14168 if test x
$ac_cv_func_tzset = xyes
; then
14169 if test "$cross_compiling" = yes; then :
14170 # If we have tzset, assume the worst when cross-compiling.
14171 emacs_cv_localtime_cache
=yes
14173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14176 char TZ_GMT0[] = "TZ=GMT0";
14177 char TZ_PST8[] = "TZ=PST8";
14180 time_t now = time ((time_t *) 0);
14181 int hour_GMT0, hour_unset;
14182 if (putenv (TZ_GMT0) != 0)
14184 hour_GMT0 = localtime (&now)->tm_hour;
14186 hour_unset = localtime (&now)->tm_hour;
14187 if (putenv (TZ_PST8) != 0)
14189 if (localtime (&now)->tm_hour == hour_GMT0)
14192 if (localtime (&now)->tm_hour != hour_unset)
14197 if ac_fn_c_try_run
"$LINENO"; then :
14198 emacs_cv_localtime_cache
=no
14200 emacs_cv_localtime_cache
=yes
14202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14203 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14207 # If we lack tzset, report that localtime does not cache TZ,
14208 # since we can't invalidate the cache if we don't have tzset.
14209 emacs_cv_localtime_cache
=no
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14213 $as_echo "$emacs_cv_localtime_cache" >&6; }
14214 if test $emacs_cv_localtime_cache = yes; then
14216 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14220 if test "x$HAVE_TIMEVAL" = xyes
; then
14221 for ac_func
in gettimeofday
14223 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14224 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14225 cat >>confdefs.h
<<_ACEOF
14226 #define HAVE_GETTIMEOFDAY 1
14232 if test $ac_cv_func_gettimeofday = yes; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14234 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14235 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14236 $as_echo_n "(cached) " >&6
14238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14241 #ifdef TIME_WITH_SYS_TIME
14242 #include <sys/time.h>
14245 #ifdef HAVE_SYS_TIME_H
14246 #include <sys/time.h>
14254 struct timeval time;
14255 gettimeofday (&time, 0);
14260 if ac_fn_c_try_compile
"$LINENO"; then :
14261 emacs_cv_gettimeofday_two_arguments
=yes
14263 emacs_cv_gettimeofday_two_arguments
=no
14265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14268 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14269 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14271 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14278 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14279 if test "x$ac_cv_func_socket" = x
""yes; then :
14285 if test $ok_so_far = yes; then
14286 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14295 if test $ok_so_far = yes; then
14296 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14297 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14305 if test $ok_so_far = yes; then
14307 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14311 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14313 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14318 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14319 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14321 $as_echo "yes" >&6; }
14323 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14330 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14331 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14335 cat >>confdefs.h
<<_ACEOF
14341 for ac_header
in vfork.h
14343 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14344 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14345 cat >>confdefs.h
<<_ACEOF
14346 #define HAVE_VFORK_H 1
14353 for ac_func
in fork vfork
14355 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14356 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14357 eval as_val
=\$
$as_ac_var
14358 if test "x$as_val" = x
""yes; then :
14359 cat >>confdefs.h
<<_ACEOF
14360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14366 if test "x$ac_cv_func_fork" = xyes
; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14368 $as_echo_n "checking for working fork... " >&6; }
14369 if test "${ac_cv_func_fork_works+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14372 if test "$cross_compiling" = yes; then :
14373 ac_cv_func_fork_works
=cross
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 $ac_includes_default
14382 /* By Ruediger Kuhlmann. */
14383 return fork () < 0;
14389 if ac_fn_c_try_run
"$LINENO"; then :
14390 ac_cv_func_fork_works
=yes
14392 ac_cv_func_fork_works
=no
14394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14400 $as_echo "$ac_cv_func_fork_works" >&6; }
14403 ac_cv_func_fork_works
=$ac_cv_func_fork
14405 if test "x$ac_cv_func_fork_works" = xcross
; then
14407 *-*-amigaos* |
*-*-msdosdjgpp*)
14408 # Override, as these systems have only a dummy fork() stub
14409 ac_cv_func_fork_works
=no
14412 ac_cv_func_fork_works
=yes
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14416 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14418 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14419 if test "x$ac_cv_func_vfork" = xyes
; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14421 $as_echo_n "checking for working vfork... " >&6; }
14422 if test "${ac_cv_func_vfork_works+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14425 if test "$cross_compiling" = yes; then :
14426 ac_cv_func_vfork_works
=cross
14428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430 /* Thanks to Paul Eggert for this test. */
14431 $ac_includes_default
14432 #include <sys/wait.h>
14433 #ifdef HAVE_VFORK_H
14434 # include <vfork.h>
14436 /* On some sparc systems, changes by the child to local and incoming
14437 argument registers are propagated back to the parent. The compiler
14438 is told about this with #include <vfork.h>, but some compilers
14439 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14440 static variable whose address is put into a register that is
14441 clobbered by the vfork. */
14444 sparc_address_test (int arg)
14446 sparc_address_test (arg) int arg;
14449 static pid_t child;
14467 pid_t parent = getpid ();
14470 sparc_address_test (0);
14475 /* Here is another test for sparc vfork register problems. This
14476 test uses lots of local variables, at least as many local
14477 variables as main has allocated so far including compiler
14478 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14479 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14480 reuse the register of parent for one of the local variables,
14481 since it will think that parent can't possibly be used any more
14482 in this routine. Assigning to the local variable will thus
14483 munge parent in the parent process. */
14485 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14486 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14487 /* Convince the compiler that p..p7 are live; otherwise, it might
14488 use the same hardware register for all 8 local variables. */
14489 if (p != p1 || p != p2 || p != p3 || p != p4
14490 || p != p5 || p != p6 || p != p7)
14493 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14494 from child file descriptors. If the child closes a descriptor
14495 before it execs or exits, this munges the parent's descriptor
14496 as well. Test for this by closing stdout in the child. */
14497 _exit(close(fileno(stdout)) != 0);
14502 while (wait(&status) != child)
14505 /* Was there some problem with vforking? */
14508 /* Did the child fail? (This shouldn't happen.) */
14511 /* Did the vfork/compiler bug occur? */
14512 || parent != getpid()
14514 /* Did the file descriptor bug occur? */
14515 || fstat(fileno(stdout), &st) != 0
14520 if ac_fn_c_try_run
"$LINENO"; then :
14521 ac_cv_func_vfork_works
=yes
14523 ac_cv_func_vfork_works
=no
14525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14531 $as_echo "$ac_cv_func_vfork_works" >&6; }
14534 if test "x$ac_cv_func_fork_works" = xcross
; then
14535 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14537 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14540 if test "x$ac_cv_func_vfork_works" = xyes
; then
14542 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14546 $as_echo "#define vfork fork" >>confdefs.h
14549 if test "x$ac_cv_func_fork_works" = xyes
; then
14551 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14556 for ac_func
in snprintf
14558 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14559 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14560 cat >>confdefs.h
<<_ACEOF
14561 #define HAVE_SNPRINTF 1
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14569 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14570 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575 #include <langinfo.h>
14579 char* cs = nl_langinfo(CODESET);
14584 if ac_fn_c_try_link
"$LINENO"; then :
14585 emacs_cv_langinfo_codeset
=yes
14587 emacs_cv_langinfo_codeset
=no
14589 rm -f core conftest.err conftest.
$ac_objext \
14590 conftest
$ac_exeext conftest.
$ac_ext
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14594 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14595 if test $emacs_cv_langinfo_codeset = yes; then
14597 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14602 $as_echo_n "checking for mbstate_t... " >&6; }
14603 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 $ac_includes_default
14609 # include <wchar.h>
14613 mbstate_t x; return sizeof x;
14618 if ac_fn_c_try_compile
"$LINENO"; then :
14619 ac_cv_type_mbstate_t
=yes
14621 ac_cv_type_mbstate_t
=no
14623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14626 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14627 if test $ac_cv_type_mbstate_t = yes; then
14629 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14633 $as_echo "#define mbstate_t int" >>confdefs.h
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14638 $as_echo_n "checking for C restricted array declarations... " >&6; }
14639 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 void fred (int x[__restrict]);
14653 if ac_fn_c_try_compile
"$LINENO"; then :
14654 emacs_cv_c_restrict_arr
=yes
14656 emacs_cv_c_restrict_arr
=no
14658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14661 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14662 if test "$emacs_cv_c_restrict_arr" = yes; then
14664 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14669 # Set up the CFLAGS for real compilation, so we can substitute it.
14670 CFLAGS
="$REAL_CFLAGS"
14671 CPPFLAGS
="$REAL_CPPFLAGS"
14673 ## Hack to detect a buggy GCC version.
14674 if test "x$GCC" = xyes \
14675 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14676 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14677 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14678 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14681 version
=$PACKAGE_VERSION
14683 ### Specify what sort of things we'll be editing into Makefile and config.h.
14684 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14709 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14710 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14711 ## end of LIBX_BASE, but nothing ever set it.
14716 ## Used in lwlib/Makefile.in.
14718 S_FILE
="\$(srcdir)/${opsysfile}"
14728 cat >>confdefs.h
<<_ACEOF
14729 #define EMACS_CONFIGURATION "${canonical}"
14733 cat >>confdefs.h
<<_ACEOF
14734 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14738 cat >>confdefs.h
<<_ACEOF
14739 #define config_opsysfile "${opsysfile}"
14746 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14748 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14751 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14753 if test "$HAVE_XFT" = "yes"; then
14754 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14755 elif test "$HAVE_FREETYPE" = "yes"; then
14756 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14766 if test "${USE_X_TOOLKIT}" != "none" ; then
14767 WIDGET_OBJ
=widget.o
14769 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14771 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14773 $as_echo "#define USE_LUCID 1" >>confdefs.h
14775 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14777 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14782 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14783 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14787 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14788 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14789 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14793 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14794 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14797 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14803 case "$USE_X_TOOLKIT" in
14804 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14805 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14806 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14810 if test "$USE_X_TOOLKIT" = "none"; then
14811 LIBXT_OTHER
="\$(LIBXSM)"
14812 OLDXMENU_TARGET
="really-oldXMenu"
14814 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14815 OLDXMENU_TARGET
="really-lwlib"
14819 ## The X Menu stuff is present in the X10 distribution, but missing
14820 ## from X11. If we have X10, just use the installed library;
14821 ## otherwise, use our own copy.
14822 if test "${HAVE_X11}" = "yes" ; then
14824 $as_echo "#define HAVE_X11 1" >>confdefs.h
14827 if test "$USE_X_TOOLKIT" = "none"; then
14828 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14830 OLDXMENU
="\${lwlibdir}/liblw.a"
14832 LIBXMENU
="\$(OLDXMENU)"
14833 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14834 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14836 ## For a syntactically valid Makefile; not actually used for anything.
14837 ## See comments in src/Makefile.in.
14839 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14840 if test "${HAVE_X_WINDOWS}" = "yes"; then
14849 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14862 if test "${HAVE_MENUS}" = "yes" ; then
14864 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14868 if test "${GNU_MALLOC}" = "yes" ; then
14870 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14875 if test "${REL_ALLOC}" = "yes" ; then
14877 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14880 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14884 if test "$opsys" = "cygwin"; then
14885 CYGWIN_OBJ
="sheap.o"
14886 ## Cygwin differs because of its unexec().
14888 POST_ALLOC_OBJ
=lastfile.o
14891 PRE_ALLOC_OBJ
=lastfile.o
14898 # Configure gnulib here, now that we know LIBS.
14910 LIBC_FATAL_STDERR_
=1
14911 export LIBC_FATAL_STDERR_
14913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14914 # for constant arguments. Useless!
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14916 $as_echo_n "checking for working alloca.h... " >&6; }
14917 if test "${ac_cv_working_alloca_h+set}" = set; then :
14918 $as_echo_n "(cached) " >&6
14920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 #include <alloca.h>
14926 char *p = (char *) alloca (2 * sizeof (int));
14932 if ac_fn_c_try_link
"$LINENO"; then :
14933 ac_cv_working_alloca_h
=yes
14935 ac_cv_working_alloca_h
=no
14937 rm -f core conftest.err conftest.
$ac_objext \
14938 conftest
$ac_exeext conftest.
$ac_ext
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14941 $as_echo "$ac_cv_working_alloca_h" >&6; }
14942 if test $ac_cv_working_alloca_h = yes; then
14944 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14949 $as_echo_n "checking for alloca... " >&6; }
14950 if test "${ac_cv_func_alloca_works+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14956 # define alloca __builtin_alloca
14959 # include <malloc.h>
14960 # define alloca _alloca
14962 # ifdef HAVE_ALLOCA_H
14963 # include <alloca.h>
14968 # ifndef alloca /* predefined by HP cc +Olibcalls */
14979 char *p = (char *) alloca (1);
14985 if ac_fn_c_try_link
"$LINENO"; then :
14986 ac_cv_func_alloca_works
=yes
14988 ac_cv_func_alloca_works
=no
14990 rm -f core conftest.err conftest.
$ac_objext \
14991 conftest
$ac_exeext conftest.
$ac_ext
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14994 $as_echo "$ac_cv_func_alloca_works" >&6; }
14996 if test $ac_cv_func_alloca_works = yes; then
14998 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15001 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15002 # that cause trouble. Some versions do not even contain alloca or
15003 # contain a buggy version. If you still want to use their alloca,
15004 # use ar to extract alloca.o from them instead of compiling alloca.c.
15010 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15012 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15016 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15017 if test "${ac_cv_os_cray+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #if defined CRAY && ! defined CRAY2
15029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15030 $EGREP "webecray" >/dev
/null
2>&1; then :
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15039 $as_echo "$ac_cv_os_cray" >&6; }
15040 if test $ac_cv_os_cray = yes; then
15041 for ac_func
in _getb67 GETB67 getb67
; do
15042 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15043 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15044 eval as_val
=\$
$as_ac_var
15045 if test "x$as_val" = x
""yes; then :
15047 cat >>confdefs.h
<<_ACEOF
15048 #define CRAY_STACKSEG_END $ac_func
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15058 $as_echo_n "checking stack direction for C alloca... " >&6; }
15059 if test "${ac_cv_c_stack_direction+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15062 if test "$cross_compiling" = yes; then :
15063 ac_cv_c_stack_direction
=0
15065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 $ac_includes_default
15069 find_stack_direction (int *addr, int depth)
15071 int dir, dummy = 0;
15074 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15075 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15076 return dir + dummy;
15080 main (int argc, char **argv)
15082 return find_stack_direction (0, argc + !argv + 20) < 0;
15085 if ac_fn_c_try_run
"$LINENO"; then :
15086 ac_cv_c_stack_direction
=1
15088 ac_cv_c_stack_direction
=-1
15090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15096 $as_echo "$ac_cv_c_stack_direction" >&6; }
15097 cat >>confdefs.h
<<_ACEOF
15098 #define STACK_DIRECTION $ac_cv_c_stack_direction
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15108 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15109 if test "${ac_cv_c_bigendian+set}" = set; then :
15110 $as_echo_n "(cached) " >&6
15112 ac_cv_c_bigendian
=unknown
15113 # See if we're dealing with a universal compiler.
15114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #ifndef __APPLE_CC__
15117 not a universal capable compiler
15122 if ac_fn_c_try_compile
"$LINENO"; then :
15124 # Check for potential -arch flags. It is not universal unless
15125 # there are at least two -arch flags with different values.
15128 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15129 if test -n "$ac_prev"; then
15131 i?
86 | x86_64 | ppc | ppc64
)
15132 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15135 ac_cv_c_bigendian
=universal
15141 elif test "x$ac_word" = "x-arch"; then
15146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15147 if test $ac_cv_c_bigendian = unknown
; then
15148 # See if sys/param.h defines the BYTE_ORDER macro.
15149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151 #include <sys/types.h>
15152 #include <sys/param.h>
15157 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15158 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15160 bogus endian macros
15167 if ac_fn_c_try_compile
"$LINENO"; then :
15168 # It does; now see whether it defined to BIG_ENDIAN or not.
15169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #include <sys/types.h>
15172 #include <sys/param.h>
15177 #if BYTE_ORDER != BIG_ENDIAN
15185 if ac_fn_c_try_compile
"$LINENO"; then :
15186 ac_cv_c_bigendian
=yes
15188 ac_cv_c_bigendian
=no
15190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15194 if test $ac_cv_c_bigendian = unknown
; then
15195 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 #include <limits.h>
15203 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15204 bogus endian macros
15211 if ac_fn_c_try_compile
"$LINENO"; then :
15212 # It does; now see whether it defined to _BIG_ENDIAN or not.
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <limits.h>
15220 #ifndef _BIG_ENDIAN
15228 if ac_fn_c_try_compile
"$LINENO"; then :
15229 ac_cv_c_bigendian
=yes
15231 ac_cv_c_bigendian
=no
15233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15237 if test $ac_cv_c_bigendian = unknown
; then
15238 # Compile a test program.
15239 if test "$cross_compiling" = yes; then :
15240 # Try to guess by grepping values from an object file.
15241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243 short int ascii_mm[] =
15244 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15245 short int ascii_ii[] =
15246 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15247 int use_ascii (int i) {
15248 return ascii_mm[i] + ascii_ii[i];
15250 short int ebcdic_ii[] =
15251 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15252 short int ebcdic_mm[] =
15253 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15254 int use_ebcdic (int i) {
15255 return ebcdic_mm[i] + ebcdic_ii[i];
15262 return use_ascii (foo) == use_ebcdic (foo);
15267 if ac_fn_c_try_compile
"$LINENO"; then :
15268 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15269 ac_cv_c_bigendian
=yes
15271 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15272 if test "$ac_cv_c_bigendian" = unknown
; then
15273 ac_cv_c_bigendian
=no
15275 # finding both strings is unlikely to happen, but who knows?
15276 ac_cv_c_bigendian
=unknown
15280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 $ac_includes_default
15289 /* Are we little or big endian? From Harbison&Steele. */
15293 char c[sizeof (long int)];
15296 return u.c[sizeof (long int) - 1] == 1;
15302 if ac_fn_c_try_run
"$LINENO"; then :
15303 ac_cv_c_bigendian
=no
15305 ac_cv_c_bigendian
=yes
15307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15314 $as_echo "$ac_cv_c_bigendian" >&6; }
15315 case $ac_cv_c_bigendian in #(
15317 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15323 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15327 as_fn_error
"unknown endianness
15328 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15333 $as_echo_n "checking for inline... " >&6; }
15334 if test "${ac_cv_c_inline+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15338 for ac_kw
in inline __inline__ __inline
; do
15339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 #ifndef __cplusplus
15343 static $ac_kw foo_t static_foo () {return 0; }
15344 $ac_kw foo_t foo () {return 0; }
15348 if ac_fn_c_try_compile
"$LINENO"; then :
15349 ac_cv_c_inline
=$ac_kw
15351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15352 test "$ac_cv_c_inline" != no
&& break
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15357 $as_echo "$ac_cv_c_inline" >&6; }
15359 case $ac_cv_c_inline in
15362 case $ac_cv_c_inline in
15364 *) ac_val
=$ac_cv_c_inline;;
15366 cat >>confdefs.h
<<_ACEOF
15367 #ifndef __cplusplus
15368 #define inline $ac_val
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15376 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15377 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15378 $as_echo_n "(cached) " >&6
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 /* On HP-UX before 11.23, strtold returns a struct instead of
15383 long double. Reject implementations like that, by requiring
15384 compatibility with the C99 prototype. */
15385 #include <stdlib.h>
15386 static long double (*p) (char const *, char **) = strtold;
15388 test (char const *nptr, char **endptr)
15391 r = strtold (nptr, endptr);
15397 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15402 if ac_fn_c_try_link
"$LINENO"; then :
15403 gl_cv_func_c99_strtold
=yes
15405 gl_cv_func_c99_strtold
=no
15407 rm -f core conftest.err conftest.
$ac_objext \
15408 conftest
$ac_exeext conftest.
$ac_ext
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15411 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15412 if test $gl_cv_func_c99_strtold = yes; then
15414 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15426 GNULIB_EUIDACCESS
=0;
15427 GNULIB_FACCESSAT
=0;
15430 GNULIB_FDATASYNC
=0;
15432 GNULIB_FTRUNCATE
=0;
15434 GNULIB_GETDOMAINNAME
=0;
15435 GNULIB_GETDTABLESIZE
=0;
15436 GNULIB_GETGROUPS
=0;
15437 GNULIB_GETHOSTNAME
=0;
15439 GNULIB_GETLOGIN_R
=0;
15440 GNULIB_GETPAGESIZE
=0;
15441 GNULIB_GETUSERSHELL
=0;
15442 GNULIB_GROUP_MEMBER
=0;
15454 GNULIB_READLINKAT
=0;
15456 GNULIB_SETHOSTNAME
=0;
15459 GNULIB_SYMLINKAT
=0;
15460 GNULIB_TTYNAME_R
=0;
15461 GNULIB_UNISTD_H_NONBLOCKING
=0;
15462 GNULIB_UNISTD_H_SIGPIPE
=0;
15477 HAVE_GETDTABLESIZE
=1;
15479 HAVE_GETHOSTNAME
=1;
15481 HAVE_GETPAGESIZE
=1;
15482 HAVE_GROUP_MEMBER
=1;
15492 HAVE_SETHOSTNAME
=1;
15498 HAVE_DECL_ENVIRON
=1;
15499 HAVE_DECL_FCHDIR
=1;
15500 HAVE_DECL_FDATASYNC
=1;
15501 HAVE_DECL_GETDOMAINNAME
=1;
15502 HAVE_DECL_GETLOGIN_R
=1;
15503 HAVE_DECL_GETPAGESIZE
=1;
15504 HAVE_DECL_GETUSERSHELL
=1;
15505 HAVE_DECL_SETHOSTNAME
=1;
15506 HAVE_DECL_TTYNAME_R
=1;
15508 HAVE_SYS_PARAM_H
=0;
15513 REPLACE_FCHOWNAT
=0;
15514 REPLACE_FTRUNCATE
=0;
15516 REPLACE_GETDOMAINNAME
=0;
15517 REPLACE_GETLOGIN_R
=0;
15518 REPLACE_GETGROUPS
=0;
15519 REPLACE_GETPAGESIZE
=0;
15528 REPLACE_READLINK
=0;
15532 REPLACE_TTYNAME_R
=0;
15534 REPLACE_UNLINKAT
=0;
15537 UNISTD_H_HAVE_WINSOCK2_H
=0;
15538 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15542 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15543 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15544 $as_echo_n "(cached) " >&6
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15549 #include <sys/types.h>
15550 #include <sys/stat.h>
15554 struct stat s; s.st_dm_mode;
15559 if ac_fn_c_try_compile
"$LINENO"; then :
15560 ac_cv_struct_st_dm_mode
=yes
15562 ac_cv_struct_st_dm_mode
=no
15564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15567 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15569 if test $ac_cv_struct_st_dm_mode = yes; then
15571 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15576 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15577 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
15583 cat >>confdefs.h
<<_ACEOF
15584 #define HAVE_DECL_STRMODE $ac_have_decl
15590 GNULIB_CALLOC_POSIX
=0;
15591 GNULIB_CANONICALIZE_FILE_NAME
=0;
15592 GNULIB_GETLOADAVG
=0;
15593 GNULIB_GETSUBOPT
=0;
15595 GNULIB_MALLOC_POSIX
=0;
15599 GNULIB_MKOSTEMPS
=0;
15602 GNULIB_POSIX_OPENPT
=0;
15604 GNULIB_PTSNAME_R
=0;
15608 GNULIB_REALLOC_POSIX
=0;
15615 GNULIB_SYSTEM_POSIX
=0;
15621 HAVE_CANONICALIZE_FILE_NAME
=1;
15622 HAVE_DECL_GETLOADAVG
=1;
15630 HAVE_POSIX_OPENPT
=1;
15639 HAVE_DECL_SETENV
=1;
15643 HAVE_STRUCT_RANDOM_DATA
=1;
15644 HAVE_SYS_LOADAVG_H
=0;
15646 HAVE_DECL_UNSETENV
=1;
15648 REPLACE_CANONICALIZE_FILE_NAME
=0;
15652 REPLACE_PTSNAME_R
=0;
15654 REPLACE_RANDOM_R
=0;
15656 REPLACE_REALPATH
=0;
15659 REPLACE_UNSETENV
=0;
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15665 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15666 if test "${gl_cv_have_include_next+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15669 rm -rf conftestd1a conftestd1b conftestd2
15670 mkdir conftestd1a conftestd1b conftestd2
15671 cat <<EOF > conftestd1a/conftest.h
15672 #define DEFINED_IN_CONFTESTD1
15673 #include_next <conftest.h>
15674 #ifdef DEFINED_IN_CONFTESTD2
15677 #error "include_next doesn't work"
15680 cat <<EOF > conftestd1b/conftest.h
15681 #define DEFINED_IN_CONFTESTD1
15683 #include_next <conftest.h>
15684 #ifdef DEFINED_IN_CONFTESTD2
15687 #error "include_next doesn't work"
15690 cat <<EOF > conftestd2/conftest.h
15691 #ifndef DEFINED_IN_CONFTESTD1
15692 #error "include_next test doesn't work"
15694 #define DEFINED_IN_CONFTESTD2
15696 gl_save_CPPFLAGS
="$CPPFLAGS"
15697 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 #include <conftest.h>
15702 if ac_fn_c_try_compile
"$LINENO"; then :
15703 gl_cv_have_include_next
=yes
15705 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 #include <conftest.h>
15710 if ac_fn_c_try_compile
"$LINENO"; then :
15711 gl_cv_have_include_next
=buggy
15713 gl_cv_have_include_next
=no
15715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15719 CPPFLAGS
="$gl_save_CPPFLAGS"
15720 rm -rf conftestd1a conftestd1b conftestd2
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15724 $as_echo "$gl_cv_have_include_next" >&6; }
15725 PRAGMA_SYSTEM_HEADER
=
15726 if test $gl_cv_have_include_next = yes; then
15727 INCLUDE_NEXT
=include_next
15728 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
15729 if test -n "$GCC"; then
15730 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
15733 if test $gl_cv_have_include_next = buggy
; then
15734 INCLUDE_NEXT
=include
15735 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
15737 INCLUDE_NEXT
=include
15738 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15745 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15746 if test "${gl_cv_pragma_columns+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15758 $EGREP "choke me" >/dev
/null
2>&1; then :
15759 gl_cv_pragma_columns
=yes
15761 gl_cv_pragma_columns
=no
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15768 $as_echo "$gl_cv_pragma_columns" >&6; }
15769 if test $gl_cv_pragma_columns = yes; then
15770 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
15791 if test $gl_cv_have_include_next = yes; then
15792 gl_cv_next_getopt_h
='<'getopt.h
'>'
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15795 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15796 if test "${gl_cv_next_getopt_h+set}" = set; then :
15797 $as_echo_n "(cached) " >&6
15800 if test $ac_cv_header_getopt_h = yes; then
15803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 #include <getopt.h>
15809 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15810 *) gl_absname_cpp
="$ac_cpp" ;;
15815 gl_dirsep_regex
='[/\\]'
15818 gl_dirsep_regex
='\/'
15821 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15823 gl_header_literal_regex
=`echo 'getopt.h' \
15824 | sed -e "$gl_make_literal_regex_sed"`
15825 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15831 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15832 sed -n "$gl_absolute_header_sed"`'"'
15834 gl_cv_next_getopt_h
='<'getopt.h
'>'
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
15840 $as_echo "$gl_cv_next_getopt_h" >&6; }
15842 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
15844 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15846 gl_next_as_first_directive
='<'getopt.h
'>'
15848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15849 gl_next_as_first_directive
=$gl_cv_next_getopt_h
15851 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
15856 if test $ac_cv_header_getopt_h = yes; then
15865 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
15866 for ac_header
in getopt.h
15868 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15869 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
15870 cat >>confdefs.h
<<_ACEOF
15871 #define HAVE_GETOPT_H 1
15875 gl_replace_getopt
=yes
15882 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
15883 for ac_func
in getopt_long_only
15885 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
15886 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
15887 cat >>confdefs.h
<<_ACEOF
15888 #define HAVE_GETOPT_LONG_ONLY 1
15892 gl_replace_getopt
=yes
15898 if test -z "$gl_replace_getopt"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
15900 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15901 if test "${gl_cv_func_getopt_posix+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 #include <unistd.h>
15911 int *p = &optreset; return optreset;
15916 if ac_fn_c_try_link
"$LINENO"; then :
15919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921 #include <getopt.h>
15925 return !getopt_clip;
15930 if ac_fn_c_try_compile
"$LINENO"; then :
15935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15937 rm -f core conftest.err conftest.
$ac_objext \
15938 conftest
$ac_exeext conftest.
$ac_ext
15940 gl_save_CPPFLAGS
=$CPPFLAGS
15941 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15942 if test "$cross_compiling" = yes; then :
15944 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
15945 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
15946 *) gl_cv_func_getopt_posix
="guessing yes";;
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15953 #include <unistd.h>
15954 #include <stdlib.h>
15955 #include <string.h>
15961 static char program[] = "program";
15962 static char a[] = "-a";
15963 static char foo[] = "foo";
15964 static char bar[] = "bar";
15965 char *argv[] = { program, a, foo, bar, NULL };
15968 optind = OPTIND_MIN;
15971 c = getopt (4, argv, "ab");
15974 c = getopt (4, argv, "ab");
15977 if (!(optind == 2))
15980 /* Some internal state exists at this point. */
15982 static char program[] = "program";
15983 static char donald[] = "donald";
15984 static char p[] = "-p";
15985 static char billy[] = "billy";
15986 static char duck[] = "duck";
15987 static char a[] = "-a";
15988 static char bar[] = "bar";
15989 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
15992 optind = OPTIND_MIN;
15995 c = getopt (7, argv, "+abp:q:");
15998 if (!(strcmp (argv[0], "program") == 0))
16000 if (!(strcmp (argv[1], "donald") == 0))
16002 if (!(strcmp (argv[2], "-p") == 0))
16004 if (!(strcmp (argv[3], "billy") == 0))
16006 if (!(strcmp (argv[4], "duck") == 0))
16008 if (!(strcmp (argv[5], "-a") == 0))
16010 if (!(strcmp (argv[6], "bar") == 0))
16012 if (!(optind == 1))
16015 /* Detect MacOS 10.5, AIX 7.1 bug. */
16017 static char program[] = "program";
16018 static char ab[] = "-ab";
16019 char *argv[3] = { program, ab, NULL };
16020 optind = OPTIND_MIN;
16022 if (getopt (2, argv, "ab:") != 'a')
16024 if (getopt (2, argv, "ab:") != '?')
16036 if ac_fn_c_try_run
"$LINENO"; then :
16037 gl_cv_func_getopt_posix
=yes
16039 gl_cv_func_getopt_posix
=no
16041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16045 CPPFLAGS
=$gl_save_CPPFLAGS
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16049 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16050 case "$gl_cv_func_getopt_posix" in
16051 *no
) gl_replace_getopt
=yes ;;
16055 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16057 $as_echo_n "checking for working GNU getopt function... " >&6; }
16058 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16059 $as_echo_n "(cached) " >&6
16061 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16062 # optstring is necessary for programs like m4 that have POSIX-mandated
16063 # semantics for supporting options interspersed with files.
16064 # Also, since getopt_long is a GNU extension, we require optind=0.
16065 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16066 # so take care to revert to the correct (non-)export state.
16067 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16068 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16069 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
16070 x
) gl_had_POSIXLY_CORRECT
=yes ;;
16071 *) gl_had_POSIXLY_CORRECT
= ;;
16074 export POSIXLY_CORRECT
16075 if test "$cross_compiling" = yes; then :
16076 case $host_os:$ac_cv_have_decl_optreset in
16077 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
16078 *:yes) gl_cv_func_getopt_gnu
=no
;;
16079 *) gl_cv_func_getopt_gnu
=yes;;
16083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 #include <getopt.h>
16086 #include <stddef.h>
16087 #include <string.h>
16089 #include <stdlib.h>
16090 #if defined __MACH__ && defined __APPLE__
16091 /* Avoid a crash on MacOS X. */
16092 #include <mach/mach.h>
16093 #include <mach/mach_error.h>
16094 #include <mach/thread_status.h>
16095 #include <mach/exception.h>
16096 #include <mach/task.h>
16097 #include <pthread.h>
16098 /* The exception port on which our thread listens. */
16099 static mach_port_t our_exception_port;
16100 /* The main function of the thread listening for exceptions of type
16103 mach_exception_thread (void *arg)
16105 /* Buffer for a message to be received. */
16107 mach_msg_header_t head;
16108 mach_msg_body_t msgh_body;
16111 mach_msg_return_t retval;
16112 /* Wait for a message on the exception port. */
16113 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16114 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16115 if (retval != MACH_MSG_SUCCESS)
16120 nocrash_init (void)
16122 mach_port_t self = mach_task_self ();
16123 /* Allocate a port on which the thread shall listen for exceptions. */
16124 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16126 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16127 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16128 MACH_MSG_TYPE_MAKE_SEND)
16130 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16132 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16133 /* Create the thread listening on the exception port. */
16134 pthread_attr_t attr;
16136 if (pthread_attr_init (&attr) == 0
16137 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16138 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16139 pthread_attr_destroy (&attr);
16140 /* Replace the exception port info for these exceptions with our own.
16141 Note that we replace the exception port for the entire task, not only
16142 for a particular thread. This has the effect that when our exception
16143 port gets the message, the thread specific exception port has already
16144 been asked, and we don't need to bother about it.
16145 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16146 task_set_exception_ports (self, mask, our_exception_port,
16147 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16152 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16153 /* Avoid a crash on native Windows. */
16154 #define WIN32_LEAN_AND_MEAN
16155 #include <windows.h>
16156 #include <winerror.h>
16158 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16160 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16162 case EXCEPTION_ACCESS_VIOLATION:
16163 case EXCEPTION_IN_PAGE_ERROR:
16164 case EXCEPTION_STACK_OVERFLOW:
16165 case EXCEPTION_GUARD_PAGE:
16166 case EXCEPTION_PRIV_INSTRUCTION:
16167 case EXCEPTION_ILLEGAL_INSTRUCTION:
16168 case EXCEPTION_DATATYPE_MISALIGNMENT:
16169 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16170 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16173 return EXCEPTION_CONTINUE_SEARCH;
16176 nocrash_init (void)
16178 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16181 /* Avoid a crash on POSIX systems. */
16182 #include <signal.h>
16183 /* A POSIX signal handler. */
16185 exception_handler (int sig)
16190 nocrash_init (void)
16193 signal (SIGSEGV, exception_handler);
16196 signal (SIGBUS, exception_handler);
16210 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16211 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16212 OSF/1 5.1, Solaris 10. */
16214 static char conftest[] = "conftest";
16215 static char plus[] = "-+";
16216 char *argv[3] = { conftest, plus, NULL };
16218 if (getopt (2, argv, "+a") != '?')
16221 /* This code succeeds on glibc 2.8, mingw,
16222 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16223 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16225 static char program[] = "program";
16226 static char p[] = "-p";
16227 static char foo[] = "foo";
16228 static char bar[] = "bar";
16229 char *argv[] = { program, p, foo, bar, NULL };
16232 if (getopt (4, argv, "p::") != 'p')
16234 else if (optarg != NULL)
16236 else if (getopt (4, argv, "p::") != -1)
16238 else if (optind != 2)
16241 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16243 static char program[] = "program";
16244 static char foo[] = "foo";
16245 static char p[] = "-p";
16246 char *argv[] = { program, foo, p, NULL };
16248 if (getopt (3, argv, "-p") != 1)
16250 else if (getopt (3, argv, "-p") != 'p')
16253 /* This code fails on glibc 2.11. */
16255 static char program[] = "program";
16256 static char b[] = "-b";
16257 static char a[] = "-a";
16258 char *argv[] = { program, b, a, NULL };
16259 optind = opterr = 0;
16260 if (getopt (3, argv, "+:a:b") != 'b')
16262 else if (getopt (3, argv, "+:a:b") != ':')
16265 /* This code dumps core on glibc 2.14. */
16267 static char program[] = "program";
16268 static char w[] = "-W";
16269 static char dummy[] = "dummy";
16270 char *argv[] = { program, w, dummy, NULL };
16271 optind = opterr = 1;
16272 if (getopt (3, argv, "W;") != 'W')
16281 if ac_fn_c_try_run
"$LINENO"; then :
16282 gl_cv_func_getopt_gnu
=yes
16284 gl_cv_func_getopt_gnu
=no
16286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16290 case $gl_had_POSIXLY_CORRECT in
16292 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
16293 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16298 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16299 if test "$gl_cv_func_getopt_gnu" = "no"; then
16300 gl_replace_getopt
=yes
16311 if test -n "$gl_replace_getopt"; then :
16318 if test $REPLACE_GETOPT = 1; then
16322 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16328 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16329 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
16335 cat >>confdefs.h
<<_ACEOF
16336 #define HAVE_DECL_GETENV $ac_have_decl
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16341 $as_echo_n "checking for unsigned long long int... " >&6; }
16342 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16343 $as_echo_n "(cached) " >&6
16345 ac_cv_type_unsigned_long_long_int
=yes
16346 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16350 /* For now, do not test the preprocessor; as of 2007 there are too many
16351 implementations with broken preprocessors. Perhaps this can
16352 be revisited in 2012. In the meantime, code should not expect
16353 #if to work with literals wider than 32 bits. */
16354 /* Test literals. */
16355 long long int ll = 9223372036854775807ll;
16356 long long int nll = -9223372036854775807LL;
16357 unsigned long long int ull = 18446744073709551615ULL;
16358 /* Test constant expressions. */
16359 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16361 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16367 /* Test availability of runtime routines for shift and division. */
16368 long long int llmax = 9223372036854775807ll;
16369 unsigned long long int ullmax = 18446744073709551615ull;
16370 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16371 | (llmax / ll) | (llmax % ll)
16372 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16373 | (ullmax / ull) | (ullmax % ull));
16379 if ac_fn_c_try_link
"$LINENO"; then :
16382 ac_cv_type_unsigned_long_long_int
=no
16384 rm -f core conftest.err conftest.
$ac_objext \
16385 conftest
$ac_exeext conftest.
$ac_ext
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16389 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16390 if test $ac_cv_type_unsigned_long_long_int = yes; then
16392 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16399 $as_echo_n "checking for long long int... " >&6; }
16400 if test "${ac_cv_type_long_long_int+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
16403 ac_cv_type_long_long_int
=yes
16404 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16405 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
16406 if test $ac_cv_type_long_long_int = yes; then
16407 if test "$cross_compiling" = yes; then :
16410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <limits.h>
16415 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16416 # define LLONG_MAX (HALF - 1 + HALF)
16421 long long int n = 1;
16425 long long int m = n << i;
16428 if (LLONG_MAX / 2 < m)
16436 if ac_fn_c_try_run
"$LINENO"; then :
16439 ac_cv_type_long_long_int
=no
16441 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16442 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16449 $as_echo "$ac_cv_type_long_long_int" >&6; }
16450 if test $ac_cv_type_long_long_int = yes; then
16452 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16461 gl_cv_c_multiarch
=no
16462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464 #ifndef __APPLE_CC__
16465 not a universal capable compiler
16470 if ac_fn_c_try_compile
"$LINENO"; then :
16474 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16475 if test -n "$prev"; then
16477 i?
86 | x86_64 | ppc | ppc64
)
16478 if test -z "$arch" ||
test "$arch" = "$word"; then
16481 gl_cv_c_multiarch
=yes
16487 if test "x$word" = "x-arch"; then
16494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16495 if test $gl_cv_c_multiarch = yes; then
16496 APPLE_UNIVERSAL_BUILD
=1
16498 APPLE_UNIVERSAL_BUILD
=0
16505 if test $ac_cv_type_long_long_int = yes; then
16506 HAVE_LONG_LONG_INT
=1
16508 HAVE_LONG_LONG_INT
=0
16512 if test $ac_cv_type_unsigned_long_long_int = yes; then
16513 HAVE_UNSIGNED_LONG_LONG_INT
=1
16515 HAVE_UNSIGNED_LONG_LONG_INT
=0
16520 if test $ac_cv_header_wchar_h = yes; then
16527 if test $ac_cv_header_inttypes_h = yes; then
16534 if test $ac_cv_header_sys_types_h = yes; then
16550 if test $gl_cv_have_include_next = yes; then
16551 gl_cv_next_stdint_h
='<'stdint.h
'>'
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16554 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16555 if test "${gl_cv_next_stdint_h+set}" = set; then :
16556 $as_echo_n "(cached) " >&6
16559 if test $ac_cv_header_stdint_h = yes; then
16562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 #include <stdint.h>
16568 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16569 *) gl_absname_cpp
="$ac_cpp" ;;
16574 gl_dirsep_regex
='[/\\]'
16577 gl_dirsep_regex
='\/'
16580 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16582 gl_header_literal_regex
=`echo 'stdint.h' \
16583 | sed -e "$gl_make_literal_regex_sed"`
16584 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16590 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16591 sed -n "$gl_absolute_header_sed"`'"'
16593 gl_cv_next_stdint_h
='<'stdint.h
'>'
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16599 $as_echo "$gl_cv_next_stdint_h" >&6; }
16601 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16603 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16605 gl_next_as_first_directive
='<'stdint.h
'>'
16607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16608 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16610 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16615 if test $ac_cv_header_stdint_h = yes; then
16622 if test $ac_cv_header_stdint_h = yes; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16624 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16625 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16626 $as_echo_n "(cached) " >&6
16628 gl_cv_header_working_stdint_h
=no
16629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16633 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16634 #include <stdint.h>
16635 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16636 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16637 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16642 included before <wchar.h>. */
16643 #include <stddef.h>
16644 #include <signal.h>
16646 # include <stdio.h>
16648 # include <wchar.h>
16653 int8_t a1 = INT8_MAX;
16654 int8_t a1min = INT8_MIN;
16657 int16_t a2 = INT16_MAX;
16658 int16_t a2min = INT16_MIN;
16661 int32_t a3 = INT32_MAX;
16662 int32_t a3min = INT32_MIN;
16665 int64_t a4 = INT64_MAX;
16666 int64_t a4min = INT64_MIN;
16669 uint8_t b1 = UINT8_MAX;
16671 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16674 uint16_t b2 = UINT16_MAX;
16677 uint32_t b3 = UINT32_MAX;
16680 uint64_t b4 = UINT64_MAX;
16682 int_least8_t c1 = INT8_C (0x7f);
16683 int_least8_t c1max = INT_LEAST8_MAX;
16684 int_least8_t c1min = INT_LEAST8_MIN;
16685 int_least16_t c2 = INT16_C (0x7fff);
16686 int_least16_t c2max = INT_LEAST16_MAX;
16687 int_least16_t c2min = INT_LEAST16_MIN;
16688 int_least32_t c3 = INT32_C (0x7fffffff);
16689 int_least32_t c3max = INT_LEAST32_MAX;
16690 int_least32_t c3min = INT_LEAST32_MIN;
16691 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16692 int_least64_t c4max = INT_LEAST64_MAX;
16693 int_least64_t c4min = INT_LEAST64_MIN;
16694 uint_least8_t d1 = UINT8_C (0xff);
16695 uint_least8_t d1max = UINT_LEAST8_MAX;
16696 uint_least16_t d2 = UINT16_C (0xffff);
16697 uint_least16_t d2max = UINT_LEAST16_MAX;
16698 uint_least32_t d3 = UINT32_C (0xffffffff);
16699 uint_least32_t d3max = UINT_LEAST32_MAX;
16700 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16701 uint_least64_t d4max = UINT_LEAST64_MAX;
16702 int_fast8_t e1 = INT_FAST8_MAX;
16703 int_fast8_t e1min = INT_FAST8_MIN;
16704 int_fast16_t e2 = INT_FAST16_MAX;
16705 int_fast16_t e2min = INT_FAST16_MIN;
16706 int_fast32_t e3 = INT_FAST32_MAX;
16707 int_fast32_t e3min = INT_FAST32_MIN;
16708 int_fast64_t e4 = INT_FAST64_MAX;
16709 int_fast64_t e4min = INT_FAST64_MIN;
16710 uint_fast8_t f1 = UINT_FAST8_MAX;
16711 uint_fast16_t f2 = UINT_FAST16_MAX;
16712 uint_fast32_t f3 = UINT_FAST32_MAX;
16713 uint_fast64_t f4 = UINT_FAST64_MAX;
16715 intptr_t g = INTPTR_MAX;
16716 intptr_t gmin = INTPTR_MIN;
16719 uintptr_t h = UINTPTR_MAX;
16721 intmax_t i = INTMAX_MAX;
16722 uintmax_t j = UINTMAX_MAX;
16724 #include <limits.h> /* for CHAR_BIT */
16725 #define TYPE_MINIMUM(t) \
16726 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16727 #define TYPE_MAXIMUM(t) \
16728 ((t) ((t) 0 < (t) -1 \
16730 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16733 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16734 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16736 /* Detect bug in FreeBSD 6.0 / ia64. */
16737 int check_SIG_ATOMIC:
16738 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16739 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16741 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16743 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16744 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16746 /* Detect bug in mingw. */
16748 WINT_MIN == TYPE_MINIMUM (wint_t)
16749 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16752 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16754 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16755 int check_UINT16_C:
16756 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16758 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16760 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16763 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16766 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16769 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16771 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16772 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16773 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16774 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16775 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16776 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16777 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16778 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16779 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16780 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16781 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16792 if ac_fn_c_try_compile
"$LINENO"; then :
16793 if test "$cross_compiling" = yes; then :
16794 gl_cv_header_working_stdint_h
=yes
16797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16801 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16802 #include <stdint.h>
16805 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16806 included before <wchar.h>. */
16807 #include <stddef.h>
16808 #include <signal.h>
16810 # include <stdio.h>
16812 # include <wchar.h>
16817 #include <string.h>
16818 #define MVAL(macro) MVAL1(macro)
16819 #define MVAL1(expression) #expression
16820 static const char *macro_values[] =
16854 for (mv = macro_values; *mv != NULL; mv++)
16856 const char *value = *mv;
16857 /* Test whether it looks like a cast expression. */
16858 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16859 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16860 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16861 || strncmp (value, "((int)"/*)*/, 6) == 0
16862 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16863 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16864 return mv - macro_values + 1;
16872 if ac_fn_c_try_run
"$LINENO"; then :
16873 gl_cv_header_working_stdint_h
=yes
16875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16885 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16887 if test "$gl_cv_header_working_stdint_h" = yes; then
16890 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16894 eval as_val
=\$
$as_ac_Header
16895 if test "x$as_val" = x
""yes; then :
16896 cat >>confdefs.h
<<_ACEOF
16897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904 if test $ac_cv_header_sys_inttypes_h = yes; then
16905 HAVE_SYS_INTTYPES_H
=1
16907 HAVE_SYS_INTTYPES_H
=0
16910 if test $ac_cv_header_sys_bitypes_h = yes; then
16911 HAVE_SYS_BITYPES_H
=1
16913 HAVE_SYS_BITYPES_H
=0
16919 if test $APPLE_UNIVERSAL_BUILD = 0; then
16922 for gltype
in ptrdiff_t size_t
; do
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16924 $as_echo_n "checking for bit size of $gltype... " >&6; }
16925 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16926 $as_echo_n "(cached) " >&6
16928 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16929 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16930 included before <wchar.h>. */
16931 #include <stddef.h>
16932 #include <signal.h>
16934 # include <stdio.h>
16936 # include <wchar.h>
16939 #include <limits.h>"; then :
16945 eval gl_cv_bitsizeof_
${gltype}=\
$result
16948 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16950 $as_echo "$ac_res" >&6; }
16951 eval result
=\
$gl_cv_bitsizeof_${gltype}
16952 if test $result = unknown
; then
16955 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16956 cat >>confdefs.h
<<_ACEOF
16957 #define BITSIZEOF_${GLTYPE} $result
16960 eval BITSIZEOF_
${GLTYPE}=\
$result
16967 for gltype
in sig_atomic_t wchar_t wint_t
; do
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16969 $as_echo_n "checking for bit size of $gltype... " >&6; }
16970 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
16971 $as_echo_n "(cached) " >&6
16973 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16974 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16975 included before <wchar.h>. */
16976 #include <stddef.h>
16977 #include <signal.h>
16979 # include <stdio.h>
16981 # include <wchar.h>
16984 #include <limits.h>"; then :
16990 eval gl_cv_bitsizeof_
${gltype}=\
$result
16993 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16995 $as_echo "$ac_res" >&6; }
16996 eval result
=\
$gl_cv_bitsizeof_${gltype}
16997 if test $result = unknown
; then
17000 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17001 cat >>confdefs.h
<<_ACEOF
17002 #define BITSIZEOF_${GLTYPE} $result
17005 eval BITSIZEOF_
${GLTYPE}=\
$result
17011 for gltype
in sig_atomic_t wchar_t wint_t
; do
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17013 $as_echo_n "checking whether $gltype is signed... " >&6; }
17014 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17015 $as_echo_n "(cached) " >&6
17017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17020 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17021 included before <wchar.h>. */
17022 #include <stddef.h>
17023 #include <signal.h>
17025 # include <stdio.h>
17027 # include <wchar.h>
17030 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17039 if ac_fn_c_try_compile
"$LINENO"; then :
17044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17045 eval gl_cv_type_
${gltype}_signed
=\
$result
17048 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17050 $as_echo "$ac_res" >&6; }
17051 eval result
=\
$gl_cv_type_${gltype}_signed
17052 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17053 if test "$result" = yes; then
17054 cat >>confdefs.h
<<_ACEOF
17055 #define HAVE_SIGNED_${GLTYPE} 1
17058 eval HAVE_SIGNED_
${GLTYPE}=1
17060 eval HAVE_SIGNED_
${GLTYPE}=0
17065 gl_cv_type_ptrdiff_t_signed
=yes
17066 gl_cv_type_size_t_signed
=no
17067 if test $APPLE_UNIVERSAL_BUILD = 0; then
17070 for gltype
in ptrdiff_t size_t
; do
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17072 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17073 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17074 $as_echo_n "(cached) " >&6
17076 eval gl_cv_type_
${gltype}_suffix
=no
17077 eval result
=\
$gl_cv_type_${gltype}_signed
17078 if test "$result" = yes; then
17083 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17085 '') gltype1
='int';;
17086 l
) gltype1
='long int';;
17087 ll
) gltype1
='long long int';;
17088 i64
) gltype1
='__int64';;
17089 u
) gltype1
='unsigned int';;
17090 ul
) gltype1
='unsigned long int';;
17091 ull
) gltype1
='unsigned long long int';;
17092 ui64
)gltype1
='unsigned __int64';;
17094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17097 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17098 included before <wchar.h>. */
17099 #include <stddef.h>
17100 #include <signal.h>
17102 # include <stdio.h>
17104 # include <wchar.h>
17107 extern $gltype foo;
17108 extern $gltype1 foo;
17117 if ac_fn_c_try_compile
"$LINENO"; then :
17118 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17121 eval result
=\
$gl_cv_type_${gltype}_suffix
17122 test "$result" != no
&& break
17125 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17128 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17129 eval result
=\
$gl_cv_type_${gltype}_suffix
17130 test "$result" = no
&& result
=
17131 eval ${GLTYPE}_SUFFIX
=\
$result
17132 cat >>confdefs.h
<<_ACEOF
17133 #define ${GLTYPE}_SUFFIX $result
17142 for gltype
in sig_atomic_t wchar_t wint_t
; do
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17144 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17145 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17146 $as_echo_n "(cached) " >&6
17148 eval gl_cv_type_
${gltype}_suffix
=no
17149 eval result
=\
$gl_cv_type_${gltype}_signed
17150 if test "$result" = yes; then
17155 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17157 '') gltype1
='int';;
17158 l
) gltype1
='long int';;
17159 ll
) gltype1
='long long int';;
17160 i64
) gltype1
='__int64';;
17161 u
) gltype1
='unsigned int';;
17162 ul
) gltype1
='unsigned long int';;
17163 ull
) gltype1
='unsigned long long int';;
17164 ui64
)gltype1
='unsigned __int64';;
17166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17169 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17170 included before <wchar.h>. */
17171 #include <stddef.h>
17172 #include <signal.h>
17174 # include <stdio.h>
17176 # include <wchar.h>
17179 extern $gltype foo;
17180 extern $gltype1 foo;
17189 if ac_fn_c_try_compile
"$LINENO"; then :
17190 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17193 eval result
=\
$gl_cv_type_${gltype}_suffix
17194 test "$result" != no
&& break
17197 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17199 $as_echo "$ac_res" >&6; }
17200 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17201 eval result
=\
$gl_cv_type_${gltype}_suffix
17202 test "$result" = no
&& result
=
17203 eval ${GLTYPE}_SUFFIX
=\
$result
17204 cat >>confdefs.h
<<_ACEOF
17205 #define ${GLTYPE}_SUFFIX $result
17212 if test $BITSIZEOF_WINT_T -lt 32; then
17213 BITSIZEOF_WINT_T
=32
17219 if test -n "$STDINT_H"; then
17220 GL_GENERATE_STDINT_H_TRUE
=
17221 GL_GENERATE_STDINT_H_FALSE
='#'
17223 GL_GENERATE_STDINT_H_TRUE
='#'
17224 GL_GENERATE_STDINT_H_FALSE
=
17233 GNULIB_STRTOIMAX
=0;
17234 GNULIB_STRTOUMAX
=0;
17235 HAVE_DECL_IMAXABS
=1;
17236 HAVE_DECL_IMAXDIV
=1;
17237 HAVE_DECL_STRTOIMAX
=1;
17238 HAVE_DECL_STRTOUMAX
=1;
17239 REPLACE_STRTOIMAX
=0;
17240 INT32_MAX_LT_INTMAX_MAX
=1;
17241 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
17242 PRI_MACROS_BROKEN
=0;
17243 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
17244 UINT32_MAX_LT_UINTMAX_MAX
=1;
17245 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
17261 if test $gl_cv_have_include_next = yes; then
17262 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17265 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17266 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17267 $as_echo_n "(cached) " >&6
17270 if test $ac_cv_header_inttypes_h = yes; then
17273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17274 /* end confdefs.h. */
17275 #include <inttypes.h>
17279 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17280 *) gl_absname_cpp
="$ac_cpp" ;;
17285 gl_dirsep_regex
='[/\\]'
17288 gl_dirsep_regex
='\/'
17291 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17293 gl_header_literal_regex
=`echo 'inttypes.h' \
17294 | sed -e "$gl_make_literal_regex_sed"`
17295 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17296 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17301 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17302 sed -n "$gl_absolute_header_sed"`'"'
17304 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17310 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17312 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
17314 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17316 gl_next_as_first_directive
='<'inttypes.h
'>'
17318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17319 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
17321 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17336 $as_echo_n "checking for 64-bit off_t... " >&6; }
17337 if test "${gl_cv_type_off_t_64+set}" = set; then :
17338 $as_echo_n "(cached) " >&6
17340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 #include <sys/types.h>
17343 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17353 if ac_fn_c_try_compile
"$LINENO"; then :
17354 gl_cv_type_off_t_64
=yes
17356 gl_cv_type_off_t_64
=no
17358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17362 $as_echo "$gl_cv_type_off_t_64" >&6; }
17363 if test $gl_cv_type_off_t_64 = no
; then
17364 WINDOWS_64_BIT_OFF_T
=1
17366 WINDOWS_64_BIT_OFF_T
=0
17368 WINDOWS_64_BIT_ST_SIZE
=1
17371 WINDOWS_64_BIT_OFF_T
=0
17372 WINDOWS_64_BIT_ST_SIZE
=0
17389 GNULIB_UTIMENSAT
=0;
17403 REPLACE_FUTIMENS
=0;
17409 REPLACE_UTIMENSAT
=0;
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17415 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17416 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17417 $as_echo_n "(cached) " >&6
17419 rm -f conftest.sym conftest.
file
17420 echo >conftest.
file
17421 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17422 if test "$cross_compiling" = yes; then :
17424 # Guess yes on glibc systems.
17425 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17426 # If we don't know, assume the worst.
17427 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17433 $ac_includes_default
17438 /* Linux will dereference the symlink and fail, as required by
17439 POSIX. That is better in the sense that it means we will not
17440 have to compile and use the lstat wrapper. */
17441 return lstat ("conftest.sym/", &sbuf) == 0;
17447 if ac_fn_c_try_run
"$LINENO"; then :
17448 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17450 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17457 # If the 'ln -s' command failed, then we probably don't even
17458 # have an lstat function.
17459 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17461 rm -f conftest.sym conftest.
file
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17465 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17466 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17469 cat >>confdefs.h
<<_ACEOF
17470 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17478 GNULIB_NANOSLEEP
=0;
17482 HAVE_DECL_LOCALTIME_R
=1;
17486 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
17487 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
17488 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
17489 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
17494 GNULIB_PTHREAD_SIGMASK
=0;
17496 GNULIB_SIGNAL_H_SIGPIPE
=0;
17497 GNULIB_SIGPROCMASK
=0;
17498 GNULIB_SIGACTION
=0;
17499 HAVE_POSIX_SIGNALBLOCKING
=1;
17500 HAVE_PTHREAD_SIGMASK
=1;
17505 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
17507 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
17509 HAVE_SIGHANDLER_T
=1;
17510 REPLACE_PTHREAD_SIGMASK
=0;
17518 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17519 #include <signal.h>
17520 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17521 #include <sys/types.h>
17524 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
17526 cat >>confdefs.h
<<_ACEOF
17527 #define HAVE_SIGSET_T 1
17530 gl_cv_type_sigset_t
=yes
17532 gl_cv_type_sigset_t
=no
17535 if test $gl_cv_type_sigset_t != yes; then
17541 if test $ac_cv_header_sys_socket_h = no
; then
17542 for ac_header
in ws2tcpip.h
17544 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17545 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
17546 cat >>confdefs.h
<<_ACEOF
17547 #define HAVE_WS2TCPIP_H 1
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17557 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17558 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17559 $as_echo_n "(cached) " >&6
17561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17564 #include <stdbool.h>
17566 "error: bool is not defined"
17569 "error: false is not defined"
17572 "error: false is not 0"
17575 "error: true is not defined"
17578 "error: true is not 1"
17580 #ifndef __bool_true_false_are_defined
17581 "error: __bool_true_false_are_defined is not defined"
17584 struct s { _Bool s: 1; _Bool t; } s;
17586 char a[true == 1 ? 1 : -1];
17587 char b[false == 0 ? 1 : -1];
17588 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17589 char d[(bool) 0.5 == true ? 1 : -1];
17590 /* See body of main program for 'e'. */
17591 char f[(_Bool) 0.0 == false ? 1 : -1];
17593 char h[sizeof (_Bool)];
17594 char i[sizeof s.t];
17595 enum { j = false, k = true, l = false * true, m = true * 256 };
17596 /* The following fails for
17597 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17599 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17600 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17601 /* Catch a bug in an HP-UX C compiler. See
17602 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17603 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17615 /* Refer to every declared value, to avoid compiler optimizations. */
17616 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17617 + !m + !n + !o + !p + !q + !pq);
17623 if ac_fn_c_try_compile
"$LINENO"; then :
17624 ac_cv_header_stdbool_h
=yes
17626 ac_cv_header_stdbool_h
=no
17628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17631 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17632 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17633 if test "x$ac_cv_type__Bool" = x
""yes; then :
17635 cat >>confdefs.h
<<_ACEOF
17636 #define HAVE__BOOL 1
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17649 $as_echo_n "checking for wchar_t... " >&6; }
17650 if test "${gt_cv_c_wchar_t+set}" = set; then :
17651 $as_echo_n "(cached) " >&6
17653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17655 #include <stddef.h>
17656 wchar_t foo = (wchar_t)'\0';
17665 if ac_fn_c_try_compile
"$LINENO"; then :
17666 gt_cv_c_wchar_t
=yes
17670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17673 $as_echo "$gt_cv_c_wchar_t" >&6; }
17674 if test $gt_cv_c_wchar_t = yes; then
17676 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17689 GNULIB_FPRINTF_POSIX
=0;
17705 GNULIB_OBSTACK_PRINTF
=0;
17706 GNULIB_OBSTACK_PRINTF_POSIX
=0;
17711 GNULIB_PRINTF_POSIX
=0;
17720 GNULIB_SPRINTF_POSIX
=0;
17721 GNULIB_STDIO_H_NONBLOCKING
=0;
17722 GNULIB_STDIO_H_SIGPIPE
=0;
17724 GNULIB_VASPRINTF
=0;
17729 GNULIB_VFPRINTF_POSIX
=0;
17731 GNULIB_VPRINTF_POSIX
=0;
17732 GNULIB_VSNPRINTF
=0;
17733 GNULIB_VSPRINTF_POSIX
=0;
17734 HAVE_DECL_FPURGE
=1;
17735 HAVE_DECL_FSEEKO
=1;
17736 HAVE_DECL_FTELLO
=1;
17737 HAVE_DECL_GETDELIM
=1;
17738 HAVE_DECL_GETLINE
=1;
17739 HAVE_DECL_OBSTACK_PRINTF
=1;
17740 HAVE_DECL_SNPRINTF
=1;
17741 HAVE_DECL_VSNPRINTF
=1;
17762 REPLACE_GETDELIM
=0;
17764 REPLACE_OBSTACK_PRINTF
=0;
17770 REPLACE_RENAMEAT
=0;
17771 REPLACE_SNPRINTF
=0;
17773 REPLACE_STDIO_READ_FUNCS
=0;
17774 REPLACE_STDIO_WRITE_FUNCS
=0;
17776 REPLACE_VASPRINTF
=0;
17777 REPLACE_VDPRINTF
=0;
17778 REPLACE_VFPRINTF
=0;
17780 REPLACE_VSNPRINTF
=0;
17781 REPLACE_VSPRINTF
=0;
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17784 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17785 if test "${ac_cv_struct_tm+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17789 /* end confdefs.h. */
17790 #include <sys/types.h>
17797 int *p = &tm.tm_sec;
17803 if ac_fn_c_try_compile
"$LINENO"; then :
17804 ac_cv_struct_tm
=time.h
17806 ac_cv_struct_tm
=sys
/time.h
17808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17811 $as_echo "$ac_cv_struct_tm" >&6; }
17812 if test $ac_cv_struct_tm = sys
/time.h
; then
17814 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17818 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17819 #include <$ac_cv_struct_tm>
17822 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
17824 cat >>confdefs.h
<<_ACEOF
17825 #define HAVE_STRUCT_TM_TM_ZONE 1
17831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17833 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17836 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17838 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
17844 cat >>confdefs.h
<<_ACEOF
17845 #define HAVE_DECL_TZNAME $ac_have_decl
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17849 $as_echo_n "checking for tzname... " >&6; }
17850 if test "${ac_cv_var_tzname+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17856 #if !HAVE_DECL_TZNAME
17857 extern char *tzname[];
17863 return tzname[0][0];
17868 if ac_fn_c_try_link
"$LINENO"; then :
17869 ac_cv_var_tzname
=yes
17871 ac_cv_var_tzname
=no
17873 rm -f core conftest.err conftest.
$ac_objext \
17874 conftest
$ac_exeext conftest.
$ac_ext
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17877 $as_echo "$ac_cv_var_tzname" >&6; }
17878 if test $ac_cv_var_tzname = yes; then
17880 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17886 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
17888 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
17890 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17897 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
17898 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
17904 cat >>confdefs.h
<<_ACEOF
17905 #define HAVE_DECL_STRTOIMAX $ac_have_decl
17910 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
17911 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
17917 cat >>confdefs.h
<<_ACEOF
17918 #define HAVE_DECL_STRTOUMAX $ac_have_decl
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17924 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
17925 if test "${ac_cv_header_stat_broken+set}" = set; then :
17926 $as_echo_n "(cached) " >&6
17928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17930 #include <sys/types.h>
17931 #include <sys/stat.h>
17933 #if defined S_ISBLK && defined S_IFDIR
17934 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17937 #if defined S_ISBLK && defined S_IFCHR
17938 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17941 #if defined S_ISLNK && defined S_IFREG
17942 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17945 #if defined S_ISSOCK && defined S_IFREG
17946 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17950 if ac_fn_c_try_compile
"$LINENO"; then :
17951 ac_cv_header_stat_broken
=no
17953 ac_cv_header_stat_broken
=yes
17955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17958 $as_echo "$ac_cv_header_stat_broken" >&6; }
17959 if test $ac_cv_header_stat_broken = yes; then
17961 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17967 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17968 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17972 cat >>confdefs.h
<<_ACEOF
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17988 if test "${ac_cv_c_restrict+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17991 ac_cv_c_restrict
=no
17992 # The order here caters to the fact that C++ does not require restrict.
17993 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 typedef int * int_ptr;
17997 int foo (int_ptr $ac_kw ip) {
18004 int * $ac_kw t = s;
18011 if ac_fn_c_try_compile
"$LINENO"; then :
18012 ac_cv_c_restrict
=$ac_kw
18014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18015 test "$ac_cv_c_restrict" != no
&& break
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18020 $as_echo "$ac_cv_c_restrict" >&6; }
18022 case $ac_cv_c_restrict in
18024 no
) $as_echo "#define restrict /**/" >>confdefs.h
18026 *) cat >>confdefs.h
<<_ACEOF
18027 #define restrict $ac_cv_c_restrict
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18035 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18036 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18037 $as_echo_n "(cached) " >&6
18039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18046 static struct timespec x; x.tv_sec = x.tv_nsec;
18051 if ac_fn_c_try_compile
"$LINENO"; then :
18052 gl_cv_sys_struct_timespec_in_time_h
=yes
18054 gl_cv_sys_struct_timespec_in_time_h
=no
18056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18059 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18061 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18062 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18063 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18064 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18065 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18068 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18069 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18074 #include <sys/time.h>
18079 static struct timespec x; x.tv_sec = x.tv_nsec;
18084 if ac_fn_c_try_compile
"$LINENO"; then :
18085 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18087 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18092 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18093 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18094 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18097 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18098 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18099 $as_echo_n "(cached) " >&6
18101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18103 #include <pthread.h>
18108 static struct timespec x; x.tv_sec = x.tv_nsec;
18113 if ac_fn_c_try_compile
"$LINENO"; then :
18114 gl_cv_sys_struct_timespec_in_pthread_h
=yes
18116 gl_cv_sys_struct_timespec_in_pthread_h
=no
18118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18121 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18122 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18123 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
18142 if test $gl_cv_have_include_next = yes; then
18143 gl_cv_next_time_h
='<'time.h
'>'
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18146 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18147 if test "${gl_cv_next_time_h+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18157 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18158 *) gl_absname_cpp
="$ac_cpp" ;;
18163 gl_dirsep_regex
='[/\\]'
18166 gl_dirsep_regex
='\/'
18169 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18171 gl_header_literal_regex
=`echo 'time.h' \
18172 | sed -e "$gl_make_literal_regex_sed"`
18173 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18174 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18179 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18180 sed -n "$gl_absolute_header_sed"`'"'
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18185 $as_echo "$gl_cv_next_time_h" >&6; }
18187 NEXT_TIME_H
=$gl_cv_next_time_h
18189 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18190 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18191 gl_next_as_first_directive
='<'time.h
'>'
18193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18194 gl_next_as_first_directive
=$gl_cv_next_time_h
18196 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
18203 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18204 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
18210 cat >>confdefs.h
<<_ACEOF
18211 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18218 GL_COND_LIBTOOL_TRUE
=
18219 GL_COND_LIBTOOL_FALSE
='#'
18221 GL_COND_LIBTOOL_TRUE
='#'
18222 GL_COND_LIBTOOL_FALSE
=
18225 gl_cond_libtool
=false
18238 gl_source_base
='lib'
18241 if test $ac_cv_func_alloca_works = no
; then
18245 # Define an additional variable used in the Makefile substitution.
18246 if test $ac_cv_working_alloca_h = yes; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18248 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18249 if test "${gl_cv_rpl_alloca+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18254 /* end confdefs.h. */
18256 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18262 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
18263 gl_cv_rpl_alloca
=yes
18265 gl_cv_rpl_alloca
=no
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18272 $as_echo "$gl_cv_rpl_alloca" >&6; }
18273 if test $gl_cv_rpl_alloca = yes; then
18275 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18285 if test -n "$ALLOCA_H"; then
18286 GL_GENERATE_ALLOCA_H_TRUE
=
18287 GL_GENERATE_ALLOCA_H_FALSE
='#'
18289 GL_GENERATE_ALLOCA_H_TRUE
='#'
18290 GL_GENERATE_ALLOCA_H_FALSE
=
18319 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18322 if test $HAVE_DUP2 = 1; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18324 $as_echo_n "checking whether dup2 works... " >&6; }
18325 if test "${gl_cv_func_dup2_works+set}" = set; then :
18326 $as_echo_n "(cached) " >&6
18328 if test "$cross_compiling" = yes; then :
18330 mingw
*) # on this platform, dup2 always returns 0 for success
18331 gl_cv_func_dup2_works
="guessing no" ;;
18332 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18333 gl_cv_func_dup2_works
="guessing no" ;;
18334 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18335 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18336 gl_cv_func_dup2_works
="guessing no" ;;
18337 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18338 gl_cv_func_dup2_works
="guessing no" ;;
18339 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18340 gl_cv_func_dup2_works
="guessing no" ;;
18341 *) gl_cv_func_dup2_works
="guessing yes" ;;
18344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 #include <unistd.h>
18355 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18358 if (dup2 (1, 1) == 0)
18361 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18365 if (dup2 (0, 0) != -1)
18367 /* Many gnulib modules require POSIX conformance of EBADF. */
18368 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18377 if ac_fn_c_try_run
"$LINENO"; then :
18378 gl_cv_func_dup2_works
=yes
18380 gl_cv_func_dup2_works
=no
18382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18389 $as_echo "$gl_cv_func_dup2_works" >&6; }
18390 case "$gl_cv_func_dup2_works" in
18399 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
18408 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18429 # Persuade glibc <stdlib.h> to declare getloadavg().
18434 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18435 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18437 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18438 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
18441 gl_func_getloadavg_done
=no
18443 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18444 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18445 # to get the right answer into the cache.
18446 # For kstat on solaris, we need to test for libelf and libkvm to force the
18447 # definition of SVR4 below.
18448 if test $gl_func_getloadavg_done = no
; then
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18450 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18451 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18452 $as_echo_n "(cached) " >&6
18454 ac_check_lib_save_LIBS
=$LIBS
18456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18469 return elf_begin ();
18474 if ac_fn_c_try_link
"$LINENO"; then :
18475 ac_cv_lib_elf_elf_begin
=yes
18477 ac_cv_lib_elf_elf_begin
=no
18479 rm -f core conftest.err conftest.
$ac_objext \
18480 conftest
$ac_exeext conftest.
$ac_ext
18481 LIBS
=$ac_check_lib_save_LIBS
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18484 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18485 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18490 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18491 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18492 $as_echo_n "(cached) " >&6
18494 ac_check_lib_save_LIBS
=$LIBS
18496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18509 return kvm_open ();
18514 if ac_fn_c_try_link
"$LINENO"; then :
18515 ac_cv_lib_kvm_kvm_open
=yes
18517 ac_cv_lib_kvm_kvm_open
=no
18519 rm -f core conftest.err conftest.
$ac_objext \
18520 conftest
$ac_exeext conftest.
$ac_ext
18521 LIBS
=$ac_check_lib_save_LIBS
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18524 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18525 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
18529 # Check for the 4.4BSD definition of getloadavg.
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18531 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18532 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18533 $as_echo_n "(cached) " >&6
18535 ac_check_lib_save_LIBS
=$LIBS
18536 LIBS
="-lutil $LIBS"
18537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18546 char getloadavg ();
18550 return getloadavg ();
18555 if ac_fn_c_try_link
"$LINENO"; then :
18556 ac_cv_lib_util_getloadavg
=yes
18558 ac_cv_lib_util_getloadavg
=no
18560 rm -f core conftest.err conftest.
$ac_objext \
18561 conftest
$ac_exeext conftest.
$ac_ext
18562 LIBS
=$ac_check_lib_save_LIBS
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18565 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18566 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
18567 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
18572 if test $gl_func_getloadavg_done = no
; then
18573 # There is a commonly available library for RS/6000 AIX.
18574 # Since it is not a standard part of AIX, it might be installed locally.
18575 gl_getloadavg_LIBS
=$LIBS
18576 LIBS
="-L/usr/local/lib $LIBS"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18578 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18579 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18582 ac_check_lib_save_LIBS
=$LIBS
18583 LIBS
="-lgetloadavg $LIBS"
18584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18593 char getloadavg ();
18597 return getloadavg ();
18602 if ac_fn_c_try_link
"$LINENO"; then :
18603 ac_cv_lib_getloadavg_getloadavg
=yes
18605 ac_cv_lib_getloadavg_getloadavg
=no
18607 rm -f core conftest.err conftest.
$ac_objext \
18608 conftest
$ac_exeext conftest.
$ac_ext
18609 LIBS
=$ac_check_lib_save_LIBS
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18612 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18613 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
18614 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
18616 LIBS
=$gl_getloadavg_LIBS
18621 # Set up the replacement function if necessary.
18622 if test $gl_func_getloadavg_done = no
; then
18625 # Solaris has libkstat which does not require root.
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18627 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18628 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18629 $as_echo_n "(cached) " >&6
18631 ac_check_lib_save_LIBS
=$LIBS
18632 LIBS
="-lkstat $LIBS"
18633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18636 /* Override any GCC internal prototype to avoid an error.
18637 Use char because int might match the return type of a GCC
18638 builtin and then its argument prototype would still apply. */
18642 char kstat_open ();
18646 return kstat_open ();
18651 if ac_fn_c_try_link
"$LINENO"; then :
18652 ac_cv_lib_kstat_kstat_open
=yes
18654 ac_cv_lib_kstat_kstat_open
=no
18656 rm -f core conftest.err conftest.
$ac_objext \
18657 conftest
$ac_exeext conftest.
$ac_ext
18658 LIBS
=$ac_check_lib_save_LIBS
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18661 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18662 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
18663 cat >>confdefs.h
<<_ACEOF
18664 #define HAVE_LIBKSTAT 1
18667 LIBS
="-lkstat $LIBS"
18671 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
18673 # AIX has libperfstat which does not require root
18674 if test $gl_func_getloadavg_done = no
; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18676 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18677 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18678 $as_echo_n "(cached) " >&6
18680 ac_check_lib_save_LIBS
=$LIBS
18681 LIBS
="-lperfstat $LIBS"
18682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18691 char perfstat_cpu_total ();
18695 return perfstat_cpu_total ();
18700 if ac_fn_c_try_link
"$LINENO"; then :
18701 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
18703 ac_cv_lib_perfstat_perfstat_cpu_total
=no
18705 rm -f core conftest.err conftest.
$ac_objext \
18706 conftest
$ac_exeext conftest.
$ac_ext
18707 LIBS
=$ac_check_lib_save_LIBS
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18710 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18711 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
18712 cat >>confdefs.h
<<_ACEOF
18713 #define HAVE_LIBPERFSTAT 1
18716 LIBS
="-lperfstat $LIBS"
18720 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
18723 if test $gl_func_getloadavg_done = no
; then
18724 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18725 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
18726 gl_func_getloadavg_done
=yes
18728 $as_echo "#define DGUX 1" >>confdefs.h
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18731 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18732 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18735 ac_check_lib_save_LIBS
=$LIBS
18737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18740 /* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18746 char dg_sys_info ();
18750 return dg_sys_info ();
18755 if ac_fn_c_try_link
"$LINENO"; then :
18756 ac_cv_lib_dgc_dg_sys_info
=yes
18758 ac_cv_lib_dgc_dg_sys_info
=no
18760 rm -f core conftest.err conftest.
$ac_objext \
18761 conftest
$ac_exeext conftest.
$ac_ext
18762 LIBS
=$ac_check_lib_save_LIBS
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18765 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18766 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
18767 cat >>confdefs.h
<<_ACEOF
18768 #define HAVE_LIBDGC 1
18783 if test "x$gl_save_LIBS" = x
; then
18784 GETLOADAVG_LIBS
=$LIBS
18786 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18791 # Test whether the system declares getloadavg. Solaris has the function
18792 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18793 for ac_header
in sys
/loadavg.h
18795 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18796 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
18797 cat >>confdefs.h
<<_ACEOF
18798 #define HAVE_SYS_LOADAVG_H 1
18805 if test $ac_cv_header_sys_loadavg_h = yes; then
18806 HAVE_SYS_LOADAVG_H
=1
18808 HAVE_SYS_LOADAVG_H
=0
18810 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18811 # include <sys/loadavg.h>
18813 #include <stdlib.h>
18815 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
18818 HAVE_DECL_GETLOADAVG
=0
18822 if test $HAVE_GETLOADAVG = 0; then
18831 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
18834 # Figure out what our getloadavg.c needs.
18836 # On HPUX9, an unprivileged user can get load averages this way.
18837 if test $gl_func_getloadavg_done = no
; then
18838 for ac_func
in pstat_getdynamic
18840 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18841 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
18842 cat >>confdefs.h
<<_ACEOF
18843 #define HAVE_PSTAT_GETDYNAMIC 1
18845 gl_func_getloadavg_done
=yes
18851 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18852 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18853 # Irix 4.0.5F has the header but not the library.
18854 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
18855 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18856 gl_func_getloadavg_done
=yes
18858 $as_echo "#define SVR4 1" >>confdefs.h
18862 if test $gl_func_getloadavg_done = no
; then
18863 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18864 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
18865 gl_func_getloadavg_done
=yes
18867 $as_echo "#define UMAX 1" >>confdefs.h
18870 $as_echo "#define UMAX4_3 1" >>confdefs.h
18877 if test $gl_func_getloadavg_done = no
; then
18878 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18879 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
18880 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
18887 if test $gl_func_getloadavg_done = no
; then
18888 for ac_header
in mach
/mach.h
18890 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18891 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
18892 cat >>confdefs.h
<<_ACEOF
18893 #define HAVE_MACH_MACH_H 1
18902 for ac_header
in nlist.h
18904 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
18905 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
18906 cat >>confdefs.h
<<_ACEOF
18907 #define HAVE_NLIST_H 1
18909 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
18911 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
18913 cat >>confdefs.h
<<_ACEOF
18914 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18927 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
18928 x.n_un.n_name = "";
18936 if ac_fn_c_try_link
"$LINENO"; then :
18938 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
18941 rm -f core conftest.err conftest.
$ac_objext \
18942 conftest
$ac_exeext conftest.
$ac_ext
18954 GNULIB_GETLOADAVG
=1
18965 if test $REPLACE_GETOPT = 1; then
18974 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
18984 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
18989 GNULIB_GL_UNISTD_H_GETOPT
=1
19000 if test -n "$gl_replace_getopt"; then :
19007 if test $REPLACE_GETOPT = 1; then
19011 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19017 if test $REPLACE_GETOPT = 1; then
19026 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19036 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19041 GNULIB_GL_UNISTD_H_GETOPT
=1
19050 if test $ac_cv_func_lstat = yes; then
19052 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19061 if test $REPLACE_LSTAT = 1; then
19070 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19094 if test $APPLE_UNIVERSAL_BUILD = 1; then
19095 # A universal build on Apple MacOS X platforms.
19096 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19097 # But we need a configuration result that is valid in both modes.
19098 gl_cv_func_working_mktime
=no
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19101 $as_echo_n "checking for working mktime... " >&6; }
19102 if test "${gl_cv_func_working_mktime+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19105 if test "$cross_compiling" = yes; then :
19106 gl_cv_func_working_mktime
=no
19108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19110 /* Test program from Paul Eggert and Tony Leneis. */
19111 #include <limits.h>
19112 #include <stdlib.h>
19115 #ifdef HAVE_UNISTD_H
19116 # include <unistd.h>
19120 # define alarm(X) /* empty */
19123 /* Work around redefinition to rpl_putenv by other config tests. */
19126 static time_t time_t_max;
19127 static time_t time_t_min;
19129 /* Values we'll use to set the TZ environment variable. */
19130 static char *tz_strings[] = {
19131 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19132 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19134 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19136 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19137 Based on a problem report from Andreas Jaeger. */
19139 spring_forward_gap ()
19141 /* glibc (up to about 1998-10-07) failed this test. */
19144 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19145 instead of "TZ=America/Vancouver" in order to detect the bug even
19146 on systems that don't support the Olson extension, or don't have the
19147 full zoneinfo tables installed. */
19148 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19157 return mktime (&tm) != (time_t) -1;
19161 mktime_test1 (time_t now)
19164 return ! (lt = localtime (&now)) || mktime (lt) == now;
19168 mktime_test (time_t now)
19170 return (mktime_test1 (now)
19171 && mktime_test1 ((time_t) (time_t_max - now))
19172 && mktime_test1 ((time_t) (time_t_min + now)));
19178 /* Based on code from Ariel Faigon. */
19188 return tm.tm_mon == 2 && tm.tm_mday == 31;
19192 bigtime_test (int j)
19196 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19197 now = mktime (&tm);
19198 if (now != (time_t) -1)
19200 struct tm *lt = localtime (&now);
19202 && lt->tm_year == tm.tm_year
19203 && lt->tm_mon == tm.tm_mon
19204 && lt->tm_mday == tm.tm_mday
19205 && lt->tm_hour == tm.tm_hour
19206 && lt->tm_min == tm.tm_min
19207 && lt->tm_sec == tm.tm_sec
19208 && lt->tm_yday == tm.tm_yday
19209 && lt->tm_wday == tm.tm_wday
19210 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19211 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19220 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19221 ignoring leap seconds. */
19222 unsigned long int answer = 2527315200UL;
19226 tm.tm_year = 2050 - 1900;
19229 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19232 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19233 instead of "TZ=America/Vancouver" in order to detect the bug even
19234 on systems that don't support the Olson extension, or don't have the
19235 full zoneinfo tables installed. */
19236 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19240 /* Check that the result is either a failure, or close enough
19241 to the correct answer that we can assume the discrepancy is
19242 due to leap seconds. */
19243 return (t == (time_t) -1
19244 || (0 < t && answer - 120 <= t && t <= answer + 120));
19253 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19254 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19256 /* This test makes some buggy mktime implementations loop.
19257 Give up after 60 seconds; a mktime slower than that
19258 isn't worth using anyway. */
19261 time_t_max = (! time_t_signed
19263 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19265 time_t_min = (! time_t_signed
19267 : time_t_signed_magnitude
19271 delta = time_t_max / 997; /* a suitable prime number */
19272 for (i = 0; i < N_STRINGS; i++)
19275 putenv (tz_strings[i]);
19277 for (t = 0; t <= time_t_max - delta; t += delta)
19278 if (! mktime_test (t))
19280 if (! (mktime_test ((time_t) 1)
19281 && mktime_test ((time_t) (60 * 60))
19282 && mktime_test ((time_t) (60 * 60 * 24))))
19285 for (j = 1; ; j <<= 1)
19286 if (! bigtime_test (j))
19288 else if (INT_MAX / 2 < j)
19290 if (! bigtime_test (INT_MAX))
19293 if (! irix_6_4_bug ())
19295 if (! spring_forward_gap ())
19297 if (! year_2050_test ())
19302 if ac_fn_c_try_run
"$LINENO"; then :
19303 gl_cv_func_working_mktime
=yes
19305 gl_cv_func_working_mktime
=no
19307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19314 $as_echo "$gl_cv_func_working_mktime" >&6; }
19316 if test $gl_cv_func_working_mktime = no
; then
19322 if test $REPLACE_MKTIME = 1; then
19331 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
19353 LIB_PTHREAD_SIGMASK
=
19356 if test $ac_cv_func_pthread_sigmask = yes; then
19359 HAVE_PTHREAD_SIGMASK
=0
19360 REPLACE_PTHREAD_SIGMASK
=1
19366 if test $HAVE_PTHREAD_SIGMASK = 1; then
19369 if test -z "$LIB_PTHREAD_SIGMASK"; then
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19371 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19372 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19376 if test "$cross_compiling" = yes; then :
19379 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
19380 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
19382 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
19386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h. */
19389 #include <pthread.h>
19390 #include <signal.h>
19391 #include <stddef.h>
19395 sigemptyset (&set);
19396 return pthread_sigmask (1729, &set, NULL) != 0;
19399 if ac_fn_c_try_run
"$LINENO"; then :
19400 gl_cv_func_pthread_sigmask_in_libc_works
=no
19402 gl_cv_func_pthread_sigmask_in_libc_works
=yes
19404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19411 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19412 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19414 REPLACE_PTHREAD_SIGMASK
=1
19416 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19423 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19424 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19425 $as_echo_n "(cached) " >&6
19428 gl_save_LIBS
="$LIBS"
19429 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
19430 if test "$cross_compiling" = yes; then :
19433 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
19435 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
19439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 #include <pthread.h>
19443 #include <signal.h>
19444 #include <stddef.h>
19448 sigemptyset (&set);
19449 if (pthread_sigmask (1729, &set, NULL) == -1)
19454 if ac_fn_c_try_run
"$LINENO"; then :
19455 gl_cv_func_pthread_sigmask_return_works
=yes
19457 gl_cv_func_pthread_sigmask_return_works
=no
19459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19463 LIBS
="$gl_save_LIBS"
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19467 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19468 case "$gl_cv_func_pthread_sigmask_return_works" in
19470 REPLACE_PTHREAD_SIGMASK
=1
19472 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19478 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19479 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19480 $as_echo_n "(cached) " >&6
19485 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
19487 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
19489 gl_save_LIBS
="$LIBS"
19490 LIBS
="$LIBS $LIBMULTITHREAD"
19491 if test "$cross_compiling" = yes; then :
19494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 #include <pthread.h>
19498 #include <signal.h>
19500 #include <stdlib.h>
19501 #include <unistd.h>
19502 static volatile int sigint_occurred;
19504 sigint_handler (int sig)
19511 int pid = getpid ();
19513 signal (SIGINT, sigint_handler);
19514 sigemptyset (&set);
19515 sigaddset (&set, SIGINT);
19516 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19518 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19519 if (!(system (command) == 0))
19522 if (!(sigint_occurred == 0))
19524 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19526 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19531 if ac_fn_c_try_run
"$LINENO"; then :
19534 gl_cv_func_pthread_sigmask_unblock_works
=no
19536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19540 LIBS
="$gl_save_LIBS"
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19544 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19545 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19547 REPLACE_PTHREAD_SIGMASK
=1
19549 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19555 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
19564 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19567 if test $HAVE_PTHREAD_SIGMASK = 1; then
19569 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19579 GNULIB_PTHREAD_SIGMASK
=1
19588 if test $ac_cv_func_readlink = no
; then
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19592 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19593 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19598 #include <unistd.h>
19599 /* Cause compilation failure if original declaration has wrong type. */
19600 ssize_t readlink (const char *, char *, size_t);
19609 if ac_fn_c_try_compile
"$LINENO"; then :
19610 gl_cv_decl_readlink_works
=yes
19612 gl_cv_decl_readlink_works
=no
19614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19617 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19619 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19620 if test "${gl_cv_func_readlink_works+set}" = set; then :
19621 $as_echo_n "(cached) " >&6
19623 # We have readlink, so assume ln -s works.
19624 ln -s conftest.no-such conftest.link
19625 ln -s conftest.link conftest.lnk2
19626 if test "$cross_compiling" = yes; then :
19628 # Guess yes on glibc systems.
19629 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
19630 # If we don't know, assume the worst.
19631 *) gl_cv_func_readlink_works
="guessing no" ;;
19635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19637 #include <unistd.h>
19643 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19648 if ac_fn_c_try_run
"$LINENO"; then :
19649 gl_cv_func_readlink_works
=yes
19651 gl_cv_func_readlink_works
=no
19653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19657 rm -f conftest.link conftest.lnk2
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19660 $as_echo "$gl_cv_func_readlink_works" >&6; }
19661 case "$gl_cv_func_readlink_works" in
19663 if test "$gl_cv_decl_readlink_works" != yes; then
19669 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19676 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
19685 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
19713 if test $gl_cv_have_include_next = yes; then
19714 gl_cv_next_signal_h
='<'signal.h
'>'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19717 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19718 if test "${gl_cv_next_signal_h+set}" = set; then :
19719 $as_echo_n "(cached) " >&6
19722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19724 #include <signal.h>
19728 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19729 *) gl_absname_cpp
="$ac_cpp" ;;
19734 gl_dirsep_regex
='[/\\]'
19737 gl_dirsep_regex
='\/'
19740 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19742 gl_header_literal_regex
=`echo 'signal.h' \
19743 | sed -e "$gl_make_literal_regex_sed"`
19744 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19745 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19750 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19751 sed -n "$gl_absolute_header_sed"`'"'
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19756 $as_echo "$gl_cv_next_signal_h" >&6; }
19758 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
19760 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19762 gl_next_as_first_directive
='<'signal.h
'>'
19764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19765 gl_next_as_first_directive
=$gl_cv_next_signal_h
19767 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
19773 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19774 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19775 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19776 #include <signal.h>
19779 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
19782 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
19791 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19792 #include <signal.h>
19795 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
19798 HAVE_SIGHANDLER_T
=0
19804 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19805 /* <sys/types.h> is not needed according to POSIX, but the
19806 <sys/socket.h> in i386-unknown-freebsd4.10 and
19807 powerpc-apple-darwin5.5 required it. */
19808 #include <sys/types.h>
19809 #if HAVE_SYS_SOCKET_H
19810 # include <sys/socket.h>
19811 #elif HAVE_WS2TCPIP_H
19812 # include <ws2tcpip.h>
19816 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19820 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19821 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19822 $as_echo_n "(cached) " >&6
19824 # Systems have either "struct sockaddr *" or
19825 # "void *" as the second argument to getpeername
19826 gl_cv_socklen_t_equiv
=
19827 for arg2
in "struct sockaddr" void
; do
19828 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
19829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19830 /* end confdefs.h. */
19831 #include <sys/types.h>
19832 #include <sys/socket.h>
19834 int getpeername (int, $arg2 *, $t *);
19839 getpeername (0, 0, &len);
19844 if ac_fn_c_try_compile
"$LINENO"; then :
19845 gl_cv_socklen_t_equiv
="$t"
19847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19848 test "$gl_cv_socklen_t_equiv" != "" && break
19850 test "$gl_cv_socklen_t_equiv" != "" && break
19855 if test "$gl_cv_socklen_t_equiv" = ""; then
19856 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19859 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19861 cat >>confdefs.h
<<_ACEOF
19862 #define socklen_t $gl_cv_socklen_t_equiv
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19869 $as_echo_n "checking for ssize_t... " >&6; }
19870 if test "${gt_cv_ssize_t+set}" = set; then :
19871 $as_echo_n "(cached) " >&6
19873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875 #include <sys/types.h>
19879 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19885 if ac_fn_c_try_compile
"$LINENO"; then :
19890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19893 $as_echo "$gt_cv_ssize_t" >&6; }
19894 if test $gt_cv_ssize_t = no
; then
19896 $as_echo "#define ssize_t int" >>confdefs.h
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
19902 $as_echo_n "checking for working stdalign.h... " >&6; }
19903 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
19904 $as_echo_n "(cached) " >&6
19906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19908 #include <stdalign.h>
19909 #include <stddef.h>
19911 /* Test that alignof yields a result consistent with offsetof.
19912 This catches GCC bug 52023
19913 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
19915 template <class t> struct alignof_helper { char a; t b; };
19916 # define ao(type) offsetof (alignof_helper<type>, b)
19918 # define ao(type) offsetof (struct { char a; type b; }, b)
19920 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
19921 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
19922 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
19924 /* Test _Alignas only on platforms where gnulib can help. */
19926 (__GNUC__ || __IBMC__ || __IBMCPP__ \
19927 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
19928 int alignas (8) alignas_int = 1;
19929 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
19940 if ac_fn_c_try_compile
"$LINENO"; then :
19941 gl_cv_header_working_stdalign_h
=yes
19943 gl_cv_header_working_stdalign_h
=no
19945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
19948 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
19950 if test $gl_cv_header_working_stdalign_h = yes; then
19953 STDALIGN_H
='stdalign.h'
19957 if test -n "$STDALIGN_H"; then
19958 GL_GENERATE_STDALIGN_H_TRUE
=
19959 GL_GENERATE_STDALIGN_H_FALSE
='#'
19961 GL_GENERATE_STDALIGN_H_TRUE
='#'
19962 GL_GENERATE_STDALIGN_H_FALSE
=
19968 NEXT_STDARG_H
='<stdarg.h>'
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19970 $as_echo_n "checking for va_copy... " >&6; }
19971 if test "${gl_cv_func_va_copy+set}" = set; then :
19972 $as_echo_n "(cached) " >&6
19975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19977 #include <stdarg.h>
19983 void (*func) (va_list, va_list) = va_copy;
19990 if ac_fn_c_try_compile
"$LINENO"; then :
19991 gl_cv_func_va_copy
=yes
19993 gl_cv_func_va_copy
=no
19995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19999 $as_echo "$gl_cv_func_va_copy" >&6; }
20000 if test $gl_cv_func_va_copy = no
; then
20001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003 #if defined _AIX && !defined __GNUC__
20008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20009 $EGREP "vaccine" >/dev
/null
2>&1; then :
20016 if test $gl_aixcc = yes; then
20026 if test $gl_cv_have_include_next = yes; then
20027 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20030 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20031 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20032 $as_echo_n "(cached) " >&6
20035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20037 #include <stdarg.h>
20041 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20042 *) gl_absname_cpp
="$ac_cpp" ;;
20047 gl_dirsep_regex
='[/\\]'
20050 gl_dirsep_regex
='\/'
20053 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20055 gl_header_literal_regex
=`echo 'stdarg.h' \
20056 | sed -e "$gl_make_literal_regex_sed"`
20057 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20063 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20064 sed -n "$gl_absolute_header_sed"`'"'
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20069 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20071 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20073 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20075 gl_next_as_first_directive
='<'stdarg.h
'>'
20077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20078 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20080 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20085 if test "$gl_cv_next_stdarg_h" = '""'; then
20086 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20087 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20091 saved_as_echo_n
="$as_echo_n"
20093 if test "${gl_cv_func___va_copy+set}" = set; then :
20094 $as_echo_n "(cached) " >&6
20097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 #include <stdarg.h>
20112 if ac_fn_c_try_compile
"$LINENO"; then :
20113 gl_cv_func___va_copy
=yes
20115 gl_cv_func___va_copy
=no
20117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20120 as_echo_n
="$saved_as_echo_n"
20122 if test $gl_cv_func___va_copy = yes; then
20124 $as_echo "#define va_copy __va_copy" >>confdefs.h
20129 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20135 if test -n "$STDARG_H"; then
20136 GL_GENERATE_STDARG_H_TRUE
=
20137 GL_GENERATE_STDARG_H_FALSE
='#'
20139 GL_GENERATE_STDARG_H_TRUE
='#'
20140 GL_GENERATE_STDARG_H_FALSE
=
20148 # Define two additional variables used in the Makefile substitution.
20150 if test "$ac_cv_header_stdbool_h" = yes; then
20153 STDBOOL_H
='stdbool.h'
20156 if test -n "$STDBOOL_H"; then
20157 GL_GENERATE_STDBOOL_H_TRUE
=
20158 GL_GENERATE_STDBOOL_H_FALSE
='#'
20160 GL_GENERATE_STDBOOL_H_TRUE
='#'
20161 GL_GENERATE_STDBOOL_H_FALSE
=
20165 if test "$ac_cv_type__Bool" = yes; then
20176 if test $gt_cv_c_wchar_t = no
; then
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20181 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20182 if test "${gl_cv_decl_null_works+set}" = set; then :
20183 $as_echo_n "(cached) " >&6
20185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20187 #include <stddef.h>
20188 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20198 if ac_fn_c_try_compile
"$LINENO"; then :
20199 gl_cv_decl_null_works
=yes
20201 gl_cv_decl_null_works
=no
20203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20206 $as_echo "$gl_cv_decl_null_works" >&6; }
20207 if test $gl_cv_decl_null_works = no
; then
20212 if test -n "$STDDEF_H"; then
20213 GL_GENERATE_STDDEF_H_TRUE
=
20214 GL_GENERATE_STDDEF_H_FALSE
='#'
20216 GL_GENERATE_STDDEF_H_TRUE
='#'
20217 GL_GENERATE_STDDEF_H_FALSE
=
20220 if test -n "$STDDEF_H"; then
20229 if test $gl_cv_have_include_next = yes; then
20230 gl_cv_next_stddef_h
='<'stddef.h
'>'
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20234 if test "${gl_cv_next_stddef_h+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240 #include <stddef.h>
20244 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20245 *) gl_absname_cpp
="$ac_cpp" ;;
20250 gl_dirsep_regex
='[/\\]'
20253 gl_dirsep_regex
='\/'
20256 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20258 gl_header_literal_regex
=`echo 'stddef.h' \
20259 | sed -e "$gl_make_literal_regex_sed"`
20260 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20266 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20267 sed -n "$gl_absolute_header_sed"`'"'
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20272 $as_echo "$gl_cv_next_stddef_h" >&6; }
20274 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
20276 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20278 gl_next_as_first_directive
='<'stddef.h
'>'
20280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20281 gl_next_as_first_directive
=$gl_cv_next_stddef_h
20283 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
20302 if test $gl_cv_have_include_next = yes; then
20303 gl_cv_next_stdio_h
='<'stdio.h
'>'
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20306 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20307 if test "${gl_cv_next_stdio_h+set}" = set; then :
20308 $as_echo_n "(cached) " >&6
20311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20317 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20318 *) gl_absname_cpp
="$ac_cpp" ;;
20323 gl_dirsep_regex
='[/\\]'
20326 gl_dirsep_regex
='\/'
20329 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20331 gl_header_literal_regex
=`echo 'stdio.h' \
20332 | sed -e "$gl_make_literal_regex_sed"`
20333 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20334 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20339 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20340 sed -n "$gl_absolute_header_sed"`'"'
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20345 $as_echo "$gl_cv_next_stdio_h" >&6; }
20347 NEXT_STDIO_H
=$gl_cv_next_stdio_h
20349 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20351 gl_next_as_first_directive
='<'stdio.h
'>'
20353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20354 gl_next_as_first_directive
=$gl_cv_next_stdio_h
20356 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
20396 if test $gl_cv_have_include_next = yes; then
20397 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20400 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20401 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20407 #include <stdlib.h>
20411 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20412 *) gl_absname_cpp
="$ac_cpp" ;;
20417 gl_dirsep_regex
='[/\\]'
20420 gl_dirsep_regex
='\/'
20423 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20425 gl_header_literal_regex
=`echo 'stdlib.h' \
20426 | sed -e "$gl_make_literal_regex_sed"`
20427 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20428 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20433 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20434 sed -n "$gl_absolute_header_sed"`'"'
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20439 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20441 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
20443 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20445 gl_next_as_first_directive
='<'stdlib.h
'>'
20447 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20448 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
20450 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
20460 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20468 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20477 if test "$ac_cv_have_decl_strtoimax" != yes; then
20478 HAVE_DECL_STRTOIMAX
=0
20481 if test $ac_cv_func_strtoimax = yes; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20484 $as_echo_n "checking whether strtoimax works... " >&6; }
20485 if test "${gl_cv_func_strtoimax+set}" = set; then :
20486 $as_echo_n "(cached) " >&6
20488 if test "$cross_compiling" = yes; then :
20490 # Guess no on AIX 5.
20491 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
20492 # Guess yes otherwise.
20493 *) gl_cv_func_strtoimax
="guessing yes" ;;
20497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20501 #include <string.h>
20502 #include <inttypes.h>
20505 if (sizeof (intmax_t) > sizeof (int))
20507 const char *s = "4294967295";
20511 res = strtoimax (s, &p, 10);
20512 if (p != s + strlen (s))
20516 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20521 const char *s = "2147483647";
20525 res = strtoimax (s, &p, 10);
20526 if (p != s + strlen (s))
20530 if (res != 2147483647)
20537 if ac_fn_c_try_run
"$LINENO"; then :
20538 gl_cv_func_strtoimax
=yes
20540 gl_cv_func_strtoimax
=no
20542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20549 $as_echo "$gl_cv_func_strtoimax" >&6; }
20550 case "$gl_cv_func_strtoimax" in
20551 *no
) REPLACE_STRTOIMAX
=1 ;;
20557 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
20566 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
20569 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20570 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
20576 cat >>confdefs.h
<<_ACEOF
20577 #define HAVE_DECL_STRTOLL $ac_have_decl
20598 if test "$ac_cv_have_decl_strtoumax" != yes; then
20599 HAVE_DECL_STRTOUMAX
=0
20602 if test $ac_cv_func_strtoumax = no
; then
20611 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
20614 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20615 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
20621 cat >>confdefs.h
<<_ACEOF
20622 #define HAVE_DECL_STRTOULL $ac_have_decl
20641 if test $ac_cv_func_symlink = no
; then
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20645 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20646 if test "${gl_cv_func_symlink_works+set}" = set; then :
20647 $as_echo_n "(cached) " >&6
20649 if test "$cross_compiling" = yes; then :
20651 # Guess yes on glibc systems.
20652 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
20653 # If we don't know, assume the worst.
20654 *) gl_cv_func_symlink_works
="guessing no" ;;
20658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660 #include <unistd.h>
20666 if (!symlink ("a", "conftest.link/"))
20668 if (symlink ("conftest.f", "conftest.lnk2"))
20670 else if (!symlink ("a", "conftest.lnk2/"))
20678 if ac_fn_c_try_run
"$LINENO"; then :
20679 gl_cv_func_symlink_works
=yes
20681 gl_cv_func_symlink_works
=no
20683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20687 rm -f conftest.f conftest.link conftest.lnk2
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20690 $as_echo "$gl_cv_func_symlink_works" >&6; }
20691 case "$gl_cv_func_symlink_works" in
20699 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
20708 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
20738 if test $gl_cv_have_include_next = yes; then
20739 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20742 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20743 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20747 if test $ac_cv_header_sys_stat_h = yes; then
20750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20751 /* end confdefs.h. */
20752 #include <sys/stat.h>
20756 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20757 *) gl_absname_cpp
="$ac_cpp" ;;
20762 gl_dirsep_regex
='[/\\]'
20765 gl_dirsep_regex
='\/'
20768 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20770 gl_header_literal_regex
=`echo 'sys/stat.h' \
20771 | sed -e "$gl_make_literal_regex_sed"`
20772 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20773 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20778 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20779 sed -n "$gl_absolute_header_sed"`'"'
20781 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20787 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20789 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
20791 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20793 gl_next_as_first_directive
='<'sys
/stat.h
'>'
20795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20796 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
20798 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
20810 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20812 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20816 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20817 #include <sys/stat.h>
20819 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
20823 $as_echo "#define nlink_t int" >>confdefs.h
20841 if test $gl_cv_have_include_next = yes; then
20842 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20845 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20846 if test "${gl_cv_next_sys_types_h+set}" = set; then :
20847 $as_echo_n "(cached) " >&6
20850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20851 /* end confdefs.h. */
20852 #include <sys/types.h>
20856 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20857 *) gl_absname_cpp
="$ac_cpp" ;;
20862 gl_dirsep_regex
='[/\\]'
20865 gl_dirsep_regex
='\/'
20868 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20870 gl_header_literal_regex
=`echo 'sys/types.h' \
20871 | sed -e "$gl_make_literal_regex_sed"`
20872 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20873 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20878 gl_cv_next_sys_types_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20879 sed -n "$gl_absolute_header_sed"`'"'
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20884 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20886 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
20888 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20890 gl_next_as_first_directive
='<'sys
/types.h
'>'
20892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20893 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
20895 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
20918 if test $ac_cv_have_decl_localtime_r = no
; then
20919 HAVE_DECL_LOCALTIME_R
=0
20923 if test $ac_cv_func_localtime_r = yes; then
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20926 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20927 if test "${gl_cv_time_r_posix+set}" = set; then :
20928 $as_echo_n "(cached) " >&6
20930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20936 /* We don't need to append 'restrict's to the argument types,
20937 even though the POSIX signature has the 'restrict's,
20938 since C99 says they can't affect type compatibility. */
20939 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20941 /* Check the return type is a pointer.
20942 On HP-UX 10 it is 'int'. */
20943 *localtime_r (0, 0);
20949 if ac_fn_c_try_compile
"$LINENO"; then :
20950 gl_cv_time_r_posix
=yes
20952 gl_cv_time_r_posix
=no
20954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20958 $as_echo "$gl_cv_time_r_posix" >&6; }
20959 if test $gl_cv_time_r_posix = yes; then
20960 REPLACE_LOCALTIME_R
=0
20962 REPLACE_LOCALTIME_R
=1
20968 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
20977 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21008 if test $gl_cv_have_include_next = yes; then
21009 gl_cv_next_unistd_h
='<'unistd.h
'>'
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21012 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21013 if test "${gl_cv_next_unistd_h+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21017 if test $ac_cv_header_unistd_h = yes; then
21020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21022 #include <unistd.h>
21026 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21027 *) gl_absname_cpp
="$ac_cpp" ;;
21032 gl_dirsep_regex
='[/\\]'
21035 gl_dirsep_regex
='\/'
21038 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21040 gl_header_literal_regex
=`echo 'unistd.h' \
21041 | sed -e "$gl_make_literal_regex_sed"`
21042 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21043 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21048 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21049 sed -n "$gl_absolute_header_sed"`'"'
21051 gl_cv_next_unistd_h
='<'unistd.h
'>'
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21057 $as_echo "$gl_cv_next_unistd_h" >&6; }
21059 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21061 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21063 gl_next_as_first_directive
='<'unistd.h
'>'
21065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21066 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21068 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21073 if test $ac_cv_header_unistd_h = yes; then
21086 gl_gnulib_enabled_dosname
=false
21087 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21088 gl_gnulib_enabled_pathmax
=false
21089 gl_gnulib_enabled_sigprocmask
=false
21090 gl_gnulib_enabled_stat
=false
21091 gl_gnulib_enabled_strtoll
=false
21092 gl_gnulib_enabled_strtoull
=false
21093 gl_gnulib_enabled_verify
=false
21094 func_gl_gnulib_m4code_dosname
()
21096 if ! $gl_gnulib_enabled_dosname; then
21097 gl_gnulib_enabled_dosname
=true
21100 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21102 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21105 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21108 func_gl_gnulib_m4code_pathmax
()
21110 if ! $gl_gnulib_enabled_pathmax; then
21114 gl_gnulib_enabled_pathmax
=true
21117 func_gl_gnulib_m4code_sigprocmask
()
21119 if ! $gl_gnulib_enabled_sigprocmask; then
21123 if test $gl_cv_type_sigset_t = yes; then
21124 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21125 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21126 gl_cv_func_sigprocmask
=1
21130 if test -z "$gl_cv_func_sigprocmask"; then
21131 HAVE_POSIX_SIGNALBLOCKING
=0
21134 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21143 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21154 GNULIB_SIGPROCMASK
=1
21160 gl_gnulib_enabled_sigprocmask
=true
21163 func_gl_gnulib_m4code_stat
()
21165 if ! $gl_gnulib_enabled_stat; then
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21170 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21171 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21172 $as_echo_n "(cached) " >&6
21174 if test "$cross_compiling" = yes; then :
21176 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21177 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21181 /* end confdefs.h. */
21182 #include <sys/stat.h>
21187 struct stat st; return stat (".", &st) != stat ("./", &st);
21192 if ac_fn_c_try_run
"$LINENO"; then :
21193 gl_cv_func_stat_dir_slash
=yes
21195 gl_cv_func_stat_dir_slash
=no
21197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21203 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21205 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21206 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21207 $as_echo_n "(cached) " >&6
21210 # Assume that if we have lstat, we can also check symlinks.
21211 if test $ac_cv_func_lstat = yes; then
21212 ln -s conftest.tmp conftest.lnk
21214 if test "$cross_compiling" = yes; then :
21216 # Guess yes on glibc systems.
21217 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
21218 # If we don't know, assume the worst.
21219 *) gl_cv_func_stat_file_slash
="guessing no" ;;
21223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h. */
21225 #include <sys/stat.h>
21232 if (!stat ("conftest.tmp/", &st))
21235 if (!stat ("conftest.lnk/", &st))
21244 if ac_fn_c_try_run
"$LINENO"; then :
21245 gl_cv_func_stat_file_slash
=yes
21247 gl_cv_func_stat_file_slash
=no
21249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21253 rm -f conftest.tmp conftest.lnk
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21256 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21257 case $gl_cv_func_stat_dir_slash in
21258 *no
) REPLACE_STAT
=1
21260 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21263 case $gl_cv_func_stat_file_slash in
21264 *no
) REPLACE_STAT
=1
21266 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21270 if test $REPLACE_STAT = 1; then
21279 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21297 gl_gnulib_enabled_stat
=true
21298 if test $REPLACE_STAT = 1; then
21299 func_gl_gnulib_m4code_dosname
21301 if test $REPLACE_STAT = 1; then
21302 func_gl_gnulib_m4code_pathmax
21304 if test $REPLACE_STAT = 1; then
21305 func_gl_gnulib_m4code_verify
21309 func_gl_gnulib_m4code_strtoll
()
21311 if ! $gl_gnulib_enabled_strtoll; then
21315 if test "$ac_cv_type_long_long_int" = yes; then
21316 for ac_func
in strtoll
21318 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21319 if test "x$ac_cv_func_strtoll" = x
""yes; then :
21320 cat >>confdefs.h
<<_ACEOF
21321 #define HAVE_STRTOLL 1
21327 if test $ac_cv_func_strtoll = no
; then
21332 if test $HAVE_STRTOLL = 0; then
21341 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21358 gl_gnulib_enabled_strtoll
=true
21361 func_gl_gnulib_m4code_strtoull
()
21363 if ! $gl_gnulib_enabled_strtoull; then
21367 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21368 for ac_func
in strtoull
21370 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21371 if test "x$ac_cv_func_strtoull" = x
""yes; then :
21372 cat >>confdefs.h
<<_ACEOF
21373 #define HAVE_STRTOULL 1
21379 if test $ac_cv_func_strtoull = no
; then
21384 if test $HAVE_STRTOULL = 0; then
21393 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
21410 gl_gnulib_enabled_strtoull
=true
21413 func_gl_gnulib_m4code_verify
()
21415 if ! $gl_gnulib_enabled_verify; then
21416 gl_gnulib_enabled_verify
=true
21419 if test $REPLACE_GETOPT = 1; then
21420 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21422 if test $REPLACE_LSTAT = 1; then
21423 func_gl_gnulib_m4code_dosname
21425 if test $REPLACE_LSTAT = 1; then
21426 func_gl_gnulib_m4code_stat
21428 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21429 func_gl_gnulib_m4code_sigprocmask
21431 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21432 func_gl_gnulib_m4code_stat
21434 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21435 func_gl_gnulib_m4code_strtoll
21437 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
21438 func_gl_gnulib_m4code_verify
21440 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
21441 func_gl_gnulib_m4code_strtoull
21443 if test $ac_cv_func_strtoumax = no
; then
21444 func_gl_gnulib_m4code_verify
21447 if $gl_gnulib_enabled_dosname; then
21448 gl_GNULIB_ENABLED_dosname_TRUE
=
21449 gl_GNULIB_ENABLED_dosname_FALSE
='#'
21451 gl_GNULIB_ENABLED_dosname_TRUE
='#'
21452 gl_GNULIB_ENABLED_dosname_FALSE
=
21455 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21456 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
21457 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
21459 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
21460 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
21463 if $gl_gnulib_enabled_pathmax; then
21464 gl_GNULIB_ENABLED_pathmax_TRUE
=
21465 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
21467 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
21468 gl_GNULIB_ENABLED_pathmax_FALSE
=
21471 if $gl_gnulib_enabled_sigprocmask; then
21472 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
21473 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
21475 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
21476 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
21479 if $gl_gnulib_enabled_stat; then
21480 gl_GNULIB_ENABLED_stat_TRUE
=
21481 gl_GNULIB_ENABLED_stat_FALSE
='#'
21483 gl_GNULIB_ENABLED_stat_TRUE
='#'
21484 gl_GNULIB_ENABLED_stat_FALSE
=
21487 if $gl_gnulib_enabled_strtoll; then
21488 gl_GNULIB_ENABLED_strtoll_TRUE
=
21489 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
21491 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
21492 gl_GNULIB_ENABLED_strtoll_FALSE
=
21495 if $gl_gnulib_enabled_strtoull; then
21496 gl_GNULIB_ENABLED_strtoull_TRUE
=
21497 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
21499 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
21500 gl_GNULIB_ENABLED_strtoull_FALSE
=
21503 if $gl_gnulib_enabled_verify; then
21504 gl_GNULIB_ENABLED_verify_TRUE
=
21505 gl_GNULIB_ENABLED_verify_FALSE
='#'
21507 gl_GNULIB_ENABLED_verify_TRUE
='#'
21508 gl_GNULIB_ENABLED_verify_FALSE
=
21511 # End of code from modules
21532 gl_source_base
='tests'
21533 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
21535 gl_module_indicator_condition
=$gltests_WITNESS
21546 LIBGNU_LIBDEPS
="$gl_libdeps"
21548 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
21553 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
21556 ## The -headerpad option tells ld (see man page) to leave room at the
21557 ## end of the header for adding load commands. Needed for dumping.
21558 ## 0x690 is the total size of 30 segment load commands (at 56
21559 ## each); under Cocoa 31 commands are required.
21560 if test "$HAVE_NS" = "yes"; then
21561 libs_nsgui
="-framework AppKit"
21562 headerpad_extra
=6C8
21565 headerpad_extra
=690
21567 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21569 ## This is here because src/Makefile.in did some extra fiddling around
21570 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21571 ## #ifndef LD_SWITCH_SYSTEM
21572 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21573 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21574 ## not using gcc, darwin.
21575 ## Because this was done in src/Makefile.in, the resulting part of
21576 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21577 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21578 ## rather than LD_SWITCH_SYSTEM.
21579 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21580 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
21583 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21584 ## find X at run-time.
21585 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21586 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21587 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21588 ## had different values in configure (in ac_link) and src/Makefile.in.
21589 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21590 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21592 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
21595 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21596 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21605 ## gnu: GNU needs its own crt0.
21606 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
21608 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21609 ## library search parth, i.e. it won't search /usr/lib for libc and
21610 ## friends. Using -nostartfiles instead avoids this problem, and
21611 ## will also work on earlier NetBSD releases.
21612 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
21614 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21615 ## MkLinux/LinuxPPC needs this.
21616 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21618 case "$canonical" in
21619 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
21625 if test "x$ORDINARY_LINK" = "xyes"; then
21629 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21632 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21633 ## freebsd, gnu-* not on powerpc*|s390x*.
21634 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21636 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21637 ## places that are difficult to figure out at make time. Fortunately,
21638 ## these same versions allow you to pass arbitrary flags on to the
21639 ## linker, so there is no reason not to use it as a linker.
21641 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21642 ## searching for libraries in its internal directories, so we have to
21643 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21644 LD_FIRSTFLAG
="-nostdlib"
21647 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21648 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
21653 ## FIXME? The logic here is not precisely the same as that above.
21654 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21655 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21657 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21660 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
21663 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21664 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21670 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21671 ## immediately undefine it again and redefine it to empty.
21672 ## Was the C_SWITCH_X_SITE part really necessary?
21673 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21679 ## Ask GCC where to find libgcc.a.
21680 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21685 ## If we're using X11/GNUstep, define some consequences.
21686 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
21688 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21691 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21698 #### Report on what we decided to do.
21699 #### Report GTK as a toolkit, even if it doesn't use Xt.
21700 #### It makes printing result more understandable as using GTK sets
21701 #### toolkit_scroll_bars to yes by default.
21702 if test "${HAVE_GTK}" = "yes"; then
21707 Configured for \`${canonical}'.
21709 Where should the build process find the source code? ${srcdir}
21710 What operating system file should Emacs use?
21712 What compiler should emacs be built with? ${CC} ${CFLAGS}
21713 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21714 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21715 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21716 What window system should Emacs use? ${window_system}
21717 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21719 if test -n "${x_includes}"; then
21720 echo " Where do we find X Windows header files? ${x_includes}"
21722 echo " Where do we find X Windows header files? Standard dirs"
21724 if test -n "${x_libraries}"; then
21725 echo " Where do we find X Windows libraries? ${x_libraries}"
21727 echo " Where do we find X Windows libraries? Standard dirs"
21730 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21731 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21732 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21733 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21734 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21735 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21736 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21737 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21739 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21740 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21741 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21742 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21743 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21744 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21745 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21747 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21748 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21749 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21750 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21752 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21755 if test -n "${EMACSDATA}"; then
21756 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21758 if test -n "${EMACSDOC}"; then
21759 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21762 if test $USE_XASSERTS = yes; then
21763 echo " Compiling with asserts turned on."
21764 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21769 if test "$HAVE_NS" = "yes"; then
21771 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21772 The installed application will go to nextstep/Emacs.app and can be
21773 run or moved from there."
21774 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21775 echo "The application will be fully self-contained."
21777 echo "The lisp resources for the application will be installed under ${prefix}.
21778 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21779 to run if these resources are not installed."
21784 if test "${opsys}" = "cygwin"; then
21786 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21787 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21793 # Remove any trailing slashes in these variables.
21794 test "${prefix}" != NONE
&&
21795 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21796 test "${exec_prefix}" != NONE
&&
21797 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21799 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"
21801 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"
21804 opt_makefile
=test
/automated
/Makefile
21806 if test -f $srcdir/${opt_makefile}.
in; then
21807 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21808 ac_config_files
="$ac_config_files test/automated/Makefile"
21813 opt_makefile
=admin
/unidata
/Makefile
21815 if test -f $srcdir/${opt_makefile}.
in; then
21816 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21817 ac_config_files
="$ac_config_files admin/unidata/Makefile"
21822 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21826 ac_config_commands
="$ac_config_commands mkdirs"
21829 ac_config_commands
="$ac_config_commands epaths"
21832 ac_config_commands
="$ac_config_commands gdbinit"
21835 cat >confcache
<<\_ACEOF
21836 # This file is a shell script that caches the results of configure
21837 # tests run on this system so they can be shared between configure
21838 # scripts and configure runs, see configure's option --config-cache.
21839 # It is not useful on other systems. If it contains results you don't
21840 # want to keep, you may remove or edit it.
21842 # config.status only pays attention to the cache file if you give it
21843 # the --recheck option to rerun configure.
21845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21847 # following values.
21851 # The following way of writing the cache mishandles newlines in values,
21852 # but we know of no workaround that is simple, portable, and efficient.
21853 # So, we kill variables containing newlines.
21854 # Ultrix sh set writes to stderr and can't be redirected directly,
21855 # and sets the high bit in the cache file unless we assign to the vars.
21857 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21858 eval ac_val
=\$
$ac_var
21862 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21866 _ | IFS | as_nl
) ;; #(
21867 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21868 *) { eval $ac_var=; unset $ac_var;} ;;
21874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21875 *${as_nl}ac_space
=\
*)
21876 # `set' does not quote correctly, so add quotes: double-quote
21877 # substitution turns \\\\ into \\, and sed turns \\ into \.
21880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21883 # `set' quotes correctly as required by POSIX, so do not add quotes.
21884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21897 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21898 if test -w "$cache_file"; then
21899 test "x$cache_file" != "x/dev/null" &&
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21901 $as_echo "$as_me: updating cache $cache_file" >&6;}
21902 cat confcache
>$cache_file
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21910 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21911 # Let make expand exec_prefix.
21912 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21914 DEFS
=-DHAVE_CONFIG_H
21918 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21919 # 1. Remove the extension, and $U if already installed.
21920 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21921 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21923 # will be set to the directory where LIBOBJS objects are built.
21924 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21925 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
21927 LIBOBJS
=$ac_libobjs
21929 LTLIBOBJS
=$ac_ltlibobjs
21932 if test -n "$EXEEXT"; then
21934 am__EXEEXT_FALSE
='#'
21936 am__EXEEXT_TRUE
='#'
21940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21941 as_fn_error
"conditional \"AMDEP\" was never defined.
21942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21945 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
21946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21948 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21949 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
21950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21952 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21953 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21957 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21958 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
21959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21961 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21962 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
21963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21965 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21966 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
21967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21969 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21970 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21973 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21974 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21977 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21978 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21981 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21982 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21985 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
21986 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
21987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21989 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
21990 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
21991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21993 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21994 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21997 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
21998 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
21999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22001 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22002 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22005 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22006 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22012 if test -n "$gl_LIBOBJS"; then
22013 # Remove the extension.
22014 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22015 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22016 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22017 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22020 gl_LIBOBJS
=$gl_libobjs
22022 gl_LTLIBOBJS
=$gl_ltlibobjs
22028 if test -n "$gltests_LIBOBJS"; then
22029 # Remove the extension.
22030 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22031 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22032 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22033 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22036 gltests_LIBOBJS
=$gltests_libobjs
22038 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22042 : ${CONFIG_STATUS=./config.status}
22044 ac_clean_files_save
=$ac_clean_files
22045 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22047 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22049 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22051 # Generated by $as_me.
22052 # Run this file to recreate the current configuration.
22053 # Compiler output produced by configure, useful for debugging
22054 # configure, is in config.log if it exists.
22057 ac_cs_recheck=false
22060 SHELL=\${CONFIG_SHELL-$SHELL}
22063 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22064 ## -------------------- ##
22065 ## M4sh Initialization. ##
22066 ## -------------------- ##
22068 # Be more Bourne compatible
22069 DUALCASE
=1; export DUALCASE
# for MKS sh
22070 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22073 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22074 # is contrary to our usage. Disable this feature.
22075 alias -g '${1+"$@"}'='"$@"'
22076 setopt NO_GLOB_SUBST
22078 case `(set -o) 2>/dev/null` in #(
22090 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22091 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22094 # Prefer a ksh shell builtin over an external printf program on Solaris,
22095 # but without wasting forks for bash or zsh.
22096 if test -z "$BASH_VERSION$ZSH_VERSION" \
22097 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22098 as_echo='print
-r --'
22099 as_echo_n='print
-rn --'
22100 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22101 as_echo='printf %s
\n'
22102 as_echo_n='printf %s
'
22104 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22105 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22106 as_echo_n='/usr
/ucb
/echo -n'
22108 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22109 as_echo_n_body='eval
22113 expr "X$arg" : "X\\(.*\\)$as_nl";
22114 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22116 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22118 export as_echo_n_body
22119 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22121 export as_echo_body
22122 as_echo='sh
-c $as_echo_body as_echo
'
22125 # The user is always right.
22126 if test "${PATH_SEPARATOR+set}" != set; then
22128 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22129 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22136 # We need space, tab and new line, in precisely that order. Quoting is
22137 # there to prevent editors from complaining about space-tab.
22138 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22139 # splitting by setting IFS to empty value.)
22142 # Find who we are. Look in the path if we contain no directory separator.
22144 *[\\/]* ) as_myself=$0 ;;
22145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22146 for as_dir in $PATH
22149 test -z "$as_dir" && as_dir=.
22150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22156 # We did not find ourselves, most probably we were run as `sh COMMAND'
22157 # in which case we are not to be found in the path.
22158 if test "x$as_myself" = x
; then
22161 if test ! -f "$as_myself"; then
22162 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22166 # Unset variables that we do not need and which cause bugs (e.g. in
22167 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22168 # suppresses any "Segmentation fault" message there. '((' could
22169 # trigger a bug in pdksh 5.2.14.
22170 for as_var
in BASH_ENV ENV MAIL MAILPATH
22171 do eval test x\
${$as_var+set} = xset \
22172 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22185 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22188 # as_fn_error ERROR [LINENO LOG_FD]
22189 # ---------------------------------
22190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22192 # script with status $?, using 1 if that was 0.
22195 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22197 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22198 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22200 $as_echo "$as_me: error: $1" >&2
22201 as_fn_exit
$as_status
22205 # as_fn_set_status STATUS
22206 # -----------------------
22207 # Set $? to STATUS, without forking.
22208 as_fn_set_status
()
22211 } # as_fn_set_status
22213 # as_fn_exit STATUS
22214 # -----------------
22215 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22219 as_fn_set_status
$1
22225 # Portably unset VAR.
22228 { eval $1=; unset $1;}
22230 as_unset
=as_fn_unset
22231 # as_fn_append VAR VALUE
22232 # ----------------------
22233 # Append the text in VALUE to the end of the definition contained in VAR. Take
22234 # advantage of any shell optimizations that allow amortized linear growth over
22235 # repeated appends, instead of the typical quadratic growth present in naive
22237 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22238 eval 'as_fn_append ()
22249 # as_fn_arith ARG...
22250 # ------------------
22251 # Perform arithmetic evaluation on the ARGs, and store the result in the
22252 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22253 # must be portable across $(()) and expr.
22254 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22255 eval 'as_fn_arith ()
22262 as_val
=`expr "$@" || test $? -eq 1`
22267 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22268 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22274 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22275 as_basename
=basename
22280 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22286 as_me
=`$as_basename -- "$0" ||
22287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22288 X"$0" : 'X\(//\)$' \| \
22289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22291 sed '/^.*\/\([^/][^/]*\)\/*$/{
22305 # Avoid depending upon Character Ranges.
22306 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22307 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22308 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22309 as_cr_digits
='0123456789'
22310 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22312 ECHO_C
= ECHO_N
= ECHO_T
=
22313 case `echo -n x` in #(((((
22315 case `echo 'xy\c'` in
22316 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22318 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22325 rm -f conf$$ conf$$.exe conf$$.
file
22326 if test -d conf$$.dir
; then
22327 rm -f conf$$.dir
/conf$$.
file
22330 mkdir conf$$.dir
2>/dev
/null
22332 if (echo >conf$$.
file) 2>/dev
/null
; then
22333 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22335 # ... but there are two gotchas:
22336 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22337 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22338 # In both cases, we have to default to `cp -p'.
22339 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22341 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22349 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22350 rmdir conf$$.dir
2>/dev
/null
22355 # Create "$as_dir" as a directory, including parents if necessary.
22360 -*) as_dir
=.
/$as_dir;;
22362 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22366 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22367 *) as_qdir
=$as_dir;;
22369 as_dirs
="'$as_qdir' $as_dirs"
22370 as_dir
=`$as_dirname -- "$as_dir" ||
22371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22372 X"$as_dir" : 'X\(//\)[^/]' \| \
22373 X"$as_dir" : 'X\(//\)$' \| \
22374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22375 $as_echo X"$as_dir" |
22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22380 /^X\(\/\/\)[^/].*/{
22393 test -d "$as_dir" && break
22395 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22396 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
22400 if mkdir
-p .
2>/dev
/null
; then
22401 as_mkdir_p
='mkdir -p "$as_dir"'
22403 test -d .
/-p && rmdir .
/-p
22407 if test -x / >/dev
/null
2>&1; then
22408 as_test_x
='test -x'
22410 if ls -dL / >/dev
/null
2>&1; then
22417 if test -d "$1"; then
22423 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22424 ???[sx]*):;;*)false;;esac;fi
22428 as_executable_p
=$as_test_x
22430 # Sed expression to map a string onto a valid CPP name.
22431 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22433 # Sed expression to map a string onto a valid variable name.
22434 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22438 ## ----------------------------------- ##
22439 ## Main body of $CONFIG_STATUS script. ##
22440 ## ----------------------------------- ##
22442 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22445 # Save the log message, to keep $0 and so on meaningful, and to
22446 # report actual input values of CONFIG_FILES etc. instead of their
22447 # values after options handling.
22449 This file was extended by emacs $as_me 24.1.50, which was
22450 generated by GNU Autoconf 2.65. Invocation command line was
22452 CONFIG_FILES = $CONFIG_FILES
22453 CONFIG_HEADERS = $CONFIG_HEADERS
22454 CONFIG_LINKS = $CONFIG_LINKS
22455 CONFIG_COMMANDS = $CONFIG_COMMANDS
22458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22463 case $ac_config_files in *"
22464 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22467 case $ac_config_headers in *"
22468 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22473 # Files that config.status was made for.
22474 config_files="$ac_config_files"
22475 config_headers="$ac_config_headers"
22476 config_commands="$ac_config_commands"
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22482 \`$as_me' instantiates files and other configuration actions
22483 from templates according to the current configuration. Unless the files
22484 and actions are specified as TAGs, all are instantiated by default.
22486 Usage: $0 [OPTION]... [TAG]...
22488 -h, --help print this help, then exit
22489 -V, --version print version number and configuration settings, then exit
22490 --config print configuration, then exit
22491 -q, --quiet, --silent
22492 do not print progress messages
22493 -d, --debug don't remove temporary files
22494 --recheck update $as_me by reconfiguring in the same conditions
22495 --file=FILE[:TEMPLATE]
22496 instantiate the configuration file FILE
22497 --header=FILE[:TEMPLATE]
22498 instantiate the configuration header FILE
22500 Configuration files:
22503 Configuration headers:
22506 Configuration commands:
22509 Report bugs to the package provider."
22512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22515 emacs config.status 24.1.50
22516 configured by $0, generated by GNU Autoconf 2.65,
22517 with options \\"\$ac_cs_config\\"
22519 Copyright (C) 2009 Free Software Foundation, Inc.
22520 This config.status script is free software; the Free Software Foundation
22521 gives unlimited permission to copy, distribute and modify it."
22528 test -n "\$AWK" || AWK=awk
22531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22532 # The default lists apply if the user does not specify any file.
22538 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22539 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22550 # Handling of the options.
22551 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22553 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22554 $as_echo "$ac_cs_version"; exit ;;
22555 --config |
--confi |
--conf |
--con |
--co |
--c )
22556 $as_echo "$ac_cs_config"; exit ;;
22557 --debug |
--debu |
--deb |
--de |
--d |
-d )
22559 --file |
--fil |
--fi |
--f )
22562 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22564 as_fn_append CONFIG_FILES
" '$ac_optarg'"
22565 ac_need_defaults
=false
;;
22566 --header |
--heade |
--head |
--hea )
22569 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
22572 ac_need_defaults
=false
;;
22574 # Conflict between --help and --header
22575 as_fn_error
"ambiguous option: \`$1'
22576 Try \`$0 --help' for more information.";;
22577 --help |
--hel |
-h )
22578 $as_echo "$ac_cs_usage"; exit ;;
22579 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22580 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22583 # This is an error.
22584 -*) as_fn_error
"unrecognized option: \`$1'
22585 Try \`$0 --help' for more information." ;;
22587 *) as_fn_append ac_config_targets
" $1"
22588 ac_need_defaults
=false
;;
22594 ac_configure_extra_args
=
22596 if $ac_cs_silent; then
22598 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22603 if \$ac_cs_recheck; then
22604 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22606 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22607 CONFIG_SHELL='$SHELL'
22608 export CONFIG_SHELL
22613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22618 ## Running $as_me. ##
22624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22629 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22635 # Handling of arguments.
22636 for ac_config_target
in $ac_config_targets
22638 case $ac_config_target in
22639 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22640 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22641 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22642 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22643 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
22644 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22645 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
22646 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
22647 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
22648 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
22649 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
22650 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22651 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22652 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22653 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
22654 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
22655 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
22656 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
22657 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
22659 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22664 # If the user did not use the arguments to specify the items to instantiate,
22665 # then the envvar interface is used. Set only those that are not.
22666 # We use the long form for the default assignment because of an extremely
22667 # bizarre bug on SunOS 4.1.3.
22668 if $ac_need_defaults; then
22669 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22670 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22674 # Have a temporary directory for convenience. Make it in the build tree
22675 # simply because there is no reason against having it here, and in addition,
22676 # creating and moving files from /tmp can sometimes cause problems.
22677 # Hook for its removal unless debugging.
22678 # Note that there is a small window in which the directory will not be cleaned:
22679 # after its creation but before its name has been assigned to `$tmp'.
22683 trap 'exit_status=$?
22684 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22686 trap 'as_fn_exit 1' 1 2 13 15
22688 # Create a (secure) tmp directory for tmp files.
22691 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22692 test -n "$tmp" && test -d "$tmp"
22695 tmp
=.
/conf$$
-$RANDOM
22696 (umask 077 && mkdir
"$tmp")
22697 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
22699 # Set up the scripts for CONFIG_FILES section.
22700 # No need to generate them if there are no CONFIG_FILES.
22701 # This happens for instance with `./config.status config.h'.
22702 if test -n "$CONFIG_FILES"; then
22704 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
22705 ac_cs_awk_getline
=:
22706 ac_cs_awk_pipe_init
=
22707 ac_cs_awk_read_file
='
22708 while ((getline aline < (F[key])) > 0)
22711 ac_cs_awk_pipe_fini
=
22713 ac_cs_awk_getline
=false
22714 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
22715 ac_cs_awk_read_file
='
22717 print "cat " F[key] " &&"
22718 '$ac_cs_awk_pipe_init
22719 # The final `:' finishes the AND list.
22720 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
22722 ac_cr
=`echo X | tr X '\015'`
22723 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22724 # But we know of no other shell where ac_cr would be empty at this
22725 # point, so we can use a bashism as a fallback.
22726 if test "x$ac_cr" = x
; then
22727 eval ac_cr
=\$
\'\\r
\'
22729 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22730 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22733 ac_cs_awk_cr
=$ac_cr
22736 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22739 # Create commands to substitute file output variables.
22741 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22742 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22743 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
22746 } >conf$
$files.sh
&&
22747 . .
/conf$
$files.sh ||
22748 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
22749 rm -f conf$
$files.sh
22752 echo "cat >conf$$subs.awk <<_ACEOF" &&
22753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22755 } >conf$$subs.sh ||
22756 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22757 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22759 for ac_last_try in false false false false false :; do
22760 . ./conf$$subs.sh ||
22761 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22763 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22764 if test $ac_delim_n = $ac_delim_num; then
22766 elif $ac_last_try; then
22767 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22769 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22772 rm -f conf$$subs.sh
22774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22775 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22779 s/^/S["/; s
/!.
*/"]=/
22789 s/\(.\{148\}\)..*/\1/
22791 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22796 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22803 s/\(.\{148\}\)..*/\1/
22805 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22809 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22814 ' <conf$$subs.awk | sed '
22819 ' >>$CONFIG_STATUS || ac_write_fail=1
22820 rm -f conf$$subs.awk
22821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22823 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22824 for (key in S) S_is_set[key] = 1
22826 \$ac_cs_awk_pipe_init
22830 nfields = split(line, field, "@
")
22832 len = length(field[1])
22833 for (i = 2; i < nfields; i++) {
22835 keylen = length(key)
22836 if (S_is_set[key]) {
22838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22839 len += length(value) + length(field[++i])
22844 if (nfields == 3 && !substed) {
22846 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22847 \$ac_cs_awk_read_file
22853 \$ac_cs_awk_pipe_fini
22856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22857 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22858 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22861 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22862 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
22865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22867 # trailing colons and then remove the whole line if VPATH becomes empty
22868 # (actually we leave an empty line to preserve line numbers).
22869 if test "x
$srcdir" = x.; then
22870 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22871 s/:*\$(srcdir):*/:/
22872 s/:*\${srcdir}:*/:/
22874 s/^\([^=]*=[ ]*\):*/\1/
22880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22881 fi # test -n "$CONFIG_FILES"
22883 # Set up the scripts for CONFIG_HEADERS section.
22884 # No need to generate them if there are no CONFIG_HEADERS.
22885 # This happens for instance with `./config.status Makefile'.
22886 if test -n "$CONFIG_HEADERS"; then
22887 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22891 # Transform confdefs.h into an awk script `defines.awk', embedded as
22892 # here-document in config.status, that substitutes the proper values into
22893 # config.h.in to produce config.h.
22895 # Create a delimiter string that does not exist in confdefs.h, to ease
22896 # handling of long lines.
22898 for ac_last_try in false false :; do
22899 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22900 if test -z "$ac_t"; then
22902 elif $ac_last_try; then
22903 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
22905 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22909 # For the awk script, D is an array of macro values keyed by name,
22910 # likewise P contains macro parameters if any. Preserve backslash
22911 # newline sequences.
22913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22915 s/.\{148\}/&'"$ac_delim"'/g
22918 s/^[ ]*#[ ]*define[ ][ ]*/ /
22925 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22927 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22932 D["\
1"]=" \
3\\\\\\n
"\\/p
22934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22939 s/.\{148\}/&'"$ac_delim"'/g
22944 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22947 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22949 ' <confdefs.h | sed '
22950 s/'"$ac_delim"'/"\\\
22951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22954 for (key in D) D_is_set[key] = 1
22957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22959 split(line, arg, " ")
22960 if (arg[1] == "#") {
22964 defundef
= substr
(arg
[1], 2)
22967 split(mac1
, mac2
, "(") #)
22969 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22970 if (D_is_set
[macro
]) {
22971 # Preserve the white space surrounding the "#".
22972 print prefix
"define", macro P
[macro
] D
[macro
]
22975 # Replace #undef with comments. This is necessary, for example,
22976 # in the case of _POSIX_SOURCE, which is predefined and required
22977 # on some systems where configure will not decide to define it.
22978 if (defundef
== "undef") {
22979 print
"/*", prefix defundef
, macro
, "*/"
22987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22988 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
22989 fi # test -n "$CONFIG_HEADERS"
22992 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22997 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22999 case $ac_mode$ac_tag in
23001 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23002 :[FH
]-) ac_tag
=-:-;;
23003 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23020 -) ac_f
="$tmp/stdin";;
23021 *) # Look for the file first in the build tree, then in the source tree
23022 # (if the path is not absolute). The absolute path cannot be DOS-style,
23023 # because $ac_f cannot contain `:'.
23027 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23029 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23031 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23032 as_fn_append ac_file_inputs
" '$ac_f'"
23035 # Let's still pretend it is `configure' which instantiates (i.e., don't
23036 # use $as_me), people would be surprised to read:
23037 # /* config.h. Generated by config.status. */
23038 configure_input
='Generated from '`
23039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23041 if test x
"$ac_file" != x-
; then
23042 configure_input
="$ac_file. $configure_input"
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23044 $as_echo "$as_me: creating $ac_file" >&6;}
23046 # Neutralize special characters interpreted by sed in replacement strings.
23047 case $configure_input in #(
23048 *\
&* |
*\|
* |
*\\* )
23049 ac_sed_conf_input
=`$as_echo "$configure_input" |
23050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23051 *) ac_sed_conf_input
=$configure_input;;
23055 *:-:* |
*:-) cat >"$tmp/stdin" \
23056 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23061 ac_dir
=`$as_dirname -- "$ac_file" ||
23062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23063 X"$ac_file" : 'X\(//\)[^/]' \| \
23064 X"$ac_file" : 'X\(//\)$' \| \
23065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23066 $as_echo X"$ac_file" |
23067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23071 /^X\(\/\/\)[^/].*/{
23084 as_dir
="$ac_dir"; as_fn_mkdir_p
23088 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23090 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23091 # A ".." for each directory in $ac_dir_suffix.
23092 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23093 case $ac_top_builddir_sub in
23094 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23095 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23098 ac_abs_top_builddir
=$ac_pwd
23099 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23100 # for backward compatibility:
23101 ac_top_builddir
=$ac_top_build_prefix
23104 .
) # We are building in place.
23106 ac_top_srcdir
=$ac_top_builddir_sub
23107 ac_abs_top_srcdir
=$ac_pwd ;;
23108 [\\/]* | ?
:[\\/]* ) # Absolute name.
23109 ac_srcdir
=$srcdir$ac_dir_suffix;
23110 ac_top_srcdir
=$srcdir
23111 ac_abs_top_srcdir
=$srcdir ;;
23112 *) # Relative name.
23113 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23114 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23115 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23117 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23127 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23128 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23130 ac_MKDIR_P
=$MKDIR_P
23132 [\\/$
]* | ?
:[\\/]* ) ;;
23133 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23138 # If the template does not know about datarootdir, expand it.
23139 # FIXME: This hack should be removed a few years after 2.60.
23140 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23151 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23152 *datarootdir
*) ac_datarootdir_seen
=yes;;
23153 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23155 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23158 ac_datarootdir_hack='
23159 s&@datadir@&$datadir&g
23160 s&@docdir@&$docdir&g
23161 s&@infodir@&$infodir&g
23162 s&@localedir@&$localedir&g
23163 s&@mandir@&$mandir&g
23164 s&\\\${datarootdir}&$datarootdir&g' ;;
23168 # Neutralize VPATH when `$srcdir' = `.'.
23169 # Shell code in configure.ac might set extrasub.
23170 # FIXME: do we really want to maintain this feature?
23171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23172 ac_sed_extra="$ac_vpsub
23175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23177 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23178 s|@configure_input@|
$ac_sed_conf_input|
;t t
23179 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23180 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23181 s
&@srcdir@
&$ac_srcdir&;t t
23182 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23183 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23184 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23185 s
&@builddir@
&$ac_builddir&;t t
23186 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23187 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23188 s
&@INSTALL@
&$ac_INSTALL&;t t
23189 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23190 $ac_datarootdir_hack
23192 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23193 if $ac_cs_awk_getline; then
23194 $AWK -f "$tmp/subs.
awk"
23196 $AWK -f "$tmp/subs.
awk" | $SHELL
23198 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23201 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23204 which seems to be undefined. Please make sure it is defined." >&5
23205 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23206 which seems to be undefined. Please make sure it is defined." >&2;}
23210 -) cat "$tmp/out" && rm -f "$tmp/out";;
23211 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23213 || as_fn_error "could not create $ac_file" "$LINENO" 5
23219 if test x"$ac_file" != x-; then
23221 $as_echo "/* $configure_input */" \
23222 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23223 } >"$tmp/config.h" \
23224 || as_fn_error "could not create $ac_file" "$LINENO" 5
23225 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23227 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23230 mv "$tmp/config.h" "$ac_file" \
23231 || as_fn_error "could not create $ac_file" "$LINENO" 5
23234 $as_echo "/* $configure_input */" \
23235 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23236 || as_fn_error "could not create -" "$LINENO" 5
23238 # Compute "$ac_file"'s index
in $config_headers.
23241 for _am_header
in $config_headers :; do
23242 case $_am_header in
23243 $_am_arg |
$_am_arg:* )
23246 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23249 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23250 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23251 X"$_am_arg" : 'X\(//\)[^/]' \| \
23252 X"$_am_arg" : 'X\(//\)$' \| \
23253 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23254 $as_echo X"$_am_arg" |
23255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259 /^X\(\/\/\)[^/].*/{
23271 s/.*/./; q'`/stamp-h
$_am_stamp_count
23274 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23275 $as_echo "$as_me: executing $ac_file commands" >&6;}
23280 case $ac_file$ac_mode in
23281 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23282 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23283 # are listed without --file. Let's play safe and only enable the eval
23284 # if we detect the quoting.
23285 case $CONFIG_FILES in
23286 *\'*) eval set x
"$CONFIG_FILES" ;;
23287 *) set x
$CONFIG_FILES ;;
23292 # Strip MF so we end up with the name of the file.
23293 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23294 # Check whether this is an Automake generated Makefile or not.
23295 # We used to match only the files named `Makefile.in', but
23296 # some people rename them; so instead we look at the file content.
23297 # Grep'ing the first line is not enough: some people post-process
23298 # each Makefile.in and add a new line on top of each file to say so.
23299 # Grep'ing the whole file is not good either: AIX grep has a line
23300 # limit of 2048, but all sed's we know have understand at least 4000.
23301 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23302 dirpart
=`$as_dirname -- "$mf" ||
23303 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23304 X"$mf" : 'X\(//\)[^/]' \| \
23305 X"$mf" : 'X\(//\)$' \| \
23306 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23312 /^X\(\/\/\)[^/].*/{
23328 # Extract the definition of DEPDIR, am__include, and am__quote
23329 # from the Makefile without running `make'.
23330 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23331 test -z "$DEPDIR" && continue
23332 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23333 test -z "am__include" && continue
23334 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23335 # When using ansi2knr, U may be empty or an underscore; expand it
23336 U
=`sed -n 's/^U = //p' < "$mf"`
23337 # Find all dependency output files, they are included files with
23338 # $(DEPDIR) in their names. We invoke sed twice because it is the
23339 # simplest approach to changing $(DEPDIR) to its actual value in the
23341 for file in `sed -n "
23342 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23343 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23344 # Make sure the directory exists.
23345 test -f "$dirpart/$file" && continue
23346 fdir
=`$as_dirname -- "$file" ||
23347 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348 X"$file" : 'X\(//\)[^/]' \| \
23349 X"$file" : 'X\(//\)$' \| \
23350 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23351 $as_echo X"$file" |
23352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23356 /^X\(\/\/\)[^/].*/{
23369 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23370 # echo "creating $dirpart/$file"
23371 echo '# dummy' > "$dirpart/$file"
23377 for dir
in etc lisp
; do
23378 test -d ${dir} || mkdir
${dir}
23382 echo creating src
/epaths.h
23383 ${MAKE-make} epaths-force
23386 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23387 echo creating src
/.gdbinit
23388 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23398 ac_clean_files
=$ac_clean_files_save
23400 test $ac_write_fail = 0 ||
23401 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23404 # configure is writing to config.log, and then calls config.status.
23405 # config.status does its own redirection, appending to config.log.
23406 # Unfortunately, on DOS this fails, as config.log is still kept open
23407 # by configure, so config.status won't be able to write to it; its
23408 # output is simply discarded. So we exec the FD to /dev/null,
23409 # effectively closing config.log, so it can be properly (re)opened and
23410 # appended to by config.status. When coming back to configure, we
23411 # need to make the FD available again.
23412 if test "$no_create" != yes; then
23414 ac_config_status_args
=
23415 test "$silent" = yes &&
23416 ac_config_status_args
="$ac_config_status_args --quiet"
23418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23421 # would make configure fail if this is the last instruction.
23422 $ac_cs_success || as_fn_exit $?
23424 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23426 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}