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>
595 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
641 x_default_search_path
710 INSTALL_ARCH_INDEP_EXTRA
712 LD_SWITCH_X_SITE_RPATH
724 gl_GNULIB_ENABLED_verify_FALSE
725 gl_GNULIB_ENABLED_verify_TRUE
726 gl_GNULIB_ENABLED_strtoull_FALSE
727 gl_GNULIB_ENABLED_strtoull_TRUE
728 gl_GNULIB_ENABLED_strtoll_FALSE
729 gl_GNULIB_ENABLED_strtoll_TRUE
730 gl_GNULIB_ENABLED_stat_FALSE
731 gl_GNULIB_ENABLED_stat_TRUE
732 gl_GNULIB_ENABLED_pathmax_FALSE
733 gl_GNULIB_ENABLED_pathmax_TRUE
734 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
736 gl_GNULIB_ENABLED_dosname_FALSE
737 gl_GNULIB_ENABLED_dosname_TRUE
742 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
744 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
745 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
746 TIME_H_DEFINES_STRUCT_TIMESPEC
747 NEXT_AS_FIRST_DIRECTIVE_TIME_H
749 WINDOWS_64_BIT_ST_SIZE
750 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
752 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
754 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
763 REPLACE_STDIO_WRITE_FUNCS
764 REPLACE_STDIO_READ_FUNCS
773 REPLACE_OBSTACK_PRINTF
798 HAVE_DECL_OBSTACK_PRINTF
804 GNULIB_VSPRINTF_POSIX
808 GNULIB_VFPRINTF_POSIX
815 GNULIB_STDIO_H_SIGPIPE
816 GNULIB_STDIO_H_NONBLOCKING
831 GNULIB_OBSTACK_PRINTF_POSIX
832 GNULIB_OBSTACK_PRINTF
857 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
859 GL_GENERATE_STDDEF_H_FALSE
860 GL_GENERATE_STDDEF_H_TRUE
865 GL_GENERATE_STDBOOL_H_FALSE
866 GL_GENERATE_STDBOOL_H_TRUE
868 GL_GENERATE_STDARG_H_FALSE
869 GL_GENERATE_STDARG_H_TRUE
871 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
873 GL_GENERATE_STDALIGN_H_FALSE
874 GL_GENERATE_STDALIGN_H_TRUE
876 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
880 REPLACE_PTHREAD_SIGMASK
882 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
883 HAVE_STRUCT_SIGACTION_SA_SIGACTION
889 HAVE_POSIX_SIGNALBLOCKING
892 GNULIB_SIGNAL_H_SIGPIPE
894 GNULIB_PTHREAD_SIGMASK
896 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
910 HAVE_DECL_LOCALTIME_R
949 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
951 UINT64_MAX_EQ_ULONG_MAX
952 UINT32_MAX_LT_UINTMAX_MAX
955 INT64_MAX_EQ_LONG_MAX
956 INT32_MAX_LT_INTMAX_MAX
966 GL_GENERATE_STDINT_H_FALSE
967 GL_GENERATE_STDINT_H_TRUE
976 HAVE_SIGNED_SIG_ATOMIC_T
979 BITSIZEOF_SIG_ATOMIC_T
982 APPLE_UNIVERSAL_BUILD
986 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
991 HAVE_UNSIGNED_LONG_LONG_INT
994 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
996 REPLACE_STRUCT_TIMEVAL
1002 GNULIB_GL_UNISTD_H_GETOPT
1005 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1008 PRAGMA_SYSTEM_HEADER
1009 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1024 REPLACE_CANONICALIZE_FILE_NAME
1029 HAVE_STRUCT_RANDOM_DATA
1050 HAVE_DECL_GETLOADAVG
1051 HAVE_CANONICALIZE_FILE_NAME
1064 GNULIB_REALLOC_POSIX
1081 GNULIB_CANONICALIZE_FILE_NAME
1085 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1086 UNISTD_H_HAVE_WINSOCK2_H
1107 REPLACE_GETDOMAINNAME
1118 HAVE_DECL_SETHOSTNAME
1119 HAVE_DECL_GETUSERSHELL
1120 HAVE_DECL_GETPAGESIZE
1121 HAVE_DECL_GETLOGIN_R
1122 HAVE_DECL_GETDOMAINNAME
1161 GNULIB_UNISTD_H_SIGPIPE
1162 GNULIB_UNISTD_H_NONBLOCKING
1188 GNULIB_GETDTABLESIZE
1189 GNULIB_GETDOMAINNAME
1206 GL_GENERATE_ALLOCA_H_FALSE
1207 GL_GENERATE_ALLOCA_H_TRUE
1210 GL_COND_LIBTOOL_FALSE
1211 GL_COND_LIBTOOL_TRUE
1271 INSTALL_STRIP_PROGRAM
1313 program_transform_name
1324 ac_subst_files
='deps_frag
1328 enable_option_checking
1351 with_toolkit_scroll_bars
1363 with_pkg_config_prog
1367 enable_ns_self_contained
1369 enable_locallisppath
1371 enable_check_lisp_object_type
1374 enable_dependency_tracking
1379 ac_precious_vars
='build_alias
1391 # Initialize some variables set by options.
1393 ac_init_version
=false
1394 ac_unrecognized_opts
=
1395 ac_unrecognized_sep
=
1396 # The variables have the same names as the options, with
1397 # dashes changed to underlines.
1398 cache_file
=/dev
/null
1405 program_transform_name
=s
,x
,x
,
1413 # Installation directory options.
1414 # These are left unexpanded so users can "make install exec_prefix=/foo"
1415 # and all the variables that are supposed to be based on exec_prefix
1416 # by default will actually change.
1417 # Use braces instead of parens because sh, perl, etc. also accept them.
1418 # (The list follows the same order as the GNU Coding Standards.)
1419 bindir
='${exec_prefix}/bin'
1420 sbindir
='${exec_prefix}/sbin'
1421 libexecdir
='${exec_prefix}/libexec'
1422 datarootdir
='${prefix}/share'
1423 datadir
='${datarootdir}'
1424 sysconfdir
='${prefix}/etc'
1425 sharedstatedir
='${prefix}/com'
1426 localstatedir
='${prefix}/var'
1427 includedir
='${prefix}/include'
1428 oldincludedir
='/usr/include'
1429 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1430 infodir
='${datarootdir}/info'
1435 libdir
='${exec_prefix}/lib'
1436 localedir
='${datarootdir}/locale'
1437 mandir
='${datarootdir}/man'
1443 # If the previous option needs an argument, assign it.
1444 if test -n "$ac_prev"; then
1445 eval $ac_prev=\
$ac_option
1451 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1455 # Accept the important Cygnus configure options, so we can diagnose typos.
1457 case $ac_dashdash$ac_option in
1461 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1463 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1464 bindir
=$ac_optarg ;;
1466 -build |
--build |
--buil |
--bui |
--bu)
1467 ac_prev
=build_alias
;;
1468 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1469 build_alias
=$ac_optarg ;;
1471 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1472 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1473 ac_prev
=cache_file
;;
1474 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1475 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1476 cache_file
=$ac_optarg ;;
1478 --config-cache |
-C)
1479 cache_file
=config.cache
;;
1481 -datadir |
--datadir |
--datadi |
--datad)
1483 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1484 datadir
=$ac_optarg ;;
1486 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1487 |
--dataroo |
--dataro |
--datar)
1488 ac_prev
=datarootdir
;;
1489 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1490 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1491 datarootdir
=$ac_optarg ;;
1493 -disable-* |
--disable-*)
1494 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1495 # Reject names that are not valid shell variable names.
1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1497 as_fn_error
"invalid feature name: $ac_useropt"
1498 ac_useropt_orig
=$ac_useropt
1499 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500 case $ac_user_opts in
1502 "enable_
$ac_useropt"
1504 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1505 ac_unrecognized_sep
=', ';;
1507 eval enable_
$ac_useropt=no
;;
1509 -docdir |
--docdir |
--docdi |
--doc |
--do)
1511 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1512 docdir
=$ac_optarg ;;
1514 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1516 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1517 dvidir
=$ac_optarg ;;
1519 -enable-* |
--enable-*)
1520 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1523 as_fn_error
"invalid feature name: $ac_useropt"
1524 ac_useropt_orig
=$ac_useropt
1525 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1528 "enable_
$ac_useropt"
1530 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1531 ac_unrecognized_sep
=', ';;
1533 eval enable_
$ac_useropt=\
$ac_optarg ;;
1535 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1536 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1537 |
--exec |
--exe |
--ex)
1538 ac_prev
=exec_prefix
;;
1539 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1540 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1541 |
--exec=* |
--exe=* |
--ex=*)
1542 exec_prefix
=$ac_optarg ;;
1544 -gas |
--gas |
--ga |
--g)
1545 # Obsolete; use --with-gas.
1548 -help |
--help |
--hel |
--he |
-h)
1549 ac_init_help
=long
;;
1550 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1551 ac_init_help
=recursive
;;
1552 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1553 ac_init_help
=short
;;
1555 -host |
--host |
--hos |
--ho)
1556 ac_prev
=host_alias
;;
1557 -host=* |
--host=* |
--hos=* |
--ho=*)
1558 host_alias
=$ac_optarg ;;
1560 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1562 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1564 htmldir
=$ac_optarg ;;
1566 -includedir |
--includedir |
--includedi |
--included |
--include \
1567 |
--includ |
--inclu |
--incl |
--inc)
1568 ac_prev
=includedir
;;
1569 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1570 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1571 includedir
=$ac_optarg ;;
1573 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1575 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1576 infodir
=$ac_optarg ;;
1578 -libdir |
--libdir |
--libdi |
--libd)
1580 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1581 libdir
=$ac_optarg ;;
1583 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1584 |
--libexe |
--libex |
--libe)
1585 ac_prev
=libexecdir
;;
1586 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1587 |
--libexe=* |
--libex=* |
--libe=*)
1588 libexecdir
=$ac_optarg ;;
1590 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1591 ac_prev
=localedir
;;
1592 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1593 localedir
=$ac_optarg ;;
1595 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1596 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1597 ac_prev
=localstatedir
;;
1598 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1599 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1600 localstatedir
=$ac_optarg ;;
1602 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1604 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1605 mandir
=$ac_optarg ;;
1607 -nfp |
--nfp |
--nf)
1608 # Obsolete; use --without-fp.
1611 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1612 |
--no-cr |
--no-c |
-n)
1615 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1616 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1619 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1620 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1621 |
--oldin |
--oldi |
--old |
--ol |
--o)
1622 ac_prev
=oldincludedir
;;
1623 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1624 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1625 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1626 oldincludedir
=$ac_optarg ;;
1628 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1630 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1631 prefix
=$ac_optarg ;;
1633 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1634 |
--program-pre |
--program-pr |
--program-p)
1635 ac_prev
=program_prefix
;;
1636 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1637 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1638 program_prefix
=$ac_optarg ;;
1640 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1641 |
--program-suf |
--program-su |
--program-s)
1642 ac_prev
=program_suffix
;;
1643 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1644 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1645 program_suffix
=$ac_optarg ;;
1647 -program-transform-name |
--program-transform-name \
1648 |
--program-transform-nam |
--program-transform-na \
1649 |
--program-transform-n |
--program-transform- \
1650 |
--program-transform |
--program-transfor \
1651 |
--program-transfo |
--program-transf \
1652 |
--program-trans |
--program-tran \
1653 |
--progr-tra |
--program-tr |
--program-t)
1654 ac_prev
=program_transform_name
;;
1655 -program-transform-name=* |
--program-transform-name=* \
1656 |
--program-transform-nam=* |
--program-transform-na=* \
1657 |
--program-transform-n=* |
--program-transform-=* \
1658 |
--program-transform=* |
--program-transfor=* \
1659 |
--program-transfo=* |
--program-transf=* \
1660 |
--program-trans=* |
--program-tran=* \
1661 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1662 program_transform_name
=$ac_optarg ;;
1664 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1666 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1667 pdfdir
=$ac_optarg ;;
1669 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1671 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1674 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1675 |
-silent |
--silent |
--silen |
--sile |
--sil)
1678 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1680 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1682 sbindir
=$ac_optarg ;;
1684 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1685 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1686 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1688 ac_prev
=sharedstatedir
;;
1689 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1690 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1691 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1693 sharedstatedir
=$ac_optarg ;;
1695 -site |
--site |
--sit)
1697 -site=* |
--site=* |
--sit=*)
1700 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1702 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1703 srcdir
=$ac_optarg ;;
1705 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1706 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1707 ac_prev
=sysconfdir
;;
1708 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1709 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1710 sysconfdir
=$ac_optarg ;;
1712 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1713 ac_prev
=target_alias
;;
1714 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1715 target_alias
=$ac_optarg ;;
1717 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1720 -version |
--version |
--versio |
--versi |
--vers |
-V)
1721 ac_init_version
=: ;;
1724 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1725 # Reject names that are not valid shell variable names.
1726 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1727 as_fn_error
"invalid package name: $ac_useropt"
1728 ac_useropt_orig
=$ac_useropt
1729 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1730 case $ac_user_opts in
1734 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1735 ac_unrecognized_sep
=', ';;
1737 eval with_
$ac_useropt=\
$ac_optarg ;;
1739 -without-* |
--without-*)
1740 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1741 # Reject names that are not valid shell variable names.
1742 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1743 as_fn_error
"invalid package name: $ac_useropt"
1744 ac_useropt_orig
=$ac_useropt
1745 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1746 case $ac_user_opts in
1750 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1751 ac_unrecognized_sep
=', ';;
1753 eval with_
$ac_useropt=no
;;
1756 # Obsolete; use --with-x.
1759 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1760 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1761 ac_prev
=x_includes
;;
1762 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1763 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1764 x_includes
=$ac_optarg ;;
1766 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1767 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1768 ac_prev
=x_libraries
;;
1769 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1770 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1771 x_libraries
=$ac_optarg ;;
1773 -*) as_fn_error
"unrecognized option: \`$ac_option'
1774 Try \`$0 --help' for more information."
1778 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1779 # Reject names that are not valid shell variable names.
1780 case $ac_envvar in #(
1781 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1782 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1784 eval $ac_envvar=\
$ac_optarg
1785 export $ac_envvar ;;
1788 # FIXME: should be removed in autoconf 3.0.
1789 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1791 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1798 if test -n "$ac_prev"; then
1799 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1800 as_fn_error
"missing argument to $ac_option"
1803 if test -n "$ac_unrecognized_opts"; then
1804 case $enable_option_checking in
1806 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1807 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1811 # Check all directory arguments for consistency.
1812 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1813 datadir sysconfdir sharedstatedir localstatedir includedir \
1814 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1815 libdir localedir mandir
1817 eval ac_val
=\$
$ac_var
1818 # Remove trailing slashes.
1821 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1822 eval $ac_var=\
$ac_val;;
1824 # Be sure to have absolute directory names.
1826 [\\/$
]* | ?
:[\\/]* ) continue;;
1827 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1829 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1832 # There might be people who depend on the old broken behavior: `$host'
1833 # used to hold the argument of --host etc.
1834 # FIXME: To remove some day.
1837 target
=$target_alias
1839 # FIXME: To remove some day.
1840 if test "x$host_alias" != x
; then
1841 if test "x$build_alias" = x
; then
1842 cross_compiling
=maybe
1843 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1844 If a cross compiler is detected then cross compile mode will be used." >&2
1845 elif test "x$build_alias" != "x$host_alias"; then
1851 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1853 test "$silent" = yes && exec 6>/dev
/null
1856 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1857 ac_ls_di
=`ls -di .` &&
1858 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1859 as_fn_error
"working directory cannot be determined"
1860 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1861 as_fn_error
"pwd does not report name of working directory"
1864 # Find the source files, if location was not specified.
1865 if test -z "$srcdir"; then
1866 ac_srcdir_defaulted
=yes
1867 # Try the directory containing this script, then the parent directory.
1868 ac_confdir
=`$as_dirname -- "$as_myself" ||
1869 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1870 X"$as_myself" : 'X\(//\)[^/]' \| \
1871 X"$as_myself" : 'X\(//\)$' \| \
1872 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1873 $as_echo X"$as_myself" |
1874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1896 ac_srcdir_defaulted
=no
1898 if test ! -r "$srcdir/$ac_unique_file"; then
1899 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1900 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1902 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1904 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1906 # When building in place, set srcdir=.
1907 if test "$ac_abs_confdir" = "$ac_pwd"; then
1910 # Remove unnecessary trailing slashes from srcdir.
1911 # Double slashes in file names in object file debugging info
1912 # mess up M-x gdb in Emacs.
1914 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1916 for ac_var
in $ac_precious_vars; do
1917 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1918 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1919 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1920 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1924 # Report the --help message.
1926 if test "$ac_init_help" = "long"; then
1927 # Omit some internal or obsolete options to make the list less imposing.
1928 # This message is too long to be a string in the A/UX 3.1 sh.
1930 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1932 Usage: $0 [OPTION]... [VAR=VALUE]...
1934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1935 VAR=VALUE. See below for descriptions of some of the useful variables.
1937 Defaults for the options are specified in brackets.
1940 -h, --help display this help and exit
1941 --help=short display options specific to this package
1942 --help=recursive display the short help of all the included packages
1943 -V, --version display version information and exit
1944 -q, --quiet, --silent do not print \`checking...' messages
1945 --cache-file=FILE cache test results in FILE [disabled]
1946 -C, --config-cache alias for \`--cache-file=config.cache'
1947 -n, --no-create do not create output files
1948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1950 Installation directories:
1951 --prefix=PREFIX install architecture-independent files in PREFIX
1952 [$ac_default_prefix]
1953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1956 By default, \`make install' will install all the files in
1957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1959 for instance \`--prefix=\$HOME'.
1961 For better control, use the options below.
1963 Fine tuning of the installation directories:
1964 --bindir=DIR user executables [EPREFIX/bin]
1965 --sbindir=DIR system admin executables [EPREFIX/sbin]
1966 --libexecdir=DIR program executables [EPREFIX/libexec]
1967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1970 --libdir=DIR object code libraries [EPREFIX/lib]
1971 --includedir=DIR C header files [PREFIX/include]
1972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1973 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1974 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1975 --infodir=DIR info documentation [DATAROOTDIR/info]
1976 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1977 --mandir=DIR man documentation [DATAROOTDIR/man]
1978 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1979 --htmldir=DIR html documentation [DOCDIR]
1980 --dvidir=DIR dvi documentation [DOCDIR]
1981 --pdfdir=DIR pdf documentation [DOCDIR]
1982 --psdir=DIR ps documentation [DOCDIR]
1988 --program-prefix=PREFIX prepend PREFIX to installed program names
1989 --program-suffix=SUFFIX append SUFFIX to installed program names
1990 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1993 --x-includes=DIR X include files are
in DIR
1994 --x-libraries=DIR X library files are
in DIR
1997 --build=BUILD configure
for building on BUILD
[guessed
]
1998 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive
) echo "Configuration of emacs 24.1.50:";;
2009 --disable-option-checking ignore unrecognized
--enable/--with options
2010 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2011 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2012 --disable-ns-self-contained
2013 disable self contained build under NeXTstep
2014 --enable-asserts compile code with asserts enabled
2015 --enable-locallisppath=PATH
2016 directories Emacs should search
for lisp files
2017 specific to this site
2018 --enable-checking[=LIST
]
2019 enable expensive run-time checks. With LIST
, enable
2020 only specific categories of checks. Categories are
:
2021 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2022 stringfreelist
, xmallocoverrun
, conslist
2023 --enable-check-lisp-object-type
2024 enable compile
time checks
for the Lisp_Object data
2025 type. This is useful
for development
for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled
if GNU Make and
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support
for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2038 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2039 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2040 --without-pop don
't support POP mail retrieval with movemail
2041 --with-kerberos support Kerberos-authenticated POP
2042 --with-kerberos5 support Kerberos version 5 authenticated POP
2043 --with-hesiod support Hesiod to get the POP server host
2044 --with-mmdf support MMDF mailboxes
2045 --with-mail-unlink unlink, rather than empty, mail spool after reading
2046 --with-mailhost=HOSTNAME
2047 string giving default POP mail host
2048 --without-sound don't compile with sound support
2049 --without-sync-input process async input synchronously
2050 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2051 lucid or athena
, motif
, no
)
2052 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2053 --without-xpm don
't compile with XPM image support
2054 --without-jpeg don't compile with JPEG image support
2055 --without-tiff don
't compile with TIFF image support
2056 --without-gif don't compile with GIF image support
2057 --without-png don
't compile with PNG image support
2058 --without-rsvg don't compile with SVG image support
2059 --without-xml2 don
't compile with XML parsing support
2060 --without-imagemagick don't compile with ImageMagick image support
2061 --without-xft don
't use XFT for anti aliased fonts
2062 --without-libotf don't use libotf
for OpenType font support
2063 --without-m17n-flt don
't use m17n-flt for text shaping
2064 --without-toolkit-scroll-bars
2065 don't use Motif or Xaw3d scroll bars
2066 --without-xaw3d don
't use Xaw3d
2067 --without-xim don't use X11 XIM
2068 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2069 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2071 --without-dbus don't compile with D-Bus support
2072 --without-gconf don
't compile with GConf support
2073 --without-gsettings don't compile with GSettings support
2074 --without-selinux don
't compile with SELinux support
2075 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2076 --without-makeinfo don
't require makeinfo for building manuals
2077 --without-compress-info don't
compress the installed Info pages
2078 --with-pkg-config-prog=PATH
2079 path to pkg-config
for finding GTK and librsvg
2080 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2081 /usr
/lib
, or
/usr
/lib64 on some platforms.
2082 --with-gameuser=USER user
for shared game score files
2083 --with-gnustep-conf=PATH
2084 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2085 or
/etc
/GNUstep
/GNUstep.conf
2086 --with-x use the X Window System
2088 Some influential environment variables
:
2089 CC C compiler
command
2090 CFLAGS C compiler flags
2091 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2092 nonstandard directory
<lib dir
>
2093 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2094 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2095 you have headers
in a nonstandard directory
<include dir
>
2097 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2099 Use these variables to override the choices made by
`configure' or to help
2100 it to find libraries and programs with nonstandard names/locations.
2102 Report bugs to the package provider.
2107 if test "$ac_init_help" = "recursive"; then
2108 # If there are subdirs, report their specific --help.
2109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2110 test -d "$ac_dir" ||
2111 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2118 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2119 # A ".." for each directory in $ac_dir_suffix.
2120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2121 case $ac_top_builddir_sub in
2122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2126 ac_abs_top_builddir=$ac_pwd
2127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2128 # for backward compatibility:
2129 ac_top_builddir=$ac_top_build_prefix
2132 .) # We are building in place.
2134 ac_top_srcdir=$ac_top_builddir_sub
2135 ac_abs_top_srcdir=$ac_pwd ;;
2136 [\\/]* | ?:[\\/]* ) # Absolute name.
2137 ac_srcdir=$srcdir$ac_dir_suffix;
2138 ac_top_srcdir=$srcdir
2139 ac_abs_top_srcdir=$srcdir ;;
2141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2142 ac_top_srcdir=$ac_top_build_prefix$srcdir
2143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2147 cd "$ac_dir" || { ac_status=$?; continue; }
2148 # Check for guested configure.
2149 if test -f "$ac_srcdir/configure.gnu"; then
2151 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2152 elif test -f "$ac_srcdir/configure"; then
2154 $SHELL "$ac_srcdir/configure" --help=recursive
2156 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2158 cd "$ac_pwd" || { ac_status=$?; break; }
2162 test -n "$ac_init_help" && exit $ac_status
2163 if $ac_init_version; then
2165 emacs configure 24.1.50
2166 generated by GNU Autoconf 2.65
2168 Copyright (C) 2009 Free Software Foundation, Inc.
2169 This configure script is free software; the Free Software Foundation
2170 gives unlimited permission to copy, distribute and modify it.
2175 ## ------------------------ ##
2176 ## Autoconf initialization. ##
2177 ## ------------------------ ##
2179 # ac_fn_c_try_compile LINENO
2180 # --------------------------
2181 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_c_try_compile ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext
2186 if { { ac_try="$ac_compile"
2188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2189 *) ac_try_echo
=$ac_try;;
2191 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_compile") 2>conftest.err
2195 if test -s conftest.err
; then
2196 grep -v '^ *+' conftest.err
>conftest.er1
2197 cat conftest.er1
>&5
2198 mv -f conftest.er1 conftest.err
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_c_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest.
$ac_objext; then :
2207 $as_echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2213 as_fn_set_status
$ac_retval
2215 } # ac_fn_c_try_compile
2217 # ac_fn_c_try_cpp LINENO
2218 # ----------------------
2219 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } >/dev/null && {
2239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 as_fn_set_status $ac_retval
2254 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2255 # -------------------------------------------------------
2256 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2257 # the include files in INCLUDES and setting the cache variable VAR
2259 ac_fn_c_check_header_mongrel ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 $as_echo_n "(cached) " >&6
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2272 # Is the header compilable?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2274 $as_echo_n "checking $2 usability... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_header_compiler=yes
2283 ac_header_compiler=no
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2287 $as_echo "$ac_header_compiler" >&6; }
2289 # Is the header present?
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2291 $as_echo_n "checking $2 presence... " >&6; }
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 if ac_fn_c_try_cpp "$LINENO"; then :
2297 ac_header_preproc=yes
2299 ac_header_preproc=no
2301 rm -f conftest.err conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2303 $as_echo "$ac_header_preproc" >&6; }
2305 # So? What about this header?
2306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2309 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2315 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2317 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2319 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2321 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2329 $as_echo_n "(cached) " >&6
2331 eval "$3=\$ac_header_compiler"
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 } # ac_fn_c_check_header_mongrel
2341 # ac_fn_c_try_run LINENO
2342 # ----------------------
2343 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2344 # that executables *can* be run.
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 if { { ac_try="$ac_link"
2350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2351 *) ac_try_echo
=$ac_try;;
2353 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>&5
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2359 { { case "(($ac_try" in
2360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_try") 2>&5
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; }; }; then :
2371 $as_echo "$as_me: program exited with status $ac_status" >&5
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 ac_retval=$ac_status
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 as_fn_set_status $ac_retval
2383 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2384 # -------------------------------------------------------
2385 # Tests whether HEADER exists and can be compiled using the include files in
2386 # INCLUDES, setting the cache variable VAR accordingly.
2387 ac_fn_c_check_header_compile ()
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2393 $as_echo_n "(cached) " >&6
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2400 if ac_fn_c_try_compile "$LINENO"; then :
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 } # ac_fn_c_check_header_compile
2414 # ac_fn_c_try_link LINENO
2415 # -----------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2424 *) ac_try_echo
=$ac_try;;
2426 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2430 if test -s conftest.err
; then
2431 grep -v '^ *+' conftest.err
>conftest.er1
2432 cat conftest.er1
>&5
2433 mv -f conftest.er1 conftest.err
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_c_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest
$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest
$ac_exeext
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.
$ac_ext >&5
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2456 as_fn_set_status
$ac_retval
2458 } # ac_fn_c_try_link
2460 # ac_fn_c_check_decl LINENO SYMBOL VAR
2461 # ------------------------------------
2462 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2463 ac_fn_c_check_decl
()
2465 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2467 $as_echo_n "checking whether $2 is declared... " >&6; }
2468 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2485 if ac_fn_c_try_compile
"$LINENO"; then :
2490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2497 } # ac_fn_c_check_decl
2499 # ac_fn_c_check_func LINENO FUNC VAR
2500 # ----------------------------------
2501 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2502 ac_fn_c_check_func
()
2504 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2514 #define $2 innocuous_$2
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $2 (); below.
2518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2519 <limits.h> exists even on freestanding compilers. */
2522 # include <limits.h>
2524 # include <assert.h>
2529 /* Override any GCC internal prototype to avoid an error.
2530 Use char because int might match the return type of a GCC
2531 builtin and then its argument prototype would still apply. */
2536 /* The GNU C library defines this for functions which it implements
2537 to always fail with ENOSYS. Some functions are actually named
2538 something starting with __ and the normal name is an alias. */
2539 #if defined __stub_$2 || defined __stub___$2
2551 if ac_fn_c_try_link
"$LINENO"; then :
2556 rm -f core conftest.err conftest.
$ac_objext \
2557 conftest
$ac_exeext conftest.
$ac_ext
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2564 } # ac_fn_c_check_func
2566 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2567 # ----------------------------------------------------
2568 # Tries to find if the field MEMBER exists in type AGGR, after including
2569 # INCLUDES, setting cache variable VAR accordingly.
2570 ac_fn_c_check_member
()
2572 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2574 $as_echo_n "checking for $2.$3... " >&6; }
2575 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2591 if ac_fn_c_try_compile
"$LINENO"; then :
2594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2601 if (sizeof ac_aggr.$3)
2607 if ac_fn_c_try_compile
"$LINENO"; then :
2612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2621 } # ac_fn_c_check_member
2623 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2624 # --------------------------------------------
2625 # Tries to find the compile-time value of EXPR in a program that includes
2626 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2628 ac_fn_c_compute_int
()
2630 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2631 if test "$cross_compiling" = yes; then
2632 # Depending upon the size, compute the lo and hi bounds.
2633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2639 static int test_array [1 - 2 * !(($2) >= 0)];
2646 if ac_fn_c_try_compile
"$LINENO"; then :
2649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2655 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2662 if ac_fn_c_try_compile
"$LINENO"; then :
2663 ac_hi
=$ac_mid; break
2665 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2666 if test $ac_lo -le $ac_mid; then
2670 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2681 static int test_array [1 - 2 * !(($2) < 0)];
2688 if ac_fn_c_try_compile
"$LINENO"; then :
2691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2697 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2704 if ac_fn_c_try_compile
"$LINENO"; then :
2705 ac_lo
=$ac_mid; break
2707 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2708 if test $ac_mid -le $ac_hi; then
2712 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2722 # Binary search between lo and hi bounds.
2723 while test "x$ac_lo" != "x$ac_hi"; do
2724 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2731 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2738 if ac_fn_c_try_compile
"$LINENO"; then :
2741 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2746 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2753 static long int longval () { return $2; }
2754 static unsigned long int ulongval () { return $2; }
2761 FILE *f = fopen ("conftest.val", "w");
2766 long int i = longval ();
2769 fprintf (f, "%ld", i);
2773 unsigned long int i = ulongval ();
2776 fprintf (f, "%lu", i);
2778 /* Do not output a trailing newline, as this causes \r\n confusion
2779 on some platforms. */
2780 return ferror (f) || fclose (f) != 0;
2786 if ac_fn_c_try_run
"$LINENO"; then :
2787 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2796 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2797 as_fn_set_status
$ac_retval
2799 } # ac_fn_c_compute_int
2801 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2802 # -------------------------------------------
2803 # Tests whether TYPE exists after having included INCLUDES, setting cache
2804 # variable VAR accordingly.
2805 ac_fn_c_check_type
()
2807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2809 $as_echo_n "checking for $2... " >&6; }
2810 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2811 $as_echo_n "(cached) " >&6
2814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2826 if ac_fn_c_try_compile
"$LINENO"; then :
2827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2839 if ac_fn_c_try_compile
"$LINENO"; then :
2844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2850 $as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2853 } # ac_fn_c_check_type
2855 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2856 # ----------------------------------------------
2857 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2858 ac_fn_c_check_header_preproc
()
2860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2870 if ac_fn_c_try_cpp
"$LINENO"; then :
2875 rm -f conftest.err conftest.
$ac_ext
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879 $as_echo "$ac_res" >&6; }
2880 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2882 } # ac_fn_c_check_header_preproc
2883 cat >config.log
<<_ACEOF
2884 This file contains any messages produced by compilers while
2885 running configure, to aid debugging if configure makes a mistake.
2887 It was created by emacs $as_me 24.1.50, which was
2888 generated by GNU Autoconf 2.65. Invocation command line was
2900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 $as_echo "PATH: $as_dir"
2940 # Keep a trace of the command line.
2941 # Strip out --no-create and --no-recursion so they do not pile up.
2942 # Strip out --silent because we don't want to record it for future runs.
2943 # Also quote any args containing shell meta-characters.
2944 # Make two passes to allow for proper duplicate-argument suppression.
2948 ac_must_keep_next
=false
2954 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2955 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2956 |
-silent |
--silent |
--silen |
--sile |
--sil)
2959 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2964 as_fn_append ac_configure_args1
" '$ac_arg'"
2965 if test $ac_must_keep_next = true
; then
2966 ac_must_keep_next
=false
# Got value, back to normal.
2969 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2970 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2971 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2972 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2973 case "$ac_configure_args0 " in
2974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 -* ) ac_must_keep_next
=true
;;
2980 as_fn_append ac_configure_args
" '$ac_arg'"
2985 { ac_configure_args0
=; unset ac_configure_args0
;}
2986 { ac_configure_args1
=; unset ac_configure_args1
;}
2988 # When interrupted or exit'd, cleanup temporary files, and complete
2989 # config.log. We remove comments because anyway the quotes in there
2990 # would cause problems or look ugly.
2991 # WARNING: Use '\'' to represent an apostrophe within the trap.
2992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2993 trap 'exit_status=$?
2994 # Save into config.log some information that might help in debugging.
2999 ## ---------------- ##
3000 ## Cache variables. ##
3001 ## ---------------- ##
3004 # The following way of writing the cache mishandles newlines in values,
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017 *) { eval $ac_var=; unset $ac_var;} ;;
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3037 ## ----------------- ##
3038 ## Output variables. ##
3039 ## ----------------- ##
3042 for ac_var in $ac_subst_vars
3044 eval ac_val=\$$ac_var
3046 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3048 $as_echo "$ac_var='\''$ac_val'\''"
3052 if test -n "$ac_subst_files"; then
3054 ## ------------------- ##
3055 ## File substitutions. ##
3056 ## ------------------- ##
3059 for ac_var
in $ac_subst_files
3061 eval ac_val
=\$
$ac_var
3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3065 $as_echo "$ac_var='\''$ac_val'\''"
3070 if test -s confdefs.h; then
3080 test "$ac_signal" != 0 &&
3081 $as_echo "$as_me: caught signal $ac_signal"
3082 $as_echo "$as_me: exit $exit_status"
3084 rm -f core *.core core.conftest.* &&
3085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3088 for ac_signal
in 1 2 13 15; do
3089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3094 rm -f -r conftest
* confdefs.h
3096 $as_echo "/* confdefs.h */" > confdefs.h
3098 # Predefined preprocessor variables.
3100 cat >>confdefs.h
<<_ACEOF
3101 #define PACKAGE_NAME "$PACKAGE_NAME"
3104 cat >>confdefs.h
<<_ACEOF
3105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3108 cat >>confdefs.h
<<_ACEOF
3109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3112 cat >>confdefs.h
<<_ACEOF
3113 #define PACKAGE_STRING "$PACKAGE_STRING"
3116 cat >>confdefs.h
<<_ACEOF
3117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3120 cat >>confdefs.h
<<_ACEOF
3121 #define PACKAGE_URL "$PACKAGE_URL"
3125 # Let the site file select an alternate cache file if it wants to.
3126 # Prefer an explicitly selected file to automatically selected ones.
3129 if test -n "$CONFIG_SITE"; then
3130 ac_site_file1
=$CONFIG_SITE
3131 elif test "x$prefix" != xNONE
; then
3132 ac_site_file1
=$prefix/share
/config.site
3133 ac_site_file2
=$prefix/etc
/config.site
3135 ac_site_file1
=$ac_default_prefix/share
/config.site
3136 ac_site_file2
=$ac_default_prefix/etc
/config.site
3138 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3140 test "x$ac_site_file" = xNONE
&& continue
3141 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144 sed 's/^/| /' "$ac_site_file" >&5
3149 if test -r "$cache_file"; then
3150 # Some versions of bash will fail to source /dev/null (special files
3151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3152 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3154 $as_echo "$as_me: loading cache $cache_file" >&6;}
3156 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3157 *) .
"./$cache_file";;
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3162 $as_echo "$as_me: creating cache $cache_file" >&6;}
3166 as_fn_append ac_func_list
" readlinkat"
3167 gl_getopt_required
=GNU
3168 as_fn_append ac_header_list
" getopt.h"
3169 as_fn_append ac_func_list
" gettimeofday"
3170 as_fn_append ac_func_list
" nanotime"
3171 as_fn_append ac_header_list
" sys/time.h"
3172 as_fn_append ac_header_list
" sys/socket.h"
3173 as_fn_append ac_header_list
" wchar.h"
3174 as_fn_append ac_header_list
" stdint.h"
3175 as_fn_append ac_header_list
" inttypes.h"
3176 as_fn_append ac_func_list
" lstat"
3177 as_fn_append ac_header_list
" unistd.h"
3178 as_fn_append ac_func_list
" alarm"
3179 as_fn_append ac_header_list
" sys/select.h"
3180 as_fn_append ac_func_list
" pselect"
3181 as_fn_append ac_func_list
" pthread_sigmask"
3182 as_fn_append ac_func_list
" readlink"
3183 as_fn_append ac_func_list
" tzset"
3184 as_fn_append ac_func_list
" strtoimax"
3185 as_fn_append ac_func_list
" strtoumax"
3186 as_fn_append ac_func_list
" symlink"
3187 as_fn_append ac_header_list
" sys/stat.h"
3188 as_fn_append ac_func_list
" localtime_r"
3189 as_fn_append ac_header_list
" utime.h"
3190 as_fn_append ac_func_list
" futimes"
3191 as_fn_append ac_func_list
" futimesat"
3192 as_fn_append ac_func_list
" futimens"
3193 as_fn_append ac_func_list
" utimensat"
3194 as_fn_append ac_func_list
" lutimes"
3195 as_fn_append ac_header_list
" sys/param.h"
3196 as_fn_append ac_header_list
" linux/version.h"
3197 as_fn_append ac_header_list
" sys/systeminfo.h"
3198 as_fn_append ac_header_list
" stdio_ext.h"
3199 as_fn_append ac_header_list
" fcntl.h"
3200 as_fn_append ac_header_list
" coff.h"
3201 as_fn_append ac_header_list
" pty.h"
3202 as_fn_append ac_header_list
" sys/vlimit.h"
3203 as_fn_append ac_header_list
" sys/resource.h"
3204 as_fn_append ac_header_list
" sys/utsname.h"
3205 as_fn_append ac_header_list
" pwd.h"
3206 as_fn_append ac_header_list
" utmp.h"
3207 as_fn_append ac_header_list
" dirent.h"
3208 as_fn_append ac_header_list
" util.h"
3209 as_fn_append ac_header_list
" stdlib.h"
3210 as_fn_append ac_header_list
" pthread.h"
3211 as_fn_append ac_header_list
" malloc/malloc.h"
3212 as_fn_append ac_header_list
" maillock.h"
3213 as_fn_append ac_header_list
" sys/un.h"
3214 # Check that the precious variables saved in the cache have kept the same
3216 ac_cache_corrupted
=false
3217 for ac_var
in $ac_precious_vars; do
3218 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3219 eval ac_new_set
=\
$ac_env_${ac_var}_set
3220 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3221 eval ac_new_val
=\
$ac_env_${ac_var}_value
3222 case $ac_old_set,$ac_new_set in
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3226 ac_cache_corrupted
=: ;;
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3230 ac_cache_corrupted
=: ;;
3233 if test "x$ac_old_val" != "x$ac_new_val"; then
3234 # differences in whitespace do not lead to failure.
3235 ac_old_val_w
=`echo x $ac_old_val`
3236 ac_new_val_w
=`echo x $ac_new_val`
3237 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3240 ac_cache_corrupted
=:
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3244 eval $ac_var=\
$ac_old_val
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3247 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3249 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3252 # Pass precious variables to config.status.
3253 if test "$ac_new_set" = set; then
3255 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3256 *) ac_arg
=$ac_var=$ac_new_val ;;
3258 case " $ac_configure_args " in
3259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3260 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3264 if $ac_cache_corrupted; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3269 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3271 ## -------------------- ##
3272 ## Main body of script. ##
3273 ## -------------------- ##
3276 ac_cpp
='$CPP $CPPFLAGS'
3277 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3282 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3286 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3287 for ac_t
in install-sh
install.sh shtool
; do
3288 if test -f "$ac_dir/$ac_t"; then
3290 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3295 if test -z "$ac_aux_dir"; then
3296 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3304 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3305 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3308 am__api_version
='1.11'
3310 # Find a good install program. We prefer a C program (faster),
3311 # so one script is as good as another. But avoid the broken or
3312 # incompatible versions:
3313 # SysV /etc/install, /usr/sbin/install
3314 # SunOS /usr/etc/install
3315 # IRIX /sbin/install
3317 # AmigaOS /C/install, which installs bootblocks on floppy discs
3318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3321 # OS/2's system install, which has a completely different semantic
3322 # ./install, which can be erroneously created by make from ./install.sh.
3323 # Reject install programs that cannot install multiple files.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3325 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3326 if test -z "$INSTALL"; then
3327 if test "${ac_cv_path_install+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir
=.
3335 # Account for people who put trailing slashes in PATH elements.
3336 case $as_dir/ in #((
3337 .
/ | .
// |
/[cC
]/* | \
3338 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3339 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3342 # OSF1 and SCO ODT 3.0 have their own names for install.
3343 # Don't use installbsd from OSF since it installs stuff as root
3345 for ac_prog
in ginstall scoinst
install; do
3346 for ac_exec_ext
in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3348 if test $ac_prog = install &&
3349 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3350 # AIX install. It has an incompatible calling convention.
3352 elif test $ac_prog = install &&
3353 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3354 # program-specific install script used by HP pwplus--don't use.
3357 rm -rf conftest.one conftest.two conftest.dir
3358 echo one
> conftest.one
3359 echo two
> conftest.two
3361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3362 test -s conftest.one
&& test -s conftest.two
&&
3363 test -s conftest.dir
/conftest.one
&&
3364 test -s conftest.dir
/conftest.two
3366 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3379 rm -rf conftest.one conftest.two conftest.dir
3382 if test "${ac_cv_path_install+set}" = set; then
3383 INSTALL
=$ac_cv_path_install
3385 # As a last resort, use the slow shell script. Don't cache a
3386 # value for INSTALL within a source directory, because that will
3387 # break other packages using the cache if that directory is
3388 # removed, or if the value is a relative name.
3389 INSTALL
=$ac_install_sh
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3393 $as_echo "$INSTALL" >&6; }
3395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3396 # It thinks the first close brace ends the variable substitution.
3397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3401 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3404 $as_echo_n "checking whether build environment is sane... " >&6; }
3407 echo timestamp
> conftest.
file
3408 # Reject unsafe characters in $srcdir or the absolute working directory
3409 # name. Accept space and tab only in the latter.
3413 *[\\\"\
#\$\&\'\`$am_lf]*)
3414 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3417 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3418 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3421 # Do `set' in a subshell so we don't clobber the current shell's
3422 # arguments. Must try -L first in case configure is actually a
3423 # symlink; some systems play weird games with the mod time of symlinks
3424 # (eg FreeBSD returns the mod time of the symlink's containing
3427 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3428 if test "$*" = "X"; then
3430 set X
`ls -t "$srcdir/configure" conftest.file`
3433 if test "$*" != "X $srcdir/configure conftest.file" \
3434 && test "$*" != "X conftest.file $srcdir/configure"; then
3436 # If neither matched, then we have a broken ls. This can happen
3437 # if, for instance, CONFIG_SHELL is bash and it inherits a
3438 # broken ls alias from the environment. This has actually
3439 # happened. Such a system could not be considered "sane".
3440 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3441 alias in your environment" "$LINENO" 5
3444 test "$2" = conftest.
file
3450 as_fn_error
"newly created file is older than distributed files!
3451 Check your system clock" "$LINENO" 5
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3455 test "$program_prefix" != NONE
&&
3456 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE
&&
3459 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3465 # expand $ac_aux_dir to an absolute path
3466 am_aux_dir
=`cd $ac_aux_dir && pwd`
3468 if test x
"${MISSING+set}" != xset
; then
3471 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3473 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3476 # Use eval to expand $SHELL
3477 if eval "$MISSING --run true"; then
3478 am_missing_run
="$MISSING --run "
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3482 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3485 if test x
"${install_sh}" != xset
; then
3488 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3490 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3494 # Installed binaries are usually stripped using `strip' when the user
3495 # run `make install-strip'. However `strip' might not be the right
3496 # tool to use in cross-compilation environments, therefore Automake
3497 # will honor the `STRIP' environment variable to overrule this program.
3498 if test "$cross_compiling" != no
; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_STRIP+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$STRIP"; then
3508 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 STRIP
=$ac_cv_prog_STRIP
3528 if test -n "$STRIP"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530 $as_echo "$STRIP" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$ac_cv_prog_STRIP"; then
3540 # Extract the first word of "strip", so it can be a program name with args.
3541 set dummy strip
; ac_word
=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$ac_ct_STRIP"; then
3548 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_STRIP
="strip"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570 $as_echo "$ac_ct_STRIP" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3576 if test "x$ac_ct_STRIP" = x
; then
3579 case $cross_compiling:$ac_tool_warned in
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned
=yes ;;
3588 STRIP
="$ac_cv_prog_STRIP"
3592 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597 if test "${ac_cv_path_mkdir+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3604 test -z "$as_dir" && as_dir
=.
3605 for ac_prog
in mkdir gmkdir
; do
3606 for ac_exec_ext
in '' $ac_executable_extensions; do
3607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609 'mkdir (GNU coreutils) '* | \
3610 'mkdir (coreutils) '* | \
3611 'mkdir (fileutils) '4.1*)
3612 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3622 test -d .
/--version && rmdir .
/--version
3623 if test "${ac_cv_path_mkdir+set}" = set; then
3624 MKDIR_P
="$ac_cv_path_mkdir -p"
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for MKDIR_P within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 MKDIR_P
="$ac_install_sh -d"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634 $as_echo "$MKDIR_P" >&6; }
3639 [\\/$
]* | ?
:[\\/]*) ;;
3640 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3643 for ac_prog
in gawk mawk nawk
awk
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy
$ac_prog; ac_word
=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_AWK+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -n "$AWK"; then
3653 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir
=.
3660 for ac_exec_ext
in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_AWK
="$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 if test -n "$AWK"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3675 $as_echo "$AWK" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3682 test -n "$AWK" && break
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3688 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3689 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3690 $as_echo_n "(cached) " >&6
3692 cat >conftest.
make <<\_ACEOF
3695 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3700 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3702 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3706 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 SET_MAKE
="MAKE=${MAKE-make}"
3716 rm -rf .tst
2>/dev
/null
3717 mkdir .tst
2>/dev
/null
3718 if test -d .tst
; then
3723 rmdir .tst
2>/dev
/null
3725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3727 # is not polluted with repeated "-I."
3728 am__isrc
=' -I$(srcdir)'
3729 # test to see if srcdir already configured
3730 if test -f $srcdir/config.status
; then
3731 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3735 # test whether we have cygpath
3736 if test -z "$CYGPATH_W"; then
3737 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3738 CYGPATH_W
='cygpath -w'
3745 # Define the identity of the package.
3750 cat >>confdefs.h
<<_ACEOF
3751 #define PACKAGE "$PACKAGE"
3755 cat >>confdefs.h
<<_ACEOF
3756 #define VERSION "$VERSION"
3759 # Some tools Automake needs.
3761 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3764 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3767 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3770 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3773 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3775 # We need awk for the "check" target. The system "awk" is bad on
3777 # Always define AMTAR for backward compatibility.
3779 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3781 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3790 lispdir
='${datadir}/emacs/${version}/lisp'
3791 leimdir
='${datadir}/emacs/${version}/leim'
3792 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3793 '${datadir}/emacs/site-lisp'
3794 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3795 etcdir
='${datadir}/emacs/${version}/etc'
3796 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3797 docdir
='${datadir}/emacs/${version}/etc'
3798 gamedir
='${localstatedir}/games/emacs'
3803 # Check whether --with-pop was given.
3804 if test "${with_pop+set}" = set; then :
3810 if test "$with_pop" = yes; then
3811 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3816 # Check whether --with-kerberos was given.
3817 if test "${with_kerberos+set}" = set; then :
3818 withval
=$with_kerberos;
3823 if test "$with_kerberos" != no
; then
3824 $as_echo "#define KERBEROS 1" >>confdefs.h
3829 # Check whether --with-kerberos5 was given.
3830 if test "${with_kerberos5+set}" = set; then :
3831 withval
=$with_kerberos5;
3836 if test "${with_kerberos5}" != no
; then
3837 if test "${with_kerberos}" = no
; then
3839 $as_echo "#define KERBEROS 1" >>confdefs.h
3843 $as_echo "#define KERBEROS5 1" >>confdefs.h
3848 # Check whether --with-hesiod was given.
3849 if test "${with_hesiod+set}" = set; then :
3850 withval
=$with_hesiod;
3855 if test "$with_hesiod" != no
; then
3857 $as_echo "#define HESIOD 1" >>confdefs.h
3862 # Check whether --with-mmdf was given.
3863 if test "${with_mmdf+set}" = set; then :
3869 if test "$with_mmdf" != no
; then
3871 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3876 # Check whether --with-mail-unlink was given.
3877 if test "${with_mail_unlink+set}" = set; then :
3878 withval
=$with_mail_unlink;
3883 if test "$with_mail_unlink" != no
; then
3885 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3890 # Check whether --with-mailhost was given.
3891 if test "${with_mailhost+set}" = set; then :
3892 withval
=$with_mailhost;
3893 cat >>confdefs.h
<<_ACEOF
3894 #define MAILHOST "$withval"
3901 # Check whether --with-sound was given.
3902 if test "${with_sound+set}" = set; then :
3903 withval
=$with_sound;
3910 # Check whether --with-sync-input was given.
3911 if test "${with_sync_input+set}" = set; then :
3912 withval
=$with_sync_input;
3917 if test "$with_sync_input" = yes; then
3919 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3924 # Check whether --with-x-toolkit was given.
3925 if test "${with_x_toolkit+set}" = set; then :
3926 withval
=$with_x_toolkit; case "${withval}" in
3927 y | ye |
yes ) val
=gtk
;;
3929 l | lu | luc | luci | lucid
) val
=lucid
;;
3930 a |
at | ath | athe | athen | athena
) val
=athena
;;
3931 m | mo | mot | moti | motif
) val
=motif
;;
3932 g | gt | gtk
) val
=gtk
;;
3935 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3936 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3937 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3946 # Check whether --with-wide-int was given.
3947 if test "${with_wide_int+set}" = set; then :
3948 withval
=$with_wide_int;
3953 if test "$with_wide_int" = yes; then
3955 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3960 # Check whether --with-xpm was given.
3961 if test "${with_xpm+set}" = set; then :
3968 # Check whether --with-jpeg was given.
3969 if test "${with_jpeg+set}" = set; then :
3976 # Check whether --with-tiff was given.
3977 if test "${with_tiff+set}" = set; then :
3984 # Check whether --with-gif was given.
3985 if test "${with_gif+set}" = set; then :
3992 # Check whether --with-png was given.
3993 if test "${with_png+set}" = set; then :
4000 # Check whether --with-rsvg was given.
4001 if test "${with_rsvg+set}" = set; then :
4008 # Check whether --with-xml2 was given.
4009 if test "${with_xml2+set}" = set; then :
4016 # Check whether --with-imagemagick was given.
4017 if test "${with_imagemagick+set}" = set; then :
4018 withval
=$with_imagemagick;
4020 with_imagemagick
=yes
4025 # Check whether --with-xft was given.
4026 if test "${with_xft+set}" = set; then :
4033 # Check whether --with-libotf was given.
4034 if test "${with_libotf+set}" = set; then :
4035 withval
=$with_libotf;
4041 # Check whether --with-m17n-flt was given.
4042 if test "${with_m17n_flt+set}" = set; then :
4043 withval
=$with_m17n_flt;
4050 # Check whether --with-toolkit-scroll-bars was given.
4051 if test "${with_toolkit_scroll_bars+set}" = set; then :
4052 withval
=$with_toolkit_scroll_bars;
4054 with_toolkit_scroll_bars
=yes
4058 # Check whether --with-xaw3d was given.
4059 if test "${with_xaw3d+set}" = set; then :
4060 withval
=$with_xaw3d;
4066 # Check whether --with-xim was given.
4067 if test "${with_xim+set}" = set; then :
4074 # Check whether --with-ns was given.
4075 if test "${with_ns+set}" = set; then :
4083 # Check whether --with-gpm was given.
4084 if test "${with_gpm+set}" = set; then :
4091 # Check whether --with-dbus was given.
4092 if test "${with_dbus+set}" = set; then :
4099 # Check whether --with-gconf was given.
4100 if test "${with_gconf+set}" = set; then :
4101 withval
=$with_gconf;
4107 # Check whether --with-gsettings was given.
4108 if test "${with_gsettings+set}" = set; then :
4109 withval
=$with_gsettings;
4115 # Check whether --with-selinux was given.
4116 if test "${with_selinux+set}" = set; then :
4117 withval
=$with_selinux;
4123 # Check whether --with-gnutls was given.
4124 if test "${with_gnutls+set}" = set; then :
4125 withval
=$with_gnutls;
4131 ## For the times when you want to build Emacs but don't have
4132 ## a suitable makeinfo, and can live without the manuals.
4134 # Check whether --with-makeinfo was given.
4135 if test "${with_makeinfo+set}" = set; then :
4136 withval
=$with_makeinfo;
4142 ## Makefile.in needs the cache file name.
4145 ## This is an option because I do not know if all info/man support
4146 ## compressed files, nor how to test if they do so.
4148 # Check whether --with-compress-info was given.
4149 if test "${with_compress_info+set}" = set; then :
4150 withval
=$with_compress_info;
4152 with_compress_info
=yes
4155 if test $with_compress_info = yes; then
4163 # Check whether --with-pkg-config-prog was given.
4164 if test "${with_pkg_config_prog+set}" = set; then :
4165 withval
=$with_pkg_config_prog;
4168 if test "X${with_pkg_config_prog}" != X
; then
4169 if test "${with_pkg_config_prog}" != yes; then
4170 PKG_CONFIG
="${with_pkg_config_prog}"
4176 # Check whether --with-crt-dir was given.
4177 if test "${with_crt_dir+set}" = set; then :
4178 withval
=$with_crt_dir;
4181 CRT_DIR
="${with_crt_dir}"
4184 # Check whether --with-gameuser was given.
4185 if test "${with_gameuser+set}" = set; then :
4186 withval
=$with_gameuser;
4189 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4190 && gameuser
="${with_gameuser}"
4191 test "X$gameuser" = X
&& gameuser
=games
4194 # Check whether --with-gnustep-conf was given.
4195 if test "${with_gnustep_conf+set}" = set; then :
4196 withval
=$with_gnustep_conf;
4199 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4200 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4201 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4202 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4204 # Check whether --enable-ns-self-contained was given.
4205 if test "${enable_ns_self_contained+set}" = set; then :
4206 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4208 EN_NS_SELF_CONTAINED
=yes
4212 # Check whether --enable-asserts was given.
4213 if test "${enable_asserts+set}" = set; then :
4214 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4220 # Check whether --enable-locallisppath was given.
4221 if test "${enable_locallisppath+set}" = set; then :
4222 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4224 elif test "${enableval}" != "yes"; then
4225 locallisppath
=${enableval}
4230 # Check whether --enable-checking was given.
4231 if test "${enable_checking+set}" = set; then :
4232 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4235 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4236 for check
in $ac_checking_flags
4239 # these set all the flags to specific states
4240 yes) ac_enable_checking
=1 ;;
4241 no
) ac_enable_checking
= ;
4242 ac_gc_check_stringbytes
= ;
4243 ac_gc_check_string_overrun
= ;
4244 ac_gc_check_string_free_list
= ;
4245 ac_xmalloc_overrun
= ;
4246 ac_gc_check_cons_list
= ;;
4247 all
) ac_enable_checking
=1 ;
4248 ac_gc_check_stringbytes
=1 ;
4249 ac_gc_check_string_overrun
=1 ;
4250 ac_gc_check_string_free_list
=1 ;
4251 ac_xmalloc_overrun
=1 ;
4252 ac_gc_check_cons_list
=1 ;;
4253 # these enable particular checks
4254 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4255 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4256 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4257 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4258 conslist
) ac_gc_check_cons_list
=1 ;;
4259 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4264 if test x
$ac_enable_checking != x
; then
4266 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4269 if test x
$ac_gc_check_stringbytes != x
; then
4271 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4274 if test x
$ac_gc_check_string_overrun != x
; then
4276 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4279 if test x
$ac_gc_check_string_free_list != x
; then
4281 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4284 if test x
$ac_xmalloc_overrun != x
; then
4286 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4289 if test x
$ac_gc_check_cons_list != x
; then
4291 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4295 # Check whether --enable-check-lisp-object-type was given.
4296 if test "${enable_check_lisp_object_type+set}" = set; then :
4297 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4299 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4306 # Check whether --enable-profiling was given.
4307 if test "${enable_profiling+set}" = set; then :
4308 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4311 if test x
$ac_enable_profiling != x
; then
4312 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4318 # Check whether --enable-autodepend was given.
4319 if test "${enable_autodepend+set}" = set; then :
4320 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4322 ac_enable_autodepend
=yes
4326 #### Make srcdir absolute, if it isn't already. It's important to
4327 #### avoid running the path through pwd unnecessarily, since pwd can
4328 #### give you automounter prefixes, which can go away. We do all this
4329 #### so Emacs can find its files when run uninstalled.
4330 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4335 ## We may be able to use the $PWD environment variable to make this
4336 ## absolute. But sometimes PWD is inaccurate.
4337 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4338 ## but that tested only for a well-formed and valid PWD,
4339 ## it did not object when PWD was well-formed and valid but just wrong.
4340 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4344 srcdir
="`(cd ${srcdir}; pwd)`"
4347 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4350 #### Given the configuration name, set opsysfile to the
4351 #### name of s/*.h file we should use.
4353 ### Canonicalize the configuration name.
4355 # Make sure we can run config.sub.
4356 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4357 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4360 $as_echo_n "checking build system type... " >&6; }
4361 if test "${ac_cv_build+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 ac_build_alias
=$build_alias
4365 test "x$ac_build_alias" = x
&&
4366 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4367 test "x$ac_build_alias" = x
&&
4368 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4369 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4370 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4374 $as_echo "$ac_cv_build" >&6; }
4375 case $ac_cv_build in
4377 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4380 ac_save_IFS
=$IFS; IFS
='-'
4386 # Remember, the first character of IFS is used to create $*,
4387 # except with old shells:
4390 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4394 $as_echo_n "checking host system type... " >&6; }
4395 if test "${ac_cv_host+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4398 if test "x$host_alias" = x
; then
4399 ac_cv_host
=$ac_cv_build
4401 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4402 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4407 $as_echo "$ac_cv_host" >&6; }
4410 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4413 ac_save_IFS
=$IFS; IFS
='-'
4419 # Remember, the first character of IFS is used to create $*,
4420 # except with old shells:
4423 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4427 configuration
=${host_alias-${build_alias-$host}}
4431 ### If you add support for a new configuration, add code to this
4432 ### switch statement to recognize your configuration name and select
4433 ### the appropriate operating system file.
4435 ### You would hope that you could choose an s/*.h
4436 ### file based on the operating system portion. However, it turns out
4437 ### that each s/*.h file is pretty manufacturer-specific.
4438 ### So we basically have to have a special case for each
4439 ### configuration name.
4441 ### As far as handling version numbers on operating systems is
4442 ### concerned, make sure things will fail in a fixable way. If
4443 ### /etc/MACHINES doesn't say anything about version numbers, be
4444 ### prepared to handle anything reasonably. If version numbers
4445 ### matter, be sure /etc/MACHINES says something about it.
4447 opsys
='' unported
=no
4448 case "${canonical}" in
4450 ## GNU/Linux and similar ports
4460 ## FreeBSD kernel + glibc based userland
4475 ## Apple Darwin / Mac OS X
4477 case "${canonical}" in
4484 ## Use fink packages if available.
4485 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4486 ## if test -d /sw/include && test -d /sw/lib; then
4487 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4488 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa
*-hp-hpux10.2
* )
4496 hppa
*-hp-hpux1[1-9]* )
4498 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4502 rs6000-ibm-aix4.
[23]* )
4505 powerpc-ibm-aix4.
[23]* )
4508 rs6000-ibm-aix
[56]* )
4511 powerpc-ibm-aix
[56]* )
4515 ## Silicon Graphics machines
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4527 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4528 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4529 case "${canonical}" in
4531 amd64-
*-*|x86_64-
*-*) ;;
4535 case "${canonical}" in
4536 *-sunos5.6
* |
*-solaris2.6
* )
4540 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4542 emacs_check_sunpro_c
=yes
4544 *-sunos5* |
*-solaris* )
4546 emacs_check_sunpro_c
=yes
4549 ## Watch out for a compiler that we know will not work.
4550 case "${canonical}" in
4551 *-solaris* |
*-sunos5* )
4552 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4553 ## /usr/ucb/cc doesn't work;
4554 ## we should find some other compiler that does work.
4562 ## Intel 386 machines where we don't care about the manufacturer.
4564 case "${canonical}" in
4565 *-cygwin ) opsys
=cygwin
;;
4566 *-darwin* ) opsys
=darwin
;;
4567 *-sysv4.2uw
* ) opsys
=unixware
;;
4568 *-sysv5uw* ) opsys
=unixware
;;
4569 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4570 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4579 ### If the code above didn't choose an operating system, just choose
4580 ### an operating system based on the configuration name. You really
4581 ### only want to use this when you have no idea what the right
4582 ### operating system is; if you know what operating systems a machine
4583 ### runs, it's cleaner to make it explicit in the case statement
4585 if test x
"${opsys}" = x
; then
4586 case "${canonical}" in
4587 *-gnu* ) opsys
=gnu
;;
4596 if test $unported = yes; then
4597 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4598 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4601 opsysfile
="s/${opsys}.h"
4604 #### Choose a compiler.
4607 ac_cpp
='$CPP $CPPFLAGS'
4608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_CC+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4619 if test -n "$CC"; then
4620 ac_cv_prog_CC
="$CC" # Let the user override the test.
4622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir
=.
4627 for ac_exec_ext
in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 if test -n "$CC"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4642 $as_echo "$CC" >&6; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4650 if test -z "$ac_cv_prog_CC"; then
4652 # Extract the first word of "gcc", so it can be a program name with args.
4653 set dummy gcc
; ac_word
=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC
="gcc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4688 if test "x$ac_ct_CC" = x
; then
4691 case $cross_compiling:$ac_tool_warned in
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned
=yes ;;
4703 if test -z "$CC"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4706 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_CC+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC
="$CC" # Let the user override the test.
4715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir
=.
4720 for ac_exec_ext
in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 if test -n "$CC"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 $as_echo "$CC" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4744 if test -z "$CC"; then
4745 # Extract the first word of "cc", so it can be a program name with args.
4746 set dummy cc
; ac_word
=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_CC+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC
="$CC" # Let the user override the test.
4756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir
=.
4761 for ac_exec_ext
in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764 ac_prog_rejected
=yes
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 if test $ac_prog_rejected = yes; then
4776 # We found a bogon in the path, so make sure we never use it.
4777 set dummy
$ac_cv_prog_CC
4779 if test $# != 0; then
4780 # We chose a different compiler from the bogus one.
4781 # However, it has the same basename, so the bogon will be chosen
4782 # first if we set CC to just the basename; use the full file name.
4784 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog
in cl.exe
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_CC+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC
="$CC" # Let the user override the test.
4814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir
=.
4819 for ac_exec_ext
in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 if test -n "$CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834 $as_echo "$CC" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 test -n "$CC" && break
4844 if test -z "$CC"; then
4846 for ac_prog
in cl.exe
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy
$ac_prog; ac_word
=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir
=.
4863 for ac_exec_ext
in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_CC
="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4876 if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878 $as_echo "$ac_ct_CC" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$ac_ct_CC" && break
4888 if test "x$ac_ct_CC" = x
; then
4891 case $cross_compiling:$ac_tool_warned in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned
=yes ;;
4904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 as_fn_error
"no acceptable C compiler found in \$PATH
4907 See \`config.log' for more details." "$LINENO" 5; }
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4913 for ac_option
in --version -v -V -qversion; do
4914 { { ac_try
="$ac_compiler $ac_option >&5"
4916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4923 if test -s conftest.err; then
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4945 ac_clean_files_save=$ac_clean_files
4946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4947 # Try to create an executable without -o first, disregard a.out.
4948 # It will help us diagnose broken compilers, and finding out an intuition
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4951 $as_echo_n "checking whether the C compiler works... " >&6; }
4952 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4954 # The possible output files:
4955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4958 for ac_file in $ac_files
4961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4962 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4967 if { { ac_try="$ac_link_default"
4969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4970 *) ac_try_echo
=$ac_try;;
4972 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 $as_echo "$ac_try_echo"; } >&5
4974 (eval "$ac_link_default") 2>&5
4976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }; then :
4978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4981 # so that the user can short-circuit this test for compilers unknown to
4983 for ac_file
in $ac_files ''
4985 test -f "$ac_file" ||
continue
4987 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4990 # We found the default executable, but exeext='' is most
4994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4996 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4998 # We set ac_cv_exeext here because the later test for it is not
4999 # safe: cross compilers may not add the suffix if given an `-o'
5000 # argument, so we may need to know it at that point already.
5001 # Even if this section looks crufty: it has the advantage of
5008 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5013 if test -z "$ac_file"; then :
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.
$ac_ext >&5
5019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021 { as_fn_set_status
77
5022 as_fn_error
"C compiler cannot create executables
5023 See \`config.log' for more details." "$LINENO" 5; }; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5029 $as_echo_n "checking for C compiler default output file name... " >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5031 $as_echo "$ac_file" >&6; }
5032 ac_exeext
=$ac_cv_exeext
5034 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5035 ac_clean_files
=$ac_clean_files_save
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5037 $as_echo_n "checking for suffix of executables... " >&6; }
5038 if { { ac_try
="$ac_link"
5040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; then :
5049 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5050 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5051 # work properly (i.e., refer to `conftest.exe'), while it won't with
5053 for ac_file
in conftest.exe conftest conftest.
*; do
5054 test -f "$ac_file" ||
continue
5056 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5057 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5065 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5066 See \`config.log' for more details." "$LINENO" 5; }
5068 rm -f conftest conftest
$ac_cv_exeext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5070 $as_echo "$ac_cv_exeext" >&6; }
5072 rm -f conftest.
$ac_ext
5073 EXEEXT
=$ac_cv_exeext
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5081 FILE *f = fopen ("conftest.out", "w");
5082 return ferror (f) || fclose (f) != 0;
5088 ac_clean_files
="$ac_clean_files conftest.out"
5089 # Check that the compiler produces executables we can run. If not, either
5090 # the compiler is broken, or we cross compile.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5092 $as_echo_n "checking whether we are cross compiling... " >&6; }
5093 if test "$cross_compiling" != yes; then
5094 { { ac_try
="$ac_link"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_link") 2>&5
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if { ac_try='./conftest$ac_cv_exeext'
5106 { { case "(($ac_try" in
5107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5108 *) ac_try_echo
=$ac_try;;
5110 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_try") 2>&5
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }; }; then
5118 if test "$cross_compiling" = maybe
; then
5121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5123 as_fn_error
"cannot run C compiled programs.
5124 If you meant to cross compile, use \`--host'.
5125 See \`config.log' for more details." "$LINENO" 5; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5130 $as_echo "$cross_compiling" >&6; }
5132 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5133 ac_clean_files
=$ac_clean_files_save
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5135 $as_echo_n "checking for suffix of object files... " >&6; }
5136 if test "${ac_cv_objext+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5150 rm -f conftest.o conftest.obj
5151 if { { ac_try
="$ac_compile"
5153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compile") 2>&5
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then :
5162 for ac_file in conftest.o conftest.obj conftest.*; do
5163 test -f "$ac_file" || continue;
5165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 as_fn_error "cannot compute suffix of object files
: cannot compile
5177 See \
`config.log' for more details." "$LINENO" 5; }
5179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5182 $as_echo "$ac_cv_objext" >&6; }
5183 OBJEXT=$ac_cv_objext
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5204 if ac_fn_c_try_compile "$LINENO"; then :
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5215 if test $ac_compiler_gnu = yes; then
5220 ac_test_CFLAGS=${CFLAGS+set}
5221 ac_save_CFLAGS=$CFLAGS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5224 if test "${ac_cv_prog_cc_g+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 ac_save_c_werror_flag=$ac_c_werror_flag
5228 ac_c_werror_flag=yes
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5242 if ac_fn_c_try_compile "$LINENO"; then :
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5257 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_c_werror_flag=$ac_save_c_werror_flag
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5273 if ac_fn_c_try_compile "$LINENO"; then :
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_c_werror_flag=$ac_save_c_werror_flag
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5284 $as_echo "$ac_cv_prog_cc_g" >&6; }
5285 if test "$ac_test_CFLAGS" = set; then
5286 CFLAGS=$ac_save_CFLAGS
5287 elif test $ac_cv_prog_cc_g = yes; then
5288 if test "$GCC" = yes; then
5294 if test "$GCC" = yes; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 ac_cv_prog_cc_c89=no
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5311 #include <sys/types.h>
5312 #include <sys/stat.h>
5313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5314 struct buf { int x; };
5315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5316 static char *e (p, i)
5322 static char *f (char * (*g) (char **, int), char **p, ...)
5327 s = g (p, va_arg (v,int));
5332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5333 function prototypes and stuff, but not '\xHH' hex character constants.
5334 These don't provoke an error unfortunately, instead are silently treated
5335 as 'x'. The following induces an error, until -std is added to get
5336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5337 array size at least. It's necessary to write '\x00'==0 to get something
5338 that's true only with -std. */
5339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5342 inside strings and character constants. */
5344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5346 int test (int i, double x);
5347 struct s1 {int (*f) (int a);};
5348 struct s2 {int (*f) (double a);};
5349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5363 CC="$ac_save_CC $ac_arg"
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_prog_cc_c89=$ac_arg
5367 rm -f core conftest.err conftest.$ac_objext
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5370 rm -f conftest.$ac_ext
5375 case "x$ac_cv_prog_cc_c89" in
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 $as_echo "none needed" >&6; } ;;
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5381 $as_echo "unsupported" >&6; } ;;
5383 CC="$CC $ac_cv_prog_cc_c89"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5387 if test "x$ac_cv_prog_cc_c89" != xno; then :
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 DEPDIR="${am__leading_dot}deps"
5398 ac_config_commands="$ac_config_commands depfiles"
5401 am_make=${MAKE-make}
5402 cat > confinc << 'END'
5404 @echo this is the am__doit target
5407 # If we don't find an include directive, just comment out the code.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5409 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5413 # First try GNU make style include.
5414 echo "include confinc" > confmf
5415 # Ignore all kinds of additional output from `make'.
5416 case `$am_make -s -f confmf 2> /dev/null` in #(
5417 *the\ am__doit\ target*)
5423 # Now try BSD make style include.
5424 if test "$am__include" = "#"; then
5425 echo '.include
"confinc"' > confmf
5426 case `$am_make -s -f confmf 2> /dev/null` in #(
5427 *the\ am__doit\ target*)
5428 am__include=.include
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5437 $as_echo "$_am_result" >&6; }
5438 rm -f confinc confmf
5440 # Check whether --enable-dependency-tracking was given.
5441 if test "${enable_dependency_tracking+set}" = set; then :
5442 enableval=$enable_dependency_tracking;
5445 if test "x$enable_dependency_tracking" != xno; then
5446 am_depcomp="$ac_aux_dir/depcomp"
5449 if test "x$enable_dependency_tracking" != xno
; then
5459 depcc
="$CC" am_compiler_list
=
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5462 $as_echo_n "checking dependency style of $depcc... " >&6; }
5463 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467 # We make a subdir and do the tests there. Otherwise we can end up
5468 # making bogus files that we don't know about and never remove. For
5469 # instance it was reported that on HP-UX the gcc test will end up
5470 # making a dummy file named `D' -- because `-MD' means `put the output
5473 # Copy depcomp to subdir because otherwise we won't find it if we're
5474 # using a relative directory.
5475 cp "$am_depcomp" conftest.dir
5477 # We will build objects and dependencies in a subdirectory because
5478 # it helps to detect inapplicable dependency modes. For instance
5479 # both Tru64's cc and ICC support -MD to output dependencies as a
5480 # side effect of compilation, but ICC will put the dependencies in
5481 # the current directory while Tru64 will put them in the object
5485 am_cv_CC_dependencies_compiler_type
=none
5486 if test "$am_compiler_list" = ""; then
5487 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5490 case " $depcc " in #(
5491 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5494 for depmode
in $am_compiler_list; do
5495 # Setup a source with many dependencies, because some compilers
5496 # like to wrap large dependency lists on column 80 (with \), and
5497 # we should not choose a depcomp mode which is confused by this.
5499 # We need to recreate these files for each test, as the compiler may
5500 # overwrite some of them when testing with obscure command lines.
5501 # This happens at least with the AIX C compiler.
5503 for i
in 1 2 3 4 5 6; do
5504 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5506 # Solaris 8's {/usr,}/bin/sh.
5507 touch sub
/conftst
$i.h
5509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5512 # mode. It turns out that the SunPro C++ compiler does not properly
5513 # handle `-M -o', and we need to detect this. Also, some Intel
5514 # versions had trouble with output in subdirs
5515 am__obj
=sub
/conftest.
${OBJEXT-o}
5516 am__minus_obj
="-o $am__obj"
5519 # This depmode causes a compiler race in universal mode.
5520 test "$am__universal" = false ||
continue
5523 # after this tag, mechanisms are not by side-effect, so they'll
5524 # only be used when explicitly requested
5525 if test "x$enable_dependency_tracking" = xyes
; then
5531 msvisualcpp | msvcmsys
)
5532 # This compiler won't grok `-c -o', but also, the minuso test has
5533 # not run yet. These depmodes are late enough in the game, and
5534 # so weak that their functioning should not be impacted.
5535 am__obj
=conftest.
${OBJEXT-o}
5540 if depmode
=$depmode \
5541 source=sub
/conftest.c object
=$am__obj \
5542 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5543 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5544 >/dev
/null
2>conftest.err
&&
5545 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5546 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5547 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5548 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5549 # icc doesn't choke on unknown options, it will just issue warnings
5550 # or remarks (even with -Werror). So we grep stderr for any message
5551 # that says an option was ignored or not supported.
5552 # When given -MP, icc 7.0 and 7.1 complain thusly:
5553 # icc: Command line warning: ignoring option '-M'; no argument required
5554 # The diagnosis changed in icc 8.0:
5555 # icc: Command line remark: option '-MP' not supported
5556 if (grep 'ignoring option' conftest.err ||
5557 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5558 am_cv_CC_dependencies_compiler_type
=$depmode
5567 am_cv_CC_dependencies_compiler_type
=none
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5573 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5576 test "x$enable_dependency_tracking" != xno \
5577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5579 am__fastdepCC_FALSE
='#'
5581 am__fastdepCC_TRUE
='#'
5582 am__fastdepCC_FALSE
=
5586 if test "x$CC" != xcc
; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5588 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5591 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5593 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5594 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5595 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5596 $as_echo_n "(cached) " >&6
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5609 # Make sure it works both with $CC and with simple cc.
5610 # We do the test twice because some compilers refuse to overwrite an
5611 # existing .o file with -o, though they will create one.
5612 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5614 if { { case "(($ac_try" in
5615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5619 $as_echo "$ac_try_echo"; } >&5
5620 (eval "$ac_try") 2>&5
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; } &&
5624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5626 *) ac_try_echo
=$ac_try;;
5628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_try") 2>&5
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; };
5635 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5636 if test "x$CC" != xcc
; then
5637 # Test first that cc exists at all.
5638 if { ac_try
='cc -c conftest.$ac_ext >&5'
5639 { { 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; }; }; then
5649 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5651 if { { case "(($ac_try" in
5652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5653 *) ac_try_echo
=$ac_try;;
5655 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; } &&
5661 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; };
5675 # cc exists but doesn't like -o.
5676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5683 rm -f core conftest*
5686 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 $as_echo "yes" >&6; }
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5693 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5697 # FIXME: we rely on the cache variable name because
5698 # there is no other way.
5700 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5701 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5702 if test "$am_t" != yes; then
5703 # Losing compiler, so override with the script.
5704 # FIXME: It is wrong to rewrite CC.
5705 # But if we don't then we get into trouble of one sort or another.
5706 # A longer-term fix would be to have automake use am__CC in this case,
5707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5708 CC="$am_aux_dir/compile $CC"
5713 if test x$GCC = xyes; then
5714 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5716 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5719 # Initialize gnulib right after choosing the compiler.
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5728 # On Suns, sometimes $CPP names a directory.
5729 if test -n "$CPP" && test -d "$CPP"; then
5732 if test -z "$CPP"; then
5733 if test "${ac_cv_prog_CPP+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5736 # Double quotes because CPP needs to be expanded
5737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5740 for ac_c_preproc_warn_flag in '' yes
5742 # Use a header file that comes with gcc, so configuring glibc
5743 # with a fresh cross-compiler works.
5744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 # <limits.h> exists even on freestanding compilers.
5746 # On the NeXT, cc -E runs the code through the compiler's parser,
5747 # not just through cpp. "Syntax error" is here to catch this case.
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5751 # include <limits.h>
5753 # include <assert.h>
5757 if ac_fn_c_try_cpp "$LINENO"; then :
5760 # Broken: fails on valid input.
5763 rm -f conftest.err conftest.$ac_ext
5765 # OK, works on sane cases. Now check whether nonexistent headers
5766 # can be detected and how.
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <ac_nonexistent.h>
5771 if ac_fn_c_try_cpp "$LINENO"; then :
5772 # Broken: success on invalid input.
5775 # Passes both tests.
5779 rm -f conftest.err conftest.$ac_ext
5782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5783 rm -f conftest.err conftest.
$ac_ext
5784 if $ac_preproc_ok; then :
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5797 $as_echo "$CPP" >&6; }
5799 for ac_c_preproc_warn_flag
in '' yes
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 # include <limits.h>
5812 # include <assert.h>
5816 if ac_fn_c_try_cpp
"$LINENO"; then :
5819 # Broken: fails on valid input.
5822 rm -f conftest.err conftest.
$ac_ext
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5830 if ac_fn_c_try_cpp
"$LINENO"; then :
5831 # Broken: success on invalid input.
5834 # Passes both tests.
5838 rm -f conftest.err conftest.
$ac_ext
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.
$ac_ext
5843 if $ac_preproc_ok; then :
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." "$LINENO" 5; }
5853 ac_cpp
='$CPP $CPPFLAGS'
5854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5861 if test "${ac_cv_path_GREP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -z "$GREP"; then
5865 ac_path_GREP_found
=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5868 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5871 test -z "$as_dir" && as_dir
=.
5872 for ac_prog
in grep ggrep
; do
5873 for ac_exec_ext
in '' $ac_executable_extensions; do
5874 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5876 # Check for GNU ac_path_GREP and select it if it is found.
5877 # Check for GNU $ac_path_GREP
5878 case `"$ac_path_GREP" --version 2>&1` in
5880 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5883 $as_echo_n 0123456789 >"conftest.in"
5886 cat "conftest.in" "conftest.in" >"conftest.tmp"
5887 mv "conftest.tmp" "conftest.in"
5888 cp "conftest.in" "conftest.nl"
5889 $as_echo 'GREP' >> "conftest.nl"
5890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5891 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5892 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5894 # Best one so far, save it but keep looking for a better one
5895 ac_cv_path_GREP
="$ac_path_GREP"
5896 ac_path_GREP_max
=$ac_count
5898 # 10*(2^10) chars as input seems more than enough
5899 test $ac_count -gt 10 && break
5901 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5904 $ac_path_GREP_found && break 3
5909 if test -z "$ac_cv_path_GREP"; then
5910 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913 ac_cv_path_GREP
=$GREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919 GREP
="$ac_cv_path_GREP"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5928 then ac_cv_path_EGREP
="$GREP -E"
5930 if test -z "$EGREP"; then
5931 ac_path_EGREP_found
=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5934 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5937 test -z "$as_dir" && as_dir
=.
5938 for ac_prog
in egrep; do
5939 for ac_exec_ext
in '' $ac_executable_extensions; do
5940 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943 # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5946 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5949 $as_echo_n 0123456789 >"conftest.in"
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'EGREP' >> "conftest.nl"
5956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5957 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5958 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_EGREP
="$ac_path_EGREP"
5962 ac_path_EGREP_max
=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5967 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5970 $ac_path_EGREP_found && break 3
5975 if test -z "$ac_cv_path_EGREP"; then
5976 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 ac_cv_path_EGREP
=$EGREP
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5985 $as_echo "$ac_cv_path_EGREP" >&6; }
5986 EGREP
="$ac_cv_path_EGREP"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5992 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5993 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6006 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6007 gl_cv_c_amsterdam_compiler
=yes
6009 gl_cv_c_amsterdam_compiler
=no
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6016 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6017 if test -z "$AR"; then
6018 if test $gl_cv_c_amsterdam_compiler = yes; then
6020 if test -z "$ARFLAGS"; then
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6026 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_AR+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if test -n "$AR"; then
6033 ac_cv_prog_AR
="$AR" # Let the user override the test.
6035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir
=.
6040 for ac_exec_ext
in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 if test -n "$AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055 $as_echo "$AR" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_AR"; then
6065 # Extract the first word of "ar", so it can be a program name with args.
6066 set dummy
ar; ac_word
=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$ac_ct_AR"; then
6073 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir
=.
6080 for ac_exec_ext
in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_AR
="ar"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6093 if test -n "$ac_ct_AR"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6095 $as_echo "$ac_ct_AR" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_AR" = x
; then
6104 case $cross_compiling:$ac_tool_warned in
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned
=yes ;;
6116 if test -z "$ARFLAGS"; then
6121 if test -z "$ARFLAGS"; then
6127 if test -z "$RANLIB"; then
6128 if test $gl_cv_c_amsterdam_compiler = yes; then
6131 if test -n "$ac_tool_prefix"; then
6132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6133 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6139 if test -n "$RANLIB"; then
6140 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir
=.
6147 for ac_exec_ext
in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 RANLIB
=$ac_cv_prog_RANLIB
6160 if test -n "$RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6162 $as_echo "$RANLIB" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6170 if test -z "$ac_cv_prog_RANLIB"; then
6171 ac_ct_RANLIB
=$RANLIB
6172 # Extract the first word of "ranlib", so it can be a program name with args.
6173 set dummy ranlib
; ac_word
=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6179 if test -n "$ac_ct_RANLIB"; then
6180 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir
=.
6187 for ac_exec_ext
in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6200 if test -n "$ac_ct_RANLIB"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6202 $as_echo "$ac_ct_RANLIB" >&6; }
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6208 if test "x$ac_ct_RANLIB" = x
; then
6211 case $cross_compiling:$ac_tool_warned in
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215 ac_tool_warned
=yes ;;
6217 RANLIB
=$ac_ct_RANLIB
6220 RANLIB
="$ac_cv_prog_RANLIB"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6228 $as_echo_n "checking for ANSI C header files... " >&6; }
6229 if test "${ac_cv_header_stdc+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6247 if ac_fn_c_try_compile
"$LINENO"; then :
6248 ac_cv_header_stdc
=yes
6250 ac_cv_header_stdc
=no
6252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 if test $ac_cv_header_stdc = yes; then
6255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev
/null
2>&1; then :
6265 ac_cv_header_stdc
=no
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "free" >/dev
/null
2>&1; then :
6282 ac_cv_header_stdc
=no
6288 if test $ac_cv_header_stdc = yes; then
6289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6290 if test "$cross_compiling" = yes; then :
6293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6297 #if ((' ' & 0x0FF) == 0x020)
6298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6301 # define ISLOWER(c) \
6302 (('a' <= (c) && (c) <= 'i') \
6303 || ('j' <= (c) && (c) <= 'r') \
6304 || ('s' <= (c) && (c) <= 'z'))
6305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6313 for (i = 0; i < 256; i++)
6314 if (XOR (islower (i), ISLOWER (i))
6315 || toupper (i) != TOUPPER (i))
6320 if ac_fn_c_try_run
"$LINENO"; then :
6323 ac_cv_header_stdc
=no
6325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6332 $as_echo "$ac_cv_header_stdc" >&6; }
6333 if test $ac_cv_header_stdc = yes; then
6335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6340 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6341 inttypes.h stdint.h unistd.h
6343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6346 eval as_val
=\$
$as_ac_Header
6347 if test "x$as_val" = x
""yes; then :
6348 cat >>confdefs.h
<<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6360 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6361 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6368 if test "$MINIX" = yes; then
6370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6376 $as_echo "#define _MINIX 1" >>confdefs.h
6383 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6397 # define __EXTENSIONS__ 1
6398 $ac_includes_default
6407 if ac_fn_c_try_compile
"$LINENO"; then :
6408 ac_cv_safe_to_define___extensions__
=yes
6410 ac_cv_safe_to_define___extensions__
=no
6412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6416 test $ac_cv_safe_to_define___extensions__ = yes &&
6417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6421 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6436 # Check whether --enable-largefile was given.
6437 if test "${enable_largefile+set}" = set; then :
6438 enableval
=$enable_largefile;
6441 if test "$enable_largefile" != no
; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6444 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6445 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 ac_cv_sys_largefile_CC
=no
6449 if test "$GCC" != yes; then
6452 # IRIX 6.2 and later do not support large files by default,
6453 # so use the C compiler's -n32 option if that helps.
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <sys/types.h>
6457 /* Check that off_t can represent 2**63 - 1 correctly.
6458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6459 since some C++ compilers masquerading as C compilers
6460 incorrectly reject 9223372036854775807. */
6461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6463 && LARGE_OFF_T % 2147483647 == 1)
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6476 rm -f core conftest.err conftest.
$ac_objext
6478 if ac_fn_c_try_compile
"$LINENO"; then :
6479 ac_cv_sys_largefile_CC
=' -n32'; break
6481 rm -f core conftest.err conftest.
$ac_objext
6485 rm -f conftest.
$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6489 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6490 if test "$ac_cv_sys_largefile_CC" != no
; then
6491 CC
=$CC$ac_cv_sys_largefile_CC
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6495 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6496 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 /* Check that off_t can represent 2**63 - 1 correctly.
6504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6505 since some C++ compilers masquerading as C compilers
6506 incorrectly reject 9223372036854775807. */
6507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6509 && LARGE_OFF_T % 2147483647 == 1)
6519 if ac_fn_c_try_compile
"$LINENO"; then :
6520 ac_cv_sys_file_offset_bits
=no
; break
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #define _FILE_OFFSET_BITS 64
6526 #include <sys/types.h>
6527 /* Check that off_t can represent 2**63 - 1 correctly.
6528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6529 since some C++ compilers masquerading as C compilers
6530 incorrectly reject 9223372036854775807. */
6531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6533 && LARGE_OFF_T % 2147483647 == 1)
6543 if ac_fn_c_try_compile
"$LINENO"; then :
6544 ac_cv_sys_file_offset_bits
=64; break
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6547 ac_cv_sys_file_offset_bits
=unknown
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6552 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6553 case $ac_cv_sys_file_offset_bits in #(
6556 cat >>confdefs.h
<<_ACEOF
6557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6562 if test $ac_cv_sys_file_offset_bits = unknown
; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6564 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6565 if test "${ac_cv_sys_large_files+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 /* Check that off_t can represent 2**63 - 1 correctly.
6573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6574 since some C++ compilers masquerading as C compilers
6575 incorrectly reject 9223372036854775807. */
6576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6578 && LARGE_OFF_T % 2147483647 == 1)
6588 if ac_fn_c_try_compile
"$LINENO"; then :
6589 ac_cv_sys_large_files
=no
; break
6591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 #define _LARGE_FILES 1
6595 #include <sys/types.h>
6596 /* Check that off_t can represent 2**63 - 1 correctly.
6597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6598 since some C++ compilers masquerading as C compilers
6599 incorrectly reject 9223372036854775807. */
6600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6602 && LARGE_OFF_T % 2147483647 == 1)
6612 if ac_fn_c_try_compile
"$LINENO"; then :
6613 ac_cv_sys_large_files
=1; break
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6616 ac_cv_sys_large_files
=unknown
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6621 $as_echo "$ac_cv_sys_large_files" >&6; }
6622 case $ac_cv_sys_large_files in #(
6625 cat >>confdefs.h
<<_ACEOF
6626 #define _LARGE_FILES $ac_cv_sys_large_files
6636 case $ac_cv_prog_cc_stdc in #(
6638 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6641 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6642 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 ac_cv_prog_cc_c99
=no
6647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6650 #include <stdbool.h>
6655 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6656 #define debug(...) fprintf (stderr, __VA_ARGS__)
6657 #define showlist(...) puts (#__VA_ARGS__)
6658 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6660 test_varargs_macros (void)
6665 debug ("X = %d\n", x);
6666 showlist (The first, second, and third items.);
6667 report (x>y, "x is %d but y is %d", x, y);
6670 // Check long long types.
6671 #define BIG64 18446744073709551615ull
6672 #define BIG32 4294967295ul
6673 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6675 your preprocessor is broken;
6679 your preprocessor is broken;
6681 static long long int bignum = -9223372036854775807LL;
6682 static unsigned long long int ubignum = BIG64;
6684 struct incomplete_array
6692 const wchar_t *name;
6696 typedef const char *ccp;
6699 test_restrict (ccp restrict text)
6701 // See if C++-style comments work.
6702 // Iterate through items via the restricted pointer.
6703 // Also check for declarations in for loops.
6704 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6709 // Check varargs and va_copy.
6711 test_varargs (const char *format, ...)
6714 va_start (args, format);
6716 va_copy (args_copy, args);
6727 str = va_arg (args_copy, const char *);
6730 number = va_arg (args_copy, int);
6733 fnumber = va_arg (args_copy, double);
6748 _Bool success = false;
6751 if (test_restrict ("String literal") == 0)
6753 char *restrict newvar = "Another string";
6756 test_varargs ("s, d' f .", "string", 65, 34.234);
6757 test_varargs_macros ();
6759 // Check flexible array members.
6760 struct incomplete_array *ia =
6761 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6763 for (int i = 0; i < ia->datasize; ++i)
6764 ia->data[i] = i * 1.234;
6766 // Check named initializers.
6767 struct named_init ni = {
6769 .name = L"Test wide string",
6770 .average = 543.34343,
6775 int dynamic_array[ni.number];
6776 dynamic_array[ni.number - 1] = 543;
6778 // work around unused variable warnings
6779 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6780 || dynamic_array[ni.number - 1] != 543);
6786 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6788 CC
="$ac_save_CC $ac_arg"
6789 if ac_fn_c_try_compile
"$LINENO"; then :
6790 ac_cv_prog_cc_c99
=$ac_arg
6792 rm -f core conftest.err conftest.
$ac_objext
6793 test "x$ac_cv_prog_cc_c99" != "xno" && break
6795 rm -f conftest.
$ac_ext
6800 case "x$ac_cv_prog_cc_c99" in
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6803 $as_echo "none needed" >&6; } ;;
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806 $as_echo "unsupported" >&6; } ;;
6808 CC
="$CC $ac_cv_prog_cc_c99"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6810 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6812 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6813 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 ac_cv_prog_cc_c89
=no
6822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6826 #include <sys/types.h>
6827 #include <sys/stat.h>
6828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6829 struct buf { int x; };
6830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6831 static char *e (p, i)
6837 static char *f (char * (*g) (char **, int), char **p, ...)
6842 s = g (p, va_arg (v,int));
6847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6848 function prototypes and stuff, but not '\xHH' hex character constants.
6849 These don't provoke an error unfortunately, instead are silently treated
6850 as 'x'. The following induces an error, until -std is added to get
6851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6852 array size at least. It's necessary to write '\x00'==0 to get something
6853 that's true only with -std. */
6854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6857 inside strings and character constants. */
6859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6861 int test (int i, double x);
6862 struct s1 {int (*f) (int a);};
6863 struct s2 {int (*f) (double a);};
6864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6875 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6878 CC
="$ac_save_CC $ac_arg"
6879 if ac_fn_c_try_compile
"$LINENO"; then :
6880 ac_cv_prog_cc_c89
=$ac_arg
6882 rm -f core conftest.err conftest.
$ac_objext
6883 test "x$ac_cv_prog_cc_c89" != "xno" && break
6885 rm -f conftest.
$ac_ext
6890 case "x$ac_cv_prog_cc_c89" in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6893 $as_echo "none needed" >&6; } ;;
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6896 $as_echo "unsupported" >&6; } ;;
6898 CC
="$CC $ac_cv_prog_cc_c89"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6902 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6903 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6905 ac_cv_prog_cc_stdc
=no
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6912 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6913 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6917 case $ac_cv_prog_cc_stdc in #(
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6920 $as_echo "unsupported" >&6; } ;; #(
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6923 $as_echo "none needed" >&6; } ;; #(
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6926 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6931 # Code from module alloca-opt:
6932 # Code from module allocator:
6933 # Code from module careadlinkat:
6934 # Code from module clock-time:
6935 # Code from module crypto/md5:
6936 # Code from module crypto/sha1:
6937 # Code from module crypto/sha256:
6938 # Code from module crypto/sha512:
6939 # Code from module dosname:
6940 # Code from module dtoastr:
6941 # Code from module dtotimespec:
6942 # Code from module dup2:
6943 # Code from module extensions:
6945 # Code from module filemode:
6946 # Code from module getloadavg:
6947 # Code from module getopt-gnu:
6948 # Code from module getopt-posix:
6949 # Code from module gettext-h:
6950 # Code from module gettime:
6951 # Code from module gettimeofday:
6952 # Code from module ignore-value:
6953 # Code from module include_next:
6954 # Code from module intprops:
6955 # Code from module inttypes-incomplete:
6956 # Code from module largefile:
6958 # Code from module lstat:
6959 # Code from module manywarnings:
6960 # Code from module mktime:
6961 # Code from module multiarch:
6962 # Code from module nocrash:
6963 # Code from module pathmax:
6964 # Code from module pselect:
6965 # Code from module pthread_sigmask:
6966 # Code from module readlink:
6967 # Code from module signal-h:
6968 # Code from module snippet/_Noreturn:
6969 # Code from module snippet/arg-nonnull:
6970 # Code from module snippet/c++defs:
6971 # Code from module snippet/warn-on-use:
6972 # Code from module socklen:
6973 # Code from module ssize_t:
6974 # Code from module stat:
6975 # Code from module stat-time:
6976 # Code from module stdalign:
6977 # Code from module stdarg:
6981 # Code from module stdbool:
6982 # Code from module stddef:
6983 # Code from module stdint:
6984 # Code from module stdio:
6985 # Code from module stdlib:
6986 # Code from module strftime:
6987 # Code from module strtoimax:
6988 # Code from module strtoll:
6989 # Code from module strtoull:
6990 # Code from module strtoumax:
6991 # Code from module symlink:
6992 # Code from module sys_select:
6993 # Code from module sys_stat:
6994 # Code from module sys_time:
6995 # Code from module time:
6996 # Code from module time_r:
6997 # Code from module timespec:
6998 # Code from module timespec-add:
6999 # Code from module timespec-sub:
7000 # Code from module u64:
7001 # Code from module unistd:
7002 # Code from module utimens:
7003 # Code from module verify:
7004 # Code from module warnings:
7007 # Check whether --enable-gcc-warnings was given.
7008 if test "${enable_gcc_warnings+set}" = set; then :
7009 enableval
=$enable_gcc_warnings; case $enableval in
7011 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7013 gl_gcc_warnings
=$enableval
7020 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7021 # ------------------------------------------------
7022 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7023 # Otherwise, run RUN-IF-NOT-FOUND.
7026 # When compiling with GCC, prefer -isystem to -I when including system
7027 # include files, to avoid generating useless diagnostics for the files.
7028 if test "$gl_gcc_warnings" != yes; then
7033 # This, $nw, is the list of warnings we disable.
7036 case $with_x_toolkit in
7037 lucid | athena | motif
)
7038 # Old toolkits mishandle 'const'.
7039 nw
="$nw -Wwrite-strings"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7043 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7044 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7048 gl_save_compiler_FLAGS
="$CFLAGS"
7049 as_fn_append CFLAGS
" -Werror"
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7061 if ac_fn_c_try_compile
"$LINENO"; then :
7062 gl_cv_warn_c__Werror
=yes
7064 gl_cv_warn_c__Werror
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 CFLAGS
="$gl_save_compiler_FLAGS"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7071 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7072 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7073 as_fn_append WERROR_CFLAGS
" -Werror"
7081 nw
="$nw -Waggregate-return" # anachronistic
7082 nw
="$nw -Wlong-long" # C90 is anachronistic
7083 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7084 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7085 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7086 nw
="$nw -Wcast-qual" # Too many warnings for now
7087 nw
="$nw -Wconversion" # Too many warnings for now
7088 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7089 nw
="$nw -Wsign-conversion" # Too many warnings for now
7090 nw
="$nw -Woverlength-strings" # Not a problem these days
7091 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7092 nw
="$nw -Wpadded" # Our structs are not padded
7093 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7094 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7095 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7096 nw
="$nw -Wvla" # warnings in gettext.h
7097 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7098 nw
="$nw -Wswitch-enum" # Too many warnings for now
7099 nw
="$nw -Wswitch-default" # Too many warnings for now
7100 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7101 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7103 # Emacs doesn't care about shadowing; see
7104 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7107 # The following lines should be removable at some point.
7108 nw
="$nw -Wstack-protector"
7109 nw
="$nw -Wstrict-overflow"
7110 nw
="$nw -Wsuggest-attribute=const"
7111 nw
="$nw -Wsuggest-attribute=pure"
7115 if test -n "$GCC"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7118 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7119 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7123 gl_save_CFLAGS
="$CFLAGS"
7124 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7136 if ac_fn_c_try_compile
"$LINENO"; then :
7137 gl_cv_cc_nomfi_supported
=yes
7139 gl_cv_cc_nomfi_supported
=no
7141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 CFLAGS
="$gl_save_CFLAGS"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7146 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7148 if test "$gl_cv_cc_nomfi_supported" = yes; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7150 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7151 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7155 gl_save_CFLAGS
="$CFLAGS"
7156 CFLAGS
="$CFLAGS -W -Werror"
7157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7161 typedef struct { int a; int b; } s_t;
7173 if ac_fn_c_try_compile
"$LINENO"; then :
7174 gl_cv_cc_nomfi_needed
=no
7176 gl_cv_cc_nomfi_needed
=yes
7178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7179 CFLAGS
="$gl_save_CFLAGS"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7184 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7189 for gl_manywarn_item
in \
7193 -Wformat-nonliteral \
7196 -Wmissing-include-dirs \
7206 -Wtraditional-conversion \
7207 -Wdeclaration-after-statement \
7210 -Wunsafe-loop-optimizations \
7212 -Wbad-function-cast \
7220 -Waggregate-return \
7221 -Wstrict-prototypes \
7222 -Wold-style-definition \
7223 -Wmissing-prototypes \
7224 -Wmissing-declarations \
7225 -Wmissing-noreturn \
7226 -Wmissing-format-attribute \
7231 -Wunreachable-code \
7236 -Wvolatile-register-var \
7237 -Wdisabled-optimization \
7239 -Woverlength-strings \
7240 -Wbuiltin-macro-redefined \
7242 -Wpacked-bitfield-compat \
7245 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7247 # The following are not documented in the manual but are included in
7248 # output from gcc --help=warnings.
7249 for gl_manywarn_item
in \
7251 -Wcoverage-mismatch \
7254 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7256 # More warnings from gcc 4.6.2 --help=warnings.
7257 for gl_manywarn_item
in \
7261 -Wdeprecated-declarations \
7263 -Wdouble-promotion \
7266 -Wformat-contains-nul \
7267 -Wformat-extra-args \
7268 -Wformat-zero-length \
7273 -Wpointer-to-int-cast \
7275 -Wsuggest-attribute=const \
7276 -Wsuggest-attribute=noreturn \
7277 -Wsuggest-attribute=pure \
7280 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7283 # Disable the missing-field-initializers warning if needed
7284 if test "$gl_cv_cc_nomfi_needed" = yes; then
7285 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7296 *" $gl_warn_item "*)
7299 gl_warn_set
="$gl_warn_set $gl_warn_item"
7306 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7308 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7309 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7310 $as_echo_n "(cached) " >&6
7313 gl_save_compiler_FLAGS
="$CFLAGS"
7314 as_fn_append CFLAGS
" $w"
7315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7326 if ac_fn_c_try_compile
"$LINENO"; then :
7327 eval "$as_gl_Warn=yes"
7329 eval "$as_gl_Warn=no"
7331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7332 CFLAGS
="$gl_save_compiler_FLAGS"
7335 eval ac_res
=\$
$as_gl_Warn
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 eval as_val
=\$
$as_gl_Warn
7339 if test "x$as_val" = x
""yes; then :
7340 as_fn_append WARN_CFLAGS
" $w"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7346 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7347 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7351 gl_save_compiler_FLAGS
="$CFLAGS"
7352 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7364 if ac_fn_c_try_compile
"$LINENO"; then :
7365 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7367 gl_cv_warn_c__Wno_missing_field_initializers
=no
7369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 CFLAGS
="$gl_save_compiler_FLAGS"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7374 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7375 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7376 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7381 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7382 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7386 gl_save_compiler_FLAGS
="$CFLAGS"
7387 as_fn_append CFLAGS
" -Wno-sign-compare"
7388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7399 if ac_fn_c_try_compile
"$LINENO"; then :
7400 gl_cv_warn_c__Wno_sign_compare
=yes
7402 gl_cv_warn_c__Wno_sign_compare
=no
7404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7405 CFLAGS
="$gl_save_compiler_FLAGS"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7409 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7410 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7411 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7414 # Too many warnings for now
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7416 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7417 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7421 gl_save_compiler_FLAGS
="$CFLAGS"
7422 as_fn_append CFLAGS
" -Wno-type-limits"
7423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7434 if ac_fn_c_try_compile
"$LINENO"; then :
7435 gl_cv_warn_c__Wno_type_limits
=yes
7437 gl_cv_warn_c__Wno_type_limits
=no
7439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 CFLAGS
="$gl_save_compiler_FLAGS"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7444 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7445 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7446 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7449 # Too many warnings for now
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7451 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7452 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7456 gl_save_compiler_FLAGS
="$CFLAGS"
7457 as_fn_append CFLAGS
" -Wno-switch"
7458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7469 if ac_fn_c_try_compile
"$LINENO"; then :
7470 gl_cv_warn_c__Wno_switch
=yes
7472 gl_cv_warn_c__Wno_switch
=no
7474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 CFLAGS
="$gl_save_compiler_FLAGS"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7479 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7480 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7481 as_fn_append WARN_CFLAGS
" -Wno-switch"
7484 # Too many warnings for now
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7486 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7487 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7491 gl_save_compiler_FLAGS
="$CFLAGS"
7492 as_fn_append CFLAGS
" -Wno-unused-parameter"
7493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7504 if ac_fn_c_try_compile
"$LINENO"; then :
7505 gl_cv_warn_c__Wno_unused_parameter
=yes
7507 gl_cv_warn_c__Wno_unused_parameter
=no
7509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7510 CFLAGS
="$gl_save_compiler_FLAGS"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7514 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7515 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7516 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7519 # Too many warnings for now
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7521 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7522 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7526 gl_save_compiler_FLAGS
="$CFLAGS"
7527 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7539 if ac_fn_c_try_compile
"$LINENO"; then :
7540 gl_cv_warn_c__Wno_format_nonliteral
=yes
7542 gl_cv_warn_c__Wno_format_nonliteral
=no
7544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 CFLAGS
="$gl_save_compiler_FLAGS"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7549 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7550 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7551 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7556 # In spite of excluding -Wlogical-op above, it is enabled, as of
7557 # gcc 4.5.0 20090517.
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7559 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7560 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7564 gl_save_compiler_FLAGS
="$CFLAGS"
7565 as_fn_append CFLAGS
" -Wno-logical-op"
7566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7577 if ac_fn_c_try_compile
"$LINENO"; then :
7578 gl_cv_warn_c__Wno_logical_op
=yes
7580 gl_cv_warn_c__Wno_logical_op
=no
7582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7583 CFLAGS
="$gl_save_compiler_FLAGS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7587 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7588 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7589 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7595 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7596 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7600 gl_save_compiler_FLAGS
="$CFLAGS"
7601 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 gl_cv_warn_c__fdiagnostics_show_option
=yes
7616 gl_cv_warn_c__fdiagnostics_show_option
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 CFLAGS
="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7623 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7624 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7625 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7630 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7631 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7635 gl_save_compiler_FLAGS
="$CFLAGS"
7636 as_fn_append CFLAGS
" -funit-at-a-time"
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7648 if ac_fn_c_try_compile
"$LINENO"; then :
7649 gl_cv_warn_c__funit_at_a_time
=yes
7651 gl_cv_warn_c__funit_at_a_time
=no
7653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 CFLAGS
="$gl_save_compiler_FLAGS"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7658 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7659 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7660 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7666 $as_echo "#define lint 1" >>confdefs.h
7669 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7672 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7675 # We use a slightly smaller set of warning options for lib/.
7676 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7678 nw
="$nw -Wunused-macros"
7682 set x
$WARN_CFLAGS; shift
7686 *" $gl_warn_item "*)
7689 gl_warn_set
="$gl_warn_set $gl_warn_item"
7693 GNULIB_WARN_CFLAGS
=$gl_warn_set
7701 # Extract the first word of "install-info", so it can be a program name with args.
7702 set dummy install-info
; ac_word
=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7708 case $INSTALL_INFO in
7710 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7714 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7717 test -z "$as_dir" && as_dir
=.
7718 for ac_exec_ext
in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7732 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7733 if test -n "$INSTALL_INFO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7735 $as_echo "$INSTALL_INFO" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7742 # Extract the first word of "gzip", so it can be a program name with args.
7743 set dummy
gzip; ac_word
=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7751 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir
=.
7759 for ac_exec_ext
in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7773 if test -n "$GZIP_PROG"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7775 $as_echo "$GZIP_PROG" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7782 # Extract the first word of "paxctl", so it can be a program name with args.
7783 set dummy paxctl
; ac_word
=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7791 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7795 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7798 test -z "$as_dir" && as_dir
=.
7799 for ac_exec_ext
in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 PAXCTL
=$ac_cv_path_PAXCTL
7813 if test -n "$PAXCTL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7815 $as_echo "$PAXCTL" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7824 ## Need makeinfo >= 4.7 (?) to build the manuals.
7825 # Extract the first word of "makeinfo", so it can be a program name with args.
7826 set dummy makeinfo
; ac_word
=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7834 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir
=.
7842 for ac_exec_ext
in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7856 MAKEINFO
=$ac_cv_path_MAKEINFO
7857 if test -n "$MAKEINFO"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7859 $as_echo "$MAKEINFO" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7866 if test "$MAKEINFO" != "no" && \
7867 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
7871 ## Makeinfo is unusual. For a released Emacs, the manuals are
7872 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7873 ## therefore in the category of "special tools" not normally required, which
7874 ## configure does not have to check for (eg autoconf itself).
7875 ## In a Bazaar checkout on the other hand, the manuals are not included.
7876 ## So makeinfo is a requirement to build from Bazaar, and configure
7877 ## should test for it as it does for any other build requirement.
7878 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7879 ## with pre-built manuals, from a Bazaar checkout.
7882 if test "$MAKEINFO" = "no"; then
7884 if test "x${with_makeinfo}" = "xno"; then
7886 elif test ! -e $srcdir/info
/emacs
; then
7887 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7888 source tree does not seem to have pre-built manuals in the \`info' directory.
7889 Either install a suitable version of makeinfo, or re-run configure
7890 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7896 INFO_OPTS
=--no-split
7901 if test x
$GCC = xyes
; then
7902 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7903 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7905 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7906 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7910 late_LDFLAGS
=$LDFLAGS
7911 if test x
$GCC = xyes
; then
7912 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7914 LDFLAGS
="$LDFLAGS -znocombreloc"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7918 $as_echo_n "checking for -znocombreloc... " >&6; }
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7930 if ac_fn_c_try_link
"$LINENO"; then :
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7932 $as_echo "yes" >&6; }
7934 LDFLAGS
=$late_LDFLAGS
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7938 rm -f core conftest.err conftest.
$ac_objext \
7939 conftest
$ac_exeext conftest.
$ac_ext
7942 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7944 your-opsys-here
) CANNOT_DUMP
=yes ;;
7947 test "$CANNOT_DUMP" = "yes" && \
7949 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7955 UNEXEC_OBJ
=unexelf.o
7957 # MSDOS uses unexcoff.o
7958 # MSWindows uses unexw32.o
7960 UNEXEC_OBJ
=unexaix.o
7966 UNEXEC_OBJ
=unexmacosx.o
7969 UNEXEC_OBJ
=unexhp9k800.o
7972 # Use the Solaris dldump() function, called from unexsol.c, to dump
7973 # emacs, instead of the generic ELF dump code found in unexelf.c.
7974 # The resulting binary has a complete symbol table, and is better
7975 # for debugging and other observability tools (debuggers, pstack, etc).
7977 # If you encounter a problem using dldump(), please consider sending
7978 # a message to the OpenSolaris tools-linking mailing list:
7979 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7981 # It is likely that dldump() works with older Solaris too, but this has
7982 # not been tested, so for now this change is for Solaris 10 or newer.
7983 UNEXEC_OBJ
=unexsol.o
7990 ## Let `ld' find image libs and similar things in /usr/local/lib.
7991 ## The system compiler, GCC, has apparently been modified to not
7992 ## look there, contrary to what a stock GCC would do.
7993 ### It's not our place to do this. See bug#10313#17.
7994 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7999 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8000 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8004 ### It's not our place to do this. See bug#10313#17.
8005 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8010 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8011 ## otherwise Emacs dumps core on elf systems.
8012 LD_SWITCH_SYSTEM
="-Z"
8017 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8019 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8020 ## which has not been defined yet. When this was handled with cpp,
8021 ## it was expanded to null when configure sourced the s/*.h file.
8022 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8023 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8024 ## (or somesuch), but because it is supposed to go at the _front_
8025 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8026 ## Compare with the gnu-linux case below, which added to the end
8027 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8028 ## LD_SWITCH_SYSTEM_TEMACS.
8031 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8038 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8039 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8043 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8044 ## With ELF, make sure that all common symbols get allocated to in the
8045 ## data section. Otherwise, the dump of temacs may miss variables in
8046 ## the shared library that have been initialized. For example, with
8047 ## GNU libc, __malloc_initialized would normally be resolved to the
8048 ## shared library's .bss section, which is fatal.
8049 if test "x$GCC" = "xyes"; then
8050 C_SWITCH_MACHINE
="-fno-common"
8052 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8055 UNEXEC_OBJ
=unexalpha.o
8064 ## Some programs in src produce warnings saying certain subprograms
8065 ## are too complex and need a MAXMEM value greater than 2000 for
8066 ## additional optimization. --nils@exp-math.uni-essen.de
8067 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8068 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8069 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8070 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8076 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8077 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8079 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8081 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8083 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8085 ## Motif needs -lgen.
8086 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8091 ### Make sure subsequent tests use flags consistent with the build flags.
8093 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8094 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8096 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8099 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8101 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8108 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8113 START_FILES
='pre-crt0.o'
8116 ## Adding -lm confuses the dynamic linker, so omit it.
8118 START_FILES
='pre-crt0.o'
8121 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8122 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8123 SYSTEM_TYPE
=berkeley-unix
8125 gnu-linux | gnu-kfreebsd
)
8126 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8127 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8129 hpux10-20 | hpux11
)
8131 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8134 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8135 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8136 SYSTEM_TYPE
=berkeley-unix
8140 SYSTEM_TYPE
=usg-unix-v
8148 cat >>confdefs.h
<<_ACEOF
8149 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8155 for file in x
$LIB_STANDARD $START_FILES; do
8157 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8161 if test "x$crt_files" != x
; then
8163 ## If user specified a crt-dir, use that unconditionally.
8166 if test "X$CRT_DIR" = "X"; then
8168 CRT_DIR
=/usr
/lib
# default
8170 case "$canonical" in
8171 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8172 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8173 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8174 ## For anything else (eg /usr/lib32), it is up the user to specify
8175 ## the location (bug#5655).
8176 ## Test for crtn.o, not just the directory, because sometimes the
8177 ## directory exists but does not have the relevant files (bug#1287).
8178 ## FIXME better to test for binary compatibility somehow.
8179 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8182 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8186 hpux10-20
) CRT_DIR
=/lib
;;
8189 test "x${GCC}" = xyes
&& crt_gcc
=yes
8195 for file in $crt_files; do
8197 ## If we're using gcc, try to determine it automatically by asking
8198 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8199 ## system-dependent default from above.]
8200 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8202 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8205 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8206 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8207 X"$crt_file" : 'X\(//\)[^/]' \| \
8208 X"$crt_file" : 'X\(//\)$' \| \
8209 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8210 $as_echo X"$crt_file" |
8211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8234 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8237 test "x$crt_missing" = x || \
8238 as_fn_error
"Required file(s) not found:$crt_missing
8239 Try using the --with-crt-dir option." "$LINENO" 5
8241 fi # crt_files != ""
8247 if test -f $CRT_DIR/crti.o
; then
8249 test -f $CRT_DIR/crtn.o || \
8250 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8252 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8253 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8259 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8260 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8261 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8273 LIBC_FATAL_STDERR_
=1
8274 export LIBC_FATAL_STDERR_
8276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8277 # for constant arguments. Useless!
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8279 $as_echo_n "checking for working alloca.h... " >&6; }
8280 if test "${ac_cv_working_alloca_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8289 char *p = (char *) alloca (2 * sizeof (int));
8295 if ac_fn_c_try_link
"$LINENO"; then :
8296 ac_cv_working_alloca_h
=yes
8298 ac_cv_working_alloca_h
=no
8300 rm -f core conftest.err conftest.
$ac_objext \
8301 conftest
$ac_exeext conftest.
$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8304 $as_echo "$ac_cv_working_alloca_h" >&6; }
8305 if test $ac_cv_working_alloca_h = yes; then
8307 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8312 $as_echo_n "checking for alloca... " >&6; }
8313 if test "${ac_cv_func_alloca_works+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8319 # define alloca __builtin_alloca
8322 # include <malloc.h>
8323 # define alloca _alloca
8325 # ifdef HAVE_ALLOCA_H
8326 # include <alloca.h>
8331 # ifndef alloca /* predefined by HP cc +Olibcalls */
8342 char *p = (char *) alloca (1);
8348 if ac_fn_c_try_link
"$LINENO"; then :
8349 ac_cv_func_alloca_works
=yes
8351 ac_cv_func_alloca_works
=no
8353 rm -f core conftest.err conftest.
$ac_objext \
8354 conftest
$ac_exeext conftest.
$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8357 $as_echo "$ac_cv_func_alloca_works" >&6; }
8359 if test $ac_cv_func_alloca_works = yes; then
8361 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8365 # that cause trouble. Some versions do not even contain alloca or
8366 # contain a buggy version. If you still want to use their alloca,
8367 # use ar to extract alloca.o from them instead of compiling alloca.c.
8373 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8375 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8379 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8380 if test "${ac_cv_os_cray+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #if defined CRAY && ! defined CRAY2
8392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8393 $EGREP "webecray" >/dev
/null
2>&1; then :
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8402 $as_echo "$ac_cv_os_cray" >&6; }
8403 if test $ac_cv_os_cray = yes; then
8404 for ac_func
in _getb67 GETB67 getb67
; do
8405 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8406 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8407 eval as_val
=\$
$as_ac_var
8408 if test "x$as_val" = x
""yes; then :
8410 cat >>confdefs.h
<<_ACEOF
8411 #define CRAY_STACKSEG_END $ac_func
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8421 $as_echo_n "checking stack direction for C alloca... " >&6; }
8422 if test "${ac_cv_c_stack_direction+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 if test "$cross_compiling" = yes; then :
8426 ac_cv_c_stack_direction
=0
8428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 $ac_includes_default
8432 find_stack_direction (int *addr, int depth)
8437 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8438 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8443 main (int argc, char **argv)
8445 return find_stack_direction (0, argc + !argv + 20) < 0;
8448 if ac_fn_c_try_run
"$LINENO"; then :
8449 ac_cv_c_stack_direction
=1
8451 ac_cv_c_stack_direction
=-1
8453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8459 $as_echo "$ac_cv_c_stack_direction" >&6; }
8460 cat >>confdefs.h
<<_ACEOF
8461 #define STACK_DIRECTION $ac_cv_c_stack_direction
8470 for ac_func
in $ac_func_list
8472 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8473 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8474 eval as_val
=\$
$as_ac_var
8475 if test "x$as_val" = x
""yes; then :
8476 cat >>confdefs.h
<<_ACEOF
8477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8487 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8488 if test "${ac_cv_c_bigendian+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8491 ac_cv_c_bigendian
=unknown
8492 # See if we're dealing with a universal compiler.
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #ifndef __APPLE_CC__
8496 not a universal capable compiler
8501 if ac_fn_c_try_compile
"$LINENO"; then :
8503 # Check for potential -arch flags. It is not universal unless
8504 # there are at least two -arch flags with different values.
8507 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8508 if test -n "$ac_prev"; then
8510 i?
86 | x86_64 | ppc | ppc64
)
8511 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8514 ac_cv_c_bigendian
=universal
8520 elif test "x$ac_word" = "x-arch"; then
8525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8526 if test $ac_cv_c_bigendian = unknown
; then
8527 # See if sys/param.h defines the BYTE_ORDER macro.
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8536 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8537 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8546 if ac_fn_c_try_compile
"$LINENO"; then :
8547 # It does; now see whether it defined to BIG_ENDIAN or not.
8548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <sys/types.h>
8551 #include <sys/param.h>
8556 #if BYTE_ORDER != BIG_ENDIAN
8564 if ac_fn_c_try_compile
"$LINENO"; then :
8565 ac_cv_c_bigendian
=yes
8567 ac_cv_c_bigendian
=no
8569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8573 if test $ac_cv_c_bigendian = unknown
; then
8574 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8582 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8590 if ac_fn_c_try_compile
"$LINENO"; then :
8591 # It does; now see whether it defined to _BIG_ENDIAN or not.
8592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8607 if ac_fn_c_try_compile
"$LINENO"; then :
8608 ac_cv_c_bigendian
=yes
8610 ac_cv_c_bigendian
=no
8612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 if test $ac_cv_c_bigendian = unknown
; then
8617 # Compile a test program.
8618 if test "$cross_compiling" = yes; then :
8619 # Try to guess by grepping values from an object file.
8620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 short int ascii_mm[] =
8623 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8624 short int ascii_ii[] =
8625 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8626 int use_ascii (int i) {
8627 return ascii_mm[i] + ascii_ii[i];
8629 short int ebcdic_ii[] =
8630 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8631 short int ebcdic_mm[] =
8632 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8633 int use_ebcdic (int i) {
8634 return ebcdic_mm[i] + ebcdic_ii[i];
8641 return use_ascii (foo) == use_ebcdic (foo);
8646 if ac_fn_c_try_compile
"$LINENO"; then :
8647 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8648 ac_cv_c_bigendian
=yes
8650 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8651 if test "$ac_cv_c_bigendian" = unknown
; then
8652 ac_cv_c_bigendian
=no
8654 # finding both strings is unlikely to happen, but who knows?
8655 ac_cv_c_bigendian
=unknown
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 $ac_includes_default
8668 /* Are we little or big endian? From Harbison&Steele. */
8672 char c[sizeof (long int)];
8675 return u.c[sizeof (long int) - 1] == 1;
8681 if ac_fn_c_try_run
"$LINENO"; then :
8682 ac_cv_c_bigendian
=no
8684 ac_cv_c_bigendian
=yes
8686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8693 $as_echo "$ac_cv_c_bigendian" >&6; }
8694 case $ac_cv_c_bigendian in #(
8696 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8702 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8706 as_fn_error
"unknown endianness
8707 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8712 $as_echo_n "checking for inline... " >&6; }
8713 if test "${ac_cv_c_inline+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8717 for ac_kw
in inline __inline__ __inline
; do
8718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8722 static $ac_kw foo_t static_foo () {return 0; }
8723 $ac_kw foo_t foo () {return 0; }
8727 if ac_fn_c_try_compile
"$LINENO"; then :
8728 ac_cv_c_inline
=$ac_kw
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 test "$ac_cv_c_inline" != no
&& break
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8736 $as_echo "$ac_cv_c_inline" >&6; }
8738 case $ac_cv_c_inline in
8741 case $ac_cv_c_inline in
8743 *) ac_val
=$ac_cv_c_inline;;
8745 cat >>confdefs.h
<<_ACEOF
8747 #define inline $ac_val
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8755 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8756 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 /* On HP-UX before 11.23, strtold returns a struct instead of
8762 long double. Reject implementations like that, by requiring
8763 compatibility with the C99 prototype. */
8765 static long double (*p) (char const *, char **) = strtold;
8767 test (char const *nptr, char **endptr)
8770 r = strtold (nptr, endptr);
8776 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8781 if ac_fn_c_try_link
"$LINENO"; then :
8782 gl_cv_func_c99_strtold
=yes
8784 gl_cv_func_c99_strtold
=no
8786 rm -f core conftest.err conftest.
$ac_objext \
8787 conftest
$ac_exeext conftest.
$ac_ext
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8790 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8791 if test $gl_cv_func_c99_strtold = yes; then
8793 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8805 GNULIB_EUIDACCESS
=0;
8813 GNULIB_GETDOMAINNAME
=0;
8814 GNULIB_GETDTABLESIZE
=0;
8816 GNULIB_GETHOSTNAME
=0;
8818 GNULIB_GETLOGIN_R
=0;
8819 GNULIB_GETPAGESIZE
=0;
8820 GNULIB_GETUSERSHELL
=0;
8821 GNULIB_GROUP_MEMBER
=0;
8833 GNULIB_READLINKAT
=0;
8835 GNULIB_SETHOSTNAME
=0;
8840 GNULIB_UNISTD_H_NONBLOCKING
=0;
8841 GNULIB_UNISTD_H_SIGPIPE
=0;
8856 HAVE_GETDTABLESIZE
=1;
8861 HAVE_GROUP_MEMBER
=1;
8877 HAVE_DECL_ENVIRON
=1;
8879 HAVE_DECL_FDATASYNC
=1;
8880 HAVE_DECL_GETDOMAINNAME
=1;
8881 HAVE_DECL_GETLOGIN_R
=1;
8882 HAVE_DECL_GETPAGESIZE
=1;
8883 HAVE_DECL_GETUSERSHELL
=1;
8884 HAVE_DECL_SETHOSTNAME
=1;
8885 HAVE_DECL_TTYNAME_R
=1;
8893 REPLACE_FTRUNCATE
=0;
8895 REPLACE_GETDOMAINNAME
=0;
8896 REPLACE_GETLOGIN_R
=0;
8897 REPLACE_GETGROUPS
=0;
8898 REPLACE_GETPAGESIZE
=0;
8911 REPLACE_TTYNAME_R
=0;
8916 UNISTD_H_HAVE_WINSOCK2_H
=0;
8917 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8921 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8922 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 #include <sys/types.h>
8929 #include <sys/stat.h>
8933 struct stat s; s.st_dm_mode;
8938 if ac_fn_c_try_compile
"$LINENO"; then :
8939 ac_cv_struct_st_dm_mode
=yes
8941 ac_cv_struct_st_dm_mode
=no
8943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
8946 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8948 if test $ac_cv_struct_st_dm_mode = yes; then
8950 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
8955 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
8956 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
8962 cat >>confdefs.h
<<_ACEOF
8963 #define HAVE_DECL_STRMODE $ac_have_decl
8969 GNULIB_CALLOC_POSIX
=0;
8970 GNULIB_CANONICALIZE_FILE_NAME
=0;
8971 GNULIB_GETLOADAVG
=0;
8974 GNULIB_MALLOC_POSIX
=0;
8981 GNULIB_POSIX_OPENPT
=0;
8987 GNULIB_REALLOC_POSIX
=0;
8994 GNULIB_SYSTEM_POSIX
=0;
9000 HAVE_CANONICALIZE_FILE_NAME
=1;
9001 HAVE_DECL_GETLOADAVG
=1;
9009 HAVE_POSIX_OPENPT
=1;
9022 HAVE_STRUCT_RANDOM_DATA
=1;
9023 HAVE_SYS_LOADAVG_H
=0;
9025 HAVE_DECL_UNSETENV
=1;
9027 REPLACE_CANONICALIZE_FILE_NAME
=0;
9031 REPLACE_PTSNAME_R
=0;
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9044 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9045 if test "${gl_cv_have_include_next+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9048 rm -rf conftestd1a conftestd1b conftestd2
9049 mkdir conftestd1a conftestd1b conftestd2
9050 cat <<EOF > conftestd1a/conftest.h
9051 #define DEFINED_IN_CONFTESTD1
9052 #include_next <conftest.h>
9053 #ifdef DEFINED_IN_CONFTESTD2
9056 #error "include_next doesn't work"
9059 cat <<EOF > conftestd1b/conftest.h
9060 #define DEFINED_IN_CONFTESTD1
9062 #include_next <conftest.h>
9063 #ifdef DEFINED_IN_CONFTESTD2
9066 #error "include_next doesn't work"
9069 cat <<EOF > conftestd2/conftest.h
9070 #ifndef DEFINED_IN_CONFTESTD1
9071 #error "include_next test doesn't work"
9073 #define DEFINED_IN_CONFTESTD2
9075 gl_save_CPPFLAGS
="$CPPFLAGS"
9076 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <conftest.h>
9081 if ac_fn_c_try_compile
"$LINENO"; then :
9082 gl_cv_have_include_next
=yes
9084 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <conftest.h>
9089 if ac_fn_c_try_compile
"$LINENO"; then :
9090 gl_cv_have_include_next
=buggy
9092 gl_cv_have_include_next
=no
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9098 CPPFLAGS
="$gl_save_CPPFLAGS"
9099 rm -rf conftestd1a conftestd1b conftestd2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9103 $as_echo "$gl_cv_have_include_next" >&6; }
9104 PRAGMA_SYSTEM_HEADER
=
9105 if test $gl_cv_have_include_next = yes; then
9106 INCLUDE_NEXT
=include_next
9107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9108 if test -n "$GCC"; then
9109 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
9112 if test $gl_cv_have_include_next = buggy
; then
9113 INCLUDE_NEXT
=include
9114 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9116 INCLUDE_NEXT
=include
9117 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9124 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9125 if test "${gl_cv_pragma_columns+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9137 $EGREP "choke me" >/dev
/null
2>&1; then :
9138 gl_cv_pragma_columns
=yes
9140 gl_cv_pragma_columns
=no
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9147 $as_echo "$gl_cv_pragma_columns" >&6; }
9148 if test $gl_cv_pragma_columns = yes; then
9149 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
9158 for ac_header
in $ac_header_list
9160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9163 eval as_val
=\$
$as_ac_Header
9164 if test "x$as_val" = x
""yes; then :
9165 cat >>confdefs.h
<<_ACEOF
9166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 if test $gl_cv_have_include_next = yes; then
9189 gl_cv_next_getopt_h
='<'getopt.h
'>'
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9192 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9193 if test "${gl_cv_next_getopt_h+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9197 if test $ac_cv_header_getopt_h = yes; then
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9206 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9207 *) gl_absname_cpp
="$ac_cpp" ;;
9212 gl_dirsep_regex
='[/\\]'
9215 gl_dirsep_regex
='\/'
9218 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9220 gl_header_literal_regex
=`echo 'getopt.h' \
9221 | sed -e "$gl_make_literal_regex_sed"`
9222 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9228 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9229 sed -n "$gl_absolute_header_sed"`'"'
9231 gl_cv_next_getopt_h
='<'getopt.h
'>'
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9237 $as_echo "$gl_cv_next_getopt_h" >&6; }
9239 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
9241 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9243 gl_next_as_first_directive
='<'getopt.h
'>'
9245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9246 gl_next_as_first_directive
=$gl_cv_next_getopt_h
9248 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
9253 if test $ac_cv_header_getopt_h = yes; then
9262 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9263 for ac_header
in getopt.h
9265 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9266 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9267 cat >>confdefs.h
<<_ACEOF
9268 #define HAVE_GETOPT_H 1
9272 gl_replace_getopt
=yes
9279 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9280 for ac_func
in getopt_long_only
9282 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9283 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
9284 cat >>confdefs.h
<<_ACEOF
9285 #define HAVE_GETOPT_LONG_ONLY 1
9289 gl_replace_getopt
=yes
9295 if test -z "$gl_replace_getopt"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9297 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9298 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9308 int *p = &optreset; return optreset;
9313 if ac_fn_c_try_link
"$LINENO"; then :
9316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9322 return !getopt_clip;
9327 if ac_fn_c_try_compile
"$LINENO"; then :
9332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9334 rm -f core conftest.err conftest.
$ac_objext \
9335 conftest
$ac_exeext conftest.
$ac_ext
9337 gl_save_CPPFLAGS
=$CPPFLAGS
9338 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
9339 if test "$cross_compiling" = yes; then :
9341 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
9342 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
9343 *) gl_cv_func_getopt_posix
="guessing yes";;
9347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9358 static char program[] = "program";
9359 static char a[] = "-a";
9360 static char foo[] = "foo";
9361 static char bar[] = "bar";
9362 char *argv[] = { program, a, foo, bar, NULL };
9365 optind = OPTIND_MIN;
9368 c = getopt (4, argv, "ab");
9371 c = getopt (4, argv, "ab");
9377 /* Some internal state exists at this point. */
9379 static char program[] = "program";
9380 static char donald[] = "donald";
9381 static char p[] = "-p";
9382 static char billy[] = "billy";
9383 static char duck[] = "duck";
9384 static char a[] = "-a";
9385 static char bar[] = "bar";
9386 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9389 optind = OPTIND_MIN;
9392 c = getopt (7, argv, "+abp:q:");
9395 if (!(strcmp (argv[0], "program") == 0))
9397 if (!(strcmp (argv[1], "donald") == 0))
9399 if (!(strcmp (argv[2], "-p") == 0))
9401 if (!(strcmp (argv[3], "billy") == 0))
9403 if (!(strcmp (argv[4], "duck") == 0))
9405 if (!(strcmp (argv[5], "-a") == 0))
9407 if (!(strcmp (argv[6], "bar") == 0))
9412 /* Detect Mac OS X 10.5, AIX 7.1 bug. */
9414 static char program[] = "program";
9415 static char ab[] = "-ab";
9416 char *argv[3] = { program, ab, NULL };
9417 optind = OPTIND_MIN;
9419 if (getopt (2, argv, "ab:") != 'a')
9421 if (getopt (2, argv, "ab:") != '?')
9433 if ac_fn_c_try_run
"$LINENO"; then :
9434 gl_cv_func_getopt_posix
=yes
9436 gl_cv_func_getopt_posix
=no
9438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9442 CPPFLAGS
=$gl_save_CPPFLAGS
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9446 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9447 case "$gl_cv_func_getopt_posix" in
9448 *no
) gl_replace_getopt
=yes ;;
9452 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9454 $as_echo_n "checking for working GNU getopt function... " >&6; }
9455 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9458 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9459 # optstring is necessary for programs like m4 that have POSIX-mandated
9460 # semantics for supporting options interspersed with files.
9461 # Also, since getopt_long is a GNU extension, we require optind=0.
9462 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9463 # so take care to revert to the correct (non-)export state.
9464 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9465 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9466 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
9467 x
) gl_had_POSIXLY_CORRECT
=yes ;;
9468 *) gl_had_POSIXLY_CORRECT
= ;;
9471 export POSIXLY_CORRECT
9472 if test "$cross_compiling" = yes; then :
9473 case $host_os:$ac_cv_have_decl_optreset in
9474 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
9475 *:yes) gl_cv_func_getopt_gnu
=no
;;
9476 *) gl_cv_func_getopt_gnu
=yes;;
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9487 #if defined __MACH__ && defined __APPLE__
9488 /* Avoid a crash on Mac OS X. */
9489 #include <mach/mach.h>
9490 #include <mach/mach_error.h>
9491 #include <mach/thread_status.h>
9492 #include <mach/exception.h>
9493 #include <mach/task.h>
9494 #include <pthread.h>
9495 /* The exception port on which our thread listens. */
9496 static mach_port_t our_exception_port;
9497 /* The main function of the thread listening for exceptions of type
9500 mach_exception_thread (void *arg)
9502 /* Buffer for a message to be received. */
9504 mach_msg_header_t head;
9505 mach_msg_body_t msgh_body;
9508 mach_msg_return_t retval;
9509 /* Wait for a message on the exception port. */
9510 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9511 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9512 if (retval != MACH_MSG_SUCCESS)
9519 mach_port_t self = mach_task_self ();
9520 /* Allocate a port on which the thread shall listen for exceptions. */
9521 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9523 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9524 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9525 MACH_MSG_TYPE_MAKE_SEND)
9527 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9529 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9530 /* Create the thread listening on the exception port. */
9531 pthread_attr_t attr;
9533 if (pthread_attr_init (&attr) == 0
9534 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9535 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9536 pthread_attr_destroy (&attr);
9537 /* Replace the exception port info for these exceptions with our own.
9538 Note that we replace the exception port for the entire task, not only
9539 for a particular thread. This has the effect that when our exception
9540 port gets the message, the thread specific exception port has already
9541 been asked, and we don't need to bother about it.
9542 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9543 task_set_exception_ports (self, mask, our_exception_port,
9544 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9549 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9550 /* Avoid a crash on native Windows. */
9551 #define WIN32_LEAN_AND_MEAN
9552 #include <windows.h>
9553 #include <winerror.h>
9555 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9557 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9559 case EXCEPTION_ACCESS_VIOLATION:
9560 case EXCEPTION_IN_PAGE_ERROR:
9561 case EXCEPTION_STACK_OVERFLOW:
9562 case EXCEPTION_GUARD_PAGE:
9563 case EXCEPTION_PRIV_INSTRUCTION:
9564 case EXCEPTION_ILLEGAL_INSTRUCTION:
9565 case EXCEPTION_DATATYPE_MISALIGNMENT:
9566 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9567 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9570 return EXCEPTION_CONTINUE_SEARCH;
9575 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9578 /* Avoid a crash on POSIX systems. */
9580 /* A POSIX signal handler. */
9582 exception_handler (int sig)
9590 signal (SIGSEGV, exception_handler);
9593 signal (SIGBUS, exception_handler);
9607 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9608 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9609 OSF/1 5.1, Solaris 10. */
9611 static char conftest[] = "conftest";
9612 static char plus[] = "-+";
9613 char *argv[3] = { conftest, plus, NULL };
9615 if (getopt (2, argv, "+a") != '?')
9618 /* This code succeeds on glibc 2.8, mingw,
9619 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9620 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9622 static char program[] = "program";
9623 static char p[] = "-p";
9624 static char foo[] = "foo";
9625 static char bar[] = "bar";
9626 char *argv[] = { program, p, foo, bar, NULL };
9629 if (getopt (4, argv, "p::") != 'p')
9631 else if (optarg != NULL)
9633 else if (getopt (4, argv, "p::") != -1)
9635 else if (optind != 2)
9638 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9640 static char program[] = "program";
9641 static char foo[] = "foo";
9642 static char p[] = "-p";
9643 char *argv[] = { program, foo, p, NULL };
9645 if (getopt (3, argv, "-p") != 1)
9647 else if (getopt (3, argv, "-p") != 'p')
9650 /* This code fails on glibc 2.11. */
9652 static char program[] = "program";
9653 static char b[] = "-b";
9654 static char a[] = "-a";
9655 char *argv[] = { program, b, a, NULL };
9656 optind = opterr = 0;
9657 if (getopt (3, argv, "+:a:b") != 'b')
9659 else if (getopt (3, argv, "+:a:b") != ':')
9662 /* This code dumps core on glibc 2.14. */
9664 static char program[] = "program";
9665 static char w[] = "-W";
9666 static char dummy[] = "dummy";
9667 char *argv[] = { program, w, dummy, NULL };
9668 optind = opterr = 1;
9669 if (getopt (3, argv, "W;") != 'W')
9678 if ac_fn_c_try_run
"$LINENO"; then :
9679 gl_cv_func_getopt_gnu
=yes
9681 gl_cv_func_getopt_gnu
=no
9683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9687 case $gl_had_POSIXLY_CORRECT in
9689 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
9690 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9695 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9696 if test "$gl_cv_func_getopt_gnu" = "no"; then
9697 gl_replace_getopt
=yes
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9700 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9701 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9704 if test "$cross_compiling" = yes; then :
9706 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
9707 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
9711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9720 static const struct option long_options[] =
9722 { "xtremely-",no_argument, NULL, 1003 },
9723 { "xtra", no_argument, NULL, 1001 },
9724 { "xtreme", no_argument, NULL, 1002 },
9725 { "xtremely", no_argument, NULL, 1003 },
9726 { NULL, 0, NULL, 0 }
9728 /* This code fails on OpenBSD 5.0. */
9730 static char program[] = "program";
9731 static char xtremel[] = "--xtremel";
9732 char *argv[] = { program, xtremel, NULL };
9734 optind = 1; opterr = 0;
9735 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9744 if ac_fn_c_try_run
"$LINENO"; then :
9745 gl_cv_func_getopt_long_gnu
=yes
9747 gl_cv_func_getopt_long_gnu
=no
9749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9756 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9757 case "$gl_cv_func_getopt_long_gnu" in
9759 *) gl_replace_getopt
=yes ;;
9771 if test -n "$gl_replace_getopt"; then :
9778 if test $REPLACE_GETOPT = 1; then
9782 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9788 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9789 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
9795 cat >>confdefs.h
<<_ACEOF
9796 #define HAVE_DECL_GETENV $ac_have_decl
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9807 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9808 if test "${ac_cv_c_restrict+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9812 # The order here caters to the fact that C++ does not require restrict.
9813 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 typedef int * int_ptr;
9817 int foo (int_ptr $ac_kw ip) {
9831 if ac_fn_c_try_compile
"$LINENO"; then :
9832 ac_cv_c_restrict
=$ac_kw
9834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9835 test "$ac_cv_c_restrict" != no
&& break
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9840 $as_echo "$ac_cv_c_restrict" >&6; }
9842 case $ac_cv_c_restrict in
9844 no
) $as_echo "#define restrict /**/" >>confdefs.h
9846 *) cat >>confdefs.h
<<_ACEOF
9847 #define restrict $ac_cv_c_restrict
9853 GNULIB_GETTIMEOFDAY
=0;
9854 HAVE_GETTIMEOFDAY
=1;
9855 HAVE_STRUCT_TIMEVAL
=1;
9857 REPLACE_GETTIMEOFDAY
=0;
9858 REPLACE_STRUCT_TIMEVAL
=0;
9877 if test $gl_cv_have_include_next = yes; then
9878 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9881 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9882 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9886 if test $ac_cv_header_sys_time_h = yes; then
9889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 #include <sys/time.h>
9895 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9896 *) gl_absname_cpp
="$ac_cpp" ;;
9901 gl_dirsep_regex
='[/\\]'
9904 gl_dirsep_regex
='\/'
9907 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9909 gl_header_literal_regex
=`echo 'sys/time.h' \
9910 | sed -e "$gl_make_literal_regex_sed"`
9911 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9917 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9918 sed -n "$gl_absolute_header_sed"`'"'
9920 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9926 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9928 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9930 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9932 gl_next_as_first_directive
='<'sys
/time.h
'>'
9934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9935 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9937 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9943 if test $ac_cv_header_sys_time_h != yes; then
9951 if test $ac_cv_header_sys_socket_h != yes; then
9952 for ac_header
in winsock2.h
9954 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
9956 cat >>confdefs.h
<<_ACEOF
9957 #define HAVE_WINSOCK2_H 1
9965 if test "$ac_cv_header_winsock2_h" = yes; then
9967 UNISTD_H_HAVE_WINSOCK2_H
=1
9968 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9975 $as_echo_n "checking for struct timeval... " >&6; }
9976 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9982 #include <sys/time.h>
9986 # include <winsock2.h>
9992 static struct timeval x; x.tv_sec = x.tv_usec;
9997 if ac_fn_c_try_compile
"$LINENO"; then :
9998 gl_cv_sys_struct_timeval
=yes
10000 gl_cv_sys_struct_timeval
=no
10002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10006 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10007 if test $gl_cv_sys_struct_timeval != yes; then
10008 HAVE_STRUCT_TIMEVAL
=0
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
10011 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
10012 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 #if HAVE_SYS_TIME_H
10018 #include <sys/time.h>
10021 #if HAVE_WINSOCK2_H
10022 # include <winsock2.h>
10028 static struct timeval x;
10029 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
10035 if ac_fn_c_try_compile
"$LINENO"; then :
10036 gl_cv_sys_struct_timeval_tv_sec
=yes
10038 gl_cv_sys_struct_timeval_tv_sec
=no
10040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10044 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10045 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10046 REPLACE_STRUCT_TIMEVAL
=1
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10057 $as_echo_n "checking for unsigned long long int... " >&6; }
10058 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10061 ac_cv_type_unsigned_long_long_int
=yes
10062 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* For now, do not test the preprocessor; as of 2007 there are too many
10067 implementations with broken preprocessors. Perhaps this can
10068 be revisited in 2012. In the meantime, code should not expect
10069 #if to work with literals wider than 32 bits. */
10070 /* Test literals. */
10071 long long int ll = 9223372036854775807ll;
10072 long long int nll = -9223372036854775807LL;
10073 unsigned long long int ull = 18446744073709551615ULL;
10074 /* Test constant expressions. */
10075 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10077 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10083 /* Test availability of runtime routines for shift and division. */
10084 long long int llmax = 9223372036854775807ll;
10085 unsigned long long int ullmax = 18446744073709551615ull;
10086 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10087 | (llmax / ll) | (llmax % ll)
10088 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10089 | (ullmax / ull) | (ullmax % ull));
10095 if ac_fn_c_try_link
"$LINENO"; then :
10098 ac_cv_type_unsigned_long_long_int
=no
10100 rm -f core conftest.err conftest.
$ac_objext \
10101 conftest
$ac_exeext conftest.
$ac_ext
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10105 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10106 if test $ac_cv_type_unsigned_long_long_int = yes; then
10108 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10115 $as_echo_n "checking for long long int... " >&6; }
10116 if test "${ac_cv_type_long_long_int+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10119 ac_cv_type_long_long_int
=yes
10120 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10121 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10122 if test $ac_cv_type_long_long_int = yes; then
10123 if test "$cross_compiling" = yes; then :
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <limits.h>
10131 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10132 # define LLONG_MAX (HALF - 1 + HALF)
10137 long long int n = 1;
10141 long long int m = n << i;
10144 if (LLONG_MAX / 2 < m)
10152 if ac_fn_c_try_run
"$LINENO"; then :
10155 ac_cv_type_long_long_int
=no
10157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10158 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10165 $as_echo "$ac_cv_type_long_long_int" >&6; }
10166 if test $ac_cv_type_long_long_int = yes; then
10168 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10177 gl_cv_c_multiarch
=no
10178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #ifndef __APPLE_CC__
10181 not a universal capable compiler
10186 if ac_fn_c_try_compile
"$LINENO"; then :
10190 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10191 if test -n "$prev"; then
10193 i?
86 | x86_64 | ppc | ppc64
)
10194 if test -z "$arch" ||
test "$arch" = "$word"; then
10197 gl_cv_c_multiarch
=yes
10203 if test "x$word" = "x-arch"; then
10210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10211 if test $gl_cv_c_multiarch = yes; then
10212 APPLE_UNIVERSAL_BUILD
=1
10214 APPLE_UNIVERSAL_BUILD
=0
10221 if test $ac_cv_type_long_long_int = yes; then
10222 HAVE_LONG_LONG_INT
=1
10224 HAVE_LONG_LONG_INT
=0
10228 if test $ac_cv_type_unsigned_long_long_int = yes; then
10229 HAVE_UNSIGNED_LONG_LONG_INT
=1
10231 HAVE_UNSIGNED_LONG_LONG_INT
=0
10236 if test $ac_cv_header_wchar_h = yes; then
10243 if test $ac_cv_header_inttypes_h = yes; then
10250 if test $ac_cv_header_sys_types_h = yes; then
10266 if test $gl_cv_have_include_next = yes; then
10267 gl_cv_next_stdint_h
='<'stdint.h
'>'
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10270 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10271 if test "${gl_cv_next_stdint_h+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10275 if test $ac_cv_header_stdint_h = yes; then
10278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <stdint.h>
10284 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10285 *) gl_absname_cpp
="$ac_cpp" ;;
10290 gl_dirsep_regex
='[/\\]'
10293 gl_dirsep_regex
='\/'
10296 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10298 gl_header_literal_regex
=`echo 'stdint.h' \
10299 | sed -e "$gl_make_literal_regex_sed"`
10300 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10306 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10307 sed -n "$gl_absolute_header_sed"`'"'
10309 gl_cv_next_stdint_h
='<'stdint.h
'>'
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10315 $as_echo "$gl_cv_next_stdint_h" >&6; }
10317 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10319 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10321 gl_next_as_first_directive
='<'stdint.h
'>'
10323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10324 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10326 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10331 if test $ac_cv_header_stdint_h = yes; then
10338 if test $ac_cv_header_stdint_h = yes; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10340 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10341 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10344 gl_cv_header_working_stdint_h
=no
10345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10349 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10350 #include <stdint.h>
10351 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10352 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10353 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10357 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10358 included before <wchar.h>. */
10359 #include <stddef.h>
10360 #include <signal.h>
10362 # include <stdio.h>
10364 # include <wchar.h>
10369 int8_t a1 = INT8_MAX;
10370 int8_t a1min = INT8_MIN;
10373 int16_t a2 = INT16_MAX;
10374 int16_t a2min = INT16_MIN;
10377 int32_t a3 = INT32_MAX;
10378 int32_t a3min = INT32_MIN;
10381 int64_t a4 = INT64_MAX;
10382 int64_t a4min = INT64_MIN;
10385 uint8_t b1 = UINT8_MAX;
10387 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10390 uint16_t b2 = UINT16_MAX;
10393 uint32_t b3 = UINT32_MAX;
10396 uint64_t b4 = UINT64_MAX;
10398 int_least8_t c1 = INT8_C (0x7f);
10399 int_least8_t c1max = INT_LEAST8_MAX;
10400 int_least8_t c1min = INT_LEAST8_MIN;
10401 int_least16_t c2 = INT16_C (0x7fff);
10402 int_least16_t c2max = INT_LEAST16_MAX;
10403 int_least16_t c2min = INT_LEAST16_MIN;
10404 int_least32_t c3 = INT32_C (0x7fffffff);
10405 int_least32_t c3max = INT_LEAST32_MAX;
10406 int_least32_t c3min = INT_LEAST32_MIN;
10407 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10408 int_least64_t c4max = INT_LEAST64_MAX;
10409 int_least64_t c4min = INT_LEAST64_MIN;
10410 uint_least8_t d1 = UINT8_C (0xff);
10411 uint_least8_t d1max = UINT_LEAST8_MAX;
10412 uint_least16_t d2 = UINT16_C (0xffff);
10413 uint_least16_t d2max = UINT_LEAST16_MAX;
10414 uint_least32_t d3 = UINT32_C (0xffffffff);
10415 uint_least32_t d3max = UINT_LEAST32_MAX;
10416 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10417 uint_least64_t d4max = UINT_LEAST64_MAX;
10418 int_fast8_t e1 = INT_FAST8_MAX;
10419 int_fast8_t e1min = INT_FAST8_MIN;
10420 int_fast16_t e2 = INT_FAST16_MAX;
10421 int_fast16_t e2min = INT_FAST16_MIN;
10422 int_fast32_t e3 = INT_FAST32_MAX;
10423 int_fast32_t e3min = INT_FAST32_MIN;
10424 int_fast64_t e4 = INT_FAST64_MAX;
10425 int_fast64_t e4min = INT_FAST64_MIN;
10426 uint_fast8_t f1 = UINT_FAST8_MAX;
10427 uint_fast16_t f2 = UINT_FAST16_MAX;
10428 uint_fast32_t f3 = UINT_FAST32_MAX;
10429 uint_fast64_t f4 = UINT_FAST64_MAX;
10431 intptr_t g = INTPTR_MAX;
10432 intptr_t gmin = INTPTR_MIN;
10435 uintptr_t h = UINTPTR_MAX;
10437 intmax_t i = INTMAX_MAX;
10438 uintmax_t j = UINTMAX_MAX;
10440 #include <limits.h> /* for CHAR_BIT */
10441 #define TYPE_MINIMUM(t) \
10442 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10443 #define TYPE_MAXIMUM(t) \
10444 ((t) ((t) 0 < (t) -1 \
10446 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10449 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10450 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10452 /* Detect bug in FreeBSD 6.0 / ia64. */
10453 int check_SIG_ATOMIC:
10454 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10455 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10457 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10459 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10460 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10462 /* Detect bug in mingw. */
10464 WINT_MIN == TYPE_MINIMUM (wint_t)
10465 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10468 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10470 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10471 int check_UINT16_C:
10472 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10474 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10476 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10479 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10482 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10485 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10487 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10488 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10489 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10490 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10491 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10492 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10493 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10494 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10495 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10496 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10497 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10508 if ac_fn_c_try_compile
"$LINENO"; then :
10509 if test "$cross_compiling" = yes; then :
10510 gl_cv_header_working_stdint_h
=yes
10513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10517 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10518 #include <stdint.h>
10521 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10522 included before <wchar.h>. */
10523 #include <stddef.h>
10524 #include <signal.h>
10526 # include <stdio.h>
10528 # include <wchar.h>
10533 #include <string.h>
10534 #define MVAL(macro) MVAL1(macro)
10535 #define MVAL1(expression) #expression
10536 static const char *macro_values[] =
10570 for (mv = macro_values; *mv != NULL; mv++)
10572 const char *value = *mv;
10573 /* Test whether it looks like a cast expression. */
10574 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10575 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10576 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10577 || strncmp (value, "((int)"/*)*/, 6) == 0
10578 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10579 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10580 return mv - macro_values + 1;
10588 if ac_fn_c_try_run
"$LINENO"; then :
10589 gl_cv_header_working_stdint_h
=yes
10591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10601 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10603 if test "$gl_cv_header_working_stdint_h" = yes; then
10606 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10608 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10609 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10610 eval as_val
=\$
$as_ac_Header
10611 if test "x$as_val" = x
""yes; then :
10612 cat >>confdefs.h
<<_ACEOF
10613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10620 if test $ac_cv_header_sys_inttypes_h = yes; then
10621 HAVE_SYS_INTTYPES_H
=1
10623 HAVE_SYS_INTTYPES_H
=0
10626 if test $ac_cv_header_sys_bitypes_h = yes; then
10627 HAVE_SYS_BITYPES_H
=1
10629 HAVE_SYS_BITYPES_H
=0
10635 if test $APPLE_UNIVERSAL_BUILD = 0; then
10638 for gltype
in ptrdiff_t size_t
; do
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10640 $as_echo_n "checking for bit size of $gltype... " >&6; }
10641 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10642 $as_echo_n "(cached) " >&6
10644 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10645 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10646 included before <wchar.h>. */
10647 #include <stddef.h>
10648 #include <signal.h>
10650 # include <stdio.h>
10652 # include <wchar.h>
10655 #include <limits.h>"; then :
10661 eval gl_cv_bitsizeof_
${gltype}=\
$result
10664 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10666 $as_echo "$ac_res" >&6; }
10667 eval result
=\
$gl_cv_bitsizeof_${gltype}
10668 if test $result = unknown
; then
10671 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10672 cat >>confdefs.h
<<_ACEOF
10673 #define BITSIZEOF_${GLTYPE} $result
10676 eval BITSIZEOF_
${GLTYPE}=\
$result
10683 for gltype
in sig_atomic_t wchar_t wint_t
; do
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10685 $as_echo_n "checking for bit size of $gltype... " >&6; }
10686 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10687 $as_echo_n "(cached) " >&6
10689 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10690 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10691 included before <wchar.h>. */
10692 #include <stddef.h>
10693 #include <signal.h>
10695 # include <stdio.h>
10697 # include <wchar.h>
10700 #include <limits.h>"; then :
10706 eval gl_cv_bitsizeof_
${gltype}=\
$result
10709 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10711 $as_echo "$ac_res" >&6; }
10712 eval result
=\
$gl_cv_bitsizeof_${gltype}
10713 if test $result = unknown
; then
10716 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10717 cat >>confdefs.h
<<_ACEOF
10718 #define BITSIZEOF_${GLTYPE} $result
10721 eval BITSIZEOF_
${GLTYPE}=\
$result
10727 for gltype
in sig_atomic_t wchar_t wint_t
; do
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10729 $as_echo_n "checking whether $gltype is signed... " >&6; }
10730 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10731 $as_echo_n "(cached) " >&6
10733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10737 included before <wchar.h>. */
10738 #include <stddef.h>
10739 #include <signal.h>
10741 # include <stdio.h>
10743 # include <wchar.h>
10746 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10755 if ac_fn_c_try_compile
"$LINENO"; then :
10760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10761 eval gl_cv_type_
${gltype}_signed
=\
$result
10764 eval ac_res
=\
$gl_cv_type_${gltype}_signed
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10767 eval result
=\
$gl_cv_type_${gltype}_signed
10768 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10769 if test "$result" = yes; then
10770 cat >>confdefs.h
<<_ACEOF
10771 #define HAVE_SIGNED_${GLTYPE} 1
10774 eval HAVE_SIGNED_
${GLTYPE}=1
10776 eval HAVE_SIGNED_
${GLTYPE}=0
10781 gl_cv_type_ptrdiff_t_signed
=yes
10782 gl_cv_type_size_t_signed
=no
10783 if test $APPLE_UNIVERSAL_BUILD = 0; then
10786 for gltype
in ptrdiff_t size_t
; do
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10788 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10789 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10790 $as_echo_n "(cached) " >&6
10792 eval gl_cv_type_
${gltype}_suffix
=no
10793 eval result
=\
$gl_cv_type_${gltype}_signed
10794 if test "$result" = yes; then
10799 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10801 '') gltype1
='int';;
10802 l
) gltype1
='long int';;
10803 ll
) gltype1
='long long int';;
10804 i64
) gltype1
='__int64';;
10805 u
) gltype1
='unsigned int';;
10806 ul
) gltype1
='unsigned long int';;
10807 ull
) gltype1
='unsigned long long int';;
10808 ui64
)gltype1
='unsigned __int64';;
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10814 included before <wchar.h>. */
10815 #include <stddef.h>
10816 #include <signal.h>
10818 # include <stdio.h>
10820 # include <wchar.h>
10823 extern $gltype foo;
10824 extern $gltype1 foo;
10833 if ac_fn_c_try_compile
"$LINENO"; then :
10834 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10837 eval result
=\
$gl_cv_type_${gltype}_suffix
10838 test "$result" != no
&& break
10841 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10843 $as_echo "$ac_res" >&6; }
10844 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10845 eval result
=\
$gl_cv_type_${gltype}_suffix
10846 test "$result" = no
&& result
=
10847 eval ${GLTYPE}_SUFFIX
=\
$result
10848 cat >>confdefs.h
<<_ACEOF
10849 #define ${GLTYPE}_SUFFIX $result
10858 for gltype
in sig_atomic_t wchar_t wint_t
; do
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10860 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10861 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10862 $as_echo_n "(cached) " >&6
10864 eval gl_cv_type_
${gltype}_suffix
=no
10865 eval result
=\
$gl_cv_type_${gltype}_signed
10866 if test "$result" = yes; then
10871 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10873 '') gltype1
='int';;
10874 l
) gltype1
='long int';;
10875 ll
) gltype1
='long long int';;
10876 i64
) gltype1
='__int64';;
10877 u
) gltype1
='unsigned int';;
10878 ul
) gltype1
='unsigned long int';;
10879 ull
) gltype1
='unsigned long long int';;
10880 ui64
)gltype1
='unsigned __int64';;
10882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10885 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10886 included before <wchar.h>. */
10887 #include <stddef.h>
10888 #include <signal.h>
10890 # include <stdio.h>
10892 # include <wchar.h>
10895 extern $gltype foo;
10896 extern $gltype1 foo;
10905 if ac_fn_c_try_compile
"$LINENO"; then :
10906 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10909 eval result
=\
$gl_cv_type_${gltype}_suffix
10910 test "$result" != no
&& break
10913 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10917 eval result
=\
$gl_cv_type_${gltype}_suffix
10918 test "$result" = no
&& result
=
10919 eval ${GLTYPE}_SUFFIX
=\
$result
10920 cat >>confdefs.h
<<_ACEOF
10921 #define ${GLTYPE}_SUFFIX $result
10928 if test $BITSIZEOF_WINT_T -lt 32; then
10929 BITSIZEOF_WINT_T
=32
10935 if test -n "$STDINT_H"; then
10936 GL_GENERATE_STDINT_H_TRUE
=
10937 GL_GENERATE_STDINT_H_FALSE
='#'
10939 GL_GENERATE_STDINT_H_TRUE
='#'
10940 GL_GENERATE_STDINT_H_FALSE
=
10949 GNULIB_STRTOIMAX
=0;
10950 GNULIB_STRTOUMAX
=0;
10951 HAVE_DECL_IMAXABS
=1;
10952 HAVE_DECL_IMAXDIV
=1;
10953 HAVE_DECL_STRTOIMAX
=1;
10954 HAVE_DECL_STRTOUMAX
=1;
10955 REPLACE_STRTOIMAX
=0;
10956 INT32_MAX_LT_INTMAX_MAX
=1;
10957 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10958 PRI_MACROS_BROKEN
=0;
10959 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10960 UINT32_MAX_LT_UINTMAX_MAX
=1;
10961 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10977 if test $gl_cv_have_include_next = yes; then
10978 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10981 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10982 if test "${gl_cv_next_inttypes_h+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10986 if test $ac_cv_header_inttypes_h = yes; then
10989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #include <inttypes.h>
10995 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10996 *) gl_absname_cpp
="$ac_cpp" ;;
11001 gl_dirsep_regex
='[/\\]'
11004 gl_dirsep_regex
='\/'
11007 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11009 gl_header_literal_regex
=`echo 'inttypes.h' \
11010 | sed -e "$gl_make_literal_regex_sed"`
11011 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11012 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11017 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11018 sed -n "$gl_absolute_header_sed"`'"'
11020 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11026 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11028 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11030 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11032 gl_next_as_first_directive
='<'inttypes.h
'>'
11034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11035 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11037 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11052 $as_echo_n "checking for 64-bit off_t... " >&6; }
11053 if test "${gl_cv_type_off_t_64+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058 #include <sys/types.h>
11059 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11069 if ac_fn_c_try_compile
"$LINENO"; then :
11070 gl_cv_type_off_t_64
=yes
11072 gl_cv_type_off_t_64
=no
11074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11078 $as_echo "$gl_cv_type_off_t_64" >&6; }
11079 if test $gl_cv_type_off_t_64 = no
; then
11080 WINDOWS_64_BIT_OFF_T
=1
11082 WINDOWS_64_BIT_OFF_T
=0
11084 WINDOWS_64_BIT_ST_SIZE
=1
11087 WINDOWS_64_BIT_OFF_T
=0
11088 WINDOWS_64_BIT_ST_SIZE
=0
11105 GNULIB_UTIMENSAT
=0;
11119 REPLACE_FUTIMENS
=0;
11125 REPLACE_UTIMENSAT
=0;
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11131 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11132 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 rm -f conftest.sym conftest.
file
11136 echo >conftest.
file
11137 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11138 if test "$cross_compiling" = yes; then :
11140 # Guess yes on glibc systems.
11141 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
11142 # If we don't know, assume the worst.
11143 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 $ac_includes_default
11154 /* Linux will dereference the symlink and fail, as required by
11155 POSIX. That is better in the sense that it means we will not
11156 have to compile and use the lstat wrapper. */
11157 return lstat ("conftest.sym/", &sbuf) == 0;
11163 if ac_fn_c_try_run
"$LINENO"; then :
11164 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
11166 gl_cv_func_lstat_dereferences_slashed_symlink
=no
11168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11173 # If the 'ln -s' command failed, then we probably don't even
11174 # have an lstat function.
11175 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
11177 rm -f conftest.sym conftest.
file
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11181 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11182 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11185 cat >>confdefs.h
<<_ACEOF
11186 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11194 GNULIB_NANOSLEEP
=0;
11198 HAVE_DECL_LOCALTIME_R
=1;
11202 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
11203 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
11204 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
11205 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11224 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11225 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 #include <sys/select.h>
11240 if ac_fn_c_try_compile
"$LINENO"; then :
11241 gl_cv_header_sys_select_h_selfcontained
=yes
11243 gl_cv_header_sys_select_h_selfcontained
=no
11245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11246 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/select.h>
11253 int memset; int bzero;
11259 if ac_fn_c_try_compile
"$LINENO"; then :
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 #include <sys/select.h>
11268 #define memset nonexistent_memset
11273 void *memset (void *, int, unsigned long);
11275 #define bzero nonexistent_bzero
11280 void bzero (void *, unsigned long);
11289 if ac_fn_c_try_link
"$LINENO"; then :
11292 gl_cv_header_sys_select_h_selfcontained
=no
11294 rm -f core conftest.err conftest.
$ac_objext \
11295 conftest
$ac_exeext conftest.
$ac_ext
11298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11303 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11313 if test $gl_cv_have_include_next = yes; then
11314 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11317 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11318 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11322 if test $ac_cv_header_sys_select_h = yes; then
11325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 #include <sys/select.h>
11331 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11332 *) gl_absname_cpp
="$ac_cpp" ;;
11337 gl_dirsep_regex
='[/\\]'
11340 gl_dirsep_regex
='\/'
11343 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11345 gl_header_literal_regex
=`echo 'sys/select.h' \
11346 | sed -e "$gl_make_literal_regex_sed"`
11347 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11348 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11353 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11354 sed -n "$gl_absolute_header_sed"`'"'
11356 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11362 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11364 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
11366 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11368 gl_next_as_first_directive
='<'sys
/select.h
'>'
11370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11371 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
11373 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
11378 if test $ac_cv_header_sys_select_h = yes; then
11379 HAVE_SYS_SELECT_H
=1
11381 HAVE_SYS_SELECT_H
=0
11388 if test $ac_cv_header_sys_socket_h != yes; then
11389 for ac_header
in winsock2.h
11391 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11392 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
11393 cat >>confdefs.h
<<_ACEOF
11394 #define HAVE_WINSOCK2_H 1
11402 if test "$ac_cv_header_winsock2_h" = yes; then
11404 UNISTD_H_HAVE_WINSOCK2_H
=1
11405 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11417 GNULIB_PTHREAD_SIGMASK
=0;
11419 GNULIB_SIGNAL_H_SIGPIPE
=0;
11420 GNULIB_SIGPROCMASK
=0;
11421 GNULIB_SIGACTION
=0;
11422 HAVE_POSIX_SIGNALBLOCKING
=1;
11423 HAVE_PTHREAD_SIGMASK
=1;
11428 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
11430 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
11432 HAVE_SIGHANDLER_T
=1;
11433 REPLACE_PTHREAD_SIGMASK
=0;
11441 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11442 #include <signal.h>
11443 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11444 #include <sys/types.h>
11447 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
11449 cat >>confdefs.h
<<_ACEOF
11450 #define HAVE_SIGSET_T 1
11453 gl_cv_type_sigset_t
=yes
11455 gl_cv_type_sigset_t
=no
11458 if test $gl_cv_type_sigset_t != yes; then
11462 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11463 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11467 cat >>confdefs.h
<<_ACEOF
11475 if test $ac_cv_header_sys_socket_h = no
; then
11476 for ac_header
in ws2tcpip.h
11478 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11479 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
11480 cat >>confdefs.h
<<_ACEOF
11481 #define HAVE_WS2TCPIP_H 1
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11491 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11492 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 #include <stdbool.h>
11500 "error: bool is not defined"
11503 "error: false is not defined"
11506 "error: false is not 0"
11509 "error: true is not defined"
11512 "error: true is not 1"
11514 #ifndef __bool_true_false_are_defined
11515 "error: __bool_true_false_are_defined is not defined"
11518 struct s { _Bool s: 1; _Bool t; } s;
11520 char a[true == 1 ? 1 : -1];
11521 char b[false == 0 ? 1 : -1];
11522 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11523 char d[(bool) 0.5 == true ? 1 : -1];
11524 /* See body of main program for 'e'. */
11525 char f[(_Bool) 0.0 == false ? 1 : -1];
11527 char h[sizeof (_Bool)];
11528 char i[sizeof s.t];
11529 enum { j = false, k = true, l = false * true, m = true * 256 };
11530 /* The following fails for
11531 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11533 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11534 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11535 /* Catch a bug in an HP-UX C compiler. See
11536 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11537 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11549 /* Refer to every declared value, to avoid compiler optimizations. */
11550 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11551 + !m + !n + !o + !p + !q + !pq);
11557 if ac_fn_c_try_compile
"$LINENO"; then :
11558 ac_cv_header_stdbool_h
=yes
11560 ac_cv_header_stdbool_h
=no
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11565 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11566 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11567 if test "x$ac_cv_type__Bool" = x
""yes; then :
11569 cat >>confdefs.h
<<_ACEOF
11570 #define HAVE__BOOL 1
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11583 $as_echo_n "checking for wchar_t... " >&6; }
11584 if test "${gt_cv_c_wchar_t+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <stddef.h>
11590 wchar_t foo = (wchar_t)'\0';
11599 if ac_fn_c_try_compile
"$LINENO"; then :
11600 gt_cv_c_wchar_t
=yes
11604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11607 $as_echo "$gt_cv_c_wchar_t" >&6; }
11608 if test $gt_cv_c_wchar_t = yes; then
11610 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11623 GNULIB_FPRINTF_POSIX
=0;
11639 GNULIB_OBSTACK_PRINTF
=0;
11640 GNULIB_OBSTACK_PRINTF_POSIX
=0;
11645 GNULIB_PRINTF_POSIX
=0;
11654 GNULIB_SPRINTF_POSIX
=0;
11655 GNULIB_STDIO_H_NONBLOCKING
=0;
11656 GNULIB_STDIO_H_SIGPIPE
=0;
11658 GNULIB_VASPRINTF
=0;
11663 GNULIB_VFPRINTF_POSIX
=0;
11665 GNULIB_VPRINTF_POSIX
=0;
11666 GNULIB_VSNPRINTF
=0;
11667 GNULIB_VSPRINTF_POSIX
=0;
11668 HAVE_DECL_FPURGE
=1;
11669 HAVE_DECL_FSEEKO
=1;
11670 HAVE_DECL_FTELLO
=1;
11671 HAVE_DECL_GETDELIM
=1;
11672 HAVE_DECL_GETLINE
=1;
11673 HAVE_DECL_OBSTACK_PRINTF
=1;
11674 HAVE_DECL_SNPRINTF
=1;
11675 HAVE_DECL_VSNPRINTF
=1;
11696 REPLACE_GETDELIM
=0;
11698 REPLACE_OBSTACK_PRINTF
=0;
11704 REPLACE_RENAMEAT
=0;
11705 REPLACE_SNPRINTF
=0;
11707 REPLACE_STDIO_READ_FUNCS
=0;
11708 REPLACE_STDIO_WRITE_FUNCS
=0;
11710 REPLACE_VASPRINTF
=0;
11711 REPLACE_VDPRINTF
=0;
11712 REPLACE_VFPRINTF
=0;
11714 REPLACE_VSNPRINTF
=0;
11715 REPLACE_VSPRINTF
=0;
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11718 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11719 if test "${ac_cv_struct_tm+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724 #include <sys/types.h>
11731 int *p = &tm.tm_sec;
11737 if ac_fn_c_try_compile
"$LINENO"; then :
11738 ac_cv_struct_tm
=time.h
11740 ac_cv_struct_tm
=sys
/time.h
11742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11745 $as_echo "$ac_cv_struct_tm" >&6; }
11746 if test $ac_cv_struct_tm = sys
/time.h
; then
11748 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11752 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11753 #include <$ac_cv_struct_tm>
11756 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
11758 cat >>confdefs.h
<<_ACEOF
11759 #define HAVE_STRUCT_TM_TM_ZONE 1
11765 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11767 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11770 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11772 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
11778 cat >>confdefs.h
<<_ACEOF
11779 #define HAVE_DECL_TZNAME $ac_have_decl
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11783 $as_echo_n "checking for tzname... " >&6; }
11784 if test "${ac_cv_var_tzname+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 #if !HAVE_DECL_TZNAME
11791 extern char *tzname[];
11797 return tzname[0][0];
11802 if ac_fn_c_try_link
"$LINENO"; then :
11803 ac_cv_var_tzname
=yes
11805 ac_cv_var_tzname
=no
11807 rm -f core conftest.err conftest.
$ac_objext \
11808 conftest
$ac_exeext conftest.
$ac_ext
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11811 $as_echo "$ac_cv_var_tzname" >&6; }
11812 if test $ac_cv_var_tzname = yes; then
11814 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11820 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11822 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
11824 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11833 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11834 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
11840 cat >>confdefs.h
<<_ACEOF
11841 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11846 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11847 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
11853 cat >>confdefs.h
<<_ACEOF
11854 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11860 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11861 if test "${ac_cv_header_stat_broken+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <sys/types.h>
11867 #include <sys/stat.h>
11869 #if defined S_ISBLK && defined S_IFDIR
11870 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11873 #if defined S_ISBLK && defined S_IFCHR
11874 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11877 #if defined S_ISLNK && defined S_IFREG
11878 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11881 #if defined S_ISSOCK && defined S_IFREG
11882 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11886 if ac_fn_c_try_compile
"$LINENO"; then :
11887 ac_cv_header_stat_broken
=no
11889 ac_cv_header_stat_broken
=yes
11891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11894 $as_echo "$ac_cv_header_stat_broken" >&6; }
11895 if test $ac_cv_header_stat_broken = yes; then
11897 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11903 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11904 if test "x$ac_cv_type_mode_t" = x
""yes; then :
11908 cat >>confdefs.h
<<_ACEOF
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11917 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11918 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11928 static struct timespec x; x.tv_sec = x.tv_nsec;
11933 if ac_fn_c_try_compile
"$LINENO"; then :
11934 gl_cv_sys_struct_timespec_in_time_h
=yes
11936 gl_cv_sys_struct_timespec_in_time_h
=no
11938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11941 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11943 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
11944 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
11945 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
11946 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11947 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11950 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11951 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <sys/time.h>
11961 static struct timespec x; x.tv_sec = x.tv_nsec;
11966 if ac_fn_c_try_compile
"$LINENO"; then :
11967 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
11969 gl_cv_sys_struct_timespec_in_sys_time_h
=no
11971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11974 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11975 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11976 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11979 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11980 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <pthread.h>
11990 static struct timespec x; x.tv_sec = x.tv_nsec;
11995 if ac_fn_c_try_compile
"$LINENO"; then :
11996 gl_cv_sys_struct_timespec_in_pthread_h
=yes
11998 gl_cv_sys_struct_timespec_in_pthread_h
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12003 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12004 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12005 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
12024 if test $gl_cv_have_include_next = yes; then
12025 gl_cv_next_time_h
='<'time.h
'>'
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12028 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12029 if test "${gl_cv_next_time_h+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12039 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12040 *) gl_absname_cpp
="$ac_cpp" ;;
12045 gl_dirsep_regex
='[/\\]'
12048 gl_dirsep_regex
='\/'
12051 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12053 gl_header_literal_regex
=`echo 'time.h' \
12054 | sed -e "$gl_make_literal_regex_sed"`
12055 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12056 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12061 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12062 sed -n "$gl_absolute_header_sed"`'"'
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12067 $as_echo "$gl_cv_next_time_h" >&6; }
12069 NEXT_TIME_H
=$gl_cv_next_time_h
12071 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12073 gl_next_as_first_directive
='<'time.h
'>'
12075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12076 gl_next_as_first_directive
=$gl_cv_next_time_h
12078 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12095 $as_echo_n "checking whether the utimes function works... " >&6; }
12096 if test "${gl_cv_func_working_utimes+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12100 if test "$cross_compiling" = yes; then :
12101 gl_cv_func_working_utimes
=no
12103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 #include <sys/types.h>
12107 #include <sys/stat.h>
12109 #include <sys/time.h>
12111 #include <unistd.h>
12112 #include <stdlib.h>
12117 inorder (time_t a, time_t b, time_t c)
12119 return a <= b && b <= c;
12126 char const *file = "conftest.utimes";
12127 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12129 /* Test whether utimes() essentially works. */
12132 FILE *f = fopen (file, "w");
12135 else if (fclose (f) != 0)
12137 else if (utimes (file, timeval) != 0)
12139 else if (lstat (file, &sbuf) != 0)
12141 else if (!(sbuf.st_atime == timeval[0].tv_sec
12142 && sbuf.st_mtime == timeval[1].tv_sec))
12144 if (unlink (file) != 0)
12148 /* Test whether utimes() with a NULL argument sets the file's timestamp
12149 to the current time. Use 'fstat' as well as 'time' to
12150 determine the "current" time, to accommodate NFS file systems
12151 if there is a time skew between the host and the NFS server. */
12153 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12159 struct stat st0, st1, st2;
12160 if (time (&t0) == (time_t) -1)
12162 else if (fstat (fd, &st0) != 0)
12164 else if (utimes (file, timeval) != 0)
12166 else if (utimes (file, NULL) != 0)
12168 else if (fstat (fd, &st1) != 0)
12170 else if (write (fd, "\n", 1) != 1)
12172 else if (fstat (fd, &st2) != 0)
12174 else if (time (&t2) == (time_t) -1)
12178 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12179 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12180 if (! (st1.st_atime == st1.st_mtime))
12182 if (! (m_ok_POSIX || m_ok_NFS))
12185 if (close (fd) != 0)
12188 if (unlink (file) != 0)
12192 /* Test whether utimes() with a NULL argument works on read-only files. */
12194 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12197 else if (close (fd) != 0)
12199 else if (utimes (file, NULL) != 0)
12201 if (unlink (file) != 0)
12209 if ac_fn_c_try_run
"$LINENO"; then :
12210 gl_cv_func_working_utimes
=yes
12212 gl_cv_func_working_utimes
=no
12214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12220 $as_echo "$gl_cv_func_working_utimes" >&6; }
12222 if test $gl_cv_func_working_utimes = yes; then
12224 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12233 $as_echo_n "checking for struct utimbuf... " >&6; }
12234 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #if HAVE_SYS_TIME_H
12240 #include <sys/time.h>
12243 #ifdef HAVE_UTIME_H
12250 static struct utimbuf x; x.actime = x.modtime;
12255 if ac_fn_c_try_compile
"$LINENO"; then :
12256 gl_cv_sys_struct_utimbuf
=yes
12258 gl_cv_sys_struct_utimbuf
=no
12260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12263 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12265 if test $gl_cv_sys_struct_utimbuf = yes; then
12267 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12285 GL_COND_LIBTOOL_TRUE
=
12286 GL_COND_LIBTOOL_FALSE
='#'
12288 GL_COND_LIBTOOL_TRUE
='#'
12289 GL_COND_LIBTOOL_FALSE
=
12292 gl_cond_libtool
=false
12305 gl_source_base
='lib'
12308 if test $ac_cv_func_alloca_works = no
; then
12312 # Define an additional variable used in the Makefile substitution.
12313 if test $ac_cv_working_alloca_h = yes; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12315 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12316 if test "${gl_cv_rpl_alloca+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12329 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
12330 gl_cv_rpl_alloca
=yes
12332 gl_cv_rpl_alloca
=no
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12339 $as_echo "$gl_cv_rpl_alloca" >&6; }
12340 if test $gl_cv_rpl_alloca = yes; then
12342 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12352 if test -n "$ALLOCA_H"; then
12353 GL_GENERATE_ALLOCA_H_TRUE
=
12354 GL_GENERATE_ALLOCA_H_FALSE
='#'
12356 GL_GENERATE_ALLOCA_H_TRUE
='#'
12357 GL_GENERATE_ALLOCA_H_FALSE
=
12365 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12366 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12368 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12369 # programs in the package would end up linked with that potentially-shared
12370 # library, inducing unnecessary run-time overhead.
12373 gl_saved_libs
=$LIBS
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12375 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12376 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_func_search_save_LIBS
=$LIBS
12380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12389 char clock_gettime ();
12393 return clock_gettime ();
12398 for ac_lib
in '' rt posix4
; do
12399 if test -z "$ac_lib"; then
12400 ac_res
="none required"
12403 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12405 if ac_fn_c_try_link
"$LINENO"; then :
12406 ac_cv_search_clock_gettime
=$ac_res
12408 rm -f core conftest.err conftest.
$ac_objext \
12410 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12414 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12417 ac_cv_search_clock_gettime
=no
12419 rm conftest.
$ac_ext
12420 LIBS
=$ac_func_search_save_LIBS
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12423 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12424 ac_res
=$ac_cv_search_clock_gettime
12425 if test "$ac_res" != no
; then :
12426 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12427 test "$ac_cv_search_clock_gettime" = "none required" ||
12428 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
12431 for ac_func
in clock_gettime clock_settime
12433 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12434 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12435 eval as_val
=\$
$as_ac_var
12436 if test "x$as_val" = x
""yes; then :
12437 cat >>confdefs.h
<<_ACEOF
12438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 LIBS
=$gl_saved_libs
12470 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12473 if test $HAVE_DUP2 = 1; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12475 $as_echo_n "checking whether dup2 works... " >&6; }
12476 if test "${gl_cv_func_dup2_works+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12479 if test "$cross_compiling" = yes; then :
12481 mingw
*) # on this platform, dup2 always returns 0 for success
12482 gl_cv_func_dup2_works
="guessing no" ;;
12483 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
12484 gl_cv_func_dup2_works
="guessing no" ;;
12485 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12486 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12487 gl_cv_func_dup2_works
="guessing no" ;;
12488 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12489 gl_cv_func_dup2_works
="guessing no" ;;
12490 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12491 gl_cv_func_dup2_works
="guessing no" ;;
12492 *) gl_cv_func_dup2_works
="guessing yes" ;;
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 #include <unistd.h>
12506 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12509 if (dup2 (1, 1) == 0)
12512 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12516 if (dup2 (0, 0) != -1)
12518 /* Many gnulib modules require POSIX conformance of EBADF. */
12519 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12528 if ac_fn_c_try_run
"$LINENO"; then :
12529 gl_cv_func_dup2_works
=yes
12531 gl_cv_func_dup2_works
=no
12533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12540 $as_echo "$gl_cv_func_dup2_works" >&6; }
12541 case "$gl_cv_func_dup2_works" in
12550 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
12559 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
12580 # Persuade glibc <stdlib.h> to declare getloadavg().
12585 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12586 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12588 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12589 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12592 gl_func_getloadavg_done
=no
12594 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12595 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12596 # to get the right answer into the cache.
12597 # For kstat on solaris, we need to test for libelf and libkvm to force the
12598 # definition of SVR4 below.
12599 if test $gl_func_getloadavg_done = no
; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12601 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12602 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12605 ac_check_lib_save_LIBS
=$LIBS
12607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12620 return elf_begin ();
12625 if ac_fn_c_try_link
"$LINENO"; then :
12626 ac_cv_lib_elf_elf_begin
=yes
12628 ac_cv_lib_elf_elf_begin
=no
12630 rm -f core conftest.err conftest.
$ac_objext \
12631 conftest
$ac_exeext conftest.
$ac_ext
12632 LIBS
=$ac_check_lib_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12635 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12636 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12641 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12642 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12645 ac_check_lib_save_LIBS
=$LIBS
12647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12660 return kvm_open ();
12665 if ac_fn_c_try_link
"$LINENO"; then :
12666 ac_cv_lib_kvm_kvm_open
=yes
12668 ac_cv_lib_kvm_kvm_open
=no
12670 rm -f core conftest.err conftest.
$ac_objext \
12671 conftest
$ac_exeext conftest.
$ac_ext
12672 LIBS
=$ac_check_lib_save_LIBS
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12675 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12676 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12680 # Check for the 4.4BSD definition of getloadavg.
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12682 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12686 ac_check_lib_save_LIBS
=$LIBS
12687 LIBS
="-lutil $LIBS"
12688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 /* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12697 char getloadavg ();
12701 return getloadavg ();
12706 if ac_fn_c_try_link
"$LINENO"; then :
12707 ac_cv_lib_util_getloadavg
=yes
12709 ac_cv_lib_util_getloadavg
=no
12711 rm -f core conftest.err conftest.
$ac_objext \
12712 conftest
$ac_exeext conftest.
$ac_ext
12713 LIBS
=$ac_check_lib_save_LIBS
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12716 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12717 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12718 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
12723 if test $gl_func_getloadavg_done = no
; then
12724 # There is a commonly available library for RS/6000 AIX.
12725 # Since it is not a standard part of AIX, it might be installed locally.
12726 gl_getloadavg_LIBS
=$LIBS
12727 LIBS
="-L/usr/local/lib $LIBS"
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12729 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12730 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12733 ac_check_lib_save_LIBS
=$LIBS
12734 LIBS
="-lgetloadavg $LIBS"
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12744 char getloadavg ();
12748 return getloadavg ();
12753 if ac_fn_c_try_link
"$LINENO"; then :
12754 ac_cv_lib_getloadavg_getloadavg
=yes
12756 ac_cv_lib_getloadavg_getloadavg
=no
12758 rm -f core conftest.err conftest.
$ac_objext \
12759 conftest
$ac_exeext conftest.
$ac_ext
12760 LIBS
=$ac_check_lib_save_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12763 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12764 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12765 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
12767 LIBS
=$gl_getloadavg_LIBS
12772 # Set up the replacement function if necessary.
12773 if test $gl_func_getloadavg_done = no
; then
12776 # Solaris has libkstat which does not require root.
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12778 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12779 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12782 ac_check_lib_save_LIBS
=$LIBS
12783 LIBS
="-lkstat $LIBS"
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12793 char kstat_open ();
12797 return kstat_open ();
12802 if ac_fn_c_try_link
"$LINENO"; then :
12803 ac_cv_lib_kstat_kstat_open
=yes
12805 ac_cv_lib_kstat_kstat_open
=no
12807 rm -f core conftest.err conftest.
$ac_objext \
12808 conftest
$ac_exeext conftest.
$ac_ext
12809 LIBS
=$ac_check_lib_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12812 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12813 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12814 cat >>confdefs.h
<<_ACEOF
12815 #define HAVE_LIBKSTAT 1
12818 LIBS
="-lkstat $LIBS"
12822 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
12824 # AIX has libperfstat which does not require root
12825 if test $gl_func_getloadavg_done = no
; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12827 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12828 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12831 ac_check_lib_save_LIBS
=$LIBS
12832 LIBS
="-lperfstat $LIBS"
12833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12836 /* Override any GCC internal prototype to avoid an error.
12837 Use char because int might match the return type of a GCC
12838 builtin and then its argument prototype would still apply. */
12842 char perfstat_cpu_total ();
12846 return perfstat_cpu_total ();
12851 if ac_fn_c_try_link
"$LINENO"; then :
12852 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
12854 ac_cv_lib_perfstat_perfstat_cpu_total
=no
12856 rm -f core conftest.err conftest.
$ac_objext \
12857 conftest
$ac_exeext conftest.
$ac_ext
12858 LIBS
=$ac_check_lib_save_LIBS
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12861 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12862 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
12863 cat >>confdefs.h
<<_ACEOF
12864 #define HAVE_LIBPERFSTAT 1
12867 LIBS
="-lperfstat $LIBS"
12871 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
12874 if test $gl_func_getloadavg_done = no
; then
12875 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12876 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12877 gl_func_getloadavg_done
=yes
12879 $as_echo "#define DGUX 1" >>confdefs.h
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12882 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12883 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12886 ac_check_lib_save_LIBS
=$LIBS
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12897 char dg_sys_info ();
12901 return dg_sys_info ();
12906 if ac_fn_c_try_link
"$LINENO"; then :
12907 ac_cv_lib_dgc_dg_sys_info
=yes
12909 ac_cv_lib_dgc_dg_sys_info
=no
12911 rm -f core conftest.err conftest.
$ac_objext \
12912 conftest
$ac_exeext conftest.
$ac_ext
12913 LIBS
=$ac_check_lib_save_LIBS
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12916 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12917 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12918 cat >>confdefs.h
<<_ACEOF
12919 #define HAVE_LIBDGC 1
12934 if test "x$gl_save_LIBS" = x
; then
12935 GETLOADAVG_LIBS
=$LIBS
12937 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
12942 # Test whether the system declares getloadavg. Solaris has the function
12943 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
12944 for ac_header
in sys
/loadavg.h
12946 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
12948 cat >>confdefs.h
<<_ACEOF
12949 #define HAVE_SYS_LOADAVG_H 1
12956 if test $ac_cv_header_sys_loadavg_h = yes; then
12957 HAVE_SYS_LOADAVG_H
=1
12959 HAVE_SYS_LOADAVG_H
=0
12961 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
12962 # include <sys/loadavg.h>
12964 #include <stdlib.h>
12966 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
12969 HAVE_DECL_GETLOADAVG
=0
12973 if test $HAVE_GETLOADAVG = 0; then
12982 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
12985 # Figure out what our getloadavg.c needs.
12987 # On HPUX9, an unprivileged user can get load averages this way.
12988 if test $gl_func_getloadavg_done = no
; then
12989 for ac_func
in pstat_getdynamic
12991 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12992 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12993 cat >>confdefs.h
<<_ACEOF
12994 #define HAVE_PSTAT_GETDYNAMIC 1
12996 gl_func_getloadavg_done
=yes
13002 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13003 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13004 # Irix 4.0.5F has the header but not the library.
13005 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13006 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13007 gl_func_getloadavg_done
=yes
13009 $as_echo "#define SVR4 1" >>confdefs.h
13013 if test $gl_func_getloadavg_done = no
; then
13014 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13015 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
13016 gl_func_getloadavg_done
=yes
13018 $as_echo "#define UMAX 1" >>confdefs.h
13021 $as_echo "#define UMAX4_3 1" >>confdefs.h
13028 if test $gl_func_getloadavg_done = no
; then
13029 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13030 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
13031 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13038 if test $gl_func_getloadavg_done = no
; then
13039 for ac_header
in mach
/mach.h
13041 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13042 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
13043 cat >>confdefs.h
<<_ACEOF
13044 #define HAVE_MACH_MACH_H 1
13053 for ac_header
in nlist.h
13055 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13056 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
13057 cat >>confdefs.h
<<_ACEOF
13058 #define HAVE_NLIST_H 1
13060 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13062 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
13064 cat >>confdefs.h
<<_ACEOF
13065 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13078 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13079 x.n_un.n_name = "";
13087 if ac_fn_c_try_link
"$LINENO"; then :
13089 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13092 rm -f core conftest.err conftest.
$ac_objext \
13093 conftest
$ac_exeext conftest.
$ac_ext
13105 GNULIB_GETLOADAVG
=1
13116 if test $REPLACE_GETOPT = 1; then
13125 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13135 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13140 GNULIB_GL_UNISTD_H_GETOPT
=1
13151 if test -n "$gl_replace_getopt"; then :
13158 if test $REPLACE_GETOPT = 1; then
13162 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13168 if test $REPLACE_GETOPT = 1; then
13177 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13187 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13192 GNULIB_GL_UNISTD_H_GETOPT
=1
13206 gl_gettimeofday_timezone
=void
13207 if test $ac_cv_func_gettimeofday != yes; then
13208 HAVE_GETTIMEOFDAY
=0
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13214 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13215 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 if test "$cross_compiling" = yes; then :
13219 # When cross-compiling:
13221 # Guess all is fine on glibc systems.
13222 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
13223 # If we don't know, assume the worst.
13224 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
13228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #include <string.h>
13231 #include <sys/time.h>
13233 #include <stdlib.h>
13241 struct tm saved_lt;
13243 lt = localtime (&t);
13245 gettimeofday (&tv, NULL);
13246 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13252 if ac_fn_c_try_run
"$LINENO"; then :
13253 gl_cv_func_gettimeofday_clobber
=no
13255 gl_cv_func_gettimeofday_clobber
=yes
13257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13263 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13265 case "$gl_cv_func_gettimeofday_clobber" in
13267 REPLACE_GETTIMEOFDAY
=1
13270 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13273 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13277 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13283 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13284 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <sys/time.h>
13291 int gettimeofday (struct timeval *restrict, void *restrict);
13296 /* glibc uses struct timezone * rather than the POSIX void *
13297 if _GNU_SOURCE is defined. However, since the only portable
13298 use of gettimeofday uses NULL as the second parameter, and
13299 since the glibc definition is actually more typesafe, it is
13300 not worth wrapping this to get a compliant signature. */
13301 int (*f) (struct timeval *restrict, void *restrict)
13304 return !(x | c.tv_sec | c.tv_usec);
13310 if ac_fn_c_try_compile
"$LINENO"; then :
13311 gl_cv_func_gettimeofday_posix_signature
=yes
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #include <sys/time.h>
13316 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13326 if ac_fn_c_try_compile
"$LINENO"; then :
13327 gl_cv_func_gettimeofday_posix_signature
=almost
13329 gl_cv_func_gettimeofday_posix_signature
=no
13331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13336 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13337 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
13338 gl_gettimeofday_timezone
='struct timezone'
13339 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13340 REPLACE_GETTIMEOFDAY
=1
13342 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13343 REPLACE_GETTIMEOFDAY
=1
13348 cat >>confdefs.h
<<_ACEOF
13349 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13353 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
13362 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
13365 for ac_header
in sys
/timeb.h
13367 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
13369 cat >>confdefs.h
<<_ACEOF
13370 #define HAVE_SYS_TIMEB_H 1
13377 for ac_func
in _ftime
13379 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
13380 if test "x$ac_cv_func__ftime" = x
""yes; then :
13381 cat >>confdefs.h
<<_ACEOF
13382 #define HAVE__FTIME 1
13395 GNULIB_GETTIMEOFDAY
=1
13407 if test $ac_cv_func_lstat = yes; then
13409 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13418 if test $REPLACE_LSTAT = 1; then
13427 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
13451 if test $APPLE_UNIVERSAL_BUILD = 1; then
13452 # A universal build on Apple Mac OS X platforms.
13453 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13454 # But we need a configuration result that is valid in both modes.
13455 gl_cv_func_working_mktime
=no
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13458 $as_echo_n "checking for working mktime... " >&6; }
13459 if test "${gl_cv_func_working_mktime+set}" = set; then :
13460 $as_echo_n "(cached) " >&6
13462 if test "$cross_compiling" = yes; then :
13463 gl_cv_func_working_mktime
=no
13465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 /* Test program from Paul Eggert and Tony Leneis. */
13468 #include <limits.h>
13469 #include <stdlib.h>
13472 #ifdef HAVE_UNISTD_H
13473 # include <unistd.h>
13477 # define alarm(X) /* empty */
13480 /* Work around redefinition to rpl_putenv by other config tests. */
13483 static time_t time_t_max;
13484 static time_t time_t_min;
13486 /* Values we'll use to set the TZ environment variable. */
13487 static char *tz_strings[] = {
13488 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13489 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13491 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13493 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13494 Based on a problem report from Andreas Jaeger. */
13496 spring_forward_gap ()
13498 /* glibc (up to about 1998-10-07) failed this test. */
13501 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13502 instead of "TZ=America/Vancouver" in order to detect the bug even
13503 on systems that don't support the Olson extension, or don't have the
13504 full zoneinfo tables installed. */
13505 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13514 return mktime (&tm) != (time_t) -1;
13518 mktime_test1 (time_t now)
13521 return ! (lt = localtime (&now)) || mktime (lt) == now;
13525 mktime_test (time_t now)
13527 return (mktime_test1 (now)
13528 && mktime_test1 ((time_t) (time_t_max - now))
13529 && mktime_test1 ((time_t) (time_t_min + now)));
13535 /* Based on code from Ariel Faigon. */
13545 return tm.tm_mon == 2 && tm.tm_mday == 31;
13549 bigtime_test (int j)
13553 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13554 now = mktime (&tm);
13555 if (now != (time_t) -1)
13557 struct tm *lt = localtime (&now);
13559 && lt->tm_year == tm.tm_year
13560 && lt->tm_mon == tm.tm_mon
13561 && lt->tm_mday == tm.tm_mday
13562 && lt->tm_hour == tm.tm_hour
13563 && lt->tm_min == tm.tm_min
13564 && lt->tm_sec == tm.tm_sec
13565 && lt->tm_yday == tm.tm_yday
13566 && lt->tm_wday == tm.tm_wday
13567 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13568 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13577 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13578 ignoring leap seconds. */
13579 unsigned long int answer = 2527315200UL;
13583 tm.tm_year = 2050 - 1900;
13586 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13589 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13590 instead of "TZ=America/Vancouver" in order to detect the bug even
13591 on systems that don't support the Olson extension, or don't have the
13592 full zoneinfo tables installed. */
13593 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13597 /* Check that the result is either a failure, or close enough
13598 to the correct answer that we can assume the discrepancy is
13599 due to leap seconds. */
13600 return (t == (time_t) -1
13601 || (0 < t && answer - 120 <= t && t <= answer + 120));
13610 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13611 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13613 /* This test makes some buggy mktime implementations loop.
13614 Give up after 60 seconds; a mktime slower than that
13615 isn't worth using anyway. */
13618 time_t_max = (! time_t_signed
13620 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13622 time_t_min = (! time_t_signed
13624 : time_t_signed_magnitude
13628 delta = time_t_max / 997; /* a suitable prime number */
13629 for (i = 0; i < N_STRINGS; i++)
13632 putenv (tz_strings[i]);
13634 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13635 if (! mktime_test (t))
13637 if ((result & 2) == 0
13638 && ! (mktime_test ((time_t) 1)
13639 && mktime_test ((time_t) (60 * 60))
13640 && mktime_test ((time_t) (60 * 60 * 24))))
13643 for (j = 1; (result & 4) == 0; j <<= 1)
13645 if (! bigtime_test (j))
13647 if (INT_MAX / 2 < j)
13650 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13653 if (! irix_6_4_bug ())
13655 if (! spring_forward_gap ())
13657 if (! year_2050_test ())
13662 if ac_fn_c_try_run
"$LINENO"; then :
13663 gl_cv_func_working_mktime
=yes
13665 gl_cv_func_working_mktime
=no
13667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13674 $as_echo "$gl_cv_func_working_mktime" >&6; }
13676 if test $gl_cv_func_working_mktime = no
; then
13682 if test $REPLACE_MKTIME = 1; then
13691 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
13714 if test $ac_cv_func_pselect = yes; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13716 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13717 if test "${gl_cv_sig_pselect+set}" = set; then :
13718 $as_echo_n "(cached) " >&6
13720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <sys/select.h>
13727 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13728 struct timespec const *restrict,
13729 sigset_t const *restrict) = pselect;
13735 if ac_fn_c_try_link
"$LINENO"; then :
13736 gl_cv_sig_pselect
=yes
13738 gl_cv_sig_pselect
=no
13740 rm -f core conftest.err conftest.
$ac_objext \
13741 conftest
$ac_exeext conftest.
$ac_ext
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13744 $as_echo "$gl_cv_sig_pselect" >&6; }
13747 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
13751 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
13760 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
13778 LIB_PTHREAD_SIGMASK
=
13781 if test $ac_cv_func_pthread_sigmask = yes; then
13784 HAVE_PTHREAD_SIGMASK
=0
13785 REPLACE_PTHREAD_SIGMASK
=1
13791 if test $HAVE_PTHREAD_SIGMASK = 1; then
13794 if test -z "$LIB_PTHREAD_SIGMASK"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13796 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13797 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13798 $as_echo_n "(cached) " >&6
13801 if test "$cross_compiling" = yes; then :
13804 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
13805 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
13807 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 #include <pthread.h>
13815 #include <signal.h>
13816 #include <stddef.h>
13820 sigemptyset (&set);
13821 return pthread_sigmask (1729, &set, NULL) != 0;
13824 if ac_fn_c_try_run
"$LINENO"; then :
13825 gl_cv_func_pthread_sigmask_in_libc_works
=no
13827 gl_cv_func_pthread_sigmask_in_libc_works
=yes
13829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13836 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13837 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13839 REPLACE_PTHREAD_SIGMASK
=1
13841 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13848 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13849 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13853 gl_save_LIBS
="$LIBS"
13854 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
13855 if test "$cross_compiling" = yes; then :
13858 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
13860 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
13864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13867 #include <pthread.h>
13868 #include <signal.h>
13869 #include <stddef.h>
13873 sigemptyset (&set);
13874 if (pthread_sigmask (1729, &set, NULL) == -1)
13879 if ac_fn_c_try_run
"$LINENO"; then :
13880 gl_cv_func_pthread_sigmask_return_works
=yes
13882 gl_cv_func_pthread_sigmask_return_works
=no
13884 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13885 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13888 LIBS
="$gl_save_LIBS"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13892 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13893 case "$gl_cv_func_pthread_sigmask_return_works" in
13895 REPLACE_PTHREAD_SIGMASK
=1
13897 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13903 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13904 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13910 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
13912 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
13914 gl_save_LIBS
="$LIBS"
13915 LIBS
="$LIBS $LIBMULTITHREAD"
13916 if test "$cross_compiling" = yes; then :
13919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13922 #include <pthread.h>
13923 #include <signal.h>
13925 #include <stdlib.h>
13926 #include <unistd.h>
13927 static volatile int sigint_occurred;
13929 sigint_handler (int sig)
13936 int pid = getpid ();
13938 signal (SIGINT, sigint_handler);
13939 sigemptyset (&set);
13940 sigaddset (&set, SIGINT);
13941 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
13943 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
13944 if (!(system (command) == 0))
13947 if (!(sigint_occurred == 0))
13949 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
13951 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
13956 if ac_fn_c_try_run
"$LINENO"; then :
13959 gl_cv_func_pthread_sigmask_unblock_works
=no
13961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13965 LIBS
="$gl_save_LIBS"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
13969 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
13970 case "$gl_cv_func_pthread_sigmask_unblock_works" in
13972 REPLACE_PTHREAD_SIGMASK
=1
13974 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
13980 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
13989 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
13992 if test $HAVE_PTHREAD_SIGMASK = 1; then
13994 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14004 GNULIB_PTHREAD_SIGMASK
=1
14013 if test $ac_cv_func_readlink = no
; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14017 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14018 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 #include <unistd.h>
14024 /* Cause compilation failure if original declaration has wrong type. */
14025 ssize_t readlink (const char *, char *, size_t);
14034 if ac_fn_c_try_compile
"$LINENO"; then :
14035 gl_cv_decl_readlink_works
=yes
14037 gl_cv_decl_readlink_works
=no
14039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14042 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14044 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14045 if test "${gl_cv_func_readlink_works+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14048 # We have readlink, so assume ln -s works.
14049 ln -s conftest.no-such conftest.link
14050 ln -s conftest.link conftest.lnk2
14051 if test "$cross_compiling" = yes; then :
14053 # Guess yes on glibc systems.
14054 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
14055 # If we don't know, assume the worst.
14056 *) gl_cv_func_readlink_works
="guessing no" ;;
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <unistd.h>
14068 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14073 if ac_fn_c_try_run
"$LINENO"; then :
14074 gl_cv_func_readlink_works
=yes
14076 gl_cv_func_readlink_works
=no
14078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14082 rm -f conftest.link conftest.lnk2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14085 $as_echo "$gl_cv_func_readlink_works" >&6; }
14086 case "$gl_cv_func_readlink_works" in
14088 if test "$gl_cv_decl_readlink_works" != yes; then
14094 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14101 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
14110 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
14138 if test $gl_cv_have_include_next = yes; then
14139 gl_cv_next_signal_h
='<'signal.h
'>'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14142 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14143 if test "${gl_cv_next_signal_h+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <signal.h>
14153 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14154 *) gl_absname_cpp
="$ac_cpp" ;;
14159 gl_dirsep_regex
='[/\\]'
14162 gl_dirsep_regex
='\/'
14165 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14167 gl_header_literal_regex
=`echo 'signal.h' \
14168 | sed -e "$gl_make_literal_regex_sed"`
14169 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14170 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14175 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14176 sed -n "$gl_absolute_header_sed"`'"'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14181 $as_echo "$gl_cv_next_signal_h" >&6; }
14183 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
14185 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14187 gl_next_as_first_directive
='<'signal.h
'>'
14189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14190 gl_next_as_first_directive
=$gl_cv_next_signal_h
14192 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
14198 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14199 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14200 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14201 #include <signal.h>
14204 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
14207 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
14216 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14217 #include <signal.h>
14220 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
14223 HAVE_SIGHANDLER_T
=0
14229 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14230 /* <sys/types.h> is not needed according to POSIX, but the
14231 <sys/socket.h> in i386-unknown-freebsd4.10 and
14232 powerpc-apple-darwin5.5 required it. */
14233 #include <sys/types.h>
14234 #if HAVE_SYS_SOCKET_H
14235 # include <sys/socket.h>
14236 #elif HAVE_WS2TCPIP_H
14237 # include <ws2tcpip.h>
14241 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14245 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14246 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14249 # Systems have either "struct sockaddr *" or
14250 # "void *" as the second argument to getpeername
14251 gl_cv_socklen_t_equiv
=
14252 for arg2
in "struct sockaddr" void
; do
14253 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
14254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <sys/types.h>
14257 #include <sys/socket.h>
14259 int getpeername (int, $arg2 *, $t *);
14264 getpeername (0, 0, &len);
14269 if ac_fn_c_try_compile
"$LINENO"; then :
14270 gl_cv_socklen_t_equiv
="$t"
14272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14273 test "$gl_cv_socklen_t_equiv" != "" && break
14275 test "$gl_cv_socklen_t_equiv" != "" && break
14280 if test "$gl_cv_socklen_t_equiv" = ""; then
14281 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14284 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14286 cat >>confdefs.h
<<_ACEOF
14287 #define socklen_t $gl_cv_socklen_t_equiv
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14294 $as_echo_n "checking for ssize_t... " >&6; }
14295 if test "${gt_cv_ssize_t+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14304 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14310 if ac_fn_c_try_compile
"$LINENO"; then :
14315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14318 $as_echo "$gt_cv_ssize_t" >&6; }
14319 if test $gt_cv_ssize_t = no
; then
14321 $as_echo "#define ssize_t int" >>confdefs.h
14330 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14331 #include <sys/stat.h>
14333 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
14335 cat >>confdefs.h
<<_ACEOF
14336 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14340 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14341 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14347 #include <sys/types.h>
14348 #include <sys/stat.h>
14349 #if HAVE_SYS_TIME_H
14350 # include <sys/time.h>
14353 struct timespec ts;
14366 if ac_fn_c_try_compile
"$LINENO"; then :
14367 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14369 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14374 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14375 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14377 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14381 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14382 #include <sys/stat.h>
14384 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
14386 cat >>confdefs.h
<<_ACEOF
14387 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14392 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14393 #include <sys/stat.h>
14395 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
14397 cat >>confdefs.h
<<_ACEOF
14398 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14403 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14404 #include <sys/stat.h>
14406 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
14408 cat >>confdefs.h
<<_ACEOF
14409 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14426 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
14427 #include <sys/stat.h>
14429 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
14431 cat >>confdefs.h
<<_ACEOF
14432 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14437 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14438 #include <sys/stat.h>
14440 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
14442 cat >>confdefs.h
<<_ACEOF
14443 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14448 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
14449 #include <sys/stat.h>
14451 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
14453 cat >>confdefs.h
<<_ACEOF
14454 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14467 $as_echo_n "checking for working stdalign.h... " >&6; }
14468 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 #include <stdalign.h>
14474 #include <stddef.h>
14476 /* Test that alignof yields a result consistent with offsetof.
14477 This catches GCC bug 52023
14478 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14480 template <class t> struct alignof_helper { char a; t b; };
14481 # define ao(type) offsetof (alignof_helper<type>, b)
14483 # define ao(type) offsetof (struct { char a; type b; }, b)
14485 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14486 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14487 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14489 /* Test _Alignas only on platforms where gnulib can help. */
14491 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14492 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14493 int alignas (8) alignas_int = 1;
14494 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14505 if ac_fn_c_try_compile
"$LINENO"; then :
14506 gl_cv_header_working_stdalign_h
=yes
14508 gl_cv_header_working_stdalign_h
=no
14510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14513 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14515 if test $gl_cv_header_working_stdalign_h = yes; then
14518 STDALIGN_H
='stdalign.h'
14522 if test -n "$STDALIGN_H"; then
14523 GL_GENERATE_STDALIGN_H_TRUE
=
14524 GL_GENERATE_STDALIGN_H_FALSE
='#'
14526 GL_GENERATE_STDALIGN_H_TRUE
='#'
14527 GL_GENERATE_STDALIGN_H_FALSE
=
14533 NEXT_STDARG_H
='<stdarg.h>'
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14535 $as_echo_n "checking for va_copy... " >&6; }
14536 if test "${gl_cv_func_va_copy+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdarg.h>
14548 void (*func) (va_list, va_list) = va_copy;
14555 if ac_fn_c_try_compile
"$LINENO"; then :
14556 gl_cv_func_va_copy
=yes
14558 gl_cv_func_va_copy
=no
14560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14564 $as_echo "$gl_cv_func_va_copy" >&6; }
14565 if test $gl_cv_func_va_copy = no
; then
14566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #if defined _AIX && !defined __GNUC__
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574 $EGREP "vaccine" >/dev
/null
2>&1; then :
14581 if test $gl_aixcc = yes; then
14591 if test $gl_cv_have_include_next = yes; then
14592 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14595 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14596 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 #include <stdarg.h>
14606 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14607 *) gl_absname_cpp
="$ac_cpp" ;;
14612 gl_dirsep_regex
='[/\\]'
14615 gl_dirsep_regex
='\/'
14618 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14620 gl_header_literal_regex
=`echo 'stdarg.h' \
14621 | sed -e "$gl_make_literal_regex_sed"`
14622 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14623 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14628 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14629 sed -n "$gl_absolute_header_sed"`'"'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14634 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14636 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
14638 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14640 gl_next_as_first_directive
='<'stdarg.h
'>'
14642 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14643 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
14645 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
14650 if test "$gl_cv_next_stdarg_h" = '""'; then
14651 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
14652 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
14656 saved_as_echo_n
="$as_echo_n"
14658 if test "${gl_cv_func___va_copy+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 #include <stdarg.h>
14677 if ac_fn_c_try_compile
"$LINENO"; then :
14678 gl_cv_func___va_copy
=yes
14680 gl_cv_func___va_copy
=no
14682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14685 as_echo_n
="$saved_as_echo_n"
14687 if test $gl_cv_func___va_copy = yes; then
14689 $as_echo "#define va_copy __va_copy" >>confdefs.h
14694 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14700 if test -n "$STDARG_H"; then
14701 GL_GENERATE_STDARG_H_TRUE
=
14702 GL_GENERATE_STDARG_H_FALSE
='#'
14704 GL_GENERATE_STDARG_H_TRUE
='#'
14705 GL_GENERATE_STDARG_H_FALSE
=
14713 # Define two additional variables used in the Makefile substitution.
14715 if test "$ac_cv_header_stdbool_h" = yes; then
14718 STDBOOL_H
='stdbool.h'
14721 if test -n "$STDBOOL_H"; then
14722 GL_GENERATE_STDBOOL_H_TRUE
=
14723 GL_GENERATE_STDBOOL_H_FALSE
='#'
14725 GL_GENERATE_STDBOOL_H_TRUE
='#'
14726 GL_GENERATE_STDBOOL_H_FALSE
=
14730 if test "$ac_cv_type__Bool" = yes; then
14741 if test $gt_cv_c_wchar_t = no
; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14746 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14747 if test "${gl_cv_decl_null_works+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <stddef.h>
14753 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14763 if ac_fn_c_try_compile
"$LINENO"; then :
14764 gl_cv_decl_null_works
=yes
14766 gl_cv_decl_null_works
=no
14768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14771 $as_echo "$gl_cv_decl_null_works" >&6; }
14772 if test $gl_cv_decl_null_works = no
; then
14777 if test -n "$STDDEF_H"; then
14778 GL_GENERATE_STDDEF_H_TRUE
=
14779 GL_GENERATE_STDDEF_H_FALSE
='#'
14781 GL_GENERATE_STDDEF_H_TRUE
='#'
14782 GL_GENERATE_STDDEF_H_FALSE
=
14785 if test -n "$STDDEF_H"; then
14794 if test $gl_cv_have_include_next = yes; then
14795 gl_cv_next_stddef_h
='<'stddef.h
'>'
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14798 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14799 if test "${gl_cv_next_stddef_h+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <stddef.h>
14809 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14810 *) gl_absname_cpp
="$ac_cpp" ;;
14815 gl_dirsep_regex
='[/\\]'
14818 gl_dirsep_regex
='\/'
14821 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14823 gl_header_literal_regex
=`echo 'stddef.h' \
14824 | sed -e "$gl_make_literal_regex_sed"`
14825 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14831 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14832 sed -n "$gl_absolute_header_sed"`'"'
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14837 $as_echo "$gl_cv_next_stddef_h" >&6; }
14839 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
14841 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14843 gl_next_as_first_directive
='<'stddef.h
'>'
14845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14846 gl_next_as_first_directive
=$gl_cv_next_stddef_h
14848 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14867 if test $gl_cv_have_include_next = yes; then
14868 gl_cv_next_stdio_h
='<'stdio.h
'>'
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14871 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14872 if test "${gl_cv_next_stdio_h+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14882 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14883 *) gl_absname_cpp
="$ac_cpp" ;;
14888 gl_dirsep_regex
='[/\\]'
14891 gl_dirsep_regex
='\/'
14894 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14896 gl_header_literal_regex
=`echo 'stdio.h' \
14897 | sed -e "$gl_make_literal_regex_sed"`
14898 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14904 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14905 sed -n "$gl_absolute_header_sed"`'"'
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14910 $as_echo "$gl_cv_next_stdio_h" >&6; }
14912 NEXT_STDIO_H
=$gl_cv_next_stdio_h
14914 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14916 gl_next_as_first_directive
='<'stdio.h
'>'
14918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14919 gl_next_as_first_directive
=$gl_cv_next_stdio_h
14921 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
14930 cat >>confdefs.h
<<_ACEOF
14931 #define GNULIB_FSCANF 1
14938 cat >>confdefs.h
<<_ACEOF
14939 #define GNULIB_SCANF 1
14975 if test $gl_cv_have_include_next = yes; then
14976 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14979 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14980 if test "${gl_cv_next_stdlib_h+set}" = set; then :
14981 $as_echo_n "(cached) " >&6
14984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 #include <stdlib.h>
14990 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14991 *) gl_absname_cpp
="$ac_cpp" ;;
14996 gl_dirsep_regex
='[/\\]'
14999 gl_dirsep_regex
='\/'
15002 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15004 gl_header_literal_regex
=`echo 'stdlib.h' \
15005 | sed -e "$gl_make_literal_regex_sed"`
15006 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15007 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15012 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15013 sed -n "$gl_absolute_header_sed"`'"'
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15018 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15020 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
15022 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15024 gl_next_as_first_directive
='<'stdlib.h
'>'
15026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15027 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
15029 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
15039 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15047 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15056 if test "$ac_cv_have_decl_strtoimax" != yes; then
15057 HAVE_DECL_STRTOIMAX
=0
15060 if test $ac_cv_func_strtoimax = yes; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15063 $as_echo_n "checking whether strtoimax works... " >&6; }
15064 if test "${gl_cv_func_strtoimax+set}" = set; then :
15065 $as_echo_n "(cached) " >&6
15067 if test "$cross_compiling" = yes; then :
15069 # Guess no on AIX 5.
15070 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
15071 # Guess yes otherwise.
15072 *) gl_cv_func_strtoimax
="guessing yes" ;;
15076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15080 #include <string.h>
15081 #include <inttypes.h>
15084 if (sizeof (intmax_t) > sizeof (int))
15086 const char *s = "4294967295";
15090 res = strtoimax (s, &p, 10);
15091 if (p != s + strlen (s))
15095 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15100 const char *s = "2147483647";
15104 res = strtoimax (s, &p, 10);
15105 if (p != s + strlen (s))
15109 if (res != 2147483647)
15116 if ac_fn_c_try_run
"$LINENO"; then :
15117 gl_cv_func_strtoimax
=yes
15119 gl_cv_func_strtoimax
=no
15121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15128 $as_echo "$gl_cv_func_strtoimax" >&6; }
15129 case "$gl_cv_func_strtoimax" in
15130 *no
) REPLACE_STRTOIMAX
=1 ;;
15136 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
15145 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
15148 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15149 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
15155 cat >>confdefs.h
<<_ACEOF
15156 #define HAVE_DECL_STRTOLL $ac_have_decl
15177 if test "$ac_cv_have_decl_strtoumax" != yes; then
15178 HAVE_DECL_STRTOUMAX
=0
15181 if test $ac_cv_func_strtoumax = no
; then
15190 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
15193 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15194 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
15200 cat >>confdefs.h
<<_ACEOF
15201 #define HAVE_DECL_STRTOULL $ac_have_decl
15220 if test $ac_cv_func_symlink = no
; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15224 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15225 if test "${gl_cv_func_symlink_works+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15228 if test "$cross_compiling" = yes; then :
15230 # Guess yes on glibc systems.
15231 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
15232 # If we don't know, assume the worst.
15233 *) gl_cv_func_symlink_works
="guessing no" ;;
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <unistd.h>
15245 if (!symlink ("a", "conftest.link/"))
15247 if (symlink ("conftest.f", "conftest.lnk2"))
15249 else if (!symlink ("a", "conftest.lnk2/"))
15257 if ac_fn_c_try_run
"$LINENO"; then :
15258 gl_cv_func_symlink_works
=yes
15260 gl_cv_func_symlink_works
=no
15262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15266 rm -f conftest.f conftest.link conftest.lnk2
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15269 $as_echo "$gl_cv_func_symlink_works" >&6; }
15270 case "$gl_cv_func_symlink_works" in
15278 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
15287 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15305 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15306 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include <sys/select.h>
15321 if ac_fn_c_try_compile
"$LINENO"; then :
15322 gl_cv_header_sys_select_h_selfcontained
=yes
15324 gl_cv_header_sys_select_h_selfcontained
=no
15326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15327 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/select.h>
15334 int memset; int bzero;
15340 if ac_fn_c_try_compile
"$LINENO"; then :
15341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <sys/select.h>
15349 #define memset nonexistent_memset
15354 void *memset (void *, int, unsigned long);
15356 #define bzero nonexistent_bzero
15361 void bzero (void *, unsigned long);
15370 if ac_fn_c_try_link
"$LINENO"; then :
15373 gl_cv_header_sys_select_h_selfcontained
=no
15375 rm -f core conftest.err conftest.
$ac_objext \
15376 conftest
$ac_exeext conftest.
$ac_ext
15379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15384 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15394 if test $gl_cv_have_include_next = yes; then
15395 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15398 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15399 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15403 if test $ac_cv_header_sys_select_h = yes; then
15406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <sys/select.h>
15412 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15413 *) gl_absname_cpp
="$ac_cpp" ;;
15418 gl_dirsep_regex
='[/\\]'
15421 gl_dirsep_regex
='\/'
15424 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15426 gl_header_literal_regex
=`echo 'sys/select.h' \
15427 | sed -e "$gl_make_literal_regex_sed"`
15428 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15429 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15434 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15435 sed -n "$gl_absolute_header_sed"`'"'
15437 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15443 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15445 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
15447 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15449 gl_next_as_first_directive
='<'sys
/select.h
'>'
15451 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15452 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
15454 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
15459 if test $ac_cv_header_sys_select_h = yes; then
15460 HAVE_SYS_SELECT_H
=1
15462 HAVE_SYS_SELECT_H
=0
15469 if test $ac_cv_header_sys_socket_h != yes; then
15470 for ac_header
in winsock2.h
15472 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
15474 cat >>confdefs.h
<<_ACEOF
15475 #define HAVE_WINSOCK2_H 1
15483 if test "$ac_cv_header_winsock2_h" = yes; then
15485 UNISTD_H_HAVE_WINSOCK2_H
=1
15486 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
15512 if test $gl_cv_have_include_next = yes; then
15513 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15516 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15517 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15521 if test $ac_cv_header_sys_stat_h = yes; then
15524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <sys/stat.h>
15530 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15531 *) gl_absname_cpp
="$ac_cpp" ;;
15536 gl_dirsep_regex
='[/\\]'
15539 gl_dirsep_regex
='\/'
15542 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15544 gl_header_literal_regex
=`echo 'sys/stat.h' \
15545 | sed -e "$gl_make_literal_regex_sed"`
15546 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15547 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15552 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15553 sed -n "$gl_absolute_header_sed"`'"'
15555 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15561 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15563 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
15565 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15567 gl_next_as_first_directive
='<'sys
/stat.h
'>'
15569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15570 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
15572 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
15584 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15586 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15590 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15591 #include <sys/stat.h>
15593 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
15597 $as_echo "#define nlink_t int" >>confdefs.h
15618 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15620 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15626 cat >>confdefs.h
<<_ACEOF
15627 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15630 if test $ac_cv_have_decl_localtime_r = no
; then
15631 HAVE_DECL_LOCALTIME_R
=0
15635 if test $ac_cv_func_localtime_r = yes; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15638 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15639 if test "${gl_cv_time_r_posix+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15648 /* We don't need to append 'restrict's to the argument types,
15649 even though the POSIX signature has the 'restrict's,
15650 since C99 says they can't affect type compatibility. */
15651 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15653 /* Check the return type is a pointer.
15654 On HP-UX 10 it is 'int'. */
15655 *localtime_r (0, 0);
15661 if ac_fn_c_try_compile
"$LINENO"; then :
15662 gl_cv_time_r_posix
=yes
15664 gl_cv_time_r_posix
=no
15666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15670 $as_echo "$gl_cv_time_r_posix" >&6; }
15671 if test $gl_cv_time_r_posix = yes; then
15672 REPLACE_LOCALTIME_R
=0
15674 REPLACE_LOCALTIME_R
=1
15680 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15689 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15723 if test $gl_cv_have_include_next = yes; then
15724 gl_cv_next_unistd_h
='<'unistd.h
'>'
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15727 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15728 if test "${gl_cv_next_unistd_h+set}" = set; then :
15729 $as_echo_n "(cached) " >&6
15732 if test $ac_cv_header_unistd_h = yes; then
15735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 #include <unistd.h>
15741 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15742 *) gl_absname_cpp
="$ac_cpp" ;;
15747 gl_dirsep_regex
='[/\\]'
15750 gl_dirsep_regex
='\/'
15753 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15755 gl_header_literal_regex
=`echo 'unistd.h' \
15756 | sed -e "$gl_make_literal_regex_sed"`
15757 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15763 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15764 sed -n "$gl_absolute_header_sed"`'"'
15766 gl_cv_next_unistd_h
='<'unistd.h
'>'
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15772 $as_echo "$gl_cv_next_unistd_h" >&6; }
15774 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15776 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15778 gl_next_as_first_directive
='<'unistd.h
'>'
15780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15781 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15783 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15788 if test $ac_cv_header_unistd_h = yes; then
15807 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15809 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15810 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15813 touch conftest.
file
15814 if test "$cross_compiling" = yes; then :
15816 # Guess yes on glibc systems.
15817 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
15818 # If we don't know, assume the worst.
15819 *) gl_cv_func_futimesat_works
="guessing no" ;;
15823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15826 #include <stddef.h>
15827 #include <sys/times.h>
15833 int fd = open ("conftest.file", O_RDWR);
15834 if (fd < 0) return 1;
15835 if (futimesat (fd, NULL, NULL)) return 2;
15841 if ac_fn_c_try_run
"$LINENO"; then :
15842 gl_cv_func_futimesat_works
=yes
15844 gl_cv_func_futimesat_works
=no
15846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15850 rm -f conftest.
file
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15853 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15854 case "$gl_cv_func_futimesat_works" in
15858 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15864 gl_gnulib_enabled_dosname
=false
15865 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
15866 gl_gnulib_enabled_pathmax
=false
15867 gl_gnulib_enabled_stat
=false
15868 gl_gnulib_enabled_strtoll
=false
15869 gl_gnulib_enabled_strtoull
=false
15870 gl_gnulib_enabled_verify
=false
15871 func_gl_gnulib_m4code_dosname
()
15873 if ! $gl_gnulib_enabled_dosname; then
15874 gl_gnulib_enabled_dosname
=true
15877 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
15879 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15882 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
15885 func_gl_gnulib_m4code_pathmax
()
15887 if ! $gl_gnulib_enabled_pathmax; then
15891 gl_gnulib_enabled_pathmax
=true
15894 func_gl_gnulib_m4code_stat
()
15896 if ! $gl_gnulib_enabled_stat; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15901 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15902 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
15905 if test "$cross_compiling" = yes; then :
15907 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
15908 *) gl_cv_func_stat_dir_slash
="guessing yes";;
15911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 #include <sys/stat.h>
15918 struct stat st; return stat (".", &st) != stat ("./", &st);
15923 if ac_fn_c_try_run
"$LINENO"; then :
15924 gl_cv_func_stat_dir_slash
=yes
15926 gl_cv_func_stat_dir_slash
=no
15928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15929 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15934 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15936 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15937 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15938 $as_echo_n "(cached) " >&6
15941 # Assume that if we have lstat, we can also check symlinks.
15942 if test $ac_cv_func_lstat = yes; then
15943 ln -s conftest.tmp conftest.lnk
15945 if test "$cross_compiling" = yes; then :
15947 # Guess yes on glibc systems.
15948 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
15949 # If we don't know, assume the worst.
15950 *) gl_cv_func_stat_file_slash
="guessing no" ;;
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 #include <sys/stat.h>
15963 if (!stat ("conftest.tmp/", &st))
15966 if (!stat ("conftest.lnk/", &st))
15975 if ac_fn_c_try_run
"$LINENO"; then :
15976 gl_cv_func_stat_file_slash
=yes
15978 gl_cv_func_stat_file_slash
=no
15980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15984 rm -f conftest.tmp conftest.lnk
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15987 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15988 case $gl_cv_func_stat_dir_slash in
15989 *no
) REPLACE_STAT
=1
15991 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15994 case $gl_cv_func_stat_file_slash in
15995 *no
) REPLACE_STAT
=1
15997 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16001 if test $REPLACE_STAT = 1; then
16010 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16028 gl_gnulib_enabled_stat
=true
16029 if test $REPLACE_STAT = 1; then
16030 func_gl_gnulib_m4code_dosname
16032 if test $REPLACE_STAT = 1; then
16033 func_gl_gnulib_m4code_pathmax
16035 if test $REPLACE_STAT = 1; then
16036 func_gl_gnulib_m4code_verify
16040 func_gl_gnulib_m4code_strtoll
()
16042 if ! $gl_gnulib_enabled_strtoll; then
16046 if test "$ac_cv_type_long_long_int" = yes; then
16047 for ac_func
in strtoll
16049 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
16050 if test "x$ac_cv_func_strtoll" = x
""yes; then :
16051 cat >>confdefs.h
<<_ACEOF
16052 #define HAVE_STRTOLL 1
16058 if test $ac_cv_func_strtoll = no
; then
16063 if test $HAVE_STRTOLL = 0; then
16072 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
16089 gl_gnulib_enabled_strtoll
=true
16092 func_gl_gnulib_m4code_strtoull
()
16094 if ! $gl_gnulib_enabled_strtoull; then
16098 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16099 for ac_func
in strtoull
16101 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
16102 if test "x$ac_cv_func_strtoull" = x
""yes; then :
16103 cat >>confdefs.h
<<_ACEOF
16104 #define HAVE_STRTOULL 1
16110 if test $ac_cv_func_strtoull = no
; then
16115 if test $HAVE_STRTOULL = 0; then
16124 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
16141 gl_gnulib_enabled_strtoull
=true
16144 func_gl_gnulib_m4code_verify
()
16146 if ! $gl_gnulib_enabled_verify; then
16147 gl_gnulib_enabled_verify
=true
16150 if test $REPLACE_GETOPT = 1; then
16151 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16153 if test $REPLACE_LSTAT = 1; then
16154 func_gl_gnulib_m4code_dosname
16156 if test $REPLACE_LSTAT = 1; then
16157 func_gl_gnulib_m4code_stat
16159 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
16160 func_gl_gnulib_m4code_stat
16162 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16163 func_gl_gnulib_m4code_strtoll
16165 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
16166 func_gl_gnulib_m4code_verify
16168 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
16169 func_gl_gnulib_m4code_strtoull
16171 if test $ac_cv_func_strtoumax = no
; then
16172 func_gl_gnulib_m4code_verify
16175 if $gl_gnulib_enabled_dosname; then
16176 gl_GNULIB_ENABLED_dosname_TRUE
=
16177 gl_GNULIB_ENABLED_dosname_FALSE
='#'
16179 gl_GNULIB_ENABLED_dosname_TRUE
='#'
16180 gl_GNULIB_ENABLED_dosname_FALSE
=
16183 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16184 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
16185 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
16187 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
16188 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
16191 if $gl_gnulib_enabled_pathmax; then
16192 gl_GNULIB_ENABLED_pathmax_TRUE
=
16193 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
16195 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
16196 gl_GNULIB_ENABLED_pathmax_FALSE
=
16199 if $gl_gnulib_enabled_stat; then
16200 gl_GNULIB_ENABLED_stat_TRUE
=
16201 gl_GNULIB_ENABLED_stat_FALSE
='#'
16203 gl_GNULIB_ENABLED_stat_TRUE
='#'
16204 gl_GNULIB_ENABLED_stat_FALSE
=
16207 if $gl_gnulib_enabled_strtoll; then
16208 gl_GNULIB_ENABLED_strtoll_TRUE
=
16209 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
16211 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
16212 gl_GNULIB_ENABLED_strtoll_FALSE
=
16215 if $gl_gnulib_enabled_strtoull; then
16216 gl_GNULIB_ENABLED_strtoull_TRUE
=
16217 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
16219 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
16220 gl_GNULIB_ENABLED_strtoull_FALSE
=
16223 if $gl_gnulib_enabled_verify; then
16224 gl_GNULIB_ENABLED_verify_TRUE
=
16225 gl_GNULIB_ENABLED_verify_FALSE
='#'
16227 gl_GNULIB_ENABLED_verify_TRUE
='#'
16228 gl_GNULIB_ENABLED_verify_FALSE
=
16231 # End of code from modules
16252 gl_source_base
='tests'
16253 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
16255 gl_module_indicator_condition
=$gltests_WITNESS
16266 LIBGNU_LIBDEPS
="$gl_libdeps"
16268 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
16272 # Extract the first word of "pkg-config", so it can be a program name with args.
16273 set dummy pkg-config
; ac_word
=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16279 case $PKG_CONFIG in
16281 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
16284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16285 for as_dir
in $PATH
16288 test -z "$as_dir" && as_dir
=.
16289 for ac_exec_ext
in '' $ac_executable_extensions; do
16290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16291 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
16303 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
16304 if test -n "$PKG_CONFIG"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16306 $as_echo "$PKG_CONFIG" >&6; }
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16317 if test "${with_sound}" != "no"; then
16318 # Sound support for GNU/Linux and the free BSDs.
16319 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
16321 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16323 eval as_val
=\$
$as_ac_Header
16324 if test "x$as_val" = x
""yes; then :
16325 cat >>confdefs.h
<<_ACEOF
16326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16328 have_sound_header
=yes
16333 # Emulation library used on NetBSD.
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16335 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16336 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16339 ac_check_lib_save_LIBS
=$LIBS
16340 LIBS
="-lossaudio $LIBS"
16341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16350 char _oss_ioctl ();
16354 return _oss_ioctl ();
16359 if ac_fn_c_try_link
"$LINENO"; then :
16360 ac_cv_lib_ossaudio__oss_ioctl
=yes
16362 ac_cv_lib_ossaudio__oss_ioctl
=no
16364 rm -f core conftest.err conftest.
$ac_objext \
16365 conftest
$ac_exeext conftest.
$ac_ext
16366 LIBS
=$ac_check_lib_save_LIBS
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16369 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16370 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
16371 LIBSOUND
=-lossaudio
16378 ALSA_REQUIRED
=1.0.0
16379 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
16383 if test "$PKG_CONFIG" = "no" ; then
16386 PKG_CONFIG_MIN_VERSION
=0.9.0
16387 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16389 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16391 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16392 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16393 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16400 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16401 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16403 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 $as_echo "no" >&6; }
16410 ## If we have a custom action on failure, don't print errors, but
16411 ## do set a variable so people can do so.
16412 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16424 if test $succeeded = yes; then
16430 if test $HAVE_ALSA = yes; then
16431 SAVE_CFLAGS
="$CFLAGS"
16433 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
16434 LIBS
="$ALSA_LIBS $LIBS"
16435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 #include <asoundlib.h>
16441 snd_lib_error_set_handler (0);
16446 if ac_fn_c_try_compile
"$LINENO"; then :
16447 emacs_alsa_normal
=yes
16449 emacs_alsa_normal
=no
16451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16452 if test "$emacs_alsa_normal" != yes; then
16453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 #include <alsa/asoundlib.h>
16459 snd_lib_error_set_handler (0);
16464 if ac_fn_c_try_compile
"$LINENO"; then :
16465 emacs_alsa_subdir
=yes
16467 emacs_alsa_subdir
=no
16469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16470 if test "$emacs_alsa_subdir" != yes; then
16471 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16473 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16476 CFLAGS
="$SAVE_CFLAGS"
16478 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
16479 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
16481 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16485 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
16487 gnu-linux|freebsd|netbsd
)
16489 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16527 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <sys/personality.h>
16534 personality (PER_LINUX32)
16539 if ac_fn_c_try_compile
"$LINENO"; then :
16540 emacs_cv_personality_linux32
=yes
16542 emacs_cv_personality_linux32
=no
16544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16546 $as_echo "$emacs_cv_personality_linux32" >&6; }
16548 if test $emacs_cv_personality_linux32 = yes; then
16550 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16554 for ac_header
in term.h
16556 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
16557 if test "x$ac_cv_header_term_h" = x
""yes; then :
16558 cat >>confdefs.h
<<_ACEOF
16559 #define HAVE_TERM_H 1
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16567 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16568 if test "${ac_cv_header_time+set}" = set; then :
16569 $as_echo_n "(cached) " >&6
16571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #include <sys/types.h>
16574 #include <sys/time.h>
16580 if ((struct tm *) 0)
16586 if ac_fn_c_try_compile
"$LINENO"; then :
16587 ac_cv_header_time
=yes
16589 ac_cv_header_time
=no
16591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16594 $as_echo "$ac_cv_header_time" >&6; }
16595 if test $ac_cv_header_time = yes; then
16597 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16601 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16602 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
16608 cat >>confdefs.h
<<_ACEOF
16609 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16612 if test $ac_cv_have_decl_sys_siglist != yes; then
16613 # For Tru64, at least:
16614 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16615 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
16621 cat >>confdefs.h
<<_ACEOF
16622 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16625 if test $ac_cv_have_decl___sys_siglist = yes; then
16627 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16632 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16633 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16634 $as_echo_n "(cached) " >&6
16636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 #include <sys/types.h>
16639 #include <sys/wait.h>
16640 #ifndef WEXITSTATUS
16641 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16644 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16652 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16657 if ac_fn_c_try_compile
"$LINENO"; then :
16658 ac_cv_header_sys_wait_h
=yes
16660 ac_cv_header_sys_wait_h
=no
16662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16665 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16666 if test $ac_cv_header_sys_wait_h = yes; then
16668 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16674 $as_echo_n "checking for speed_t... " >&6; }
16675 if test "${emacs_cv_speed_t+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #include <termios.h>
16689 if ac_fn_c_try_compile
"$LINENO"; then :
16690 emacs_cv_speed_t
=yes
16692 emacs_cv_speed_t
=no
16694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16697 $as_echo "$emacs_cv_speed_t" >&6; }
16698 if test $emacs_cv_speed_t = yes; then
16700 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16705 $as_echo_n "checking for struct exception... " >&6; }
16706 if test "${emacs_cv_struct_exception+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16715 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16720 if ac_fn_c_try_compile
"$LINENO"; then :
16721 emacs_cv_struct_exception
=yes
16723 emacs_cv_struct_exception
=no
16725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16728 $as_echo "$emacs_cv_struct_exception" >&6; }
16729 HAVE_EXCEPTION
=$emacs_cv_struct_exception
16730 if test $emacs_cv_struct_exception != yes; then
16732 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16737 for ac_header
in net
/if.h
16739 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16740 #if HAVE_SYS_SOCKET_H
16741 #include <sys/socket.h>
16744 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
16745 cat >>confdefs.h
<<_ACEOF
16746 #define HAVE_NET_IF_H 1
16753 for ac_header
in ifaddrs.h
16755 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16756 #if HAVE_SYS_SOCKET_H
16757 #include <sys/socket.h>
16760 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
16761 cat >>confdefs.h
<<_ACEOF
16762 #define HAVE_IFADDRS_H 1
16769 for ac_header
in net
/if_dl.h
16771 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16772 #if HAVE_SYS_SOCKET_H
16773 #include <sys/socket.h>
16776 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
16777 cat >>confdefs.h
<<_ACEOF
16778 #define HAVE_NET_IF_DL_H 1
16786 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16787 #if HAVE_SYS_SOCKET_H
16788 #include <sys/socket.h>
16791 #include <net/if.h>
16794 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
16796 cat >>confdefs.h
<<_ACEOF
16797 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16802 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16803 #if HAVE_SYS_SOCKET_H
16804 #include <sys/socket.h>
16807 #include <net/if.h>
16810 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
16812 cat >>confdefs.h
<<_ACEOF
16813 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16818 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16819 #if HAVE_SYS_SOCKET_H
16820 #include <sys/socket.h>
16823 #include <net/if.h>
16826 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
16828 cat >>confdefs.h
<<_ACEOF
16829 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16834 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16835 #if HAVE_SYS_SOCKET_H
16836 #include <sys/socket.h>
16839 #include <net/if.h>
16842 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
16844 cat >>confdefs.h
<<_ACEOF
16845 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16850 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16851 #if HAVE_SYS_SOCKET_H
16852 #include <sys/socket.h>
16855 #include <net/if.h>
16858 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
16860 cat >>confdefs.h
<<_ACEOF
16861 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16866 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16867 #if HAVE_SYS_SOCKET_H
16868 #include <sys/socket.h>
16871 #include <net/if.h>
16874 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
16876 cat >>confdefs.h
<<_ACEOF
16877 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16886 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16887 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16888 $as_echo_n "(cached) " >&6
16890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 char __attribute__ ((__aligned__ (1 << 3))) c;
16901 if ac_fn_c_try_compile
"$LINENO"; then :
16902 emacs_cv_attribute_aligned
=yes
16904 emacs_cv_attribute_aligned
=no
16906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16909 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16910 if test $emacs_cv_attribute_aligned = yes; then
16912 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16920 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16922 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16924 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16925 if test "x$testval" != x
; then
16928 ac_enable_autodepend
=no
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16931 $as_echo "$HAVE_GNU_MAKE" >&6; }
16932 if test $HAVE_GNU_MAKE = yes; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16934 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16935 SAVE_CFLAGS
="$CFLAGS"
16936 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
16937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16948 if ac_fn_c_try_compile
"$LINENO"; then :
16951 ac_enable_autodepend
=no
16953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16954 CFLAGS
="$SAVE_CFLAGS"
16955 test -f deps.d || ac_enable_autodepend
=no
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
16958 $as_echo "$ac_enable_autodepend" >&6; }
16960 if test $ac_enable_autodepend = yes; then
16961 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
16962 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
16963 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
16964 deps_frag
=autodeps.mk
16967 deps_frag
=$srcdir/src
/$deps_frag
16973 lisp_frag
=$srcdir/src
/lisp.mk
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
16978 $as_echo_n "checking for long file names... " >&6; }
16979 if test "${ac_cv_sys_long_file_names+set}" = set; then :
16980 $as_echo_n "(cached) " >&6
16982 ac_cv_sys_long_file_names
=yes
16983 # Test for long file names in all the places we know might matter:
16984 # . the current directory, where building will happen
16985 # $prefix/lib where we will be installing things
16986 # $exec_prefix/lib likewise
16987 # $TMPDIR if set, where it might want to write temporary files
16988 # /tmp where it might want to write temporary files
16989 # /var/tmp likewise
16990 # /usr/tmp likewise
16991 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
16992 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
16993 # in the usual case where exec_prefix is '${prefix}'.
16995 . |
/* | ?
:[\\/]*) ;; #(
16998 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
16999 ac_xdir
=$ac_dir/cf$$
17000 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
17001 ac_tf1
=$ac_xdir/conftest9012345
17002 ac_tf2
=$ac_xdir/conftest9012346
17003 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17004 ac_cv_sys_long_file_names
=no
17005 rm -f -r "$ac_xdir" 2>/dev
/null
17006 test $ac_cv_sys_long_file_names = no
&& break
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17010 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17011 if test $ac_cv_sys_long_file_names = yes; then
17013 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17018 #### Choose a window system.
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17021 $as_echo_n "checking for X... " >&6; }
17024 # Check whether --with-x was given.
17025 if test "${with_x+set}" = set; then :
17029 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17030 if test "x$with_x" = xno
; then
17031 # The user explicitly disabled X.
17034 case $x_includes,$x_libraries in #(
17035 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
17036 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
17039 # One or both of the vars are not set, and there is no cached value.
17040 ac_x_includes
=no ac_x_libraries
=no
17041 rm -f -r conftest.dir
17042 if mkdir conftest.dir
; then
17044 cat >Imakefile
<<'_ACEOF'
17046 @echo incroot='${INCROOT}'
17048 @echo usrlibdir='${USRLIBDIR}'
17050 @echo libdir='${LIBDIR}'
17052 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17053 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17054 for ac_var
in incroot usrlibdir libdir
; do
17055 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17058 for ac_extension
in a so sl dylib la dll
; do
17059 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17060 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17061 ac_im_usrlibdir
=$ac_im_libdir; break
17064 # Screen out bogus values from the imake configuration. They are
17065 # bogus both because they are the default anyway, and because
17066 # using them would break gcc on systems where it needs fixed includes.
17067 case $ac_im_incroot in
17068 /usr
/include
) ac_x_includes
= ;;
17069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17071 case $ac_im_usrlibdir in
17072 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17077 rm -f -r conftest.dir
17080 # Standard set of common directories for X headers.
17081 # Check X11 before X11Rn because it is often a symlink to the current release.
17095 /usr/local/X11/include
17096 /usr/local/X11R7/include
17097 /usr/local/X11R6/include
17098 /usr/local/X11R5/include
17099 /usr/local/X11R4/include
17101 /usr/local/include/X11
17102 /usr/local/include/X11R7
17103 /usr/local/include/X11R6
17104 /usr/local/include/X11R5
17105 /usr/local/include/X11R4
17109 /usr/XFree86/include/X11
17113 /usr/unsupported/include
17114 /usr/athena/include
17115 /usr/local/x11r5/include
17116 /usr/lpp/Xamples/include
17118 /usr/openwin/include
17119 /usr/openwin/share/include'
17121 if test "$ac_x_includes" = no
; then
17122 # Guess where to find include files, by looking for Xlib.h.
17123 # First, try using that file with no special directory specified.
17124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17126 #include <X11/Xlib.h>
17128 if ac_fn_c_try_cpp
"$LINENO"; then :
17129 # We can compile using X headers with no special include directory.
17132 for ac_dir
in $ac_x_header_dirs; do
17133 if test -r "$ac_dir/X11/Xlib.h"; then
17134 ac_x_includes
=$ac_dir
17139 rm -f conftest.err conftest.
$ac_ext
17140 fi # $ac_x_includes = no
17142 if test "$ac_x_libraries" = no
; then
17143 # Check for the libraries.
17144 # See if we find them without any special options.
17145 # Don't add to $LIBS permanently.
17148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150 #include <X11/Xlib.h>
17159 if ac_fn_c_try_link
"$LINENO"; then :
17161 # We can link X programs with no special library path.
17165 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17167 # Don't even attempt the hair of trying to link an X program!
17168 for ac_extension
in a so sl dylib la dll
; do
17169 if test -r "$ac_dir/libX11.$ac_extension"; then
17170 ac_x_libraries
=$ac_dir
17176 rm -f core conftest.err conftest.
$ac_objext \
17177 conftest
$ac_exeext conftest.
$ac_ext
17178 fi # $ac_x_libraries = no
17180 case $ac_x_includes,$ac_x_libraries in #(
17181 no
,* |
*,no |
*\'*)
17182 # Didn't find X, or a directory has "'" in its name.
17183 ac_cv_have_x
="have_x=no";; #(
17185 # Record where we found X for the cache.
17186 ac_cv_have_x
="have_x=yes\
17187 ac_x_includes='$ac_x_includes'\
17188 ac_x_libraries='$ac_x_libraries'"
17194 eval "$ac_cv_have_x"
17197 if test "$have_x" != yes; then
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17199 $as_echo "$have_x" >&6; }
17202 # If each of the values was on the command line, it overrides each guess.
17203 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17204 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17205 # Update the cache value to reflect the command line values.
17206 ac_cv_have_x
="have_x=yes\
17207 ac_x_includes='$x_includes'\
17208 ac_x_libraries='$x_libraries'"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17210 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17213 if test "$no_x" = yes; then
17219 LD_SWITCH_X_SITE_RPATH
=
17220 if test "${x_libraries}" != NONE
; then
17221 if test -n "${x_libraries}"; then
17222 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17223 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17225 x_default_search_path
=""
17226 x_search_path
=${x_libraries}
17227 if test -z "${x_search_path}"; then
17228 x_search_path
=/usr
/lib
17230 for x_library
in `echo ${x_search_path}: | \
17231 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17233 ${x_library}/X11/%L/%T/%N%C%S:\
17234 ${x_library}/X11/%l/%T/%N%C%S:\
17235 ${x_library}/X11/%T/%N%C%S:\
17236 ${x_library}/X11/%L/%T/%N%S:\
17237 ${x_library}/X11/%l/%T/%N%S:\
17238 ${x_library}/X11/%T/%N%S"
17239 if test x
"${x_default_search_path}" = x
; then
17240 x_default_search_path
=${x_search_path}
17242 x_default_search_path
="${x_search_path}:${x_default_search_path}"
17248 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
17249 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17252 if test x
"${x_includes}" = x
; then
17253 bitmapdir
=/usr
/include
/X11
/bitmaps
17255 # accumulate include directories that have X11 bitmap subdirectories
17257 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17258 if test -d "${bmd}/X11/bitmaps"; then
17259 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
17261 if test -d "${bmd}/bitmaps"; then
17262 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
17265 if test ${bmd_acc} != "dummyval"; then
17266 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17273 tmp_CPPFLAGS
="$CPPFLAGS"
17274 tmp_CFLAGS
="$CFLAGS"
17275 CPPFLAGS
="$CPPFLAGS -x objective-c"
17276 CFLAGS
="$CFLAGS -x objective-c"
17277 TEMACS_LDFLAGS2
="\${LDFLAGS}"
17279 if test "${with_ns}" != no
; then
17280 if test "${opsys}" = darwin
; then
17282 ns_appdir
=`pwd`/nextstep
/Emacs.app
17283 ns_appbindir
=${ns_appdir}/Contents
/MacOS
17284 ns_appresdir
=${ns_appdir}/Contents
/Resources
17285 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
17286 elif test -f $GNUSTEP_CONFIG_FILE; then
17287 NS_IMPL_GNUSTEP
=yes
17288 ns_appdir
=`pwd`/nextstep
/Emacs.app
17289 ns_appbindir
=${ns_appdir}
17290 ns_appresdir
=${ns_appdir}/Resources
17291 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
17292 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17293 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17294 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17295 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17296 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17297 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
17298 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17299 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
17300 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17301 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17302 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17307 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17308 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17313 #include <GNUstepBase/GSConfig.h>
17317 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17326 if ac_fn_c_try_compile
"$LINENO"; then :
17327 emacs_cv_objc_exceptions
=yes
17329 emacs_cv_objc_exceptions
=no
17331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17334 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17335 if test $emacs_cv_objc_exceptions = yes; then
17337 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17339 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
17343 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
17345 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17346 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
17349 as_fn_error
"\`--with-ns' was specified, but the include
17350 files are missing or cannot be compiled." "$LINENO" 5
17354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 #include <Foundation/NSObjCRuntime.h>
17365 if ac_fn_c_try_compile
"$LINENO"; then :
17366 ns_have_nsinteger
=yes
17368 ns_have_nsinteger
=no
17370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17371 if test $ns_have_nsinteger = yes; then
17373 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17379 INSTALL_ARCH_INDEP_EXTRA
=install-etc
17380 ns_self_contained
=no
17384 if test "${HAVE_NS}" = yes; then
17385 if test "$with_toolkit_scroll_bars" = "no"; then
17386 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17389 window_system
=nextstep
17391 # set up packaging dirs
17392 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17393 ns_self_contained
=yes
17394 prefix
=${ns_appresdir}
17395 exec_prefix
=${ns_appbindir}
17396 libexecdir
="\${ns_appbindir}/libexec"
17397 archlibdir
="\${ns_appbindir}/libexec"
17398 docdir
="\${ns_appresdir}/etc"
17399 etcdir
="\${ns_appresdir}/etc"
17400 infodir
="\${ns_appresdir}/info"
17401 mandir
="\${ns_appresdir}/man"
17402 lispdir
="\${ns_appresdir}/lisp"
17403 leimdir
="\${ns_appresdir}/leim"
17404 INSTALL_ARCH_INDEP_EXTRA
=
17406 ns_frag
=$srcdir/src
/ns.mk
17407 NS_OBJ
="fontset.o fringe.o image.o"
17408 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17410 CFLAGS
="$tmp_CFLAGS"
17411 CPPFLAGS
="$tmp_CPPFLAGS"
17419 case "${window_system}" in
17423 case "${with_x_toolkit}" in
17424 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
17425 motif
) USE_X_TOOLKIT
=MOTIF
;;
17427 USE_X_TOOLKIT
=none
;;
17428 gtk3
) with_gtk3
=yes
17429 USE_X_TOOLKIT
=none
;;
17430 no
) USE_X_TOOLKIT
=none
;;
17431 * ) USE_X_TOOLKIT
=maybe
;;
17441 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
17442 # Extract the first word of "X", so it can be a program name with args.
17443 set dummy X
; ac_word
=$2
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17445 $as_echo_n "checking for $ac_word... " >&6; }
17446 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17449 if test -n "$HAVE_XSERVER"; then
17450 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
17452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17453 for as_dir
in $PATH
17456 test -z "$as_dir" && as_dir
=.
17457 for ac_exec_ext
in '' $ac_executable_extensions; do
17458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17459 ac_cv_prog_HAVE_XSERVER
="true"
17460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17467 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
17470 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
17471 if test -n "$HAVE_XSERVER"; then
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17473 $as_echo "$HAVE_XSERVER" >&6; }
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17480 if test "$HAVE_XSERVER" = true ||
17481 test -n "$DISPLAY" ||
17482 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17483 as_fn_error
"You seem to be running X, but no X development libraries
17484 were found. You should install the relevant development files for X
17485 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17486 sure you have development files for image handling, i.e.
17487 tiff, gif, jpeg, png and xpm.
17488 If you are sure you want Emacs compiled without X window support, pass
17490 to configure." "$LINENO" 5
17494 ### If we're using X11, we should use the X menu package.
17496 case ${HAVE_X11} in
17497 yes ) HAVE_MENUS
=yes ;;
17500 # Does the opsystem file prohibit the use of the GNU malloc?
17501 # Assume not, until told otherwise.
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17505 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17506 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17507 $as_echo_n "(cached) " >&6
17509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 #include <malloc.h>
17512 static void hook (void) {}
17516 malloc_set_state (malloc_get_state ());
17517 __after_morecore_hook = hook;
17518 __malloc_initialize_hook = hook;
17523 if ac_fn_c_try_link
"$LINENO"; then :
17524 emacs_cv_var_doug_lea_malloc
=yes
17526 emacs_cv_var_doug_lea_malloc
=no
17528 rm -f core conftest.err conftest.
$ac_objext \
17529 conftest
$ac_exeext conftest.
$ac_ext
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17532 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17533 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
17538 ## darwin ld insists on the use of malloc routines in the System framework.
17539 darwin|sol2-10
) system_malloc
=yes ;;
17542 if test "${system_malloc}" = "yes"; then
17544 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17547 GNU_MALLOC_reason
="
17548 (The GNU allocators don't work with this system configuration.)"
17552 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
17553 VMLIMIT_OBJ
=vm-limit.o
17558 if test "$doug_lea_malloc" = "yes" ; then
17559 if test "$GNU_MALLOC" = yes ; then
17560 GNU_MALLOC_reason
="
17561 (Using Doug Lea's new malloc from the GNU C Library.)"
17564 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17567 ## Use mmap directly for allocating larger buffers.
17568 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17569 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17570 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17572 gnu
*) REL_ALLOC
=no
;;
17576 if test x
"${REL_ALLOC}" = x
; then
17577 REL_ALLOC
=${GNU_MALLOC}
17580 use_mmap_for_buffers
=no
17582 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
17588 for ac_func
in getpagesize
17590 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17591 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
17592 cat >>confdefs.h
<<_ACEOF
17593 #define HAVE_GETPAGESIZE 1
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17600 $as_echo_n "checking for working mmap... " >&6; }
17601 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17602 $as_echo_n "(cached) " >&6
17604 if test "$cross_compiling" = yes; then :
17605 ac_cv_func_mmap_fixed_mapped
=no
17607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 $ac_includes_default
17610 /* malloc might have been renamed as rpl_malloc. */
17613 /* Thanks to Mike Haertel and Jim Avera for this test.
17614 Here is a matrix of mmap possibilities:
17615 mmap private not fixed
17616 mmap private fixed at somewhere currently unmapped
17617 mmap private fixed at somewhere already mapped
17618 mmap shared not fixed
17619 mmap shared fixed at somewhere currently unmapped
17620 mmap shared fixed at somewhere already mapped
17621 For private mappings, we should verify that changes cannot be read()
17622 back from the file, nor mmap's back from the file at a different
17623 address. (There have been systems where private was not correctly
17624 implemented like the infamous i386 svr4.0, and systems where the
17625 VM page cache was not coherent with the file system buffer cache
17626 like early versions of FreeBSD and possibly contemporary NetBSD.)
17627 For shared mappings, we should conversely verify that changes get
17628 propagated back to all the places they're supposed to be.
17630 Grep wants private fixed already mapped.
17631 The main things grep needs to know about mmap are:
17632 * does it exist and is it safe to write into the mmap'd area
17633 * how to use it (BSD variants) */
17636 #include <sys/mman.h>
17638 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17642 /* This mess was copied from the GNU getpagesize.h. */
17643 #ifndef HAVE_GETPAGESIZE
17644 # ifdef _SC_PAGESIZE
17645 # define getpagesize() sysconf(_SC_PAGESIZE)
17646 # else /* no _SC_PAGESIZE */
17647 # ifdef HAVE_SYS_PARAM_H
17648 # include <sys/param.h>
17649 # ifdef EXEC_PAGESIZE
17650 # define getpagesize() EXEC_PAGESIZE
17651 # else /* no EXEC_PAGESIZE */
17653 # define getpagesize() NBPG * CLSIZE
17656 # endif /* no CLSIZE */
17657 # else /* no NBPG */
17659 # define getpagesize() NBPC
17660 # else /* no NBPC */
17662 # define getpagesize() PAGESIZE
17663 # endif /* PAGESIZE */
17664 # endif /* no NBPC */
17665 # endif /* no NBPG */
17666 # endif /* no EXEC_PAGESIZE */
17667 # else /* no HAVE_SYS_PARAM_H */
17668 # define getpagesize() 8192 /* punt totally */
17669 # endif /* no HAVE_SYS_PARAM_H */
17670 # endif /* no _SC_PAGESIZE */
17672 #endif /* no HAVE_GETPAGESIZE */
17677 char *data, *data2, *data3;
17678 const char *cdata2;
17682 pagesize = getpagesize ();
17684 /* First, make a file with some known garbage in it. */
17685 data = (char *) malloc (pagesize);
17688 for (i = 0; i < pagesize; ++i)
17689 *(data + i) = rand ();
17691 fd = creat ("conftest.mmap", 0600);
17694 if (write (fd, data, pagesize) != pagesize)
17698 /* Next, check that the tail of a page is zero-filled. File must have
17699 non-zero length, otherwise we risk SIGBUS for entire page. */
17700 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17704 if (write (fd2, cdata2, 1) != 1)
17706 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17707 if (data2 == MAP_FAILED)
17709 for (i = 0; i < pagesize; ++i)
17713 if (munmap (data2, pagesize))
17716 /* Next, try to mmap the file at a fixed address which already has
17717 something else allocated at it. If we can, also make sure that
17718 we see the same garbage. */
17719 fd = open ("conftest.mmap", O_RDWR);
17722 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17723 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17725 for (i = 0; i < pagesize; ++i)
17726 if (*(data + i) != *(data2 + i))
17729 /* Finally, make sure that changes to the mapped area do not
17730 percolate back to the file as seen by read(). (This is a bug on
17731 some variants of i386 svr4.0.) */
17732 for (i = 0; i < pagesize; ++i)
17733 *(data2 + i) = *(data2 + i) + 1;
17734 data3 = (char *) malloc (pagesize);
17737 if (read (fd, data3, pagesize) != pagesize)
17739 for (i = 0; i < pagesize; ++i)
17740 if (*(data + i) != *(data3 + i))
17746 if ac_fn_c_try_run
"$LINENO"; then :
17747 ac_cv_func_mmap_fixed_mapped
=yes
17749 ac_cv_func_mmap_fixed_mapped
=no
17751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17757 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17758 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17760 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17763 rm -f conftest.mmap conftest.txt
17765 if test $use_mmap_for_buffers = yes; then
17767 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17772 LIBS
="$LIBS_SYSTEM $LIBS"
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17775 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17776 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17777 $as_echo_n "(cached) " >&6
17779 ac_check_lib_save_LIBS
=$LIBS
17780 LIBS
="-ldnet $LIBS"
17781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17794 return dnet_ntoa ();
17799 if ac_fn_c_try_link
"$LINENO"; then :
17800 ac_cv_lib_dnet_dnet_ntoa
=yes
17802 ac_cv_lib_dnet_dnet_ntoa
=no
17804 rm -f core conftest.err conftest.
$ac_objext \
17805 conftest
$ac_exeext conftest.
$ac_ext
17806 LIBS
=$ac_check_lib_save_LIBS
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17809 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17810 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
17811 cat >>confdefs.h
<<_ACEOF
17812 #define HAVE_LIBDNET 1
17815 LIBS
="-ldnet $LIBS"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17821 $as_echo_n "checking for main in -lXbsd... " >&6; }
17822 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17825 ac_check_lib_save_LIBS
=$LIBS
17826 LIBS
="-lXbsd $LIBS"
17827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17839 if ac_fn_c_try_link
"$LINENO"; then :
17840 ac_cv_lib_Xbsd_main
=yes
17842 ac_cv_lib_Xbsd_main
=no
17844 rm -f core conftest.err conftest.
$ac_objext \
17845 conftest
$ac_exeext conftest.
$ac_ext
17846 LIBS
=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17849 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17850 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
17851 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
17859 if test "$ac_cv_header_pthread_h"; then
17860 if test "$GMALLOC_OBJ" = gmalloc.o
; then
17861 emacs_pthread_function
=pthread_atfork
17863 emacs_pthread_function
=pthread_self
17865 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17867 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17868 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17869 $as_echo_n "(cached) " >&6
17871 ac_check_lib_save_LIBS
=$LIBS
17872 LIBS
="-lpthread $LIBS"
17873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17882 char $emacs_pthread_function ();
17886 return $emacs_pthread_function ();
17891 if ac_fn_c_try_link
"$LINENO"; then :
17892 eval "$as_ac_Lib=yes"
17894 eval "$as_ac_Lib=no"
17896 rm -f core conftest.err conftest.
$ac_objext \
17897 conftest
$ac_exeext conftest.
$ac_ext
17898 LIBS
=$ac_check_lib_save_LIBS
17900 eval ac_res
=\$
$as_ac_Lib
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17902 $as_echo "$ac_res" >&6; }
17903 eval as_val
=\$
$as_ac_Lib
17904 if test "x$as_val" = x
""yes; then :
17909 if test "$HAVE_PTHREAD" = yes; then
17910 case "${canonical}" in
17912 *) LIB_PTHREAD
="-lpthread"
17913 LIBS
="$LIB_PTHREAD $LIBS" ;;
17916 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17922 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17923 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17924 $as_echo_n "(cached) " >&6
17926 ac_check_lib_save_LIBS
=$LIBS
17927 LIBS
="-lpthreads $LIBS"
17928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17941 return cma_open ();
17946 if ac_fn_c_try_link
"$LINENO"; then :
17947 ac_cv_lib_pthreads_cma_open
=yes
17949 ac_cv_lib_pthreads_cma_open
=no
17951 rm -f core conftest.err conftest.
$ac_objext \
17952 conftest
$ac_exeext conftest.
$ac_ext
17953 LIBS
=$ac_check_lib_save_LIBS
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
17956 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
17957 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
17958 cat >>confdefs.h
<<_ACEOF
17959 #define HAVE_LIBPTHREADS 1
17962 LIBS
="-lpthreads $LIBS"
17967 ## Note: when using cpp in s/aix4.2.h, this definition depended on
17968 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
17969 ## the system file was sourced. Hence the value of LIBS_SYSTEM
17970 ## added to LIBS in configure would never contain the pthreads part,
17971 ## but the value used in Makefiles might. FIXME?
17973 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
17974 ## be harmless on older versions of X where it happens to exist.
17975 test "$opsys" = "aix4-2" && \
17976 test $ac_cv_lib_pthreads_cma_open = yes && \
17977 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
17983 $as_echo_n "checking for -bbigtoc option... " >&6; }
17984 if test "${gdb_cv_bigtoc+set}" = set; then :
17985 $as_echo_n "(cached) " >&6
17989 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
17990 *) gdb_cv_bigtoc
=-bbigtoc ;;
17993 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
17994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
18005 if ac_fn_c_try_link
"$LINENO"; then :
18010 rm -f core conftest.err conftest.
$ac_objext \
18011 conftest
$ac_exeext conftest.
$ac_ext
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18015 $as_echo "$gdb_cv_bigtoc" >&6; }
18019 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18020 # used for the tests that follow. We set them back to REAL_CFLAGS and
18021 # REAL_CPPFLAGS later on.
18023 REAL_CFLAGS
="$CFLAGS"
18024 REAL_CPPFLAGS
="$CPPFLAGS"
18026 if test "${HAVE_X11}" = "yes"; then
18027 DEFS
="$C_SWITCH_X_SITE $DEFS"
18028 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
18030 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
18031 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
18033 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18034 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18035 # but it's more convenient here to set LD_RUN_PATH since this
18036 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18037 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
18038 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18042 if test "${opsys}" = "gnu-linux"; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18044 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18051 XOpenDisplay ("foo");
18056 if ac_fn_c_try_link
"$LINENO"; then :
18057 xgnu_linux_first_failure
=no
18059 xgnu_linux_first_failure
=yes
18061 rm -f core conftest.err conftest.
$ac_objext \
18062 conftest
$ac_exeext conftest.
$ac_ext
18063 if test "${xgnu_linux_first_failure}" = "yes"; then
18064 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
18065 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
18066 OLD_CPPFLAGS
="$CPPFLAGS"
18068 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
18069 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
18070 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
18071 LIBS
="$LIBS -b i486-linuxaout"
18072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18078 XOpenDisplay ("foo");
18083 if ac_fn_c_try_link
"$LINENO"; then :
18084 xgnu_linux_second_failure
=no
18086 xgnu_linux_second_failure
=yes
18088 rm -f core conftest.err conftest.
$ac_objext \
18089 conftest
$ac_exeext conftest.
$ac_ext
18090 if test "${xgnu_linux_second_failure}" = "yes"; then
18091 # If we get the same failure with -b, there is no use adding -b.
18092 # So take it out. This plays safe.
18093 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
18094 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
18095 CPPFLAGS
="$OLD_CPPFLAGS"
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098 $as_echo "no" >&6; }
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18101 $as_echo "yes" >&6; }
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18109 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18110 # header files included from there.
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18112 $as_echo_n "checking for Xkb... " >&6; }
18113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 #include <X11/Xlib.h>
18116 #include <X11/XKBlib.h>
18120 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18125 if ac_fn_c_try_link
"$LINENO"; then :
18130 rm -f core conftest.err conftest.
$ac_objext \
18131 conftest
$ac_exeext conftest.
$ac_ext
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18133 $as_echo "$emacs_xkb" >&6; }
18134 if test $emacs_xkb = yes; then
18136 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18140 for ac_func
in XrmSetDatabase XScreenResourceString \
18141 XScreenNumberOfScreen
18143 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18144 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18145 eval as_val
=\$
$as_ac_var
18146 if test "x$as_val" = x
""yes; then :
18147 cat >>confdefs.h
<<_ACEOF
18148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18156 if test "${window_system}" = "x11"; then
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18158 $as_echo_n "checking X11 version 6... " >&6; }
18159 if test "${emacs_cv_x11_version_6+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18164 #include <X11/Xlib.h>
18168 #if XlibSpecificationRelease < 6
18176 if ac_fn_c_try_link
"$LINENO"; then :
18177 emacs_cv_x11_version_6
=yes
18179 emacs_cv_x11_version_6
=no
18181 rm -f core conftest.err conftest.
$ac_objext \
18182 conftest
$ac_exeext conftest.
$ac_ext
18185 if test $emacs_cv_x11_version_6 = yes; then
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18187 $as_echo "6 or newer" >&6; }
18189 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18192 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18194 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18199 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18205 $as_echo "before 6" >&6; }
18210 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18212 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
18213 if test "${with_rsvg}" != "no"; then
18214 RSVG_REQUIRED
=2.11.0
18215 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
18220 if test "$PKG_CONFIG" = "no" ; then
18223 PKG_CONFIG_MIN_VERSION
=0.9.0
18224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18226 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18228 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18229 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18230 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18237 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18238 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18240 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244 $as_echo "no" >&6; }
18247 ## If we have a custom action on failure, don't print errors, but
18248 ## do set a variable so people can do so.
18249 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18256 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18257 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18261 if test $succeeded = yes; then
18270 if test $HAVE_RSVG = yes; then
18272 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18274 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
18275 LIBS
="$RSVG_LIBS $LIBS"
18280 HAVE_IMAGEMAGICK
=no
18281 if test "${HAVE_X11}" = "yes"; then
18282 if test "${with_imagemagick}" != "no"; then
18283 ## 6.2.8 is the earliest version known to work, but earlier versions
18284 ## might work - let us know if you find one.
18285 ## 6.0.7 does not work. See bug#7955.
18286 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
18290 if test "$PKG_CONFIG" = "no" ; then
18293 PKG_CONFIG_MIN_VERSION
=0.9.0
18294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18296 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18298 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18299 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18300 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18307 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18308 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18310 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315 IMAGEMAGICK_CFLAGS
=""
18316 IMAGEMAGICK_LIBS
=""
18317 ## If we have a custom action on failure, don't print errors, but
18318 ## do set a variable so people can do so.
18319 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18331 if test $succeeded = yes; then
18332 HAVE_IMAGEMAGICK
=yes
18340 if test $HAVE_IMAGEMAGICK = yes; then
18342 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18344 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
18345 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
18346 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
18348 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18349 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18350 eval as_val
=\$
$as_ac_var
18351 if test "x$as_val" = x
""yes; then :
18352 cat >>confdefs.h
<<_ACEOF
18353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18366 if test "${with_gtk3}" = "yes"; then
18369 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18374 if test "$PKG_CONFIG" = "no" ; then
18377 PKG_CONFIG_MIN_VERSION
=0.9.0
18378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18380 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18382 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18383 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18384 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18391 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18392 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18394 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18398 $as_echo "no" >&6; }
18401 ## If we have a custom action on failure, don't print errors, but
18402 ## do set a variable so people can do so.
18403 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18410 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18411 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18415 if test $succeeded = yes; then
18421 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18422 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18425 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18427 GTK_OBJ
=emacsgtkfixed.o
18430 if test "$pkg_check_gtk" != "yes"; then
18432 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
18435 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18440 if test "$PKG_CONFIG" = "no" ; then
18443 PKG_CONFIG_MIN_VERSION
=0.9.0
18444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18446 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18448 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18449 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18450 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18457 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18458 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18460 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18467 ## If we have a custom action on failure, don't print errors, but
18468 ## do set a variable so people can do so.
18469 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18481 if test $succeeded = yes; then
18487 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18488 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18493 if test x
"$pkg_check_gtk" = xyes
; then
18497 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
18498 CFLAGS
="$CFLAGS $GTK_CFLAGS"
18499 LIBS
="$GTK_LIBS $LIBS"
18501 for ac_func
in gtk_main
18503 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18504 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
18505 cat >>confdefs.h
<<_ACEOF
18506 #define HAVE_GTK_MAIN 1
18512 if test "${GTK_COMPILES}" != "yes"; then
18513 if test "$USE_X_TOOLKIT" != "maybe"; then
18514 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18519 $as_echo "#define USE_GTK 1" >>confdefs.h
18521 GTK_OBJ
="gtkutil.o $GTK_OBJ"
18523 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18527 closing open displays. This is no problem if you just use
18528 one display, but if you use more than one and close one of them
18529 Emacs may crash." >&5
18530 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18531 closing open displays. This is no problem if you just use
18532 one display, but if you use more than one and close one of them
18533 Emacs may crash." >&2;}
18542 if test "${HAVE_GTK}" = "yes"; then
18544 if test "$with_toolkit_scroll_bars" != no
; then
18545 with_toolkit_scroll_bars
=yes
18548 HAVE_GTK_FILE_SELECTION
=no
18549 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18550 #include <gtk/gtk.h>
18552 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
18553 HAVE_GTK_FILE_SELECTION
=yes
18555 HAVE_GTK_FILE_SELECTION
=no
18558 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18559 for ac_func
in gtk_file_selection_new
18561 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18562 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
18563 cat >>confdefs.h
<<_ACEOF
18564 #define HAVE_GTK_FILE_SELECTION_NEW 1
18573 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
18574 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18575 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18576 gtk_orientable_set_orientation \
18577 gtk_window_set_has_resize_grip
18579 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18581 eval as_val
=\$
$as_ac_var
18582 if test "x$as_val" = x
""yes; then :
18583 cat >>confdefs.h
<<_ACEOF
18584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18594 if test "${with_dbus}" = "yes"; then
18598 if test "$PKG_CONFIG" = "no" ; then
18601 PKG_CONFIG_MIN_VERSION
=0.9.0
18602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18604 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18606 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18607 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18608 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18615 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18616 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18618 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18625 ## If we have a custom action on failure, don't print errors, but
18626 ## do set a variable so people can do so.
18627 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18639 if test $succeeded = yes; then
18645 if test "$HAVE_DBUS" = yes; then
18646 LIBS
="$LIBS $DBUS_LIBS"
18648 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18650 for ac_func
in dbus_watch_get_unix_fd \
18651 dbus_type_is_valid \
18652 dbus_validate_bus_name \
18653 dbus_validate_path \
18654 dbus_validate_interface \
18655 dbus_validate_member
18657 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18659 eval as_val
=\$
$as_ac_var
18660 if test "x$as_val" = x
""yes; then :
18661 cat >>confdefs.h
<<_ACEOF
18662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 DBUS_OBJ
=dbusbind.o
18674 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18678 if test "$PKG_CONFIG" = "no" ; then
18681 PKG_CONFIG_MIN_VERSION
=0.9.0
18682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18684 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18686 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18687 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18688 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18695 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18696 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18698 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703 GSETTINGS_CFLAGS
=""
18705 ## If we have a custom action on failure, don't print errors, but
18706 ## do set a variable so people can do so.
18707 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18719 if test $succeeded = yes; then
18725 if test "$HAVE_GSETTINGS" = "yes"; then
18727 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18729 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
18730 SETTINGS_LIBS
="$GSETTINGS_LIBS"
18735 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18739 if test "$PKG_CONFIG" = "no" ; then
18742 PKG_CONFIG_MIN_VERSION
=0.9.0
18743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18745 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18747 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18748 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18749 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18756 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18757 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18759 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18766 ## If we have a custom action on failure, don't print errors, but
18767 ## do set a variable so people can do so.
18768 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18775 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18776 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18780 if test $succeeded = yes; then
18786 if test "$HAVE_GCONF" = yes; then
18788 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18790 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18791 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
18795 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
18796 SAVE_CFLAGS
="$CFLAGS"
18798 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
18799 LIBS
="$SETTINGS_LIBS $LIBS"
18800 for ac_func
in g_type_init
18802 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18803 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
18804 cat >>confdefs.h
<<_ACEOF
18805 #define HAVE_G_TYPE_INIT 1
18811 CFLAGS
="$SAVE_CFLAGS"
18820 if test "${with_selinux}" = "yes"; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18822 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18823 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18824 $as_echo_n "(cached) " >&6
18826 ac_check_lib_save_LIBS
=$LIBS
18827 LIBS
="-lselinux $LIBS"
18828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18831 /* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18837 char lgetfilecon ();
18841 return lgetfilecon ();
18846 if ac_fn_c_try_link
"$LINENO"; then :
18847 ac_cv_lib_selinux_lgetfilecon
=yes
18849 ac_cv_lib_selinux_lgetfilecon
=no
18851 rm -f core conftest.err conftest.
$ac_objext \
18852 conftest
$ac_exeext conftest.
$ac_ext
18853 LIBS
=$ac_check_lib_save_LIBS
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18856 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18857 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
18858 HAVE_LIBSELINUX
=yes
18863 if test "$HAVE_LIBSELINUX" = yes; then
18865 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18867 LIBSELINUX_LIBS
=-lselinux
18873 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
18874 if test "${with_gnutls}" = "yes" ; then
18878 if test "$PKG_CONFIG" = "no" ; then
18881 PKG_CONFIG_MIN_VERSION
=0.9.0
18882 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18884 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18886 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18887 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18888 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18895 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18896 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18898 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18903 LIBGNUTLS_CFLAGS
=""
18905 ## If we have a custom action on failure, don't print errors, but
18906 ## do set a variable so people can do so.
18907 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18919 if test $succeeded = yes; then
18925 if test "${HAVE_GNUTLS}" = "yes"; then
18927 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18931 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
18932 LIBS
="$LIBGNUTLS_LIBS $LIBS"
18933 for ac_func
in gnutls_certificate_set_verify_function
18935 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18936 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
18937 cat >>confdefs.h
<<_ACEOF
18938 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
18940 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
18945 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
18947 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
18957 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
18958 if test "$with_xaw3d" != no
; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
18960 $as_echo_n "checking for xaw3d... " >&6; }
18961 if test "${emacs_cv_xaw3d+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18967 #include <X11/Intrinsic.h>
18968 #include <X11/Xaw3d/Simple.h>
18977 if ac_fn_c_try_link
"$LINENO"; then :
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
18979 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
18980 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
18981 $as_echo_n "(cached) " >&6
18983 ac_check_lib_save_LIBS
=$LIBS
18984 LIBS
="-lXaw3d $LIBS"
18985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18994 char XawScrollbarSetThumb ();
18998 return XawScrollbarSetThumb ();
19003 if ac_fn_c_try_link
"$LINENO"; then :
19004 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
19006 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
19008 rm -f core conftest.err conftest.
$ac_objext \
19009 conftest
$ac_exeext conftest.
$ac_ext
19010 LIBS
=$ac_check_lib_save_LIBS
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19013 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19014 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
19023 rm -f core conftest.err conftest.
$ac_objext \
19024 conftest
$ac_exeext conftest.
$ac_ext
19030 if test $emacs_cv_xaw3d = yes; then
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19032 $as_echo "yes; using Lucid toolkit" >&6; }
19033 USE_X_TOOLKIT
=LUCID
19037 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19043 $as_echo_n "checking for libXaw... " >&6; }
19044 if test "${emacs_cv_xaw+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19050 #include <X11/Intrinsic.h>
19051 #include <X11/Xaw/Simple.h>
19060 if ac_fn_c_try_link
"$LINENO"; then :
19065 rm -f core conftest.err conftest.
$ac_objext \
19066 conftest
$ac_exeext conftest.
$ac_ext
19069 if test $emacs_cv_xaw = yes; then
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19071 $as_echo "yes; using Lucid toolkit" >&6; }
19072 USE_X_TOOLKIT
=LUCID
19074 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
19075 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19077 as_fn_error
"No X toolkit could be found.
19078 If you are sure you want Emacs compiled without an X toolkit, pass
19079 --with-x-toolkit=no
19080 to configure. Otherwise, install the development libraries for the toolkit
19081 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19086 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
19089 if test "${USE_X_TOOLKIT}" != "none"; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19091 $as_echo_n "checking X11 toolkit version... " >&6; }
19092 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19097 #include <X11/Intrinsic.h>
19101 #if XtSpecificationRelease < 6
19109 if ac_fn_c_try_link
"$LINENO"; then :
19110 emacs_cv_x11_toolkit_version_6
=yes
19112 emacs_cv_x11_toolkit_version_6
=no
19114 rm -f core conftest.err conftest.
$ac_objext \
19115 conftest
$ac_exeext conftest.
$ac_ext
19118 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
19119 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19121 $as_echo "6 or newer" >&6; }
19123 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19125 LIBXTR6
="-lSM -lICE"
19127 ## Use libw.a along with X11R6 Xt.
19128 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19132 $as_echo "before 6" >&6; }
19136 if test x
$HAVE_X11XTR6 = xyes
; then
19137 LIBS
="-lXt -lSM -lICE $LIBS"
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19142 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19143 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19144 $as_echo_n "(cached) " >&6
19146 ac_check_lib_save_LIBS
=$LIBS
19148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19157 char XmuConvertStandardSelection ();
19161 return XmuConvertStandardSelection ();
19166 if ac_fn_c_try_link
"$LINENO"; then :
19167 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
19169 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
19171 rm -f core conftest.err conftest.
$ac_objext \
19172 conftest
$ac_exeext conftest.
$ac_ext
19173 LIBS
=$ac_check_lib_save_LIBS
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19176 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19177 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
19178 cat >>confdefs.h
<<_ACEOF
19179 #define HAVE_LIBXMU 1
19186 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
19192 ## These systems don't supply Xmu.
19194 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
19199 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19200 if test "${HAVE_X11}" = "yes"; then
19201 if test "${USE_X_TOOLKIT}" != "none"; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19203 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19205 $as_echo_n "(cached) " >&6
19207 ac_check_lib_save_LIBS
=$LIBS
19208 LIBS
="-lXext $LIBS"
19209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19212 /* Override any GCC internal prototype to avoid an error.
19213 Use char because int might match the return type of a GCC
19214 builtin and then its argument prototype would still apply. */
19218 char XShapeQueryExtension ();
19222 return XShapeQueryExtension ();
19227 if ac_fn_c_try_link
"$LINENO"; then :
19228 ac_cv_lib_Xext_XShapeQueryExtension
=yes
19230 ac_cv_lib_Xext_XShapeQueryExtension
=no
19232 rm -f core conftest.err conftest.
$ac_objext \
19233 conftest
$ac_exeext conftest.
$ac_ext
19234 LIBS
=$ac_check_lib_save_LIBS
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19237 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19238 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
19239 cat >>confdefs.h
<<_ACEOF
19240 #define HAVE_LIBXEXT 1
19243 LIBS
="-lXext $LIBS"
19251 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19253 $as_echo_n "checking for Motif version 2.1... " >&6; }
19254 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19255 $as_echo_n "(cached) " >&6
19257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19263 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19266 Motif version prior to 2.1.
19272 if ac_fn_c_try_compile
"$LINENO"; then :
19273 emacs_cv_motif_version_2_1
=yes
19275 emacs_cv_motif_version_2_1
=no
19277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19280 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19281 if test $emacs_cv_motif_version_2_1 = yes; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19283 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19284 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19285 $as_echo_n "(cached) " >&6
19287 ac_check_lib_save_LIBS
=$LIBS
19289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19298 char XpCreateContext ();
19302 return XpCreateContext ();
19307 if ac_fn_c_try_link
"$LINENO"; then :
19308 ac_cv_lib_Xp_XpCreateContext
=yes
19310 ac_cv_lib_Xp_XpCreateContext
=no
19312 rm -f core conftest.err conftest.
$ac_objext \
19313 conftest
$ac_exeext conftest.
$ac_ext
19314 LIBS
=$ac_check_lib_save_LIBS
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19317 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19318 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19324 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19325 if test "${emacs_cv_lesstif+set}" = set; then :
19326 $as_echo_n "(cached) " >&6
19328 # We put this in CFLAGS temporarily to precede other -I options
19329 # that might be in CFLAGS temporarily.
19330 # We put this in CPPFLAGS where it precedes the other -I options.
19331 OLD_CPPFLAGS
=$CPPFLAGS
19333 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19334 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19346 if ac_fn_c_try_compile
"$LINENO"; then :
19347 emacs_cv_lesstif
=yes
19349 emacs_cv_lesstif
=no
19351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19354 $as_echo "$emacs_cv_lesstif" >&6; }
19355 if test $emacs_cv_lesstif = yes; then
19356 # Make sure this -I option remains in CPPFLAGS after it is set
19357 # back to REAL_CPPFLAGS.
19358 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19359 # have those other -I options anyway. Ultimately, having this
19360 # directory ultimately in CPPFLAGS will be enough.
19361 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19362 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19365 CPPFLAGS
=$OLD_CPPFLAGS
19368 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19369 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
19372 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
19379 USE_TOOLKIT_SCROLL_BARS
=no
19380 if test "${with_toolkit_scroll_bars}" != "no"; then
19381 if test "${USE_X_TOOLKIT}" != "none"; then
19382 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19383 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19386 USE_TOOLKIT_SCROLL_BARS
=yes
19387 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
19388 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19390 USE_TOOLKIT_SCROLL_BARS
=yes
19392 elif test "${HAVE_GTK}" = "yes"; then
19393 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19395 USE_TOOLKIT_SCROLL_BARS
=yes
19396 elif test "${HAVE_NS}" = "yes"; then
19397 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19399 USE_TOOLKIT_SCROLL_BARS
=yes
19403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19406 #include <X11/Xlib.h>
19407 #include <X11/Xresource.h>
19416 if ac_fn_c_try_compile
"$LINENO"; then :
19419 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19427 if test "${with_xim}" != "no"; then
19429 $as_echo "#define USE_XIM 1" >>confdefs.h
19434 if test "${HAVE_XIM}" != "no"; then
19435 late_CFLAGS
=$CFLAGS
19436 if test "$GCC" = yes; then
19437 CFLAGS
="$CFLAGS --pedantic-errors"
19439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 #include <X11/Xlib.h>
19443 #include <X11/Xresource.h>
19452 XPointer *client_data;
19454 /* If we're not using GCC, it's probably not XFree86, and this is
19455 probably right, but we can't use something like --pedantic-errors. */
19456 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19457 char*, XIMProc, XPointer*);
19459 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19465 if ac_fn_c_try_compile
"$LINENO"; then :
19466 emacs_cv_arg6_star
=yes
19468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19469 if test "$emacs_cv_arg6_star" = yes; then
19470 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19473 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19476 CFLAGS
=$late_CFLAGS
19479 ### Start of font-backend (under any platform) section.
19480 # (nothing here yet -- this is a placeholder)
19481 ### End of font-backend (under any platform) section.
19483 ### Start of font-backend (under X11) section.
19484 if test "${HAVE_X11}" = "yes"; then
19488 if test "$PKG_CONFIG" = "no" ; then
19491 PKG_CONFIG_MIN_VERSION
=0.9.0
19492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19494 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19496 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19497 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19498 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19505 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19506 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19508 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 $as_echo "no" >&6; }
19513 FONTCONFIG_CFLAGS
=""
19515 ## If we have a custom action on failure, don't print errors, but
19516 ## do set a variable so people can do so.
19517 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19529 if test $succeeded = yes; then
19536 ## Use -lXft if available, unless `--with-xft=no'.
19538 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
19541 if test "x${with_xft}" != "xno"; then
19546 if test "$PKG_CONFIG" = "no" ; then
19549 PKG_CONFIG_MIN_VERSION
=0.9.0
19550 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19552 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19554 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19555 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19556 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19563 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19564 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19566 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19570 $as_echo "no" >&6; }
19573 ## If we have a custom action on failure, don't print errors, but
19574 ## do set a variable so people can do so.
19575 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19587 if test $succeeded = yes; then
19593 ## Because xftfont.c uses XRenderQueryExtension, we also
19594 ## need to link to -lXrender.
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19597 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19598 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19599 $as_echo_n "(cached) " >&6
19601 ac_check_lib_save_LIBS
=$LIBS
19602 LIBS
="-lXrender $LIBS"
19603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19612 char XRenderQueryExtension ();
19616 return XRenderQueryExtension ();
19621 if ac_fn_c_try_link
"$LINENO"; then :
19622 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
19624 ac_cv_lib_Xrender_XRenderQueryExtension
=no
19626 rm -f core conftest.err conftest.
$ac_objext \
19627 conftest
$ac_exeext conftest.
$ac_ext
19628 LIBS
=$ac_check_lib_save_LIBS
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19631 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19632 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
19636 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
19637 OLD_CPPFLAGS
="$CPPFLAGS"
19638 OLD_CFLAGS
="$CFLAGS"
19640 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
19641 CFLAGS
="$CFLAGS $XFT_CFLAGS"
19642 XFT_LIBS
="-lXrender $XFT_LIBS"
19643 LIBS
="$XFT_LIBS $LIBS"
19644 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19645 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19647 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19648 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19649 $as_echo_n "(cached) " >&6
19651 ac_check_lib_save_LIBS
=$LIBS
19652 LIBS
="-lXft $XFT_LIBS $LIBS"
19653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19662 char XftFontOpen ();
19666 return XftFontOpen ();
19671 if ac_fn_c_try_link
"$LINENO"; then :
19672 ac_cv_lib_Xft_XftFontOpen
=yes
19674 ac_cv_lib_Xft_XftFontOpen
=no
19676 rm -f core conftest.err conftest.
$ac_objext \
19677 conftest
$ac_exeext conftest.
$ac_ext
19678 LIBS
=$ac_check_lib_save_LIBS
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19681 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19682 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
19690 if test "${HAVE_XFT}" = "yes"; then
19692 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19695 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
19697 CPPFLAGS
="$OLD_CPPFLAGS"
19698 CFLAGS
="$OLD_CFLAGS"
19700 fi # "${HAVE_XFT}" = "yes"
19701 fi # "$HAVE_XFT" != no
19702 fi # "x${with_xft}" != "xno"
19704 ## We used to allow building with FreeType and without Xft.
19705 ## However, the ftx font backend driver is not in good shape.
19706 if test "$HAVE_XFT" != "yes"; then
19713 if test "$PKG_CONFIG" = "no" ; then
19716 PKG_CONFIG_MIN_VERSION
=0.9.0
19717 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19719 $as_echo_n "checking for freetype2... " >&6; }
19721 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19722 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19723 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19730 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19731 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19733 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737 $as_echo "no" >&6; }
19740 ## If we have a custom action on failure, don't print errors, but
19741 ## do set a variable so people can do so.
19742 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19754 if test $succeeded = yes; then
19761 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
19765 if test "${HAVE_FREETYPE}" = "yes"; then
19767 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19769 if test "${with_libotf}" != "no"; then
19773 if test "$PKG_CONFIG" = "no" ; then
19776 PKG_CONFIG_MIN_VERSION
=0.9.0
19777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19779 $as_echo_n "checking for libotf... " >&6; }
19781 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19782 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19783 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19790 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19791 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19793 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19800 ## If we have a custom action on failure, don't print errors, but
19801 ## do set a variable so people can do so.
19802 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19814 if test $succeeded = yes; then
19820 if test "$HAVE_LIBOTF" = "yes"; then
19822 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19825 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19826 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19829 ac_check_lib_save_LIBS
=$LIBS
19831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19840 char OTF_get_variation_glyphs ();
19844 return OTF_get_variation_glyphs ();
19849 if ac_fn_c_try_link
"$LINENO"; then :
19850 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
19852 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
19854 rm -f core conftest.err conftest.
$ac_objext \
19855 conftest
$ac_exeext conftest.
$ac_ext
19856 LIBS
=$ac_check_lib_save_LIBS
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19859 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19860 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
19861 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
19863 HAVE_OTF_GET_VARIATION_GLYPHS
=no
19866 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19868 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19876 if test "${HAVE_LIBOTF}" = yes; then
19877 if test "${with_m17n_flt}" != "no"; then
19881 if test "$PKG_CONFIG" = "no" ; then
19884 PKG_CONFIG_MIN_VERSION
=0.9.0
19885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19887 $as_echo_n "checking for m17n-flt... " >&6; }
19889 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19890 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19891 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19898 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19899 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19901 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905 $as_echo "no" >&6; }
19908 ## If we have a custom action on failure, don't print errors, but
19909 ## do set a variable so people can do so.
19910 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19922 if test $succeeded = yes; then
19928 if test "$HAVE_M17N_FLT" = "yes"; then
19930 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19942 ### End of font-backend (under X11) section.
19953 ### Use -lXpm if available, unless `--with-xpm=no'.
19956 if test "${HAVE_X11}" = "yes"; then
19957 if test "${with_xpm}" != "no"; then
19958 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
19959 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
19961 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
19962 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
19963 $as_echo_n "(cached) " >&6
19965 ac_check_lib_save_LIBS
=$LIBS
19966 LIBS
="-lXpm -lX11 $LIBS"
19967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19976 char XpmReadFileToPixmap ();
19980 return XpmReadFileToPixmap ();
19985 if ac_fn_c_try_link
"$LINENO"; then :
19986 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
19988 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
19990 rm -f core conftest.err conftest.
$ac_objext \
19991 conftest
$ac_exeext conftest.
$ac_ext
19992 LIBS
=$ac_check_lib_save_LIBS
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
19995 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
19996 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
20003 if test "${HAVE_XPM}" = "yes"; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20005 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008 #include "X11/xpm.h"
20009 #ifndef XpmReturnAllocPixels
20010 no_return_alloc_pixels
20014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
20023 if test "${HAVE_XPM}" = "yes"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20025 $as_echo "yes" >&6; }
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20033 if test "${HAVE_XPM}" = "yes"; then
20035 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20042 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20045 if test "${HAVE_X11}" = "yes"; then
20046 if test "${with_jpeg}" != "no"; then
20047 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20048 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20050 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20051 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20054 ac_check_lib_save_LIBS
=$LIBS
20055 LIBS
="-ljpeg $LIBS"
20056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20059 /* Override any GCC internal prototype to avoid an error.
20060 Use char because int might match the return type of a GCC
20061 builtin and then its argument prototype would still apply. */
20065 char jpeg_destroy_compress ();
20069 return jpeg_destroy_compress ();
20074 if ac_fn_c_try_link
"$LINENO"; then :
20075 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
20077 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
20079 rm -f core conftest.err conftest.
$ac_objext \
20080 conftest
$ac_exeext conftest.
$ac_ext
20081 LIBS
=$ac_check_lib_save_LIBS
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20084 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20085 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
20094 if test "${HAVE_JPEG}" = "yes"; then
20095 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 #include <jpeglib.h>
20100 version=JPEG_LIB_VERSION
20103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
20105 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20109 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20115 if test "${HAVE_JPEG}" = "yes"; then
20121 ### Use -lpng if available, unless `--with-png=no'.
20124 if test "${HAVE_X11}" = "yes"; then
20125 if test "${with_png}" != "no"; then
20126 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20127 # in /usr/include/libpng.
20128 for ac_header
in png.h libpng
/png.h
20130 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20131 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20132 eval as_val
=\$
$as_ac_Header
20133 if test "x$as_val" = x
""yes; then :
20134 cat >>confdefs.h
<<_ACEOF
20135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20142 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20144 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20145 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20146 $as_echo_n "(cached) " >&6
20148 ac_check_lib_save_LIBS
=$LIBS
20149 LIBS
="-lpng -lz -lm $LIBS"
20150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20151 /* end confdefs.h. */
20153 /* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20159 char png_get_channels ();
20163 return png_get_channels ();
20168 if ac_fn_c_try_link
"$LINENO"; then :
20169 ac_cv_lib_png_png_get_channels
=yes
20171 ac_cv_lib_png_png_get_channels
=no
20173 rm -f core conftest.err conftest.
$ac_objext \
20174 conftest
$ac_exeext conftest.
$ac_ext
20175 LIBS
=$ac_check_lib_save_LIBS
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20178 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20179 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
20186 if test "${HAVE_PNG}" = "yes"; then
20188 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20190 LIBPNG
="-lpng -lz -lm"
20195 ### Use -ltiff if available, unless `--with-tiff=no'.
20198 if test "${HAVE_X11}" = "yes"; then
20199 if test "${with_tiff}" != "no"; then
20200 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20201 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
20203 # At least one tiff package requires the jpeg library.
20204 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20206 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20207 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20208 $as_echo_n "(cached) " >&6
20210 ac_check_lib_save_LIBS
=$LIBS
20211 LIBS
="-ltiff $tifflibs $LIBS"
20212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20221 char TIFFGetVersion ();
20225 return TIFFGetVersion ();
20230 if ac_fn_c_try_link
"$LINENO"; then :
20231 ac_cv_lib_tiff_TIFFGetVersion
=yes
20233 ac_cv_lib_tiff_TIFFGetVersion
=no
20235 rm -f core conftest.err conftest.
$ac_objext \
20236 conftest
$ac_exeext conftest.
$ac_ext
20237 LIBS
=$ac_check_lib_save_LIBS
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20240 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20241 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
20250 if test "${HAVE_TIFF}" = "yes"; then
20252 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20259 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20262 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20263 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20264 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
20265 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20266 # Earlier versions can crash Emacs.
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20268 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20269 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20272 ac_check_lib_save_LIBS
=$LIBS
20274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20283 char EGifPutExtensionLast ();
20287 return EGifPutExtensionLast ();
20292 if ac_fn_c_try_link
"$LINENO"; then :
20293 ac_cv_lib_gif_EGifPutExtensionLast
=yes
20295 ac_cv_lib_gif_EGifPutExtensionLast
=no
20297 rm -f core conftest.err conftest.
$ac_objext \
20298 conftest
$ac_exeext conftest.
$ac_ext
20299 LIBS
=$ac_check_lib_save_LIBS
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20302 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20303 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
20313 if test "$HAVE_GIF" = yes; then
20315 elif test "$HAVE_GIF" = maybe
; then
20316 # If gif_lib.h but no libgif, try libungif.
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20318 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20319 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20322 ac_check_lib_save_LIBS
=$LIBS
20323 LIBS
="-lungif $LIBS"
20324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20333 char EGifPutExtensionLast ();
20337 return EGifPutExtensionLast ();
20342 if ac_fn_c_try_link
"$LINENO"; then :
20343 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
20345 ac_cv_lib_ungif_EGifPutExtensionLast
=no
20347 rm -f core conftest.err conftest.
$ac_objext \
20348 conftest
$ac_exeext conftest.
$ac_ext
20349 LIBS
=$ac_check_lib_save_LIBS
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20352 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20353 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
20359 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
20362 if test "${HAVE_GIF}" = "yes"; then
20364 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20370 if test "${HAVE_X11}" = "yes"; then
20373 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20374 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
20375 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20376 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
20377 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20378 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
20379 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20380 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
20381 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20382 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
20384 if test "X${MISSING}" != X
; then
20385 as_fn_error
"The following required libraries were not found:
20387 Maybe some development libraries/packages are missing?
20388 If you don't want to link with them give
20390 as options to configure" "$LINENO" 5
20394 ### Use -lgpm if available, unless `--with-gpm=no'.
20397 if test "${with_gpm}" != "no"; then
20398 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20399 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20401 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20402 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20405 ac_check_lib_save_LIBS
=$LIBS
20407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 /* Override any GCC internal prototype to avoid an error.
20411 Use char because int might match the return type of a GCC
20412 builtin and then its argument prototype would still apply. */
20420 return Gpm_Open ();
20425 if ac_fn_c_try_link
"$LINENO"; then :
20426 ac_cv_lib_gpm_Gpm_Open
=yes
20428 ac_cv_lib_gpm_Gpm_Open
=no
20430 rm -f core conftest.err conftest.
$ac_objext \
20431 conftest
$ac_exeext conftest.
$ac_ext
20432 LIBS
=$ac_check_lib_save_LIBS
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20435 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20436 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
20444 if test "${HAVE_GPM}" = "yes"; then
20446 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20458 ### Use NeXTstep API to implement GUI.
20459 if test "${HAVE_NS}" = "yes"; then
20461 $as_echo "#define HAVE_NS 1" >>confdefs.h
20463 if test "${NS_IMPL_COCOA}" = "yes"; then
20465 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20468 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20470 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20472 # See also .m.o rule in Makefile.in */
20473 # FIXME: are all these flags really needed? Document here why. */
20474 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20475 ## Extra CFLAGS applied to src/*.m files.
20476 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"
20478 # We also have mouse menus.
20484 ### Use session management (-lSM -lICE) if available
20487 if test "${HAVE_X11}" = "yes"; then
20488 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20489 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20491 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20492 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20493 $as_echo_n "(cached) " >&6
20495 ac_check_lib_save_LIBS
=$LIBS
20496 LIBS
="-lSM -lICE $LIBS"
20497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20500 /* Override any GCC internal prototype to avoid an error.
20501 Use char because int might match the return type of a GCC
20502 builtin and then its argument prototype would still apply. */
20506 char SmcOpenConnection ();
20510 return SmcOpenConnection ();
20515 if ac_fn_c_try_link
"$LINENO"; then :
20516 ac_cv_lib_SM_SmcOpenConnection
=yes
20518 ac_cv_lib_SM_SmcOpenConnection
=no
20520 rm -f core conftest.err conftest.
$ac_objext \
20521 conftest
$ac_exeext conftest.
$ac_ext
20522 LIBS
=$ac_check_lib_save_LIBS
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20525 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20526 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
20534 if test "${HAVE_X_SM}" = "yes"; then
20536 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20538 LIBXSM
="-lSM -lICE"
20541 *) LIBS
="$LIBXSM $LIBS" ;;
20547 ### Use libxml (-lxml2) if available
20549 if test "${with_xml2}" != "no"; then
20550 ### I'm not sure what the version number should be, so I just guessed.
20554 if test "$PKG_CONFIG" = "no" ; then
20557 PKG_CONFIG_MIN_VERSION
=0.9.0
20558 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20560 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20562 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20563 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20564 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20571 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20572 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20574 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20578 $as_echo "no" >&6; }
20581 ## If we have a custom action on failure, don't print errors, but
20582 ## do set a variable so people can do so.
20583 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20595 if test $succeeded = yes; then
20601 if test "${HAVE_LIBXML2}" = "yes"; then
20602 LIBS
="$LIBXML2_LIBS $LIBS"
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20604 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20605 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20606 $as_echo_n "(cached) " >&6
20608 ac_check_lib_save_LIBS
=$LIBS
20609 LIBS
="-lxml2 $LIBS"
20610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20613 /* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply. */
20619 char htmlReadMemory ();
20623 return htmlReadMemory ();
20628 if ac_fn_c_try_link
"$LINENO"; then :
20629 ac_cv_lib_xml2_htmlReadMemory
=yes
20631 ac_cv_lib_xml2_htmlReadMemory
=no
20633 rm -f core conftest.err conftest.
$ac_objext \
20634 conftest
$ac_exeext conftest.
$ac_ext
20635 LIBS
=$ac_check_lib_save_LIBS
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20638 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20639 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
20645 if test "${HAVE_LIBXML2}" = "yes"; then
20647 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20658 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20660 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20661 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20675 if ac_fn_c_try_link
"$LINENO"; then :
20676 emacs_cv_netdb_declares_h_errno
=yes
20678 emacs_cv_netdb_declares_h_errno
=no
20680 rm -f core conftest.err conftest.
$ac_objext \
20681 conftest
$ac_exeext conftest.
$ac_ext
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20684 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20685 if test $emacs_cv_netdb_declares_h_errno = yes; then
20687 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20691 # fmod, logb, and frexp are found in -lm on most systems.
20692 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20694 $as_echo_n "checking for sqrt in -lm... " >&6; }
20695 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20698 ac_check_lib_save_LIBS
=$LIBS
20700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20718 if ac_fn_c_try_link
"$LINENO"; then :
20719 ac_cv_lib_m_sqrt
=yes
20721 ac_cv_lib_m_sqrt
=no
20723 rm -f core conftest.err conftest.
$ac_objext \
20724 conftest
$ac_exeext conftest.
$ac_ext
20725 LIBS
=$ac_check_lib_save_LIBS
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20728 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20729 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
20730 cat >>confdefs.h
<<_ACEOF
20731 #define HAVE_LIBM 1
20739 # Check for mail-locking functions in a "mail" library. Probably this should
20740 # have the same check as for liblockfile below.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20742 $as_echo_n "checking for maillock in -lmail... " >&6; }
20743 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20746 ac_check_lib_save_LIBS
=$LIBS
20747 LIBS
="-lmail $LIBS"
20748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply. */
20761 return maillock ();
20766 if ac_fn_c_try_link
"$LINENO"; then :
20767 ac_cv_lib_mail_maillock
=yes
20769 ac_cv_lib_mail_maillock
=no
20771 rm -f core conftest.err conftest.
$ac_objext \
20772 conftest
$ac_exeext conftest.
$ac_ext
20773 LIBS
=$ac_check_lib_save_LIBS
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20776 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20777 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
20783 if test $have_mail = yes; then
20785 LIBS
="$LIBS_MAIL $LIBS"
20787 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20793 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20794 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20795 $as_echo_n "(cached) " >&6
20797 ac_check_lib_save_LIBS
=$LIBS
20798 LIBS
="-llockfile $LIBS"
20799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20802 /* Override any GCC internal prototype to avoid an error.
20803 Use char because int might match the return type of a GCC
20804 builtin and then its argument prototype would still apply. */
20812 return maillock ();
20817 if ac_fn_c_try_link
"$LINENO"; then :
20818 ac_cv_lib_lockfile_maillock
=yes
20820 ac_cv_lib_lockfile_maillock
=no
20822 rm -f core conftest.err conftest.
$ac_objext \
20823 conftest
$ac_exeext conftest.
$ac_ext
20824 LIBS
=$ac_check_lib_save_LIBS
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20827 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20828 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
20834 if test $have_lockfile = yes; then
20835 LIBS_MAIL
=-llockfile
20836 LIBS
="$LIBS_MAIL $LIBS"
20838 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20841 # If we have the shared liblockfile, assume we must use it for mail
20842 # locking (e.g. Debian). If we couldn't link against liblockfile
20843 # (no liblockfile.a installed), ensure that we don't need to.
20844 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20845 set dummy liblockfile.so
; ac_word
=$2
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20847 $as_echo_n "checking for $ac_word... " >&6; }
20848 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20851 if test -n "$liblockfile"; then
20852 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
20854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20855 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20856 for as_dir
in $as_dummy
20859 test -z "$as_dir" && as_dir
=.
20860 for ac_exec_ext
in '' $ac_executable_extensions; do
20861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20862 ac_cv_prog_liblockfile
="yes"
20863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20870 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
20873 liblockfile
=$ac_cv_prog_liblockfile
20874 if test -n "$liblockfile"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20876 $as_echo "$liblockfile" >&6; }
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20879 $as_echo "no" >&6; }
20883 if test $ac_cv_prog_liblockfile = yes; then
20884 as_fn_error
"Shared liblockfile found but can't link against it.
20885 This probably means that movemail could lose mail.
20886 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20894 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20895 ## interlock access to the mail spool. The alternative is a lock file named
20896 ## /usr/spool/mail/$USER.lock.
20899 aix4-2
) mail_lock
="lockf" ;;
20901 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
20903 ## On GNU/Linux systems, both methods are used by various mail programs.
20904 ## I assume most people are using newer mailers that have heard of flock.
20905 ## Change this if you need to.
20906 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20907 ## configure gets the right answers, and that means *NOT* using flock.
20908 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20909 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20910 ## Debian maintainer hasn't provided a clean fix for Emacs.
20911 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20912 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20913 ## correct logic. -- fx
20914 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20915 ## liblockfile is a Free Software replacement for libmail, used on
20916 ## Debian systems and elsewhere. -rfr.
20919 if test $have_mail = yes ||
test $have_lockfile = yes; then
20920 test $ac_cv_header_maillock_h = yes && mail_lock
=no
20926 case "$mail_lock" in
20928 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
20932 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
20935 *) BLESSMAIL_TARGET
="need-blessmail" ;;
20940 for ac_func
in gethostname \
20941 rename closedir mkdir
rmdir getrusage get_current_dir_name \
20942 random lrand48 logb frexp fmod rint cbrt setsid \
20943 strerror fpathconf
select euidaccess getpagesize setlocale \
20944 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
20945 __fpending strsignal setitimer \
20946 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
20947 gai_strerror mkstemp getline getdelim fsync sync \
20948 difftime posix_memalign \
20949 getpwent endpwent getgrent endgrent \
20951 cfmakeraw cfsetspeed copysign __executable_start
20953 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20955 eval as_val
=\$
$as_ac_var
20956 if test "x$as_val" = x
""yes; then :
20957 cat >>confdefs.h
<<_ACEOF
20958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
20966 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
20967 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
20968 $as_echo_n "(cached) " >&6
20970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20976 __builtin_unwind_init ();
20981 if ac_fn_c_try_link
"$LINENO"; then :
20982 emacs_cv_func___builtin_unwind_init
=yes
20984 emacs_cv_func___builtin_unwind_init
=no
20986 rm -f core conftest.err conftest.
$ac_objext \
20987 conftest
$ac_exeext conftest.
$ac_ext
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
20990 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
20991 if test $emacs_cv_func___builtin_unwind_init = yes; then
20993 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21002 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21003 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21004 $as_echo_n "(cached) " >&6
21007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21009 #include <sys/types.h> /* for off_t */
21014 int (*fp) (FILE *, off_t, int) = fseeko;
21015 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21020 if ac_fn_c_try_link
"$LINENO"; then :
21021 ac_cv_sys_largefile_source
=no
; break
21023 rm -f core conftest.err conftest.
$ac_objext \
21024 conftest
$ac_exeext conftest.
$ac_ext
21025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21027 #define _LARGEFILE_SOURCE 1
21028 #include <sys/types.h> /* for off_t */
21033 int (*fp) (FILE *, off_t, int) = fseeko;
21034 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21039 if ac_fn_c_try_link
"$LINENO"; then :
21040 ac_cv_sys_largefile_source
=1; break
21042 rm -f core conftest.err conftest.
$ac_objext \
21043 conftest
$ac_exeext conftest.
$ac_ext
21044 ac_cv_sys_largefile_source
=unknown
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21049 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21050 case $ac_cv_sys_largefile_source in #(
21053 cat >>confdefs.h
<<_ACEOF
21054 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21060 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21061 # in glibc 2.1.3, but that breaks too many other things.
21062 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21063 if test $ac_cv_sys_largefile_source != unknown
; then
21065 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21071 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21072 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21075 # Use it with a single arg.
21076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21078 $ac_includes_default
21087 if ac_fn_c_try_compile
"$LINENO"; then :
21088 ac_cv_func_getpgrp_void
=no
21090 ac_cv_func_getpgrp_void
=yes
21092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21096 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21097 if test $ac_cv_func_getpgrp_void = yes; then
21099 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21105 for ac_func
in grantpt
21107 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
21108 if test "x$ac_cv_func_grantpt" = x
""yes; then :
21109 cat >>confdefs.h
<<_ACEOF
21110 #define HAVE_GRANTPT 1
21117 # PTY-related GNU extensions.
21118 for ac_func
in getpt
21120 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
21121 if test "x$ac_cv_func_getpt" = x
""yes; then :
21122 cat >>confdefs.h
<<_ACEOF
21123 #define HAVE_GETPT 1
21130 # Check this now, so that we will NOT find the above functions in ncurses.
21131 # That is because we have not set up to link ncurses in lib-src.
21132 # It's better to believe a function is not available
21133 # than to expect to find it in ncurses.
21134 # Also we need tputs and friends to be able to build at all.
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21136 $as_echo_n "checking for library containing tputs... " >&6; }
21137 # Run a test program that contains a call to tputs, a call that is
21138 # never executed. This tests whether a pre-'main' dynamic linker
21139 # works with the library. It's too much trouble to actually call
21140 # tputs in the test program, due to portability hassles. When
21141 # cross-compiling, assume the test program will run if it links.
21143 # Maybe curses should be tried earlier?
21144 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21145 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
21147 if test -z "$tputs_library"; then
21149 msg
='none required'
21151 LIBS_TERMCAP
=-l$tputs_library
21153 LIBS
="$LIBS_TERMCAP $LIBS"
21155 if test "$cross_compiling" = yes; then :
21156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h. */
21159 extern void tputs (const char *, int, int (*)(int));
21160 int main (int argc, char **argv)
21163 tputs (argv[0], 0, 0);
21168 if ac_fn_c_try_link
"$LINENO"; then :
21173 rm -f core conftest.err conftest.
$ac_objext \
21174 conftest
$ac_exeext conftest.
$ac_ext
21176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21179 extern void tputs (const char *, int, int (*)(int));
21180 int main (int argc, char **argv)
21183 tputs (argv[0], 0, 0);
21188 if ac_fn_c_try_run
"$LINENO"; then :
21193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21198 if test "X$msg" != Xno
; then
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21203 $as_echo "$msg" >&6; }
21204 if test "X$msg" = Xno
; then
21205 as_fn_error
"The required function \`tputs' was not found in any library.
21206 The following libraries were tried (in order):
21207 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21208 Please try installing whichever of these libraries is most appropriate
21209 for your system, together with its header files.
21210 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21213 ## Use termcap instead of terminfo?
21214 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21216 ## FIXME? In the cases below where we unconditionally set
21217 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21218 ## if that was found above to have tputs.
21219 ## Should we use the gnu* logic everywhere?
21221 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21222 ## The ncurses library has been moved out of the System framework in
21223 ## Mac OS X 10.2. So if configure detects it, set the command-line
21224 ## option to use it.
21225 darwin
) LIBS_TERMCAP
="-lncurses" ;;
21227 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21231 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21232 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21233 $as_echo_n "(cached) " >&6
21235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21237 #include <osreldate.h>
21241 #if __FreeBSD_version < 400000
21249 if ac_fn_c_try_link
"$LINENO"; then :
21250 emacs_cv_freebsd_terminfo
=yes
21252 emacs_cv_freebsd_terminfo
=no
21254 rm -f core conftest.err conftest.
$ac_objext \
21255 conftest
$ac_exeext conftest.
$ac_ext
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21260 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21262 if test $emacs_cv_freebsd_terminfo = yes; then
21263 LIBS_TERMCAP
="-lncurses"
21266 LIBS_TERMCAP
="-ltermcap"
21271 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21273 LIBS_TERMCAP
="-ltermcap"
21277 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
21279 ## hpux: Make sure we get select from libc rather than from libcurses
21280 ## because libcurses on HPUX 10.10 has a broken version of select.
21281 ## We used to use -lc -lcurses, but this may be cleaner.
21282 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21283 # set that way, now it uses the default). Isn't this a contradiction?
21284 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
21288 TERMCAP_OBJ
=tparam.o
21289 if test $TERMINFO = yes; then
21291 $as_echo "#define TERMINFO 1" >>confdefs.h
21293 TERMCAP_OBJ
=terminfo.o
21299 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h. */
21303 #include <netinet/in.h>
21304 #include <arpa/nameser.h>
21305 #include <resolv.h>
21314 if ac_fn_c_try_link
"$LINENO"; then :
21319 rm -f core conftest.err conftest.
$ac_objext \
21320 conftest
$ac_exeext conftest.
$ac_ext
21321 if test "$have_res_init" = no
; then
21323 LIBS
="$LIBS -lresolv"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21325 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21328 #include <netinet/in.h>
21329 #include <arpa/nameser.h>
21330 #include <resolv.h>
21339 if ac_fn_c_try_link
"$LINENO"; then :
21344 rm -f core conftest.err conftest.
$ac_objext \
21345 conftest
$ac_exeext conftest.
$ac_ext
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21347 $as_echo "$have_res_init" >&6; }
21348 if test "$have_res_init" = yes ; then
21354 if test "$have_res_init" = yes; then
21356 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21360 # Do we need the Hesiod library to provide the support routines?
21362 if test "$with_hesiod" != no
; then
21363 # Don't set $LIBS here -- see comments above. FIXME which comments?
21364 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
21365 if test "x$ac_cv_func_res_send" = x
""yes; then :
21368 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
21369 if test "x$ac_cv_func___res_send" = x
""yes; then :
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21373 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21374 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21375 $as_echo_n "(cached) " >&6
21377 ac_check_lib_save_LIBS
=$LIBS
21378 LIBS
="-lresolv $LIBS"
21379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21382 /* Override any GCC internal prototype to avoid an error.
21383 Use char because int might match the return type of a GCC
21384 builtin and then its argument prototype would still apply. */
21392 return res_send ();
21397 if ac_fn_c_try_link
"$LINENO"; then :
21398 ac_cv_lib_resolv_res_send
=yes
21400 ac_cv_lib_resolv_res_send
=no
21402 rm -f core conftest.err conftest.
$ac_objext \
21403 conftest
$ac_exeext conftest.
$ac_ext
21404 LIBS
=$ac_check_lib_save_LIBS
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21407 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21408 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21412 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21413 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21416 ac_check_lib_save_LIBS
=$LIBS
21417 LIBS
="-lresolv $LIBS"
21418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21421 /* Override any GCC internal prototype to avoid an error.
21422 Use char because int might match the return type of a GCC
21423 builtin and then its argument prototype would still apply. */
21427 char __res_send ();
21431 return __res_send ();
21436 if ac_fn_c_try_link
"$LINENO"; then :
21437 ac_cv_lib_resolv___res_send
=yes
21439 ac_cv_lib_resolv___res_send
=no
21441 rm -f core conftest.err conftest.
$ac_objext \
21442 conftest
$ac_exeext conftest.
$ac_ext
21443 LIBS
=$ac_check_lib_save_LIBS
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21446 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21447 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
21457 if test "$resolv" = yes ; then
21462 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21463 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21467 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21468 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21469 $as_echo_n "(cached) " >&6
21471 ac_check_lib_save_LIBS
=$LIBS
21472 LIBS
="-lhesiod $RESOLVLIB $LIBS"
21473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21476 /* Override any GCC internal prototype to avoid an error.
21477 Use char because int might match the return type of a GCC
21478 builtin and then its argument prototype would still apply. */
21482 char hes_getmailhost ();
21486 return hes_getmailhost ();
21491 if ac_fn_c_try_link
"$LINENO"; then :
21492 ac_cv_lib_hesiod_hes_getmailhost
=yes
21494 ac_cv_lib_hesiod_hes_getmailhost
=no
21496 rm -f core conftest.err conftest.
$ac_objext \
21497 conftest
$ac_exeext conftest.
$ac_ext
21498 LIBS
=$ac_check_lib_save_LIBS
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21501 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21502 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
21511 if test x
"$hesiod" = xyes
; then
21513 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21520 # Do we need libresolv (due to res_init or Hesiod)?
21521 if test "$resolv" = yes ; then
21523 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21531 # These tell us which Kerberos-related libraries to use.
21538 if test "${with_kerberos}" != no
; then
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21540 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21541 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21542 $as_echo_n "(cached) " >&6
21544 ac_check_lib_save_LIBS
=$LIBS
21545 LIBS
="-lcom_err $LIBS"
21546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h. */
21549 /* Override any GCC internal prototype to avoid an error.
21550 Use char because int might match the return type of a GCC
21551 builtin and then its argument prototype would still apply. */
21564 if ac_fn_c_try_link
"$LINENO"; then :
21565 ac_cv_lib_com_err_com_err
=yes
21567 ac_cv_lib_com_err_com_err
=no
21569 rm -f core conftest.err conftest.
$ac_objext \
21570 conftest
$ac_exeext conftest.
$ac_ext
21571 LIBS
=$ac_check_lib_save_LIBS
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21574 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21575 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
21581 if test $have_com_err = yes; then
21582 COM_ERRLIB
=-lcom_err
21583 LIBS
="$COM_ERRLIB $LIBS"
21585 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21589 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21590 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21591 $as_echo_n "(cached) " >&6
21593 ac_check_lib_save_LIBS
=$LIBS
21594 LIBS
="-lcrypto $LIBS"
21595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h. */
21598 /* Override any GCC internal prototype to avoid an error.
21599 Use char because int might match the return type of a GCC
21600 builtin and then its argument prototype would still apply. */
21604 char mit_des_cbc_encrypt ();
21608 return mit_des_cbc_encrypt ();
21613 if ac_fn_c_try_link
"$LINENO"; then :
21614 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
21616 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
21618 rm -f core conftest.err conftest.
$ac_objext \
21619 conftest
$ac_exeext conftest.
$ac_ext
21620 LIBS
=$ac_check_lib_save_LIBS
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21623 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21624 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
21630 if test $have_crypto = yes; then
21632 LIBS
="$CRYPTOLIB $LIBS"
21634 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21638 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21639 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21642 ac_check_lib_save_LIBS
=$LIBS
21643 LIBS
="-lk5crypto $LIBS"
21644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h. */
21647 /* Override any GCC internal prototype to avoid an error.
21648 Use char because int might match the return type of a GCC
21649 builtin and then its argument prototype would still apply. */
21653 char mit_des_cbc_encrypt ();
21657 return mit_des_cbc_encrypt ();
21662 if ac_fn_c_try_link
"$LINENO"; then :
21663 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21665 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21667 rm -f core conftest.err conftest.
$ac_objext \
21668 conftest
$ac_exeext conftest.
$ac_ext
21669 LIBS
=$ac_check_lib_save_LIBS
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21672 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21673 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
21679 if test $have_k5crypto = yes; then
21680 CRYPTOLIB
=-lk5crypto
21681 LIBS
="$CRYPTOLIB $LIBS"
21683 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21687 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21688 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21691 ac_check_lib_save_LIBS
=$LIBS
21692 LIBS
="-lkrb5 $LIBS"
21693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21694 /* end confdefs.h. */
21696 /* Override any GCC internal prototype to avoid an error.
21697 Use char because int might match the return type of a GCC
21698 builtin and then its argument prototype would still apply. */
21702 char krb5_init_context ();
21706 return krb5_init_context ();
21711 if ac_fn_c_try_link
"$LINENO"; then :
21712 ac_cv_lib_krb5_krb5_init_context
=yes
21714 ac_cv_lib_krb5_krb5_init_context
=no
21716 rm -f core conftest.err conftest.
$ac_objext \
21717 conftest
$ac_exeext conftest.
$ac_ext
21718 LIBS
=$ac_check_lib_save_LIBS
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21721 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21722 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
21728 if test $have_krb5=yes; then
21730 LIBS
="$KRB5LIB $LIBS"
21732 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21735 if test "${with_kerberos5}" = no
; then
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21737 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21738 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21741 ac_check_lib_save_LIBS
=$LIBS
21742 LIBS
="-ldes425 $LIBS"
21743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21744 /* end confdefs.h. */
21746 /* Override any GCC internal prototype to avoid an error.
21747 Use char because int might match the return type of a GCC
21748 builtin and then its argument prototype would still apply. */
21752 char des_cbc_encrypt ();
21756 return des_cbc_encrypt ();
21761 if ac_fn_c_try_link
"$LINENO"; then :
21762 ac_cv_lib_des425_des_cbc_encrypt
=yes
21764 ac_cv_lib_des425_des_cbc_encrypt
=no
21766 rm -f core conftest.err conftest.
$ac_objext \
21767 conftest
$ac_exeext conftest.
$ac_ext
21768 LIBS
=$ac_check_lib_save_LIBS
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21771 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21772 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
21778 if test $have_des425 = yes; then
21780 LIBS
="$DESLIB $LIBS"
21782 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21786 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21787 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21788 $as_echo_n "(cached) " >&6
21790 ac_check_lib_save_LIBS
=$LIBS
21792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21795 /* Override any GCC internal prototype to avoid an error.
21796 Use char because int might match the return type of a GCC
21797 builtin and then its argument prototype would still apply. */
21801 char des_cbc_encrypt ();
21805 return des_cbc_encrypt ();
21810 if ac_fn_c_try_link
"$LINENO"; then :
21811 ac_cv_lib_des_des_cbc_encrypt
=yes
21813 ac_cv_lib_des_des_cbc_encrypt
=no
21815 rm -f core conftest.err conftest.
$ac_objext \
21816 conftest
$ac_exeext conftest.
$ac_ext
21817 LIBS
=$ac_check_lib_save_LIBS
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21820 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21821 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
21827 if test $have_des = yes; then
21829 LIBS
="$DESLIB $LIBS"
21831 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21836 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21837 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21838 $as_echo_n "(cached) " >&6
21840 ac_check_lib_save_LIBS
=$LIBS
21841 LIBS
="-lkrb4 $LIBS"
21842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21845 /* Override any GCC internal prototype to avoid an error.
21846 Use char because int might match the return type of a GCC
21847 builtin and then its argument prototype would still apply. */
21851 char krb_get_cred ();
21855 return krb_get_cred ();
21860 if ac_fn_c_try_link
"$LINENO"; then :
21861 ac_cv_lib_krb4_krb_get_cred
=yes
21863 ac_cv_lib_krb4_krb_get_cred
=no
21865 rm -f core conftest.err conftest.
$ac_objext \
21866 conftest
$ac_exeext conftest.
$ac_ext
21867 LIBS
=$ac_check_lib_save_LIBS
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21870 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21871 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
21877 if test $have_krb4 = yes; then
21879 LIBS
="$KRB4LIB $LIBS"
21881 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21885 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21886 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21889 ac_check_lib_save_LIBS
=$LIBS
21891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21892 /* end confdefs.h. */
21894 /* Override any GCC internal prototype to avoid an error.
21895 Use char because int might match the return type of a GCC
21896 builtin and then its argument prototype would still apply. */
21900 char krb_get_cred ();
21904 return krb_get_cred ();
21909 if ac_fn_c_try_link
"$LINENO"; then :
21910 ac_cv_lib_krb_krb_get_cred
=yes
21912 ac_cv_lib_krb_krb_get_cred
=no
21914 rm -f core conftest.err conftest.
$ac_objext \
21915 conftest
$ac_exeext conftest.
$ac_ext
21916 LIBS
=$ac_check_lib_save_LIBS
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21919 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21920 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
21926 if test $have_krb = yes; then
21928 LIBS
="$KRB4LIB $LIBS"
21930 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21936 if test "${with_kerberos5}" != no
; then
21937 for ac_header
in krb5.h
21939 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21940 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
21941 cat >>confdefs.h
<<_ACEOF
21942 #define HAVE_KRB5_H 1
21944 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21946 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
21948 cat >>confdefs.h
<<_ACEOF
21949 #define HAVE_KRB5_ERROR_TEXT 1
21954 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21956 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
21958 cat >>confdefs.h
<<_ACEOF
21959 #define HAVE_KRB5_ERROR_E_TEXT 1
21970 for ac_header
in des.h
21972 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21973 if test "x$ac_cv_header_des_h" = x
""yes; then :
21974 cat >>confdefs.h
<<_ACEOF
21975 #define HAVE_DES_H 1
21979 for ac_header
in kerberosIV
/des.h
21981 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
21982 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
21983 cat >>confdefs.h
<<_ACEOF
21984 #define HAVE_KERBEROSIV_DES_H 1
21988 for ac_header
in kerberos
/des.h
21990 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
21991 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
21992 cat >>confdefs.h
<<_ACEOF
21993 #define HAVE_KERBEROS_DES_H 1
22008 for ac_header
in krb.h
22010 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22011 if test "x$ac_cv_header_krb_h" = x
""yes; then :
22012 cat >>confdefs.h
<<_ACEOF
22013 #define HAVE_KRB_H 1
22017 for ac_header
in kerberosIV
/krb.h
22019 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22020 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
22021 cat >>confdefs.h
<<_ACEOF
22022 #define HAVE_KERBEROSIV_KRB_H 1
22026 for ac_header
in kerberos
/krb.h
22028 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22029 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
22030 cat >>confdefs.h
<<_ACEOF
22031 #define HAVE_KERBEROS_KRB_H 1
22047 for ac_header
in com_err.h
22049 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22050 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
22051 cat >>confdefs.h
<<_ACEOF
22052 #define HAVE_COM_ERR_H 1
22067 for ac_func
in tzset
22069 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
22070 if test "x$ac_cv_func_tzset" = x
""yes; then :
22071 cat >>confdefs.h
<<_ACEOF
22072 #define HAVE_TZSET 1
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22079 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22080 if test "${emacs_cv_localtime_cache+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22083 if test x
$ac_cv_func_tzset = xyes
; then
22084 if test "$cross_compiling" = yes; then :
22085 # If we have tzset, assume the worst when cross-compiling.
22086 emacs_cv_localtime_cache
=yes
22088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22091 char TZ_GMT0[] = "TZ=GMT0";
22092 char TZ_PST8[] = "TZ=PST8";
22095 time_t now = time ((time_t *) 0);
22096 int hour_GMT0, hour_unset;
22097 if (putenv (TZ_GMT0) != 0)
22099 hour_GMT0 = localtime (&now)->tm_hour;
22101 hour_unset = localtime (&now)->tm_hour;
22102 if (putenv (TZ_PST8) != 0)
22104 if (localtime (&now)->tm_hour == hour_GMT0)
22107 if (localtime (&now)->tm_hour != hour_unset)
22112 if ac_fn_c_try_run
"$LINENO"; then :
22113 emacs_cv_localtime_cache
=no
22115 emacs_cv_localtime_cache
=yes
22117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22122 # If we lack tzset, report that localtime does not cache TZ,
22123 # since we can't invalidate the cache if we don't have tzset.
22124 emacs_cv_localtime_cache
=no
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22128 $as_echo "$emacs_cv_localtime_cache" >&6; }
22129 if test $emacs_cv_localtime_cache = yes; then
22131 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22136 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
22137 if test "x$ac_cv_func_socket" = x
""yes; then :
22143 if test $ok_so_far = yes; then
22144 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
22153 if test $ok_so_far = yes; then
22154 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22155 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
22163 if test $ok_so_far = yes; then
22165 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22169 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22171 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22176 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22177 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22179 $as_echo "yes" >&6; }
22181 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185 $as_echo "no" >&6; }
22188 for ac_header
in vfork.h
22190 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22191 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
22192 cat >>confdefs.h
<<_ACEOF
22193 #define HAVE_VFORK_H 1
22200 for ac_func
in fork vfork
22202 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22203 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22204 eval as_val
=\$
$as_ac_var
22205 if test "x$as_val" = x
""yes; then :
22206 cat >>confdefs.h
<<_ACEOF
22207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22213 if test "x$ac_cv_func_fork" = xyes
; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22215 $as_echo_n "checking for working fork... " >&6; }
22216 if test "${ac_cv_func_fork_works+set}" = set; then :
22217 $as_echo_n "(cached) " >&6
22219 if test "$cross_compiling" = yes; then :
22220 ac_cv_func_fork_works
=cross
22222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224 $ac_includes_default
22229 /* By Ruediger Kuhlmann. */
22230 return fork () < 0;
22236 if ac_fn_c_try_run
"$LINENO"; then :
22237 ac_cv_func_fork_works
=yes
22239 ac_cv_func_fork_works
=no
22241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22247 $as_echo "$ac_cv_func_fork_works" >&6; }
22250 ac_cv_func_fork_works
=$ac_cv_func_fork
22252 if test "x$ac_cv_func_fork_works" = xcross
; then
22254 *-*-amigaos* |
*-*-msdosdjgpp*)
22255 # Override, as these systems have only a dummy fork() stub
22256 ac_cv_func_fork_works
=no
22259 ac_cv_func_fork_works
=yes
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22263 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22265 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22266 if test "x$ac_cv_func_vfork" = xyes
; then
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22268 $as_echo_n "checking for working vfork... " >&6; }
22269 if test "${ac_cv_func_vfork_works+set}" = set; then :
22270 $as_echo_n "(cached) " >&6
22272 if test "$cross_compiling" = yes; then :
22273 ac_cv_func_vfork_works
=cross
22275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h. */
22277 /* Thanks to Paul Eggert for this test. */
22278 $ac_includes_default
22279 #include <sys/wait.h>
22280 #ifdef HAVE_VFORK_H
22281 # include <vfork.h>
22283 /* On some sparc systems, changes by the child to local and incoming
22284 argument registers are propagated back to the parent. The compiler
22285 is told about this with #include <vfork.h>, but some compilers
22286 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22287 static variable whose address is put into a register that is
22288 clobbered by the vfork. */
22291 sparc_address_test (int arg)
22293 sparc_address_test (arg) int arg;
22296 static pid_t child;
22314 pid_t parent = getpid ();
22317 sparc_address_test (0);
22322 /* Here is another test for sparc vfork register problems. This
22323 test uses lots of local variables, at least as many local
22324 variables as main has allocated so far including compiler
22325 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22326 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22327 reuse the register of parent for one of the local variables,
22328 since it will think that parent can't possibly be used any more
22329 in this routine. Assigning to the local variable will thus
22330 munge parent in the parent process. */
22332 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22333 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22334 /* Convince the compiler that p..p7 are live; otherwise, it might
22335 use the same hardware register for all 8 local variables. */
22336 if (p != p1 || p != p2 || p != p3 || p != p4
22337 || p != p5 || p != p6 || p != p7)
22340 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22341 from child file descriptors. If the child closes a descriptor
22342 before it execs or exits, this munges the parent's descriptor
22343 as well. Test for this by closing stdout in the child. */
22344 _exit(close(fileno(stdout)) != 0);
22349 while (wait(&status) != child)
22352 /* Was there some problem with vforking? */
22355 /* Did the child fail? (This shouldn't happen.) */
22358 /* Did the vfork/compiler bug occur? */
22359 || parent != getpid()
22361 /* Did the file descriptor bug occur? */
22362 || fstat(fileno(stdout), &st) != 0
22367 if ac_fn_c_try_run
"$LINENO"; then :
22368 ac_cv_func_vfork_works
=yes
22370 ac_cv_func_vfork_works
=no
22372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22378 $as_echo "$ac_cv_func_vfork_works" >&6; }
22381 if test "x$ac_cv_func_fork_works" = xcross
; then
22382 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22384 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22387 if test "x$ac_cv_func_vfork_works" = xyes
; then
22389 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22393 $as_echo "#define vfork fork" >>confdefs.h
22396 if test "x$ac_cv_func_fork_works" = xyes
; then
22398 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22403 for ac_func
in snprintf
22405 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
22406 if test "x$ac_cv_func_snprintf" = x
""yes; then :
22407 cat >>confdefs.h
<<_ACEOF
22408 #define HAVE_SNPRINTF 1
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22416 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22417 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22418 $as_echo_n "(cached) " >&6
22420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422 #include <langinfo.h>
22426 char* cs = nl_langinfo(CODESET);
22431 if ac_fn_c_try_link
"$LINENO"; then :
22432 emacs_cv_langinfo_codeset
=yes
22434 emacs_cv_langinfo_codeset
=no
22436 rm -f core conftest.err conftest.
$ac_objext \
22437 conftest
$ac_exeext conftest.
$ac_ext
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22441 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22442 if test $emacs_cv_langinfo_codeset = yes; then
22444 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22449 $as_echo_n "checking for mbstate_t... " >&6; }
22450 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22455 $ac_includes_default
22456 # include <wchar.h>
22460 mbstate_t x; return sizeof x;
22465 if ac_fn_c_try_compile
"$LINENO"; then :
22466 ac_cv_type_mbstate_t
=yes
22468 ac_cv_type_mbstate_t
=no
22470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22473 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22474 if test $ac_cv_type_mbstate_t = yes; then
22476 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22480 $as_echo "#define mbstate_t int" >>confdefs.h
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22485 $as_echo_n "checking for C restricted array declarations... " >&6; }
22486 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22487 $as_echo_n "(cached) " >&6
22489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22490 /* end confdefs.h. */
22491 void fred (int x[__restrict]);
22500 if ac_fn_c_try_compile
"$LINENO"; then :
22501 emacs_cv_c_restrict_arr
=yes
22503 emacs_cv_c_restrict_arr
=no
22505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22508 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22509 if test "$emacs_cv_c_restrict_arr" = yes; then
22511 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22517 darwin | gnu | hpux
* |
*bsd
)
22519 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22525 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
22527 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22535 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22541 gnu-kfreebsd
) opsysfile
="s/gnu-linux.h" ;;
22545 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22548 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22551 opsysfile
="s/hpux10-20.h"
22554 openbsd
) opsysfile
="s/netbsd.h" ;;
22558 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22560 opsysfile
="s/sol2-6.h"
22564 # Set up the CFLAGS for real compilation, so we can substitute it.
22565 CFLAGS
="$REAL_CFLAGS"
22566 CPPFLAGS
="$REAL_CPPFLAGS"
22568 ## Hack to detect a buggy GCC version.
22569 if test "x$GCC" = xyes \
22570 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22571 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
22572 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
22573 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22576 version
=$PACKAGE_VERSION
22578 ### Specify what sort of things we'll be editing into Makefile and config.h.
22579 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22604 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22605 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22606 ## end of LIBX_BASE, but nothing ever set it.
22611 ## Used in lwlib/Makefile.in.
22613 if test -n "${opsysfile}"; then
22614 S_FILE
="\$(srcdir)/${opsysfile}"
22627 cat >>confdefs.h
<<_ACEOF
22628 #define EMACS_CONFIGURATION "${canonical}"
22632 cat >>confdefs.h
<<_ACEOF
22633 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22636 if test -n "$opsysfile"; then
22638 cat >>confdefs.h
<<_ACEOF
22639 #define config_opsysfile "${opsysfile}"
22647 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22649 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22652 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22654 if test "$HAVE_XFT" = "yes"; then
22655 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22656 elif test "$HAVE_FREETYPE" = "yes"; then
22657 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
22667 if test "${USE_X_TOOLKIT}" != "none" ; then
22668 WIDGET_OBJ
=widget.o
22670 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22672 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22674 $as_echo "#define USE_LUCID 1" >>confdefs.h
22676 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22678 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22683 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22684 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
22688 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22689 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22690 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
22694 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22695 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
22698 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
22704 case "$USE_X_TOOLKIT" in
22705 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
22706 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
22707 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
22711 if test "$USE_X_TOOLKIT" = "none"; then
22712 LIBXT_OTHER
="\$(LIBXSM)"
22713 OLDXMENU_TARGET
="really-oldXMenu"
22715 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22716 OLDXMENU_TARGET
="really-lwlib"
22720 ## The X Menu stuff is present in the X10 distribution, but missing
22721 ## from X11. If we have X10, just use the installed library;
22722 ## otherwise, use our own copy.
22723 if test "${HAVE_X11}" = "yes" ; then
22725 $as_echo "#define HAVE_X11 1" >>confdefs.h
22728 if test "$USE_X_TOOLKIT" = "none"; then
22729 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
22731 OLDXMENU
="\${lwlibdir}/liblw.a"
22733 LIBXMENU
="\$(OLDXMENU)"
22734 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
22735 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
22737 ## For a syntactically valid Makefile; not actually used for anything.
22738 ## See comments in src/Makefile.in.
22740 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22741 if test "${HAVE_X_WINDOWS}" = "yes"; then
22750 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
22763 if test "${HAVE_MENUS}" = "yes" ; then
22765 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22769 if test "${GNU_MALLOC}" = "yes" ; then
22771 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22776 if test "${REL_ALLOC}" = "yes" ; then
22778 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22781 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
22785 if test "$opsys" = "cygwin"; then
22786 CYGWIN_OBJ
="sheap.o"
22787 ## Cygwin differs because of its unexec().
22789 POST_ALLOC_OBJ
=lastfile.o
22792 PRE_ALLOC_OBJ
=lastfile.o
22800 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22803 ## The -headerpad option tells ld (see man page) to leave room at the
22804 ## end of the header for adding load commands. Needed for dumping.
22805 ## 0x690 is the total size of 30 segment load commands (at 56
22806 ## each); under Cocoa 31 commands are required.
22807 if test "$HAVE_NS" = "yes"; then
22808 libs_nsgui
="-framework AppKit"
22809 headerpad_extra
=6C8
22812 headerpad_extra
=690
22814 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22816 ## This is here because src/Makefile.in did some extra fiddling around
22817 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22818 ## #ifndef LD_SWITCH_SYSTEM
22819 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22820 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22821 ## not using gcc, darwin.
22822 ## Because this was done in src/Makefile.in, the resulting part of
22823 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22824 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22825 ## rather than LD_SWITCH_SYSTEM.
22826 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22827 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22830 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22831 ## find X at run-time.
22832 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22833 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22834 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22835 ## had different values in configure (in ac_link) and src/Makefile.in.
22836 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22837 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22839 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22842 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22843 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22852 ## gnu: GNU needs its own crt0.
22853 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22855 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22856 ## library search parth, i.e. it won't search /usr/lib for libc and
22857 ## friends. Using -nostartfiles instead avoids this problem, and
22858 ## will also work on earlier NetBSD releases.
22859 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22861 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22862 ## MkLinux/LinuxPPC needs this.
22863 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22865 case "$canonical" in
22866 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
22872 if test "x$ORDINARY_LINK" = "xyes"; then
22876 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22879 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22880 ## freebsd, gnu-* not on powerpc*|s390x*.
22881 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22883 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22884 ## places that are difficult to figure out at make time. Fortunately,
22885 ## these same versions allow you to pass arbitrary flags on to the
22886 ## linker, so there is no reason not to use it as a linker.
22888 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22889 ## searching for libraries in its internal directories, so we have to
22890 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22891 LD_FIRSTFLAG
="-nostdlib"
22894 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22895 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22900 ## FIXME? The logic here is not precisely the same as that above.
22901 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22902 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22904 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22907 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22910 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22911 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22917 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22918 ## immediately undefine it again and redefine it to empty.
22919 ## Was the C_SWITCH_X_SITE part really necessary?
22920 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22926 ## Ask GCC where to find libgcc.a.
22927 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22932 ## If we're using X11/GNUstep, define some consequences.
22933 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22935 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22938 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22945 #### Report on what we decided to do.
22946 #### Report GTK as a toolkit, even if it doesn't use Xt.
22947 #### It makes printing result more understandable as using GTK sets
22948 #### toolkit_scroll_bars to yes by default.
22949 if test "${HAVE_GTK}" = "yes"; then
22954 Configured for \`${canonical}'.
22956 Where should the build process find the source code? ${srcdir}
22957 What operating system file should Emacs use? ${opsysfile-none}
22958 What compiler should emacs be built with? ${CC} ${CFLAGS}
22959 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22960 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22961 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22962 What window system should Emacs use? ${window_system}
22963 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22965 if test -n "${x_includes}"; then
22966 echo " Where do we find X Windows header files? ${x_includes}"
22968 echo " Where do we find X Windows header files? Standard dirs"
22970 if test -n "${x_libraries}"; then
22971 echo " Where do we find X Windows libraries? ${x_libraries}"
22973 echo " Where do we find X Windows libraries? Standard dirs"
22976 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22977 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22978 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22979 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22980 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22981 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22982 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22983 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22985 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22986 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22987 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22988 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22989 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22990 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22991 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22993 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22994 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22995 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22996 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22998 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23001 if test -n "${EMACSDATA}"; then
23002 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23004 if test -n "${EMACSDOC}"; then
23005 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23008 if test $USE_XASSERTS = yes; then
23009 echo " Compiling with asserts turned on."
23010 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23015 if test "$HAVE_NS" = "yes"; then
23017 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23018 The installed application will go to nextstep/Emacs.app and can be
23019 run or moved from there."
23020 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23021 echo "The application will be fully self-contained."
23023 echo "The lisp resources for the application will be installed under ${prefix}.
23024 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23025 to run if these resources are not installed."
23030 if test "${opsys}" = "cygwin"; then
23032 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23033 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23039 # Remove any trailing slashes in these variables.
23040 test "${prefix}" != NONE
&&
23041 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23042 test "${exec_prefix}" != NONE
&&
23043 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23045 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"
23047 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"
23050 opt_makefile
=test
/automated
/Makefile
23052 if test -f $srcdir/${opt_makefile}.
in; then
23053 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23054 ac_config_files
="$ac_config_files test/automated/Makefile"
23059 opt_makefile
=admin
/unidata
/Makefile
23061 if test -f $srcdir/${opt_makefile}.
in; then
23062 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23063 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23068 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23072 ac_config_commands
="$ac_config_commands mkdirs"
23075 ac_config_commands
="$ac_config_commands epaths"
23078 ac_config_commands
="$ac_config_commands gdbinit"
23081 cat >confcache
<<\_ACEOF
23082 # This file is a shell script that caches the results of configure
23083 # tests run on this system so they can be shared between configure
23084 # scripts and configure runs, see configure's option --config-cache.
23085 # It is not useful on other systems. If it contains results you don't
23086 # want to keep, you may remove or edit it.
23088 # config.status only pays attention to the cache file if you give it
23089 # the --recheck option to rerun configure.
23091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23093 # following values.
23097 # The following way of writing the cache mishandles newlines in values,
23098 # but we know of no workaround that is simple, portable, and efficient.
23099 # So, we kill variables containing newlines.
23100 # Ultrix sh set writes to stderr and can't be redirected directly,
23101 # and sets the high bit in the cache file unless we assign to the vars.
23103 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23104 eval ac_val
=\$
$ac_var
23108 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23112 _ | IFS | as_nl
) ;; #(
23113 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23114 *) { eval $ac_var=; unset $ac_var;} ;;
23120 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23121 *${as_nl}ac_space
=\
*)
23122 # `set' does not quote correctly, so add quotes: double-quote
23123 # substitution turns \\\\ into \\, and sed turns \\ into \.
23126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23129 # `set' quotes correctly as required by POSIX, so do not add quotes.
23130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23141 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23143 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23144 if test -w "$cache_file"; then
23145 test "x$cache_file" != "x/dev/null" &&
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23147 $as_echo "$as_me: updating cache $cache_file" >&6;}
23148 cat confcache
>$cache_file
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23156 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23157 # Let make expand exec_prefix.
23158 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23160 DEFS
=-DHAVE_CONFIG_H
23164 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23165 # 1. Remove the extension, and $U if already installed.
23166 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23167 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23169 # will be set to the directory where LIBOBJS objects are built.
23170 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23171 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23173 LIBOBJS
=$ac_libobjs
23175 LTLIBOBJS
=$ac_ltlibobjs
23178 if test -n "$EXEEXT"; then
23180 am__EXEEXT_FALSE
='#'
23182 am__EXEEXT_TRUE
='#'
23186 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23187 as_fn_error
"conditional \"AMDEP\" was never defined.
23188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23190 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23191 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23194 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23195 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23198 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23199 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23203 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23204 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23207 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23208 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23211 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23212 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23215 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23216 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23219 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23220 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23223 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23224 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23227 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23228 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23231 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23232 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23235 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23236 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23239 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23240 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23243 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23244 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23247 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23248 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 if test -n "$gl_LIBOBJS"; then
23255 # Remove the extension.
23256 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23257 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23258 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23259 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23262 gl_LIBOBJS
=$gl_libobjs
23264 gl_LTLIBOBJS
=$gl_ltlibobjs
23270 if test -n "$gltests_LIBOBJS"; then
23271 # Remove the extension.
23272 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23273 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23274 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23275 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23278 gltests_LIBOBJS
=$gltests_libobjs
23280 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23284 : ${CONFIG_STATUS=./config.status}
23286 ac_clean_files_save
=$ac_clean_files
23287 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23289 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23291 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23293 # Generated by $as_me.
23294 # Run this file to recreate the current configuration.
23295 # Compiler output produced by configure, useful for debugging
23296 # configure, is in config.log if it exists.
23299 ac_cs_recheck=false
23302 SHELL=\${CONFIG_SHELL-$SHELL}
23305 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23306 ## -------------------- ##
23307 ## M4sh Initialization. ##
23308 ## -------------------- ##
23310 # Be more Bourne compatible
23311 DUALCASE
=1; export DUALCASE
# for MKS sh
23312 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23315 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23316 # is contrary to our usage. Disable this feature.
23317 alias -g '${1+"$@"}'='"$@"'
23318 setopt NO_GLOB_SUBST
23320 case `(set -o) 2>/dev/null` in #(
23332 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23333 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23336 # Prefer a ksh shell builtin over an external printf program on Solaris,
23337 # but without wasting forks for bash or zsh.
23338 if test -z "$BASH_VERSION$ZSH_VERSION" \
23339 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23340 as_echo='print
-r --'
23341 as_echo_n='print
-rn --'
23342 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23343 as_echo='printf %s
\n'
23344 as_echo_n='printf %s
'
23346 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23347 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23348 as_echo_n='/usr
/ucb
/echo -n'
23350 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23351 as_echo_n_body='eval
23355 expr "X$arg" : "X\\(.*\\)$as_nl";
23356 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23358 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23360 export as_echo_n_body
23361 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23363 export as_echo_body
23364 as_echo='sh
-c $as_echo_body as_echo
'
23367 # The user is always right.
23368 if test "${PATH_SEPARATOR+set}" != set; then
23370 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23371 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23378 # We need space, tab and new line, in precisely that order. Quoting is
23379 # there to prevent editors from complaining about space-tab.
23380 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23381 # splitting by setting IFS to empty value.)
23384 # Find who we are. Look in the path if we contain no directory separator.
23386 *[\\/]* ) as_myself=$0 ;;
23387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388 for as_dir in $PATH
23391 test -z "$as_dir" && as_dir=.
23392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23398 # We did not find ourselves, most probably we were run as `sh COMMAND'
23399 # in which case we are not to be found in the path.
23400 if test "x$as_myself" = x
; then
23403 if test ! -f "$as_myself"; then
23404 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23408 # Unset variables that we do not need and which cause bugs (e.g. in
23409 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23410 # suppresses any "Segmentation fault" message there. '((' could
23411 # trigger a bug in pdksh 5.2.14.
23412 for as_var
in BASH_ENV ENV MAIL MAILPATH
23413 do eval test x\
${$as_var+set} = xset \
23414 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23427 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23430 # as_fn_error ERROR [LINENO LOG_FD]
23431 # ---------------------------------
23432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23434 # script with status $?, using 1 if that was 0.
23437 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23439 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23440 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23442 $as_echo "$as_me: error: $1" >&2
23443 as_fn_exit
$as_status
23447 # as_fn_set_status STATUS
23448 # -----------------------
23449 # Set $? to STATUS, without forking.
23450 as_fn_set_status
()
23453 } # as_fn_set_status
23455 # as_fn_exit STATUS
23456 # -----------------
23457 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23461 as_fn_set_status
$1
23467 # Portably unset VAR.
23470 { eval $1=; unset $1;}
23472 as_unset
=as_fn_unset
23473 # as_fn_append VAR VALUE
23474 # ----------------------
23475 # Append the text in VALUE to the end of the definition contained in VAR. Take
23476 # advantage of any shell optimizations that allow amortized linear growth over
23477 # repeated appends, instead of the typical quadratic growth present in naive
23479 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23480 eval 'as_fn_append ()
23491 # as_fn_arith ARG...
23492 # ------------------
23493 # Perform arithmetic evaluation on the ARGs, and store the result in the
23494 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23495 # must be portable across $(()) and expr.
23496 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23497 eval 'as_fn_arith ()
23504 as_val
=`expr "$@" || test $? -eq 1`
23509 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23510 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23516 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23517 as_basename
=basename
23522 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23528 as_me
=`$as_basename -- "$0" ||
23529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23530 X"$0" : 'X\(//\)$' \| \
23531 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23533 sed '/^.*\/\([^/][^/]*\)\/*$/{
23547 # Avoid depending upon Character Ranges.
23548 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23549 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23550 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23551 as_cr_digits
='0123456789'
23552 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23554 ECHO_C
= ECHO_N
= ECHO_T
=
23555 case `echo -n x` in #(((((
23557 case `echo 'xy\c'` in
23558 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23560 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23567 rm -f conf$$ conf$$.exe conf$$.
file
23568 if test -d conf$$.dir
; then
23569 rm -f conf$$.dir
/conf$$.
file
23572 mkdir conf$$.dir
2>/dev
/null
23574 if (echo >conf$$.
file) 2>/dev
/null
; then
23575 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23577 # ... but there are two gotchas:
23578 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23579 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23580 # In both cases, we have to default to `cp -p'.
23581 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23583 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23591 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23592 rmdir conf$$.dir
2>/dev
/null
23597 # Create "$as_dir" as a directory, including parents if necessary.
23602 -*) as_dir
=.
/$as_dir;;
23604 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23608 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23609 *) as_qdir
=$as_dir;;
23611 as_dirs
="'$as_qdir' $as_dirs"
23612 as_dir
=`$as_dirname -- "$as_dir" ||
23613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23614 X"$as_dir" : 'X\(//\)[^/]' \| \
23615 X"$as_dir" : 'X\(//\)$' \| \
23616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23617 $as_echo X"$as_dir" |
23618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23622 /^X\(\/\/\)[^/].*/{
23635 test -d "$as_dir" && break
23637 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23638 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23642 if mkdir
-p .
2>/dev
/null
; then
23643 as_mkdir_p
='mkdir -p "$as_dir"'
23645 test -d .
/-p && rmdir .
/-p
23649 if test -x / >/dev
/null
2>&1; then
23650 as_test_x
='test -x'
23652 if ls -dL / >/dev
/null
2>&1; then
23659 if test -d "$1"; then
23665 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23666 ???[sx]*):;;*)false;;esac;fi
23670 as_executable_p
=$as_test_x
23672 # Sed expression to map a string onto a valid CPP name.
23673 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23675 # Sed expression to map a string onto a valid variable name.
23676 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23680 ## ----------------------------------- ##
23681 ## Main body of $CONFIG_STATUS script. ##
23682 ## ----------------------------------- ##
23684 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23687 # Save the log message, to keep $0 and so on meaningful, and to
23688 # report actual input values of CONFIG_FILES etc. instead of their
23689 # values after options handling.
23691 This file was extended by emacs $as_me 24.1.50, which was
23692 generated by GNU Autoconf 2.65. Invocation command line was
23694 CONFIG_FILES = $CONFIG_FILES
23695 CONFIG_HEADERS = $CONFIG_HEADERS
23696 CONFIG_LINKS = $CONFIG_LINKS
23697 CONFIG_COMMANDS = $CONFIG_COMMANDS
23700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23705 case $ac_config_files in *"
23706 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23709 case $ac_config_headers in *"
23710 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23715 # Files that config.status was made for.
23716 config_files="$ac_config_files"
23717 config_headers="$ac_config_headers"
23718 config_commands="$ac_config_commands"
23722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23724 \`$as_me' instantiates files and other configuration actions
23725 from templates according to the current configuration. Unless the files
23726 and actions are specified as TAGs, all are instantiated by default.
23728 Usage: $0 [OPTION]... [TAG]...
23730 -h, --help print this help, then exit
23731 -V, --version print version number and configuration settings, then exit
23732 --config print configuration, then exit
23733 -q, --quiet, --silent
23734 do not print progress messages
23735 -d, --debug don't remove temporary files
23736 --recheck update $as_me by reconfiguring in the same conditions
23737 --file=FILE[:TEMPLATE]
23738 instantiate the configuration file FILE
23739 --header=FILE[:TEMPLATE]
23740 instantiate the configuration header FILE
23742 Configuration files:
23745 Configuration headers:
23748 Configuration commands:
23751 Report bugs to the package provider."
23754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23755 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23757 emacs config.status 24.1.50
23758 configured by $0, generated by GNU Autoconf 2.65,
23759 with options \\"\$ac_cs_config\\"
23761 Copyright (C) 2009 Free Software Foundation, Inc.
23762 This config.status script is free software; the Free Software Foundation
23763 gives unlimited permission to copy, distribute and modify it."
23770 test -n "\$AWK" || AWK=awk
23773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23774 # The default lists apply if the user does not specify any file.
23780 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23781 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23792 # Handling of the options.
23793 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23795 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23796 $as_echo "$ac_cs_version"; exit ;;
23797 --config |
--confi |
--conf |
--con |
--co |
--c )
23798 $as_echo "$ac_cs_config"; exit ;;
23799 --debug |
--debu |
--deb |
--de |
--d |
-d )
23801 --file |
--fil |
--fi |
--f )
23804 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23806 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23807 ac_need_defaults
=false
;;
23808 --header |
--heade |
--head |
--hea )
23811 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23813 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23814 ac_need_defaults
=false
;;
23816 # Conflict between --help and --header
23817 as_fn_error
"ambiguous option: \`$1'
23818 Try \`$0 --help' for more information.";;
23819 --help |
--hel |
-h )
23820 $as_echo "$ac_cs_usage"; exit ;;
23821 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23822 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23825 # This is an error.
23826 -*) as_fn_error
"unrecognized option: \`$1'
23827 Try \`$0 --help' for more information." ;;
23829 *) as_fn_append ac_config_targets
" $1"
23830 ac_need_defaults
=false
;;
23836 ac_configure_extra_args
=
23838 if $ac_cs_silent; then
23840 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23845 if \$ac_cs_recheck; then
23846 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23848 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23849 CONFIG_SHELL='$SHELL'
23850 export CONFIG_SHELL
23855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23860 ## Running $as_me. ##
23866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23870 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23871 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23877 # Handling of arguments.
23878 for ac_config_target
in $ac_config_targets
23880 case $ac_config_target in
23881 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23882 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23883 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23884 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23885 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23886 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23887 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23888 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23889 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23890 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23891 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23892 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23893 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23894 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23895 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23896 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23897 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23898 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23899 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23901 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23906 # If the user did not use the arguments to specify the items to instantiate,
23907 # then the envvar interface is used. Set only those that are not.
23908 # We use the long form for the default assignment because of an extremely
23909 # bizarre bug on SunOS 4.1.3.
23910 if $ac_need_defaults; then
23911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23916 # Have a temporary directory for convenience. Make it in the build tree
23917 # simply because there is no reason against having it here, and in addition,
23918 # creating and moving files from /tmp can sometimes cause problems.
23919 # Hook for its removal unless debugging.
23920 # Note that there is a small window in which the directory will not be cleaned:
23921 # after its creation but before its name has been assigned to `$tmp'.
23925 trap 'exit_status=$?
23926 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23928 trap 'as_fn_exit 1' 1 2 13 15
23930 # Create a (secure) tmp directory for tmp files.
23933 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23934 test -n "$tmp" && test -d "$tmp"
23937 tmp
=.
/conf$$
-$RANDOM
23938 (umask 077 && mkdir
"$tmp")
23939 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23941 # Set up the scripts for CONFIG_FILES section.
23942 # No need to generate them if there are no CONFIG_FILES.
23943 # This happens for instance with `./config.status config.h'.
23944 if test -n "$CONFIG_FILES"; then
23946 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23947 ac_cs_awk_getline
=:
23948 ac_cs_awk_pipe_init
=
23949 ac_cs_awk_read_file
='
23950 while ((getline aline < (F[key])) > 0)
23953 ac_cs_awk_pipe_fini
=
23955 ac_cs_awk_getline
=false
23956 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23957 ac_cs_awk_read_file
='
23959 print "cat " F[key] " &&"
23960 '$ac_cs_awk_pipe_init
23961 # The final `:' finishes the AND list.
23962 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23964 ac_cr
=`echo X | tr X '\015'`
23965 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23966 # But we know of no other shell where ac_cr would be empty at this
23967 # point, so we can use a bashism as a fallback.
23968 if test "x$ac_cr" = x
; then
23969 eval ac_cr
=\$
\'\\r
\'
23971 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23972 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23975 ac_cs_awk_cr
=$ac_cr
23978 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23981 # Create commands to substitute file output variables.
23983 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23984 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23985 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23988 } >conf$
$files.sh
&&
23989 . .
/conf$
$files.sh ||
23990 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23991 rm -f conf$
$files.sh
23994 echo "cat >conf$$subs.awk <<_ACEOF" &&
23995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23997 } >conf$$subs.sh ||
23998 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23999 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24001 for ac_last_try in false false false false false :; do
24002 . ./conf$$subs.sh ||
24003 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24005 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24006 if test $ac_delim_n = $ac_delim_num; then
24008 elif $ac_last_try; then
24009 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24011 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24014 rm -f conf$$subs.sh
24016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24017 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24021 s/^/S["/; s
/!.
*/"]=/
24031 s/\(.\{148\}\)..*/\1/
24033 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24038 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24045 s/\(.\{148\}\)..*/\1/
24047 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24051 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24056 ' <conf$$subs.awk | sed '
24061 ' >>$CONFIG_STATUS || ac_write_fail=1
24062 rm -f conf$$subs.awk
24063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24065 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24066 for (key in S) S_is_set[key] = 1
24068 \$ac_cs_awk_pipe_init
24072 nfields = split(line, field, "@
")
24074 len = length(field[1])
24075 for (i = 2; i < nfields; i++) {
24077 keylen = length(key)
24078 if (S_is_set[key]) {
24080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24081 len += length(value) + length(field[++i])
24086 if (nfields == 3 && !substed) {
24088 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24089 \$ac_cs_awk_read_file
24095 \$ac_cs_awk_pipe_fini
24098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24099 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24100 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24103 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24104 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24107 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24108 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24109 # trailing colons and then remove the whole line if VPATH becomes empty
24110 # (actually we leave an empty line to preserve line numbers).
24111 if test "x
$srcdir" = x.; then
24112 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24113 s/:*\$(srcdir):*/:/
24114 s/:*\${srcdir}:*/:/
24116 s/^\([^=]*=[ ]*\):*/\1/
24122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24123 fi # test -n "$CONFIG_FILES"
24125 # Set up the scripts for CONFIG_HEADERS section.
24126 # No need to generate them if there are no CONFIG_HEADERS.
24127 # This happens for instance with `./config.status Makefile'.
24128 if test -n "$CONFIG_HEADERS"; then
24129 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24133 # Transform confdefs.h into an awk script `defines.awk', embedded as
24134 # here-document in config.status, that substitutes the proper values into
24135 # config.h.in to produce config.h.
24137 # Create a delimiter string that does not exist in confdefs.h, to ease
24138 # handling of long lines.
24140 for ac_last_try in false false :; do
24141 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24142 if test -z "$ac_t"; then
24144 elif $ac_last_try; then
24145 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24147 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24151 # For the awk script, D is an array of macro values keyed by name,
24152 # likewise P contains macro parameters if any. Preserve backslash
24153 # newline sequences.
24155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24157 s/.\{148\}/&'"$ac_delim"'/g
24160 s/^[ ]*#[ ]*define[ ][ ]*/ /
24167 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24169 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24174 D["\
1"]=" \
3\\\\\\n
"\\/p
24176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24181 s/.\{148\}/&'"$ac_delim"'/g
24186 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24189 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24191 ' <confdefs.h | sed '
24192 s/'"$ac_delim"'/"\\\
24193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24196 for (key in D) D_is_set[key] = 1
24199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24201 split(line, arg, " ")
24202 if (arg[1] == "#") {
24206 defundef
= substr
(arg
[1], 2)
24209 split(mac1
, mac2
, "(") #)
24211 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24212 if (D_is_set
[macro
]) {
24213 # Preserve the white space surrounding the "#".
24214 print prefix
"define", macro P
[macro
] D
[macro
]
24217 # Replace #undef with comments. This is necessary, for example,
24218 # in the case of _POSIX_SOURCE, which is predefined and required
24219 # on some systems where configure will not decide to define it.
24220 if (defundef
== "undef") {
24221 print
"/*", prefix defundef
, macro
, "*/"
24229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24230 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24231 fi # test -n "$CONFIG_HEADERS"
24234 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24239 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24241 case $ac_mode$ac_tag in
24243 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24244 :[FH
]-) ac_tag
=-:-;;
24245 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24262 -) ac_f
="$tmp/stdin";;
24263 *) # Look for the file first in the build tree, then in the source tree
24264 # (if the path is not absolute). The absolute path cannot be DOS-style,
24265 # because $ac_f cannot contain `:'.
24269 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24271 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24273 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24274 as_fn_append ac_file_inputs
" '$ac_f'"
24277 # Let's still pretend it is `configure' which instantiates (i.e., don't
24278 # use $as_me), people would be surprised to read:
24279 # /* config.h. Generated by config.status. */
24280 configure_input
='Generated from '`
24281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24283 if test x
"$ac_file" != x-
; then
24284 configure_input
="$ac_file. $configure_input"
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24286 $as_echo "$as_me: creating $ac_file" >&6;}
24288 # Neutralize special characters interpreted by sed in replacement strings.
24289 case $configure_input in #(
24290 *\
&* |
*\|
* |
*\\* )
24291 ac_sed_conf_input
=`$as_echo "$configure_input" |
24292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24293 *) ac_sed_conf_input
=$configure_input;;
24297 *:-:* |
*:-) cat >"$tmp/stdin" \
24298 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24303 ac_dir
=`$as_dirname -- "$ac_file" ||
24304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24305 X"$ac_file" : 'X\(//\)[^/]' \| \
24306 X"$ac_file" : 'X\(//\)$' \| \
24307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24308 $as_echo X"$ac_file" |
24309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24313 /^X\(\/\/\)[^/].*/{
24326 as_dir
="$ac_dir"; as_fn_mkdir_p
24330 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24332 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24333 # A ".." for each directory in $ac_dir_suffix.
24334 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24335 case $ac_top_builddir_sub in
24336 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24337 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24340 ac_abs_top_builddir
=$ac_pwd
24341 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24342 # for backward compatibility:
24343 ac_top_builddir
=$ac_top_build_prefix
24346 .
) # We are building in place.
24348 ac_top_srcdir
=$ac_top_builddir_sub
24349 ac_abs_top_srcdir
=$ac_pwd ;;
24350 [\\/]* | ?
:[\\/]* ) # Absolute name.
24351 ac_srcdir
=$srcdir$ac_dir_suffix;
24352 ac_top_srcdir
=$srcdir
24353 ac_abs_top_srcdir
=$srcdir ;;
24354 *) # Relative name.
24355 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24356 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24357 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24359 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24369 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24370 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24372 ac_MKDIR_P
=$MKDIR_P
24374 [\\/$
]* | ?
:[\\/]* ) ;;
24375 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24380 # If the template does not know about datarootdir, expand it.
24381 # FIXME: This hack should be removed a few years after 2.60.
24382 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24394 *datarootdir
*) ac_datarootdir_seen
=yes;;
24395 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24397 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24400 ac_datarootdir_hack='
24401 s&@datadir@&$datadir&g
24402 s&@docdir@&$docdir&g
24403 s&@infodir@&$infodir&g
24404 s&@localedir@&$localedir&g
24405 s&@mandir@&$mandir&g
24406 s&\\\${datarootdir}&$datarootdir&g' ;;
24410 # Neutralize VPATH when `$srcdir' = `.'.
24411 # Shell code in configure.ac might set extrasub.
24412 # FIXME: do we really want to maintain this feature?
24413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24414 ac_sed_extra="$ac_vpsub
24417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24419 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24420 s|@configure_input@|
$ac_sed_conf_input|
;t t
24421 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24422 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24423 s
&@srcdir@
&$ac_srcdir&;t t
24424 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24425 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24426 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24427 s
&@builddir@
&$ac_builddir&;t t
24428 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24429 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24430 s
&@INSTALL@
&$ac_INSTALL&;t t
24431 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24432 $ac_datarootdir_hack
24434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24435 if $ac_cs_awk_getline; then
24436 $AWK -f "$tmp/subs.
awk"
24438 $AWK -f "$tmp/subs.
awk" | $SHELL
24440 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24446 which seems to be undefined. Please make sure it is defined." >&5
24447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24448 which seems to be undefined. Please make sure it is defined." >&2;}
24452 -) cat "$tmp/out" && rm -f "$tmp/out";;
24453 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24455 || as_fn_error "could not create $ac_file" "$LINENO" 5
24461 if test x"$ac_file" != x-; then
24463 $as_echo "/* $configure_input */" \
24464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24465 } >"$tmp/config.h" \
24466 || as_fn_error "could not create $ac_file" "$LINENO" 5
24467 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24472 mv "$tmp/config.h" "$ac_file" \
24473 || as_fn_error "could not create $ac_file" "$LINENO" 5
24476 $as_echo "/* $configure_input */" \
24477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24478 || as_fn_error "could not create -" "$LINENO" 5
24480 # Compute "$ac_file"'s index
in $config_headers.
24483 for _am_header
in $config_headers :; do
24484 case $_am_header in
24485 $_am_arg |
$_am_arg:* )
24488 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24491 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24492 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24493 X"$_am_arg" : 'X\(//\)[^/]' \| \
24494 X"$_am_arg" : 'X\(//\)$' \| \
24495 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24496 $as_echo X"$_am_arg" |
24497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24501 /^X\(\/\/\)[^/].*/{
24513 s/.*/./; q'`/stamp-h
$_am_stamp_count
24516 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24517 $as_echo "$as_me: executing $ac_file commands" >&6;}
24522 case $ac_file$ac_mode in
24523 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24524 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24525 # are listed without --file. Let's play safe and only enable the eval
24526 # if we detect the quoting.
24527 case $CONFIG_FILES in
24528 *\'*) eval set x
"$CONFIG_FILES" ;;
24529 *) set x
$CONFIG_FILES ;;
24534 # Strip MF so we end up with the name of the file.
24535 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24536 # Check whether this is an Automake generated Makefile or not.
24537 # We used to match only the files named `Makefile.in', but
24538 # some people rename them; so instead we look at the file content.
24539 # Grep'ing the first line is not enough: some people post-process
24540 # each Makefile.in and add a new line on top of each file to say so.
24541 # Grep'ing the whole file is not good either: AIX grep has a line
24542 # limit of 2048, but all sed's we know have understand at least 4000.
24543 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24544 dirpart
=`$as_dirname -- "$mf" ||
24545 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24546 X"$mf" : 'X\(//\)[^/]' \| \
24547 X"$mf" : 'X\(//\)$' \| \
24548 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24554 /^X\(\/\/\)[^/].*/{
24570 # Extract the definition of DEPDIR, am__include, and am__quote
24571 # from the Makefile without running `make'.
24572 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24573 test -z "$DEPDIR" && continue
24574 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24575 test -z "am__include" && continue
24576 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24577 # When using ansi2knr, U may be empty or an underscore; expand it
24578 U
=`sed -n 's/^U = //p' < "$mf"`
24579 # Find all dependency output files, they are included files with
24580 # $(DEPDIR) in their names. We invoke sed twice because it is the
24581 # simplest approach to changing $(DEPDIR) to its actual value in the
24583 for file in `sed -n "
24584 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24585 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24586 # Make sure the directory exists.
24587 test -f "$dirpart/$file" && continue
24588 fdir
=`$as_dirname -- "$file" ||
24589 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590 X"$file" : 'X\(//\)[^/]' \| \
24591 X"$file" : 'X\(//\)$' \| \
24592 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24593 $as_echo X"$file" |
24594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24598 /^X\(\/\/\)[^/].*/{
24611 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24612 # echo "creating $dirpart/$file"
24613 echo '# dummy' > "$dirpart/$file"
24619 for dir
in etc lisp
; do
24620 test -d ${dir} || mkdir
${dir}
24624 echo creating src
/epaths.h
24625 ${MAKE-make} epaths-force
24628 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24629 echo creating src
/.gdbinit
24630 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24640 ac_clean_files
=$ac_clean_files_save
24642 test $ac_write_fail = 0 ||
24643 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24646 # configure is writing to config.log, and then calls config.status.
24647 # config.status does its own redirection, appending to config.log.
24648 # Unfortunately, on DOS this fails, as config.log is still kept open
24649 # by configure, so config.status won't be able to write to it; its
24650 # output is simply discarded. So we exec the FD to /dev/null,
24651 # effectively closing config.log, so it can be properly (re)opened and
24652 # appended to by config.status. When coming back to configure, we
24653 # need to make the FD available again.
24654 if test "$no_create" != yes; then
24656 ac_config_status_args
=
24657 test "$silent" = yes &&
24658 ac_config_status_args
="$ac_config_status_args --quiet"
24660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24663 # would make configure fail if this is the last instruction.
24664 $ac_cs_success || as_fn_exit $?
24666 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24668 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}