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
, glyphs
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
= ;
4248 all
) ac_enable_checking
=1 ;
4249 ac_gc_check_stringbytes
=1 ;
4250 ac_gc_check_string_overrun
=1 ;
4251 ac_gc_check_string_free_list
=1 ;
4252 ac_xmalloc_overrun
=1 ;
4253 ac_gc_check_cons_list
=1 ;
4254 ac_check_glyphs
=1 ;;
4255 # these enable particular checks
4256 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4257 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4258 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4259 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4260 conslist
) ac_gc_check_cons_list
=1 ;;
4261 glyphs
) ac_check_glyphs
=1 ;;
4262 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4267 if test x
$ac_enable_checking != x
; then
4269 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4272 if test x
$ac_gc_check_stringbytes != x
; then
4274 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4277 if test x
$ac_gc_check_string_overrun != x
; then
4279 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4282 if test x
$ac_gc_check_string_free_list != x
; then
4284 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4287 if test x
$ac_xmalloc_overrun != x
; then
4289 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4292 if test x
$ac_gc_check_cons_list != x
; then
4294 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4297 if test x
$ac_check_glyphs != x
; then
4299 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4303 # Check whether --enable-check-lisp-object-type was given.
4304 if test "${enable_check_lisp_object_type+set}" = set; then :
4305 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4307 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4314 # Check whether --enable-profiling was given.
4315 if test "${enable_profiling+set}" = set; then :
4316 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4319 if test x
$ac_enable_profiling != x
; then
4320 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4326 # Check whether --enable-autodepend was given.
4327 if test "${enable_autodepend+set}" = set; then :
4328 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4330 ac_enable_autodepend
=yes
4334 #### Make srcdir absolute, if it isn't already. It's important to
4335 #### avoid running the path through pwd unnecessarily, since pwd can
4336 #### give you automounter prefixes, which can go away. We do all this
4337 #### so Emacs can find its files when run uninstalled.
4338 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4343 ## We may be able to use the $PWD environment variable to make this
4344 ## absolute. But sometimes PWD is inaccurate.
4345 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4346 ## but that tested only for a well-formed and valid PWD,
4347 ## it did not object when PWD was well-formed and valid but just wrong.
4348 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4352 srcdir
="`(cd ${srcdir}; pwd)`"
4355 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4358 #### Given the configuration name, set opsysfile to the
4359 #### name of s/*.h file we should use.
4361 ### Canonicalize the configuration name.
4363 # Make sure we can run config.sub.
4364 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4365 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4368 $as_echo_n "checking build system type... " >&6; }
4369 if test "${ac_cv_build+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 ac_build_alias
=$build_alias
4373 test "x$ac_build_alias" = x
&&
4374 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4375 test "x$ac_build_alias" = x
&&
4376 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4377 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4378 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4382 $as_echo "$ac_cv_build" >&6; }
4383 case $ac_cv_build in
4385 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4388 ac_save_IFS
=$IFS; IFS
='-'
4394 # Remember, the first character of IFS is used to create $*,
4395 # except with old shells:
4398 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4402 $as_echo_n "checking host system type... " >&6; }
4403 if test "${ac_cv_host+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 if test "x$host_alias" = x
; then
4407 ac_cv_host
=$ac_cv_build
4409 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4410 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4415 $as_echo "$ac_cv_host" >&6; }
4418 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4421 ac_save_IFS
=$IFS; IFS
='-'
4427 # Remember, the first character of IFS is used to create $*,
4428 # except with old shells:
4431 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4435 configuration
=${host_alias-${build_alias-$host}}
4439 ### If you add support for a new configuration, add code to this
4440 ### switch statement to recognize your configuration name and select
4441 ### the appropriate operating system file.
4443 ### You would hope that you could choose an s/*.h
4444 ### file based on the operating system portion. However, it turns out
4445 ### that each s/*.h file is pretty manufacturer-specific.
4446 ### So we basically have to have a special case for each
4447 ### configuration name.
4449 ### As far as handling version numbers on operating systems is
4450 ### concerned, make sure things will fail in a fixable way. If
4451 ### /etc/MACHINES doesn't say anything about version numbers, be
4452 ### prepared to handle anything reasonably. If version numbers
4453 ### matter, be sure /etc/MACHINES says something about it.
4455 opsys
='' unported
=no
4456 case "${canonical}" in
4458 ## GNU/Linux and similar ports
4468 ## FreeBSD kernel + glibc based userland
4483 ## Apple Darwin / Mac OS X
4485 case "${canonical}" in
4492 ## Use fink packages if available.
4493 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4494 ## if test -d /sw/include && test -d /sw/lib; then
4495 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4496 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4500 ## HP 9000 series 700 and 800, running HP/UX
4501 hppa
*-hp-hpux10.2
* )
4504 hppa
*-hp-hpux1[1-9]* )
4506 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4510 rs6000-ibm-aix4.
[23]* )
4513 powerpc-ibm-aix4.
[23]* )
4516 rs6000-ibm-aix
[56]* )
4519 powerpc-ibm-aix
[56]* )
4523 ## Silicon Graphics machines
4527 # Without defining _LANGUAGE_C, things get masked out in the headers
4528 # so that, for instance, grepping for `free' in stdlib.h fails and
4529 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4530 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4535 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4536 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4537 case "${canonical}" in
4539 amd64-
*-*|x86_64-
*-*) ;;
4543 case "${canonical}" in
4544 *-sunos5.6
* |
*-solaris2.6
* )
4548 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4550 emacs_check_sunpro_c
=yes
4552 *-sunos5* |
*-solaris* )
4554 emacs_check_sunpro_c
=yes
4557 ## Watch out for a compiler that we know will not work.
4558 case "${canonical}" in
4559 *-solaris* |
*-sunos5* )
4560 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4561 ## /usr/ucb/cc doesn't work;
4562 ## we should find some other compiler that does work.
4570 ## Intel 386 machines where we don't care about the manufacturer.
4572 case "${canonical}" in
4573 *-cygwin ) opsys
=cygwin
;;
4574 *-darwin* ) opsys
=darwin
;;
4575 *-sysv4.2uw
* ) opsys
=unixware
;;
4576 *-sysv5uw* ) opsys
=unixware
;;
4577 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4578 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4587 ### If the code above didn't choose an operating system, just choose
4588 ### an operating system based on the configuration name. You really
4589 ### only want to use this when you have no idea what the right
4590 ### operating system is; if you know what operating systems a machine
4591 ### runs, it's cleaner to make it explicit in the case statement
4593 if test x
"${opsys}" = x
; then
4594 case "${canonical}" in
4595 *-gnu* ) opsys
=gnu
;;
4604 if test $unported = yes; then
4605 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4606 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4609 opsysfile
="s/${opsys}.h"
4612 #### Choose a compiler.
4615 ac_cpp
='$CPP $CPPFLAGS'
4616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC
="$CC" # Let the user override the test.
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_exec_ext
in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_CC"; then
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc
; ac_word
=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$ac_ct_CC"; then
4668 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir
=.
4675 for ac_exec_ext
in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_CC
="gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4688 if test -n "$ac_ct_CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4690 $as_echo "$ac_ct_CC" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_CC" = x
; then
4699 case $cross_compiling:$ac_tool_warned in
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned
=yes ;;
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4714 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CC+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC
="$CC" # Let the user override the test.
4723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir
=.
4728 for ac_exec_ext
in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 if test -n "$CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743 $as_echo "$CC" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4752 if test -z "$CC"; then
4753 # Extract the first word of "cc", so it can be a program name with args.
4754 set dummy cc
; ac_word
=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC
="$CC" # Let the user override the test.
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4772 ac_prog_rejected
=yes
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy
$ac_cv_prog_CC
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set CC to just the basename; use the full file name.
4792 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4808 if test -z "$CC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog
in cl.exe
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$CC"; then
4820 ac_cv_prog_CC
="$CC" # Let the user override the test.
4822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir
=.
4827 for ac_exec_ext
in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 if test -n "$CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4842 $as_echo "$CC" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CC" && break
4852 if test -z "$CC"; then
4854 for ac_prog
in cl.exe
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy
$ac_prog; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir
=.
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CC
="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 $as_echo "$ac_ct_CC" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CC" && break
4896 if test "x$ac_ct_CC" = x
; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned
=yes ;;
4912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error
"no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details." "$LINENO" 5; }
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4921 for ac_option
in --version -v -V -qversion; do
4922 { { ac_try
="$ac_compiler $ac_option >&5"
4924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4931 if test -s conftest.err; then
4933 ... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4937 rm -f conftest.er1 conftest.err
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4953 ac_clean_files_save=$ac_clean_files
4954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4955 # Try to create an executable without -o first, disregard a.out.
4956 # It will help us diagnose broken compilers, and finding out an intuition
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4959 $as_echo_n "checking whether the C compiler works... " >&6; }
4960 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4962 # The possible output files:
4963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4966 for ac_file in $ac_files
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4975 if { { ac_try="$ac_link_default"
4977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4978 *) ac_try_echo
=$ac_try;;
4980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981 $as_echo "$ac_try_echo"; } >&5
4982 (eval "$ac_link_default") 2>&5
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
4986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4989 # so that the user can short-circuit this test for compilers unknown to
4991 for ac_file
in $ac_files ''
4993 test -f "$ac_file" ||
continue
4995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4998 # We found the default executable, but exeext='' is most
5002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5004 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5006 # We set ac_cv_exeext here because the later test for it is not
5007 # safe: cross compilers may not add the suffix if given an `-o'
5008 # argument, so we may need to know it at that point already.
5009 # Even if this section looks crufty: it has the advantage of
5016 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5021 if test -z "$ac_file"; then :
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { as_fn_set_status
77
5030 as_fn_error
"C compiler cannot create executables
5031 See \`config.log' for more details." "$LINENO" 5; }; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5037 $as_echo_n "checking for C compiler default output file name... " >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5039 $as_echo "$ac_file" >&6; }
5040 ac_exeext
=$ac_cv_exeext
5042 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5043 ac_clean_files
=$ac_clean_files_save
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5045 $as_echo_n "checking for suffix of executables... " >&6; }
5046 if { { ac_try
="$ac_link"
5048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5052 $as_echo "$ac_try_echo"; } >&5
5053 (eval "$ac_link") 2>&5
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }; then :
5057 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5058 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5059 # work properly (i.e., refer to `conftest.exe'), while it won't with
5061 for ac_file
in conftest.exe conftest conftest.
*; do
5062 test -f "$ac_file" ||
continue
5064 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5065 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5074 See \`config.log' for more details." "$LINENO" 5; }
5076 rm -f conftest conftest
$ac_cv_exeext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5078 $as_echo "$ac_cv_exeext" >&6; }
5080 rm -f conftest.
$ac_ext
5081 EXEEXT
=$ac_cv_exeext
5083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5089 FILE *f = fopen ("conftest.out", "w");
5090 return ferror (f) || fclose (f) != 0;
5096 ac_clean_files
="$ac_clean_files conftest.out"
5097 # Check that the compiler produces executables we can run. If not, either
5098 # the compiler is broken, or we cross compile.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5100 $as_echo_n "checking whether we are cross compiling... " >&6; }
5101 if test "$cross_compiling" != yes; then
5102 { { ac_try
="$ac_link"
5104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5108 $as_echo "$ac_try_echo"; } >&5
5109 (eval "$ac_link") 2>&5
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }
5113 if { ac_try='./conftest$ac_cv_exeext'
5114 { { case "(($ac_try" in
5115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5116 *) ac_try_echo
=$ac_try;;
5118 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119 $as_echo "$ac_try_echo"; } >&5
5120 (eval "$ac_try") 2>&5
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; }; then
5126 if test "$cross_compiling" = maybe
; then
5129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5131 as_fn_error
"cannot run C compiled programs.
5132 If you meant to cross compile, use \`--host'.
5133 See \`config.log' for more details." "$LINENO" 5; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5138 $as_echo "$cross_compiling" >&6; }
5140 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5141 ac_clean_files
=$ac_clean_files_save
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5143 $as_echo_n "checking for suffix of object files... " >&6; }
5144 if test "${ac_cv_objext+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5158 rm -f conftest.o conftest.obj
5159 if { { ac_try
="$ac_compile"
5161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5165 $as_echo "$ac_try_echo"; } >&5
5166 (eval "$ac_compile") 2>&5
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then :
5170 for ac_file in conftest.o conftest.obj conftest.*; do
5171 test -f "$ac_file" || continue;
5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5179 $as_echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error "cannot compute suffix of object files
: cannot compile
5185 See \
`config.log' for more details." "$LINENO" 5; }
5187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5190 $as_echo "$ac_cv_objext" >&6; }
5191 OBJEXT=$ac_cv_objext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5194 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5212 if ac_fn_c_try_compile "$LINENO"; then :
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5222 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5223 if test $ac_compiler_gnu = yes; then
5228 ac_test_CFLAGS=${CFLAGS+set}
5229 ac_save_CFLAGS=$CFLAGS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5231 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5232 if test "${ac_cv_prog_cc_g+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 ac_save_c_werror_flag=$ac_c_werror_flag
5236 ac_c_werror_flag=yes
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5265 if ac_fn_c_try_compile "$LINENO"; then :
5268 ac_c_werror_flag=$ac_save_c_werror_flag
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5281 if ac_fn_c_try_compile "$LINENO"; then :
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_c_werror_flag=$ac_save_c_werror_flag
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5292 $as_echo "$ac_cv_prog_cc_g" >&6; }
5293 if test "$ac_test_CFLAGS" = set; then
5294 CFLAGS=$ac_save_CFLAGS
5295 elif test $ac_cv_prog_cc_g = yes; then
5296 if test "$GCC" = yes; then
5302 if test "$GCC" = yes; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5309 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5310 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 ac_cv_prog_cc_c89=no
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5319 #include <sys/types.h>
5320 #include <sys/stat.h>
5321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5322 struct buf { int x; };
5323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5324 static char *e (p, i)
5330 static char *f (char * (*g) (char **, int), char **p, ...)
5335 s = g (p, va_arg (v,int));
5340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5341 function prototypes and stuff, but not '\xHH' hex character constants.
5342 These don't provoke an error unfortunately, instead are silently treated
5343 as 'x'. The following induces an error, until -std is added to get
5344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5345 array size at least. It's necessary to write '\x00'==0 to get something
5346 that's true only with -std. */
5347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5350 inside strings and character constants. */
5352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5354 int test (int i, double x);
5355 struct s1 {int (*f) (int a);};
5356 struct s2 {int (*f) (double a);};
5357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5371 CC="$ac_save_CC $ac_arg"
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_prog_cc_c89=$ac_arg
5375 rm -f core conftest.err conftest.$ac_objext
5376 test "x$ac_cv_prog_cc_c89" != "xno" && break
5378 rm -f conftest.$ac_ext
5383 case "x$ac_cv_prog_cc_c89" in
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5386 $as_echo "none needed" >&6; } ;;
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5389 $as_echo "unsupported" >&6; } ;;
5391 CC="$CC $ac_cv_prog_cc_c89"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5395 if test "x$ac_cv_prog_cc_c89" != xno; then :
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 DEPDIR="${am__leading_dot}deps"
5406 ac_config_commands="$ac_config_commands depfiles"
5409 am_make=${MAKE-make}
5410 cat > confinc << 'END'
5412 @echo this is the am__doit target
5415 # If we don't find an include directive, just comment out the code.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5417 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5421 # First try GNU make style include.
5422 echo "include confinc" > confmf
5423 # Ignore all kinds of additional output from `make'.
5424 case `$am_make -s -f confmf 2> /dev/null` in #(
5425 *the\ am__doit\ target*)
5431 # Now try BSD make style include.
5432 if test "$am__include" = "#"; then
5433 echo '.include
"confinc"' > confmf
5434 case `$am_make -s -f confmf 2> /dev/null` in #(
5435 *the\ am__doit\ target*)
5436 am__include=.include
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5445 $as_echo "$_am_result" >&6; }
5446 rm -f confinc confmf
5448 # Check whether --enable-dependency-tracking was given.
5449 if test "${enable_dependency_tracking+set}" = set; then :
5450 enableval=$enable_dependency_tracking;
5453 if test "x$enable_dependency_tracking" != xno; then
5454 am_depcomp="$ac_aux_dir/depcomp"
5457 if test "x$enable_dependency_tracking" != xno
; then
5467 depcc
="$CC" am_compiler_list
=
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5470 $as_echo_n "checking dependency style of $depcc... " >&6; }
5471 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5475 # We make a subdir and do the tests there. Otherwise we can end up
5476 # making bogus files that we don't know about and never remove. For
5477 # instance it was reported that on HP-UX the gcc test will end up
5478 # making a dummy file named `D' -- because `-MD' means `put the output
5481 # Copy depcomp to subdir because otherwise we won't find it if we're
5482 # using a relative directory.
5483 cp "$am_depcomp" conftest.dir
5485 # We will build objects and dependencies in a subdirectory because
5486 # it helps to detect inapplicable dependency modes. For instance
5487 # both Tru64's cc and ICC support -MD to output dependencies as a
5488 # side effect of compilation, but ICC will put the dependencies in
5489 # the current directory while Tru64 will put them in the object
5493 am_cv_CC_dependencies_compiler_type
=none
5494 if test "$am_compiler_list" = ""; then
5495 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5498 case " $depcc " in #(
5499 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5502 for depmode
in $am_compiler_list; do
5503 # Setup a source with many dependencies, because some compilers
5504 # like to wrap large dependency lists on column 80 (with \), and
5505 # we should not choose a depcomp mode which is confused by this.
5507 # We need to recreate these files for each test, as the compiler may
5508 # overwrite some of them when testing with obscure command lines.
5509 # This happens at least with the AIX C compiler.
5511 for i
in 1 2 3 4 5 6; do
5512 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5514 # Solaris 8's {/usr,}/bin/sh.
5515 touch sub
/conftst
$i.h
5517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5520 # mode. It turns out that the SunPro C++ compiler does not properly
5521 # handle `-M -o', and we need to detect this. Also, some Intel
5522 # versions had trouble with output in subdirs
5523 am__obj
=sub
/conftest.
${OBJEXT-o}
5524 am__minus_obj
="-o $am__obj"
5527 # This depmode causes a compiler race in universal mode.
5528 test "$am__universal" = false ||
continue
5531 # after this tag, mechanisms are not by side-effect, so they'll
5532 # only be used when explicitly requested
5533 if test "x$enable_dependency_tracking" = xyes
; then
5539 msvisualcpp | msvcmsys
)
5540 # This compiler won't grok `-c -o', but also, the minuso test has
5541 # not run yet. These depmodes are late enough in the game, and
5542 # so weak that their functioning should not be impacted.
5543 am__obj
=conftest.
${OBJEXT-o}
5548 if depmode
=$depmode \
5549 source=sub
/conftest.c object
=$am__obj \
5550 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5551 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5552 >/dev
/null
2>conftest.err
&&
5553 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5555 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5556 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5557 # icc doesn't choke on unknown options, it will just issue warnings
5558 # or remarks (even with -Werror). So we grep stderr for any message
5559 # that says an option was ignored or not supported.
5560 # When given -MP, icc 7.0 and 7.1 complain thusly:
5561 # icc: Command line warning: ignoring option '-M'; no argument required
5562 # The diagnosis changed in icc 8.0:
5563 # icc: Command line remark: option '-MP' not supported
5564 if (grep 'ignoring option' conftest.err ||
5565 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5566 am_cv_CC_dependencies_compiler_type
=$depmode
5575 am_cv_CC_dependencies_compiler_type
=none
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5581 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5584 test "x$enable_dependency_tracking" != xno \
5585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5587 am__fastdepCC_FALSE
='#'
5589 am__fastdepCC_TRUE
='#'
5590 am__fastdepCC_FALSE
=
5594 if test "x$CC" != xcc
; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5601 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5602 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5603 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5604 $as_echo_n "(cached) " >&6
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5617 # Make sure it works both with $CC and with simple cc.
5618 # We do the test twice because some compilers refuse to overwrite an
5619 # existing .o file with -o, though they will create one.
5620 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5622 if { { case "(($ac_try" in
5623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5627 $as_echo "$ac_try_echo"; } >&5
5628 (eval "$ac_try") 2>&5
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; } &&
5632 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5634 *) ac_try_echo
=$ac_try;;
5636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; };
5643 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5644 if test "x$CC" != xcc
; then
5645 # Test first that cc exists at all.
5646 if { ac_try
='cc -c conftest.$ac_ext >&5'
5647 { { case "(($ac_try" in
5648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; }; }; then
5657 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5661 *) ac_try_echo
=$ac_try;;
5663 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5683 # cc exists but doesn't like -o.
5684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 rm -f core conftest*
5694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5701 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5705 # FIXME: we rely on the cache variable name because
5706 # there is no other way.
5708 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5709 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5710 if test "$am_t" != yes; then
5711 # Losing compiler, so override with the script.
5712 # FIXME: It is wrong to rewrite CC.
5713 # But if we don't then we get into trouble of one sort or another.
5714 # A longer-term fix would be to have automake use am__CC in this case,
5715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5716 CC="$am_aux_dir/compile $CC"
5721 if test x$GCC = xyes; then
5722 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5724 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5727 # Initialize gnulib right after choosing the compiler.
5730 ac_cpp='$CPP $CPPFLAGS'
5731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5736 # On Suns, sometimes $CPP names a directory.
5737 if test -n "$CPP" && test -d "$CPP"; then
5740 if test -z "$CPP"; then
5741 if test "${ac_cv_prog_CPP+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 # Double quotes because CPP needs to be expanded
5745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5748 for ac_c_preproc_warn_flag in '' yes
5750 # Use a header file that comes with gcc, so configuring glibc
5751 # with a fresh cross-compiler works.
5752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5753 # <limits.h> exists even on freestanding compilers.
5754 # On the NeXT, cc -E runs the code through the compiler's parser,
5755 # not just through cpp. "Syntax error" is here to catch this case.
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5759 # include <limits.h>
5761 # include <assert.h>
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5768 # Broken: fails on valid input.
5771 rm -f conftest.err conftest.$ac_ext
5773 # OK, works on sane cases. Now check whether nonexistent headers
5774 # can be detected and how.
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5779 if ac_fn_c_try_cpp "$LINENO"; then :
5780 # Broken: success on invalid input.
5783 # Passes both tests.
5787 rm -f conftest.err conftest.$ac_ext
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.
$ac_ext
5792 if $ac_preproc_ok; then :
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5805 $as_echo "$CPP" >&6; }
5807 for ac_c_preproc_warn_flag
in '' yes
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5818 # include <limits.h>
5820 # include <assert.h>
5824 if ac_fn_c_try_cpp
"$LINENO"; then :
5827 # Broken: fails on valid input.
5830 rm -f conftest.err conftest.
$ac_ext
5832 # OK, works on sane cases. Now check whether nonexistent headers
5833 # can be detected and how.
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <ac_nonexistent.h>
5838 if ac_fn_c_try_cpp
"$LINENO"; then :
5839 # Broken: success on invalid input.
5842 # Passes both tests.
5846 rm -f conftest.err conftest.
$ac_ext
5849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5850 rm -f conftest.err conftest.
$ac_ext
5851 if $ac_preproc_ok; then :
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5857 See \`config.log' for more details." "$LINENO" 5; }
5861 ac_cpp
='$CPP $CPPFLAGS'
5862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5868 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5869 if test "${ac_cv_path_GREP+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if test -z "$GREP"; then
5873 ac_path_GREP_found
=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5876 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5879 test -z "$as_dir" && as_dir
=.
5880 for ac_prog
in grep ggrep
; do
5881 for ac_exec_ext
in '' $ac_executable_extensions; do
5882 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5883 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5884 # Check for GNU ac_path_GREP and select it if it is found.
5885 # Check for GNU $ac_path_GREP
5886 case `"$ac_path_GREP" --version 2>&1` in
5888 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5891 $as_echo_n 0123456789 >"conftest.in"
5894 cat "conftest.in" "conftest.in" >"conftest.tmp"
5895 mv "conftest.tmp" "conftest.in"
5896 cp "conftest.in" "conftest.nl"
5897 $as_echo 'GREP' >> "conftest.nl"
5898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5899 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5900 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5901 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5902 # Best one so far, save it but keep looking for a better one
5903 ac_cv_path_GREP
="$ac_path_GREP"
5904 ac_path_GREP_max
=$ac_count
5906 # 10*(2^10) chars as input seems more than enough
5907 test $ac_count -gt 10 && break
5909 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5912 $ac_path_GREP_found && break 3
5917 if test -z "$ac_cv_path_GREP"; then
5918 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5921 ac_cv_path_GREP
=$GREP
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5926 $as_echo "$ac_cv_path_GREP" >&6; }
5927 GREP
="$ac_cv_path_GREP"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5931 $as_echo_n "checking for egrep... " >&6; }
5932 if test "${ac_cv_path_EGREP+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5936 then ac_cv_path_EGREP
="$GREP -E"
5938 if test -z "$EGREP"; then
5939 ac_path_EGREP_found
=false
5940 # Loop through the user's path and test for each of PROGNAME-LIST
5941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5942 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5945 test -z "$as_dir" && as_dir
=.
5946 for ac_prog
in egrep; do
5947 for ac_exec_ext
in '' $ac_executable_extensions; do
5948 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5949 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5950 # Check for GNU ac_path_EGREP and select it if it is found.
5951 # Check for GNU $ac_path_EGREP
5952 case `"$ac_path_EGREP" --version 2>&1` in
5954 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5957 $as_echo_n 0123456789 >"conftest.in"
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 $as_echo 'EGREP' >> "conftest.nl"
5964 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5965 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5966 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5967 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_EGREP
="$ac_path_EGREP"
5970 ac_path_EGREP_max
=$ac_count
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5975 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5978 $ac_path_EGREP_found && break 3
5983 if test -z "$ac_cv_path_EGREP"; then
5984 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5987 ac_cv_path_EGREP
=$EGREP
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5993 $as_echo "$ac_cv_path_EGREP" >&6; }
5994 EGREP
="$ac_cv_path_EGREP"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6000 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6001 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6015 gl_cv_c_amsterdam_compiler
=yes
6017 gl_cv_c_amsterdam_compiler
=no
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6024 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6025 if test -z "$AR"; then
6026 if test $gl_cv_c_amsterdam_compiler = yes; then
6028 if test -z "$ARFLAGS"; then
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6034 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_AR+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6040 if test -n "$AR"; then
6041 ac_cv_prog_AR
="$AR" # Let the user override the test.
6043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir
=.
6048 for ac_exec_ext
in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 if test -n "$AR"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6063 $as_echo "$AR" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6071 if test -z "$ac_cv_prog_AR"; then
6073 # Extract the first word of "ar", so it can be a program name with args.
6074 set dummy
ar; ac_word
=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 if test -n "$ac_ct_AR"; then
6081 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir
=.
6088 for ac_exec_ext
in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_AR
="ar"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6101 if test -n "$ac_ct_AR"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6103 $as_echo "$ac_ct_AR" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6109 if test "x$ac_ct_AR" = x
; then
6112 case $cross_compiling:$ac_tool_warned in
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned
=yes ;;
6124 if test -z "$ARFLAGS"; then
6129 if test -z "$ARFLAGS"; then
6135 if test -z "$RANLIB"; then
6136 if test $gl_cv_c_amsterdam_compiler = yes; then
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6147 if test -n "$RANLIB"; then
6148 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir
=.
6155 for ac_exec_ext
in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 RANLIB
=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6170 $as_echo "$RANLIB" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB
=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib
; ac_word
=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6187 if test -n "$ac_ct_RANLIB"; then
6188 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir
=.
6195 for ac_exec_ext
in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6210 $as_echo "$ac_ct_RANLIB" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6216 if test "x$ac_ct_RANLIB" = x
; then
6219 case $cross_compiling:$ac_tool_warned in
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned
=yes ;;
6225 RANLIB
=$ac_ct_RANLIB
6228 RANLIB
="$ac_cv_prog_RANLIB"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6236 $as_echo_n "checking for ANSI C header files... " >&6; }
6237 if test "${ac_cv_header_stdc+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6255 if ac_fn_c_try_compile
"$LINENO"; then :
6256 ac_cv_header_stdc
=yes
6258 ac_cv_header_stdc
=no
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 if test $ac_cv_header_stdc = yes; then
6263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev
/null
2>&1; then :
6273 ac_cv_header_stdc
=no
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "free" >/dev
/null
2>&1; then :
6290 ac_cv_header_stdc
=no
6296 if test $ac_cv_header_stdc = yes; then
6297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6298 if test "$cross_compiling" = yes; then :
6301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6328 if ac_fn_c_try_run
"$LINENO"; then :
6331 ac_cv_header_stdc
=no
6333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6340 $as_echo "$ac_cv_header_stdc" >&6; }
6341 if test $ac_cv_header_stdc = yes; then
6343 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6348 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6349 inttypes.h stdint.h unistd.h
6351 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6354 eval as_val
=\$
$as_ac_Header
6355 if test "x$as_val" = x
""yes; then :
6356 cat >>confdefs.h
<<_ACEOF
6357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6376 if test "$MINIX" = yes; then
6378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6384 $as_echo "#define _MINIX 1" >>confdefs.h
6391 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6399 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6405 # define __EXTENSIONS__ 1
6406 $ac_includes_default
6415 if ac_fn_c_try_compile
"$LINENO"; then :
6416 ac_cv_safe_to_define___extensions__
=yes
6418 ac_cv_safe_to_define___extensions__
=no
6420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6424 test $ac_cv_safe_to_define___extensions__ = yes &&
6425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6435 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6444 # Check whether --enable-largefile was given.
6445 if test "${enable_largefile+set}" = set; then :
6446 enableval
=$enable_largefile;
6449 if test "$enable_largefile" != no
; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6453 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 ac_cv_sys_largefile_CC
=no
6457 if test "$GCC" != yes; then
6460 # IRIX 6.2 and later do not support large files by default,
6461 # so use the C compiler's -n32 option if that helps.
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <sys/types.h>
6465 /* Check that off_t can represent 2**63 - 1 correctly.
6466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6467 since some C++ compilers masquerading as C compilers
6468 incorrectly reject 9223372036854775807. */
6469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6471 && LARGE_OFF_T % 2147483647 == 1)
6481 if ac_fn_c_try_compile
"$LINENO"; then :
6484 rm -f core conftest.err conftest.
$ac_objext
6486 if ac_fn_c_try_compile
"$LINENO"; then :
6487 ac_cv_sys_largefile_CC
=' -n32'; break
6489 rm -f core conftest.err conftest.
$ac_objext
6493 rm -f conftest.
$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6498 if test "$ac_cv_sys_largefile_CC" != no
; then
6499 CC
=$CC$ac_cv_sys_largefile_CC
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <sys/types.h>
6511 /* Check that off_t can represent 2**63 - 1 correctly.
6512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6513 since some C++ compilers masquerading as C compilers
6514 incorrectly reject 9223372036854775807. */
6515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6517 && LARGE_OFF_T % 2147483647 == 1)
6527 if ac_fn_c_try_compile
"$LINENO"; then :
6528 ac_cv_sys_file_offset_bits
=no
; break
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #define _FILE_OFFSET_BITS 64
6534 #include <sys/types.h>
6535 /* Check that off_t can represent 2**63 - 1 correctly.
6536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6537 since some C++ compilers masquerading as C compilers
6538 incorrectly reject 9223372036854775807. */
6539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6541 && LARGE_OFF_T % 2147483647 == 1)
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 ac_cv_sys_file_offset_bits
=64; break
6554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6555 ac_cv_sys_file_offset_bits
=unknown
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6561 case $ac_cv_sys_file_offset_bits in #(
6564 cat >>confdefs.h
<<_ACEOF
6565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6570 if test $ac_cv_sys_file_offset_bits = unknown
; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6573 if test "${ac_cv_sys_large_files+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 /* Check that off_t can represent 2**63 - 1 correctly.
6581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6582 since some C++ compilers masquerading as C compilers
6583 incorrectly reject 9223372036854775807. */
6584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6586 && LARGE_OFF_T % 2147483647 == 1)
6596 if ac_fn_c_try_compile
"$LINENO"; then :
6597 ac_cv_sys_large_files
=no
; break
6599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #define _LARGE_FILES 1
6603 #include <sys/types.h>
6604 /* Check that off_t can represent 2**63 - 1 correctly.
6605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6606 since some C++ compilers masquerading as C compilers
6607 incorrectly reject 9223372036854775807. */
6608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6610 && LARGE_OFF_T % 2147483647 == 1)
6620 if ac_fn_c_try_compile
"$LINENO"; then :
6621 ac_cv_sys_large_files
=1; break
6623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 ac_cv_sys_large_files
=unknown
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6629 $as_echo "$ac_cv_sys_large_files" >&6; }
6630 case $ac_cv_sys_large_files in #(
6633 cat >>confdefs.h
<<_ACEOF
6634 #define _LARGE_FILES $ac_cv_sys_large_files
6644 case $ac_cv_prog_cc_stdc in #(
6646 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6649 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6650 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6653 ac_cv_prog_cc_c99
=no
6655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6658 #include <stdbool.h>
6663 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6664 #define debug(...) fprintf (stderr, __VA_ARGS__)
6665 #define showlist(...) puts (#__VA_ARGS__)
6666 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6668 test_varargs_macros (void)
6673 debug ("X = %d\n", x);
6674 showlist (The first, second, and third items.);
6675 report (x>y, "x is %d but y is %d", x, y);
6678 // Check long long types.
6679 #define BIG64 18446744073709551615ull
6680 #define BIG32 4294967295ul
6681 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6683 your preprocessor is broken;
6687 your preprocessor is broken;
6689 static long long int bignum = -9223372036854775807LL;
6690 static unsigned long long int ubignum = BIG64;
6692 struct incomplete_array
6700 const wchar_t *name;
6704 typedef const char *ccp;
6707 test_restrict (ccp restrict text)
6709 // See if C++-style comments work.
6710 // Iterate through items via the restricted pointer.
6711 // Also check for declarations in for loops.
6712 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6717 // Check varargs and va_copy.
6719 test_varargs (const char *format, ...)
6722 va_start (args, format);
6724 va_copy (args_copy, args);
6735 str = va_arg (args_copy, const char *);
6738 number = va_arg (args_copy, int);
6741 fnumber = va_arg (args_copy, double);
6756 _Bool success = false;
6759 if (test_restrict ("String literal") == 0)
6761 char *restrict newvar = "Another string";
6764 test_varargs ("s, d' f .", "string", 65, 34.234);
6765 test_varargs_macros ();
6767 // Check flexible array members.
6768 struct incomplete_array *ia =
6769 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6771 for (int i = 0; i < ia->datasize; ++i)
6772 ia->data[i] = i * 1.234;
6774 // Check named initializers.
6775 struct named_init ni = {
6777 .name = L"Test wide string",
6778 .average = 543.34343,
6783 int dynamic_array[ni.number];
6784 dynamic_array[ni.number - 1] = 543;
6786 // work around unused variable warnings
6787 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6788 || dynamic_array[ni.number - 1] != 543);
6794 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6796 CC
="$ac_save_CC $ac_arg"
6797 if ac_fn_c_try_compile
"$LINENO"; then :
6798 ac_cv_prog_cc_c99
=$ac_arg
6800 rm -f core conftest.err conftest.
$ac_objext
6801 test "x$ac_cv_prog_cc_c99" != "xno" && break
6803 rm -f conftest.
$ac_ext
6808 case "x$ac_cv_prog_cc_c99" in
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6811 $as_echo "none needed" >&6; } ;;
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6814 $as_echo "unsupported" >&6; } ;;
6816 CC
="$CC $ac_cv_prog_cc_c99"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6818 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6820 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6821 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6825 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 ac_cv_prog_cc_c89
=no
6830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6834 #include <sys/types.h>
6835 #include <sys/stat.h>
6836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6837 struct buf { int x; };
6838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6839 static char *e (p, i)
6845 static char *f (char * (*g) (char **, int), char **p, ...)
6850 s = g (p, va_arg (v,int));
6855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6856 function prototypes and stuff, but not '\xHH' hex character constants.
6857 These don't provoke an error unfortunately, instead are silently treated
6858 as 'x'. The following induces an error, until -std is added to get
6859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6860 array size at least. It's necessary to write '\x00'==0 to get something
6861 that's true only with -std. */
6862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6865 inside strings and character constants. */
6867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6869 int test (int i, double x);
6870 struct s1 {int (*f) (int a);};
6871 struct s2 {int (*f) (double a);};
6872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6883 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6886 CC
="$ac_save_CC $ac_arg"
6887 if ac_fn_c_try_compile
"$LINENO"; then :
6888 ac_cv_prog_cc_c89
=$ac_arg
6890 rm -f core conftest.err conftest.
$ac_objext
6891 test "x$ac_cv_prog_cc_c89" != "xno" && break
6893 rm -f conftest.
$ac_ext
6898 case "x$ac_cv_prog_cc_c89" in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;;
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6904 $as_echo "unsupported" >&6; } ;;
6906 CC
="$CC $ac_cv_prog_cc_c89"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6910 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6911 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6913 ac_cv_prog_cc_stdc
=no
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6920 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6921 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6925 case $ac_cv_prog_cc_stdc in #(
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6928 $as_echo "unsupported" >&6; } ;; #(
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6931 $as_echo "none needed" >&6; } ;; #(
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6934 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6939 # Code from module alloca-opt:
6940 # Code from module allocator:
6941 # Code from module careadlinkat:
6942 # Code from module clock-time:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dtotimespec:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module gettime:
6959 # Code from module gettimeofday:
6960 # Code from module ignore-value:
6961 # Code from module include_next:
6962 # Code from module intprops:
6963 # Code from module inttypes-incomplete:
6964 # Code from module largefile:
6966 # Code from module lstat:
6967 # Code from module manywarnings:
6968 # Code from module mktime:
6969 # Code from module multiarch:
6970 # Code from module nocrash:
6971 # Code from module pathmax:
6972 # Code from module pselect:
6973 # Code from module pthread_sigmask:
6974 # Code from module readlink:
6975 # Code from module signal-h:
6976 # Code from module snippet/_Noreturn:
6977 # Code from module snippet/arg-nonnull:
6978 # Code from module snippet/c++defs:
6979 # Code from module snippet/warn-on-use:
6980 # Code from module socklen:
6981 # Code from module ssize_t:
6982 # Code from module stat:
6983 # Code from module stat-time:
6984 # Code from module stdalign:
6985 # Code from module stdarg:
6989 # Code from module stdbool:
6990 # Code from module stddef:
6991 # Code from module stdint:
6992 # Code from module stdio:
6993 # Code from module stdlib:
6994 # Code from module strftime:
6995 # Code from module strtoimax:
6996 # Code from module strtoll:
6997 # Code from module strtoull:
6998 # Code from module strtoumax:
6999 # Code from module symlink:
7000 # Code from module sys_select:
7001 # Code from module sys_stat:
7002 # Code from module sys_time:
7003 # Code from module time:
7004 # Code from module time_r:
7005 # Code from module timespec:
7006 # Code from module timespec-add:
7007 # Code from module timespec-sub:
7008 # Code from module u64:
7009 # Code from module unistd:
7010 # Code from module utimens:
7011 # Code from module verify:
7012 # Code from module warnings:
7015 # Check whether --enable-gcc-warnings was given.
7016 if test "${enable_gcc_warnings+set}" = set; then :
7017 enableval
=$enable_gcc_warnings; case $enableval in
7019 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7021 gl_gcc_warnings
=$enableval
7028 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7029 # ------------------------------------------------
7030 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7031 # Otherwise, run RUN-IF-NOT-FOUND.
7034 # When compiling with GCC, prefer -isystem to -I when including system
7035 # include files, to avoid generating useless diagnostics for the files.
7036 if test "$gl_gcc_warnings" != yes; then
7041 # This, $nw, is the list of warnings we disable.
7044 case $with_x_toolkit in
7045 lucid | athena | motif
)
7046 # Old toolkits mishandle 'const'.
7047 nw
="$nw -Wwrite-strings"
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7051 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7052 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7056 gl_save_compiler_FLAGS
="$CFLAGS"
7057 as_fn_append CFLAGS
" -Werror"
7058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7069 if ac_fn_c_try_compile
"$LINENO"; then :
7070 gl_cv_warn_c__Werror
=yes
7072 gl_cv_warn_c__Werror
=no
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 CFLAGS
="$gl_save_compiler_FLAGS"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7079 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7080 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7081 as_fn_append WERROR_CFLAGS
" -Werror"
7089 nw
="$nw -Waggregate-return" # anachronistic
7090 nw
="$nw -Wlong-long" # C90 is anachronistic
7091 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7092 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7093 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7094 nw
="$nw -Wcast-qual" # Too many warnings for now
7095 nw
="$nw -Wconversion" # Too many warnings for now
7096 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7097 nw
="$nw -Wsign-conversion" # Too many warnings for now
7098 nw
="$nw -Woverlength-strings" # Not a problem these days
7099 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7100 nw
="$nw -Wpadded" # Our structs are not padded
7101 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7102 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7103 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7104 nw
="$nw -Wvla" # warnings in gettext.h
7105 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7106 nw
="$nw -Wswitch-enum" # Too many warnings for now
7107 nw
="$nw -Wswitch-default" # Too many warnings for now
7108 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7109 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7111 # Emacs doesn't care about shadowing; see
7112 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7115 # The following lines should be removable at some point.
7116 nw
="$nw -Wstack-protector"
7117 nw
="$nw -Wstrict-overflow"
7118 nw
="$nw -Wsuggest-attribute=const"
7119 nw
="$nw -Wsuggest-attribute=pure"
7123 if test -n "$GCC"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7126 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7127 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7131 gl_save_CFLAGS
="$CFLAGS"
7132 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7144 if ac_fn_c_try_compile
"$LINENO"; then :
7145 gl_cv_cc_nomfi_supported
=yes
7147 gl_cv_cc_nomfi_supported
=no
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7150 CFLAGS
="$gl_save_CFLAGS"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7154 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7156 if test "$gl_cv_cc_nomfi_supported" = yes; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7158 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7159 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7163 gl_save_CFLAGS
="$CFLAGS"
7164 CFLAGS
="$CFLAGS -W -Werror"
7165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7169 typedef struct { int a; int b; } s_t;
7181 if ac_fn_c_try_compile
"$LINENO"; then :
7182 gl_cv_cc_nomfi_needed
=no
7184 gl_cv_cc_nomfi_needed
=yes
7186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 CFLAGS
="$gl_save_CFLAGS"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7192 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7197 for gl_manywarn_item
in \
7201 -Wformat-nonliteral \
7204 -Wmissing-include-dirs \
7214 -Wtraditional-conversion \
7215 -Wdeclaration-after-statement \
7218 -Wunsafe-loop-optimizations \
7220 -Wbad-function-cast \
7228 -Waggregate-return \
7229 -Wstrict-prototypes \
7230 -Wold-style-definition \
7231 -Wmissing-prototypes \
7232 -Wmissing-declarations \
7233 -Wmissing-noreturn \
7234 -Wmissing-format-attribute \
7239 -Wunreachable-code \
7244 -Wvolatile-register-var \
7245 -Wdisabled-optimization \
7247 -Woverlength-strings \
7248 -Wbuiltin-macro-redefined \
7250 -Wpacked-bitfield-compat \
7253 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7255 # The following are not documented in the manual but are included in
7256 # output from gcc --help=warnings.
7257 for gl_manywarn_item
in \
7259 -Wcoverage-mismatch \
7262 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7264 # More warnings from gcc 4.6.2 --help=warnings.
7265 for gl_manywarn_item
in \
7269 -Wdeprecated-declarations \
7271 -Wdouble-promotion \
7274 -Wformat-contains-nul \
7275 -Wformat-extra-args \
7276 -Wformat-zero-length \
7281 -Wpointer-to-int-cast \
7283 -Wsuggest-attribute=const \
7284 -Wsuggest-attribute=noreturn \
7285 -Wsuggest-attribute=pure \
7288 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7291 # Disable the missing-field-initializers warning if needed
7292 if test "$gl_cv_cc_nomfi_needed" = yes; then
7293 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7304 *" $gl_warn_item "*)
7307 gl_warn_set
="$gl_warn_set $gl_warn_item"
7314 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7316 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7317 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7318 $as_echo_n "(cached) " >&6
7321 gl_save_compiler_FLAGS
="$CFLAGS"
7322 as_fn_append CFLAGS
" $w"
7323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7334 if ac_fn_c_try_compile
"$LINENO"; then :
7335 eval "$as_gl_Warn=yes"
7337 eval "$as_gl_Warn=no"
7339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7340 CFLAGS
="$gl_save_compiler_FLAGS"
7343 eval ac_res
=\$
$as_gl_Warn
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7345 $as_echo "$ac_res" >&6; }
7346 eval as_val
=\$
$as_gl_Warn
7347 if test "x$as_val" = x
""yes; then :
7348 as_fn_append WARN_CFLAGS
" $w"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7354 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7355 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7359 gl_save_compiler_FLAGS
="$CFLAGS"
7360 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7372 if ac_fn_c_try_compile
"$LINENO"; then :
7373 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7375 gl_cv_warn_c__Wno_missing_field_initializers
=no
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 CFLAGS
="$gl_save_compiler_FLAGS"
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7382 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7383 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7384 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7389 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7390 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7394 gl_save_compiler_FLAGS
="$CFLAGS"
7395 as_fn_append CFLAGS
" -Wno-sign-compare"
7396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7407 if ac_fn_c_try_compile
"$LINENO"; then :
7408 gl_cv_warn_c__Wno_sign_compare
=yes
7410 gl_cv_warn_c__Wno_sign_compare
=no
7412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7413 CFLAGS
="$gl_save_compiler_FLAGS"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7417 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7418 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7419 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7422 # Too many warnings for now
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7424 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7425 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7429 gl_save_compiler_FLAGS
="$CFLAGS"
7430 as_fn_append CFLAGS
" -Wno-type-limits"
7431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7442 if ac_fn_c_try_compile
"$LINENO"; then :
7443 gl_cv_warn_c__Wno_type_limits
=yes
7445 gl_cv_warn_c__Wno_type_limits
=no
7447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7448 CFLAGS
="$gl_save_compiler_FLAGS"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7452 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7453 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7454 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7457 # Too many warnings for now
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7459 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7460 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7464 gl_save_compiler_FLAGS
="$CFLAGS"
7465 as_fn_append CFLAGS
" -Wno-switch"
7466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7477 if ac_fn_c_try_compile
"$LINENO"; then :
7478 gl_cv_warn_c__Wno_switch
=yes
7480 gl_cv_warn_c__Wno_switch
=no
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 CFLAGS
="$gl_save_compiler_FLAGS"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7487 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7488 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7489 as_fn_append WARN_CFLAGS
" -Wno-switch"
7492 # Too many warnings for now
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7494 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7495 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7499 gl_save_compiler_FLAGS
="$CFLAGS"
7500 as_fn_append CFLAGS
" -Wno-unused-parameter"
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7512 if ac_fn_c_try_compile
"$LINENO"; then :
7513 gl_cv_warn_c__Wno_unused_parameter
=yes
7515 gl_cv_warn_c__Wno_unused_parameter
=no
7517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7518 CFLAGS
="$gl_save_compiler_FLAGS"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7522 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7523 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7524 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7527 # Too many warnings for now
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7529 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7530 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7534 gl_save_compiler_FLAGS
="$CFLAGS"
7535 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7547 if ac_fn_c_try_compile
"$LINENO"; then :
7548 gl_cv_warn_c__Wno_format_nonliteral
=yes
7550 gl_cv_warn_c__Wno_format_nonliteral
=no
7552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7553 CFLAGS
="$gl_save_compiler_FLAGS"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7557 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7558 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7559 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7564 # In spite of excluding -Wlogical-op above, it is enabled, as of
7565 # gcc 4.5.0 20090517.
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7567 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7568 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7572 gl_save_compiler_FLAGS
="$CFLAGS"
7573 as_fn_append CFLAGS
" -Wno-logical-op"
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7586 gl_cv_warn_c__Wno_logical_op
=yes
7588 gl_cv_warn_c__Wno_logical_op
=no
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7591 CFLAGS
="$gl_save_compiler_FLAGS"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7595 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7596 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7597 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7603 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7604 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7608 gl_save_compiler_FLAGS
="$CFLAGS"
7609 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7621 if ac_fn_c_try_compile
"$LINENO"; then :
7622 gl_cv_warn_c__fdiagnostics_show_option
=yes
7624 gl_cv_warn_c__fdiagnostics_show_option
=no
7626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 CFLAGS
="$gl_save_compiler_FLAGS"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7631 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7632 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7633 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7638 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7639 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7643 gl_save_compiler_FLAGS
="$CFLAGS"
7644 as_fn_append CFLAGS
" -funit-at-a-time"
7645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7656 if ac_fn_c_try_compile
"$LINENO"; then :
7657 gl_cv_warn_c__funit_at_a_time
=yes
7659 gl_cv_warn_c__funit_at_a_time
=no
7661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 CFLAGS
="$gl_save_compiler_FLAGS"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7666 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7667 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7668 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7674 $as_echo "#define lint 1" >>confdefs.h
7677 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7680 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7683 # We use a slightly smaller set of warning options for lib/.
7684 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7686 nw
="$nw -Wunused-macros"
7690 set x
$WARN_CFLAGS; shift
7694 *" $gl_warn_item "*)
7697 gl_warn_set
="$gl_warn_set $gl_warn_item"
7701 GNULIB_WARN_CFLAGS
=$gl_warn_set
7709 # Extract the first word of "install-info", so it can be a program name with args.
7710 set dummy install-info
; ac_word
=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7716 case $INSTALL_INFO in
7718 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7722 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7725 test -z "$as_dir" && as_dir
=.
7726 for ac_exec_ext
in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7740 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7741 if test -n "$INSTALL_INFO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7743 $as_echo "$INSTALL_INFO" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 # Extract the first word of "gzip", so it can be a program name with args.
7751 set dummy
gzip; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7759 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7781 if test -n "$GZIP_PROG"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7783 $as_echo "$GZIP_PROG" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7791 if test $opsys = gnu-linux
; then
7792 # Extract the first word of "paxctl", so it can be a program name with args.
7793 set dummy paxctl
; ac_word
=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7801 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7808 test -z "$as_dir" && as_dir
=.
7809 for ac_exec_ext
in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 PAXCTL
=$ac_cv_path_PAXCTL
7823 if test -n "$PAXCTL"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7825 $as_echo "$PAXCTL" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7834 ## Need makeinfo >= 4.7 (?) to build the manuals.
7835 # Extract the first word of "makeinfo", so it can be a program name with args.
7836 set dummy makeinfo
; ac_word
=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7844 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir
=.
7852 for ac_exec_ext
in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7866 MAKEINFO
=$ac_cv_path_MAKEINFO
7867 if test -n "$MAKEINFO"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7869 $as_echo "$MAKEINFO" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7876 if test "$MAKEINFO" != "no" && \
7877 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
7881 ## Makeinfo is unusual. For a released Emacs, the manuals are
7882 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7883 ## therefore in the category of "special tools" not normally required, which
7884 ## configure does not have to check for (eg autoconf itself).
7885 ## In a Bazaar checkout on the other hand, the manuals are not included.
7886 ## So makeinfo is a requirement to build from Bazaar, and configure
7887 ## should test for it as it does for any other build requirement.
7888 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7889 ## with pre-built manuals, from a Bazaar checkout.
7892 if test "$MAKEINFO" = "no"; then
7894 if test "x${with_makeinfo}" = "xno"; then
7896 elif test ! -e $srcdir/info
/emacs
; then
7897 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7898 source tree does not seem to have pre-built manuals in the \`info' directory.
7899 Either install a suitable version of makeinfo, or re-run configure
7900 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7906 INFO_OPTS
=--no-split
7911 if test x
$GCC = xyes
; then
7912 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7913 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7915 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7916 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7920 late_LDFLAGS
=$LDFLAGS
7921 if test x
$GCC = xyes
; then
7922 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7924 LDFLAGS
="$LDFLAGS -znocombreloc"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7928 $as_echo_n "checking for -znocombreloc... " >&6; }
7929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7940 if ac_fn_c_try_link
"$LINENO"; then :
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942 $as_echo "yes" >&6; }
7944 LDFLAGS
=$late_LDFLAGS
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7948 rm -f core conftest.err conftest.
$ac_objext \
7949 conftest
$ac_exeext conftest.
$ac_ext
7952 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7954 your-opsys-here
) CANNOT_DUMP
=yes ;;
7957 test "$CANNOT_DUMP" = "yes" && \
7959 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7965 UNEXEC_OBJ
=unexelf.o
7967 # MSDOS uses unexcoff.o
7968 # MSWindows uses unexw32.o
7970 UNEXEC_OBJ
=unexaix.o
7976 UNEXEC_OBJ
=unexmacosx.o
7979 UNEXEC_OBJ
=unexhp9k800.o
7982 # Use the Solaris dldump() function, called from unexsol.c, to dump
7983 # emacs, instead of the generic ELF dump code found in unexelf.c.
7984 # The resulting binary has a complete symbol table, and is better
7985 # for debugging and other observability tools (debuggers, pstack, etc).
7987 # If you encounter a problem using dldump(), please consider sending
7988 # a message to the OpenSolaris tools-linking mailing list:
7989 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7991 # It is likely that dldump() works with older Solaris too, but this has
7992 # not been tested, so for now this change is for Solaris 10 or newer.
7993 UNEXEC_OBJ
=unexsol.o
8000 ## Let `ld' find image libs and similar things in /usr/local/lib.
8001 ## The system compiler, GCC, has apparently been modified to not
8002 ## look there, contrary to what a stock GCC would do.
8003 ### It's not our place to do this. See bug#10313#17.
8004 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8009 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8010 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8014 ### It's not our place to do this. See bug#10313#17.
8015 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8020 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8021 ## otherwise Emacs dumps core on elf systems.
8022 LD_SWITCH_SYSTEM
="-Z"
8027 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8029 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8030 ## which has not been defined yet. When this was handled with cpp,
8031 ## it was expanded to null when configure sourced the s/*.h file.
8032 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8033 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8034 ## (or somesuch), but because it is supposed to go at the _front_
8035 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8036 ## Compare with the gnu-linux case below, which added to the end
8037 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8038 ## LD_SWITCH_SYSTEM_TEMACS.
8041 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8048 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8049 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8053 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8054 ## With ELF, make sure that all common symbols get allocated to in the
8055 ## data section. Otherwise, the dump of temacs may miss variables in
8056 ## the shared library that have been initialized. For example, with
8057 ## GNU libc, __malloc_initialized would normally be resolved to the
8058 ## shared library's .bss section, which is fatal.
8059 if test "x$GCC" = "xyes"; then
8060 C_SWITCH_MACHINE
="-fno-common"
8062 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8065 UNEXEC_OBJ
=unexalpha.o
8074 ## Some programs in src produce warnings saying certain subprograms
8075 ## are too complex and need a MAXMEM value greater than 2000 for
8076 ## additional optimization. --nils@exp-math.uni-essen.de
8077 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8078 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8079 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8080 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8086 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8087 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8089 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8091 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8093 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8095 ## Motif needs -lgen.
8096 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8101 ### Make sure subsequent tests use flags consistent with the build flags.
8103 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8104 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8106 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8109 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8111 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8118 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8123 START_FILES
='pre-crt0.o'
8126 ## Adding -lm confuses the dynamic linker, so omit it.
8128 START_FILES
='pre-crt0.o'
8131 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8132 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8133 SYSTEM_TYPE
=berkeley-unix
8135 gnu-linux | gnu-kfreebsd
)
8136 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8137 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8139 hpux10-20 | hpux11
)
8141 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8144 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8145 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8146 SYSTEM_TYPE
=berkeley-unix
8150 SYSTEM_TYPE
=usg-unix-v
8158 cat >>confdefs.h
<<_ACEOF
8159 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8165 for file in x
$LIB_STANDARD $START_FILES; do
8167 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8171 if test "x$crt_files" != x
; then
8173 ## If user specified a crt-dir, use that unconditionally.
8176 if test "X$CRT_DIR" = "X"; then
8178 CRT_DIR
=/usr
/lib
# default
8180 case "$canonical" in
8181 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8182 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8183 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8184 ## For anything else (eg /usr/lib32), it is up the user to specify
8185 ## the location (bug#5655).
8186 ## Test for crtn.o, not just the directory, because sometimes the
8187 ## directory exists but does not have the relevant files (bug#1287).
8188 ## FIXME better to test for binary compatibility somehow.
8189 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8192 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8196 hpux10-20
) CRT_DIR
=/lib
;;
8199 test "x${GCC}" = xyes
&& crt_gcc
=yes
8205 for file in $crt_files; do
8207 ## If we're using gcc, try to determine it automatically by asking
8208 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8209 ## system-dependent default from above.]
8210 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8212 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8215 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8216 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8217 X"$crt_file" : 'X\(//\)[^/]' \| \
8218 X"$crt_file" : 'X\(//\)$' \| \
8219 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8220 $as_echo X"$crt_file" |
8221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8244 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8247 test "x$crt_missing" = x || \
8248 as_fn_error
"Required file(s) not found:$crt_missing
8249 Try using the --with-crt-dir option." "$LINENO" 5
8251 fi # crt_files != ""
8257 if test -f $CRT_DIR/crti.o
; then
8259 test -f $CRT_DIR/crtn.o || \
8260 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8262 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8263 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8269 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8270 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8271 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8283 LIBC_FATAL_STDERR_
=1
8284 export LIBC_FATAL_STDERR_
8286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8287 # for constant arguments. Useless!
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8289 $as_echo_n "checking for working alloca.h... " >&6; }
8290 if test "${ac_cv_working_alloca_h+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8299 char *p = (char *) alloca (2 * sizeof (int));
8305 if ac_fn_c_try_link
"$LINENO"; then :
8306 ac_cv_working_alloca_h
=yes
8308 ac_cv_working_alloca_h
=no
8310 rm -f core conftest.err conftest.
$ac_objext \
8311 conftest
$ac_exeext conftest.
$ac_ext
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8314 $as_echo "$ac_cv_working_alloca_h" >&6; }
8315 if test $ac_cv_working_alloca_h = yes; then
8317 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8322 $as_echo_n "checking for alloca... " >&6; }
8323 if test "${ac_cv_func_alloca_works+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8329 # define alloca __builtin_alloca
8332 # include <malloc.h>
8333 # define alloca _alloca
8335 # ifdef HAVE_ALLOCA_H
8336 # include <alloca.h>
8341 # ifndef alloca /* predefined by HP cc +Olibcalls */
8352 char *p = (char *) alloca (1);
8358 if ac_fn_c_try_link
"$LINENO"; then :
8359 ac_cv_func_alloca_works
=yes
8361 ac_cv_func_alloca_works
=no
8363 rm -f core conftest.err conftest.
$ac_objext \
8364 conftest
$ac_exeext conftest.
$ac_ext
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8367 $as_echo "$ac_cv_func_alloca_works" >&6; }
8369 if test $ac_cv_func_alloca_works = yes; then
8371 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8374 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8375 # that cause trouble. Some versions do not even contain alloca or
8376 # contain a buggy version. If you still want to use their alloca,
8377 # use ar to extract alloca.o from them instead of compiling alloca.c.
8383 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8385 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8389 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8390 if test "${ac_cv_os_cray+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #if defined CRAY && ! defined CRAY2
8402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8403 $EGREP "webecray" >/dev
/null
2>&1; then :
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8412 $as_echo "$ac_cv_os_cray" >&6; }
8413 if test $ac_cv_os_cray = yes; then
8414 for ac_func
in _getb67 GETB67 getb67
; do
8415 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8416 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8417 eval as_val
=\$
$as_ac_var
8418 if test "x$as_val" = x
""yes; then :
8420 cat >>confdefs.h
<<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8431 $as_echo_n "checking stack direction for C alloca... " >&6; }
8432 if test "${ac_cv_c_stack_direction+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8435 if test "$cross_compiling" = yes; then :
8436 ac_cv_c_stack_direction
=0
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 $ac_includes_default
8442 find_stack_direction (int *addr, int depth)
8447 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8448 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8453 main (int argc, char **argv)
8455 return find_stack_direction (0, argc + !argv + 20) < 0;
8458 if ac_fn_c_try_run
"$LINENO"; then :
8459 ac_cv_c_stack_direction
=1
8461 ac_cv_c_stack_direction
=-1
8463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8469 $as_echo "$ac_cv_c_stack_direction" >&6; }
8470 cat >>confdefs.h
<<_ACEOF
8471 #define STACK_DIRECTION $ac_cv_c_stack_direction
8480 for ac_func
in $ac_func_list
8482 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8483 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8484 eval as_val
=\$
$as_ac_var
8485 if test "x$as_val" = x
""yes; then :
8486 cat >>confdefs.h
<<_ACEOF
8487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8497 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8498 if test "${ac_cv_c_bigendian+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8501 ac_cv_c_bigendian
=unknown
8502 # See if we're dealing with a universal compiler.
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #ifndef __APPLE_CC__
8506 not a universal capable compiler
8511 if ac_fn_c_try_compile
"$LINENO"; then :
8513 # Check for potential -arch flags. It is not universal unless
8514 # there are at least two -arch flags with different values.
8517 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8518 if test -n "$ac_prev"; then
8520 i?
86 | x86_64 | ppc | ppc64
)
8521 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8524 ac_cv_c_bigendian
=universal
8530 elif test "x$ac_word" = "x-arch"; then
8535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8536 if test $ac_cv_c_bigendian = unknown
; then
8537 # See if sys/param.h defines the BYTE_ORDER macro.
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <sys/types.h>
8541 #include <sys/param.h>
8546 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8547 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8556 if ac_fn_c_try_compile
"$LINENO"; then :
8557 # It does; now see whether it defined to BIG_ENDIAN or not.
8558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <sys/types.h>
8561 #include <sys/param.h>
8566 #if BYTE_ORDER != BIG_ENDIAN
8574 if ac_fn_c_try_compile
"$LINENO"; then :
8575 ac_cv_c_bigendian
=yes
8577 ac_cv_c_bigendian
=no
8579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8583 if test $ac_cv_c_bigendian = unknown
; then
8584 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8592 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8600 if ac_fn_c_try_compile
"$LINENO"; then :
8601 # It does; now see whether it defined to _BIG_ENDIAN or not.
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8617 if ac_fn_c_try_compile
"$LINENO"; then :
8618 ac_cv_c_bigendian
=yes
8620 ac_cv_c_bigendian
=no
8622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8626 if test $ac_cv_c_bigendian = unknown
; then
8627 # Compile a test program.
8628 if test "$cross_compiling" = yes; then :
8629 # Try to guess by grepping values from an object file.
8630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 short int ascii_mm[] =
8633 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8634 short int ascii_ii[] =
8635 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8636 int use_ascii (int i) {
8637 return ascii_mm[i] + ascii_ii[i];
8639 short int ebcdic_ii[] =
8640 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8641 short int ebcdic_mm[] =
8642 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8643 int use_ebcdic (int i) {
8644 return ebcdic_mm[i] + ebcdic_ii[i];
8651 return use_ascii (foo) == use_ebcdic (foo);
8656 if ac_fn_c_try_compile
"$LINENO"; then :
8657 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8658 ac_cv_c_bigendian
=yes
8660 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8661 if test "$ac_cv_c_bigendian" = unknown
; then
8662 ac_cv_c_bigendian
=no
8664 # finding both strings is unlikely to happen, but who knows?
8665 ac_cv_c_bigendian
=unknown
8669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 $ac_includes_default
8678 /* Are we little or big endian? From Harbison&Steele. */
8682 char c[sizeof (long int)];
8685 return u.c[sizeof (long int) - 1] == 1;
8691 if ac_fn_c_try_run
"$LINENO"; then :
8692 ac_cv_c_bigendian
=no
8694 ac_cv_c_bigendian
=yes
8696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8703 $as_echo "$ac_cv_c_bigendian" >&6; }
8704 case $ac_cv_c_bigendian in #(
8706 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8712 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8716 as_fn_error
"unknown endianness
8717 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8722 $as_echo_n "checking for inline... " >&6; }
8723 if test "${ac_cv_c_inline+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8727 for ac_kw
in inline __inline__ __inline
; do
8728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8732 static $ac_kw foo_t static_foo () {return 0; }
8733 $ac_kw foo_t foo () {return 0; }
8737 if ac_fn_c_try_compile
"$LINENO"; then :
8738 ac_cv_c_inline
=$ac_kw
8740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8741 test "$ac_cv_c_inline" != no
&& break
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8746 $as_echo "$ac_cv_c_inline" >&6; }
8748 case $ac_cv_c_inline in
8751 case $ac_cv_c_inline in
8753 *) ac_val
=$ac_cv_c_inline;;
8755 cat >>confdefs.h
<<_ACEOF
8757 #define inline $ac_val
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8765 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8766 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 /* On HP-UX before 11.23, strtold returns a struct instead of
8772 long double. Reject implementations like that, by requiring
8773 compatibility with the C99 prototype. */
8775 static long double (*p) (char const *, char **) = strtold;
8777 test (char const *nptr, char **endptr)
8780 r = strtold (nptr, endptr);
8786 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8791 if ac_fn_c_try_link
"$LINENO"; then :
8792 gl_cv_func_c99_strtold
=yes
8794 gl_cv_func_c99_strtold
=no
8796 rm -f core conftest.err conftest.
$ac_objext \
8797 conftest
$ac_exeext conftest.
$ac_ext
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8800 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8801 if test $gl_cv_func_c99_strtold = yes; then
8803 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8815 GNULIB_EUIDACCESS
=0;
8823 GNULIB_GETDOMAINNAME
=0;
8824 GNULIB_GETDTABLESIZE
=0;
8826 GNULIB_GETHOSTNAME
=0;
8828 GNULIB_GETLOGIN_R
=0;
8829 GNULIB_GETPAGESIZE
=0;
8830 GNULIB_GETUSERSHELL
=0;
8831 GNULIB_GROUP_MEMBER
=0;
8843 GNULIB_READLINKAT
=0;
8845 GNULIB_SETHOSTNAME
=0;
8850 GNULIB_UNISTD_H_NONBLOCKING
=0;
8851 GNULIB_UNISTD_H_SIGPIPE
=0;
8866 HAVE_GETDTABLESIZE
=1;
8871 HAVE_GROUP_MEMBER
=1;
8887 HAVE_DECL_ENVIRON
=1;
8889 HAVE_DECL_FDATASYNC
=1;
8890 HAVE_DECL_GETDOMAINNAME
=1;
8891 HAVE_DECL_GETLOGIN_R
=1;
8892 HAVE_DECL_GETPAGESIZE
=1;
8893 HAVE_DECL_GETUSERSHELL
=1;
8894 HAVE_DECL_SETHOSTNAME
=1;
8895 HAVE_DECL_TTYNAME_R
=1;
8903 REPLACE_FTRUNCATE
=0;
8905 REPLACE_GETDOMAINNAME
=0;
8906 REPLACE_GETLOGIN_R
=0;
8907 REPLACE_GETGROUPS
=0;
8908 REPLACE_GETPAGESIZE
=0;
8921 REPLACE_TTYNAME_R
=0;
8926 UNISTD_H_HAVE_WINSOCK2_H
=0;
8927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8931 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8932 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 #include <sys/types.h>
8939 #include <sys/stat.h>
8943 struct stat s; s.st_dm_mode;
8948 if ac_fn_c_try_compile
"$LINENO"; then :
8949 ac_cv_struct_st_dm_mode
=yes
8951 ac_cv_struct_st_dm_mode
=no
8953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
8956 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8958 if test $ac_cv_struct_st_dm_mode = yes; then
8960 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
8965 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
8966 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
8972 cat >>confdefs.h
<<_ACEOF
8973 #define HAVE_DECL_STRMODE $ac_have_decl
8979 GNULIB_CALLOC_POSIX
=0;
8980 GNULIB_CANONICALIZE_FILE_NAME
=0;
8981 GNULIB_GETLOADAVG
=0;
8984 GNULIB_MALLOC_POSIX
=0;
8991 GNULIB_POSIX_OPENPT
=0;
8997 GNULIB_REALLOC_POSIX
=0;
9004 GNULIB_SYSTEM_POSIX
=0;
9010 HAVE_CANONICALIZE_FILE_NAME
=1;
9011 HAVE_DECL_GETLOADAVG
=1;
9019 HAVE_POSIX_OPENPT
=1;
9032 HAVE_STRUCT_RANDOM_DATA
=1;
9033 HAVE_SYS_LOADAVG_H
=0;
9035 HAVE_DECL_UNSETENV
=1;
9037 REPLACE_CANONICALIZE_FILE_NAME
=0;
9041 REPLACE_PTSNAME_R
=0;
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9054 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9055 if test "${gl_cv_have_include_next+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9058 rm -rf conftestd1a conftestd1b conftestd2
9059 mkdir conftestd1a conftestd1b conftestd2
9060 cat <<EOF > conftestd1a/conftest.h
9061 #define DEFINED_IN_CONFTESTD1
9062 #include_next <conftest.h>
9063 #ifdef DEFINED_IN_CONFTESTD2
9066 #error "include_next doesn't work"
9069 cat <<EOF > conftestd1b/conftest.h
9070 #define DEFINED_IN_CONFTESTD1
9072 #include_next <conftest.h>
9073 #ifdef DEFINED_IN_CONFTESTD2
9076 #error "include_next doesn't work"
9079 cat <<EOF > conftestd2/conftest.h
9080 #ifndef DEFINED_IN_CONFTESTD1
9081 #error "include_next test doesn't work"
9083 #define DEFINED_IN_CONFTESTD2
9085 gl_save_CPPFLAGS
="$CPPFLAGS"
9086 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <conftest.h>
9091 if ac_fn_c_try_compile
"$LINENO"; then :
9092 gl_cv_have_include_next
=yes
9094 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <conftest.h>
9099 if ac_fn_c_try_compile
"$LINENO"; then :
9100 gl_cv_have_include_next
=buggy
9102 gl_cv_have_include_next
=no
9104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 CPPFLAGS
="$gl_save_CPPFLAGS"
9109 rm -rf conftestd1a conftestd1b conftestd2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9113 $as_echo "$gl_cv_have_include_next" >&6; }
9114 PRAGMA_SYSTEM_HEADER
=
9115 if test $gl_cv_have_include_next = yes; then
9116 INCLUDE_NEXT
=include_next
9117 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9118 if test -n "$GCC"; then
9119 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
9122 if test $gl_cv_have_include_next = buggy
; then
9123 INCLUDE_NEXT
=include
9124 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9126 INCLUDE_NEXT
=include
9127 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9134 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9135 if test "${gl_cv_pragma_columns+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9147 $EGREP "choke me" >/dev
/null
2>&1; then :
9148 gl_cv_pragma_columns
=yes
9150 gl_cv_pragma_columns
=no
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9157 $as_echo "$gl_cv_pragma_columns" >&6; }
9158 if test $gl_cv_pragma_columns = yes; then
9159 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
9168 for ac_header
in $ac_header_list
9170 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9173 eval as_val
=\$
$as_ac_Header
9174 if test "x$as_val" = x
""yes; then :
9175 cat >>confdefs.h
<<_ACEOF
9176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9198 if test $gl_cv_have_include_next = yes; then
9199 gl_cv_next_getopt_h
='<'getopt.h
'>'
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9202 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9203 if test "${gl_cv_next_getopt_h+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9207 if test $ac_cv_header_getopt_h = yes; then
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9216 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9217 *) gl_absname_cpp
="$ac_cpp" ;;
9222 gl_dirsep_regex
='[/\\]'
9225 gl_dirsep_regex
='\/'
9228 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9230 gl_header_literal_regex
=`echo 'getopt.h' \
9231 | sed -e "$gl_make_literal_regex_sed"`
9232 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9238 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9239 sed -n "$gl_absolute_header_sed"`'"'
9241 gl_cv_next_getopt_h
='<'getopt.h
'>'
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9247 $as_echo "$gl_cv_next_getopt_h" >&6; }
9249 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
9251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9253 gl_next_as_first_directive
='<'getopt.h
'>'
9255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9256 gl_next_as_first_directive
=$gl_cv_next_getopt_h
9258 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
9263 if test $ac_cv_header_getopt_h = yes; then
9272 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9273 for ac_header
in getopt.h
9275 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9276 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9277 cat >>confdefs.h
<<_ACEOF
9278 #define HAVE_GETOPT_H 1
9282 gl_replace_getopt
=yes
9289 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9290 for ac_func
in getopt_long_only
9292 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9293 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
9294 cat >>confdefs.h
<<_ACEOF
9295 #define HAVE_GETOPT_LONG_ONLY 1
9299 gl_replace_getopt
=yes
9305 if test -z "$gl_replace_getopt"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9307 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9308 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9312 if test $cross_compiling = no
; then
9313 if test "$cross_compiling" = yes; then :
9314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9316 as_fn_error
"cannot run test program while cross compiling
9317 See \`config.log' for more details." "$LINENO" 5; }
9319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9329 static char program[] = "program";
9330 static char a[] = "-a";
9331 static char foo[] = "foo";
9332 static char bar[] = "bar";
9333 char *argv[] = { program, a, foo, bar, NULL };
9336 c = getopt (4, argv, "ab");
9339 c = getopt (4, argv, "ab");
9348 if ac_fn_c_try_run
"$LINENO"; then :
9349 gl_cv_func_getopt_posix
=maybe
9351 gl_cv_func_getopt_posix
=no
9353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9354 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9357 if test $gl_cv_func_getopt_posix = maybe
; then
9358 if test "$cross_compiling" = yes; then :
9359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9361 as_fn_error
"cannot run test program while cross compiling
9362 See \`config.log' for more details." "$LINENO" 5; }
9364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9374 static char program[] = "program";
9375 static char donald[] = "donald";
9376 static char p[] = "-p";
9377 static char billy[] = "billy";
9378 static char duck[] = "duck";
9379 static char a[] = "-a";
9380 static char bar[] = "bar";
9381 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9384 c = getopt (7, argv, "+abp:q:");
9387 if (!(strcmp (argv[0], "program") == 0))
9389 if (!(strcmp (argv[1], "donald") == 0))
9391 if (!(strcmp (argv[2], "-p") == 0))
9393 if (!(strcmp (argv[3], "billy") == 0))
9395 if (!(strcmp (argv[4], "duck") == 0))
9397 if (!(strcmp (argv[5], "-a") == 0))
9399 if (!(strcmp (argv[6], "bar") == 0))
9407 if ac_fn_c_try_run
"$LINENO"; then :
9408 gl_cv_func_getopt_posix
=maybe
9410 gl_cv_func_getopt_posix
=no
9412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9417 if test $gl_cv_func_getopt_posix = maybe
; then
9418 if test "$cross_compiling" = yes; then :
9419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9421 as_fn_error
"cannot run test program while cross compiling
9422 See \`config.log' for more details." "$LINENO" 5; }
9424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9434 static char program[] = "program";
9435 static char ab[] = "-ab";
9436 char *argv[3] = { program, ab, NULL };
9437 if (getopt (2, argv, "ab:") != 'a')
9439 if (getopt (2, argv, "ab:") != '?')
9449 if ac_fn_c_try_run
"$LINENO"; then :
9450 gl_cv_func_getopt_posix
=yes
9452 gl_cv_func_getopt_posix
=no
9454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9461 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
9462 *) gl_cv_func_getopt_posix
="guessing yes";;
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9468 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9469 case "$gl_cv_func_getopt_posix" in
9470 *no
) gl_replace_getopt
=yes ;;
9474 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9476 $as_echo_n "checking for working GNU getopt function... " >&6; }
9477 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9481 # optstring is necessary for programs like m4 that have POSIX-mandated
9482 # semantics for supporting options interspersed with files.
9483 # Also, since getopt_long is a GNU extension, we require optind=0.
9484 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9485 # so take care to revert to the correct (non-)export state.
9486 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9487 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9488 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
9489 x
) gl_had_POSIXLY_CORRECT
=yes ;;
9490 *) gl_had_POSIXLY_CORRECT
= ;;
9493 export POSIXLY_CORRECT
9494 if test "$cross_compiling" = yes; then :
9495 gl_cv_func_getopt_gnu
="guessing no"
9498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9505 #if defined __MACH__ && defined __APPLE__
9506 /* Avoid a crash on Mac OS X. */
9507 #include <mach/mach.h>
9508 #include <mach/mach_error.h>
9509 #include <mach/thread_status.h>
9510 #include <mach/exception.h>
9511 #include <mach/task.h>
9512 #include <pthread.h>
9513 /* The exception port on which our thread listens. */
9514 static mach_port_t our_exception_port;
9515 /* The main function of the thread listening for exceptions of type
9518 mach_exception_thread (void *arg)
9520 /* Buffer for a message to be received. */
9522 mach_msg_header_t head;
9523 mach_msg_body_t msgh_body;
9526 mach_msg_return_t retval;
9527 /* Wait for a message on the exception port. */
9528 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9529 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9530 if (retval != MACH_MSG_SUCCESS)
9537 mach_port_t self = mach_task_self ();
9538 /* Allocate a port on which the thread shall listen for exceptions. */
9539 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9541 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9542 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9543 MACH_MSG_TYPE_MAKE_SEND)
9545 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9547 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9548 /* Create the thread listening on the exception port. */
9549 pthread_attr_t attr;
9551 if (pthread_attr_init (&attr) == 0
9552 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9553 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9554 pthread_attr_destroy (&attr);
9555 /* Replace the exception port info for these exceptions with our own.
9556 Note that we replace the exception port for the entire task, not only
9557 for a particular thread. This has the effect that when our exception
9558 port gets the message, the thread specific exception port has already
9559 been asked, and we don't need to bother about it.
9560 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9561 task_set_exception_ports (self, mask, our_exception_port,
9562 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9567 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9568 /* Avoid a crash on native Windows. */
9569 #define WIN32_LEAN_AND_MEAN
9570 #include <windows.h>
9571 #include <winerror.h>
9573 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9575 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9577 case EXCEPTION_ACCESS_VIOLATION:
9578 case EXCEPTION_IN_PAGE_ERROR:
9579 case EXCEPTION_STACK_OVERFLOW:
9580 case EXCEPTION_GUARD_PAGE:
9581 case EXCEPTION_PRIV_INSTRUCTION:
9582 case EXCEPTION_ILLEGAL_INSTRUCTION:
9583 case EXCEPTION_DATATYPE_MISALIGNMENT:
9584 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9585 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9588 return EXCEPTION_CONTINUE_SEARCH;
9593 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9596 /* Avoid a crash on POSIX systems. */
9598 /* A POSIX signal handler. */
9600 exception_handler (int sig)
9608 signal (SIGSEGV, exception_handler);
9611 signal (SIGBUS, exception_handler);
9625 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9626 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9627 OSF/1 5.1, Solaris 10. */
9629 static char conftest[] = "conftest";
9630 static char plus[] = "-+";
9631 char *argv[3] = { conftest, plus, NULL };
9633 if (getopt (2, argv, "+a") != '?')
9636 /* This code succeeds on glibc 2.8, mingw,
9637 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9638 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9640 static char program[] = "program";
9641 static char p[] = "-p";
9642 static char foo[] = "foo";
9643 static char bar[] = "bar";
9644 char *argv[] = { program, p, foo, bar, NULL };
9647 if (getopt (4, argv, "p::") != 'p')
9649 else if (optarg != NULL)
9651 else if (getopt (4, argv, "p::") != -1)
9653 else if (optind != 2)
9656 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9658 static char program[] = "program";
9659 static char foo[] = "foo";
9660 static char p[] = "-p";
9661 char *argv[] = { program, foo, p, NULL };
9663 if (getopt (3, argv, "-p") != 1)
9665 else if (getopt (3, argv, "-p") != 'p')
9668 /* This code fails on glibc 2.11. */
9670 static char program[] = "program";
9671 static char b[] = "-b";
9672 static char a[] = "-a";
9673 char *argv[] = { program, b, a, NULL };
9674 optind = opterr = 0;
9675 if (getopt (3, argv, "+:a:b") != 'b')
9677 else if (getopt (3, argv, "+:a:b") != ':')
9680 /* This code dumps core on glibc 2.14. */
9682 static char program[] = "program";
9683 static char w[] = "-W";
9684 static char dummy[] = "dummy";
9685 char *argv[] = { program, w, dummy, NULL };
9686 optind = opterr = 1;
9687 if (getopt (3, argv, "W;") != 'W')
9696 if ac_fn_c_try_run
"$LINENO"; then :
9697 gl_cv_func_getopt_gnu
=yes
9699 gl_cv_func_getopt_gnu
=no
9701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9705 case $gl_had_POSIXLY_CORRECT in
9707 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
9708 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9713 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9714 if test "$gl_cv_func_getopt_gnu" != yes; then
9715 gl_replace_getopt
=yes
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9718 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9719 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
9722 if test "$cross_compiling" = yes; then :
9724 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
9725 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
9729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9738 static const struct option long_options[] =
9740 { "xtremely-",no_argument, NULL, 1003 },
9741 { "xtra", no_argument, NULL, 1001 },
9742 { "xtreme", no_argument, NULL, 1002 },
9743 { "xtremely", no_argument, NULL, 1003 },
9744 { NULL, 0, NULL, 0 }
9746 /* This code fails on OpenBSD 5.0. */
9748 static char program[] = "program";
9749 static char xtremel[] = "--xtremel";
9750 char *argv[] = { program, xtremel, NULL };
9752 optind = 1; opterr = 0;
9753 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9762 if ac_fn_c_try_run
"$LINENO"; then :
9763 gl_cv_func_getopt_long_gnu
=yes
9765 gl_cv_func_getopt_long_gnu
=no
9767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9774 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9775 case "$gl_cv_func_getopt_long_gnu" in
9777 *) gl_replace_getopt
=yes ;;
9789 if test -n "$gl_replace_getopt"; then :
9796 if test $REPLACE_GETOPT = 1; then
9800 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9806 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9807 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
9813 cat >>confdefs.h
<<_ACEOF
9814 #define HAVE_DECL_GETENV $ac_have_decl
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9825 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9826 if test "${ac_cv_c_restrict+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9830 # The order here caters to the fact that C++ does not require restrict.
9831 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 typedef int * int_ptr;
9835 int foo (int_ptr $ac_kw ip) {
9849 if ac_fn_c_try_compile
"$LINENO"; then :
9850 ac_cv_c_restrict
=$ac_kw
9852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9853 test "$ac_cv_c_restrict" != no
&& break
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9858 $as_echo "$ac_cv_c_restrict" >&6; }
9860 case $ac_cv_c_restrict in
9862 no
) $as_echo "#define restrict /**/" >>confdefs.h
9864 *) cat >>confdefs.h
<<_ACEOF
9865 #define restrict $ac_cv_c_restrict
9871 GNULIB_GETTIMEOFDAY
=0;
9872 HAVE_GETTIMEOFDAY
=1;
9873 HAVE_STRUCT_TIMEVAL
=1;
9875 REPLACE_GETTIMEOFDAY
=0;
9876 REPLACE_STRUCT_TIMEVAL
=0;
9895 if test $gl_cv_have_include_next = yes; then
9896 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9899 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9900 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9901 $as_echo_n "(cached) " >&6
9904 if test $ac_cv_header_sys_time_h = yes; then
9907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #include <sys/time.h>
9913 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9914 *) gl_absname_cpp
="$ac_cpp" ;;
9919 gl_dirsep_regex
='[/\\]'
9922 gl_dirsep_regex
='\/'
9925 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9927 gl_header_literal_regex
=`echo 'sys/time.h' \
9928 | sed -e "$gl_make_literal_regex_sed"`
9929 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9930 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9935 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9936 sed -n "$gl_absolute_header_sed"`'"'
9938 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9944 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9946 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9948 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9950 gl_next_as_first_directive
='<'sys
/time.h
'>'
9952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9953 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9955 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9961 if test $ac_cv_header_sys_time_h != yes; then
9969 if test $ac_cv_header_sys_socket_h != yes; then
9970 for ac_header
in winsock2.h
9972 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
9974 cat >>confdefs.h
<<_ACEOF
9975 #define HAVE_WINSOCK2_H 1
9983 if test "$ac_cv_header_winsock2_h" = yes; then
9985 UNISTD_H_HAVE_WINSOCK2_H
=1
9986 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9993 $as_echo_n "checking for struct timeval... " >&6; }
9994 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 #include <sys/time.h>
10003 #if HAVE_WINSOCK2_H
10004 # include <winsock2.h>
10010 static struct timeval x; x.tv_sec = x.tv_usec;
10015 if ac_fn_c_try_compile
"$LINENO"; then :
10016 gl_cv_sys_struct_timeval
=yes
10018 gl_cv_sys_struct_timeval
=no
10020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10024 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10025 if test $gl_cv_sys_struct_timeval != yes; then
10026 HAVE_STRUCT_TIMEVAL
=0
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
10029 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
10030 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035 #if HAVE_SYS_TIME_H
10036 #include <sys/time.h>
10039 #if HAVE_WINSOCK2_H
10040 # include <winsock2.h>
10046 static struct timeval x;
10047 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
10053 if ac_fn_c_try_compile
"$LINENO"; then :
10054 gl_cv_sys_struct_timeval_tv_sec
=yes
10056 gl_cv_sys_struct_timeval_tv_sec
=no
10058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10062 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10063 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10064 REPLACE_STRUCT_TIMEVAL
=1
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10075 $as_echo_n "checking for unsigned long long int... " >&6; }
10076 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10079 ac_cv_type_unsigned_long_long_int
=yes
10080 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 /* For now, do not test the preprocessor; as of 2007 there are too many
10085 implementations with broken preprocessors. Perhaps this can
10086 be revisited in 2012. In the meantime, code should not expect
10087 #if to work with literals wider than 32 bits. */
10088 /* Test literals. */
10089 long long int ll = 9223372036854775807ll;
10090 long long int nll = -9223372036854775807LL;
10091 unsigned long long int ull = 18446744073709551615ULL;
10092 /* Test constant expressions. */
10093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10101 /* Test availability of runtime routines for shift and division. */
10102 long long int llmax = 9223372036854775807ll;
10103 unsigned long long int ullmax = 18446744073709551615ull;
10104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10105 | (llmax / ll) | (llmax % ll)
10106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10107 | (ullmax / ull) | (ullmax % ull));
10113 if ac_fn_c_try_link
"$LINENO"; then :
10116 ac_cv_type_unsigned_long_long_int
=no
10118 rm -f core conftest.err conftest.
$ac_objext \
10119 conftest
$ac_exeext conftest.
$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10123 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10124 if test $ac_cv_type_unsigned_long_long_int = yes; then
10126 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10133 $as_echo_n "checking for long long int... " >&6; }
10134 if test "${ac_cv_type_long_long_int+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10137 ac_cv_type_long_long_int
=yes
10138 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10139 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10140 if test $ac_cv_type_long_long_int = yes; then
10141 if test "$cross_compiling" = yes; then :
10144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <limits.h>
10149 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10150 # define LLONG_MAX (HALF - 1 + HALF)
10155 long long int n = 1;
10159 long long int m = n << i;
10162 if (LLONG_MAX / 2 < m)
10170 if ac_fn_c_try_run
"$LINENO"; then :
10173 ac_cv_type_long_long_int
=no
10175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10183 $as_echo "$ac_cv_type_long_long_int" >&6; }
10184 if test $ac_cv_type_long_long_int = yes; then
10186 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10195 gl_cv_c_multiarch
=no
10196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 #ifndef __APPLE_CC__
10199 not a universal capable compiler
10204 if ac_fn_c_try_compile
"$LINENO"; then :
10208 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10209 if test -n "$prev"; then
10211 i?
86 | x86_64 | ppc | ppc64
)
10212 if test -z "$arch" ||
test "$arch" = "$word"; then
10215 gl_cv_c_multiarch
=yes
10221 if test "x$word" = "x-arch"; then
10228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10229 if test $gl_cv_c_multiarch = yes; then
10230 APPLE_UNIVERSAL_BUILD
=1
10232 APPLE_UNIVERSAL_BUILD
=0
10239 if test $ac_cv_type_long_long_int = yes; then
10240 HAVE_LONG_LONG_INT
=1
10242 HAVE_LONG_LONG_INT
=0
10246 if test $ac_cv_type_unsigned_long_long_int = yes; then
10247 HAVE_UNSIGNED_LONG_LONG_INT
=1
10249 HAVE_UNSIGNED_LONG_LONG_INT
=0
10254 if test $ac_cv_header_wchar_h = yes; then
10261 if test $ac_cv_header_inttypes_h = yes; then
10268 if test $ac_cv_header_sys_types_h = yes; then
10284 if test $gl_cv_have_include_next = yes; then
10285 gl_cv_next_stdint_h
='<'stdint.h
'>'
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10288 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10289 if test "${gl_cv_next_stdint_h+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10293 if test $ac_cv_header_stdint_h = yes; then
10296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <stdint.h>
10302 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10303 *) gl_absname_cpp
="$ac_cpp" ;;
10308 gl_dirsep_regex
='[/\\]'
10311 gl_dirsep_regex
='\/'
10314 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10316 gl_header_literal_regex
=`echo 'stdint.h' \
10317 | sed -e "$gl_make_literal_regex_sed"`
10318 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10319 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10324 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10325 sed -n "$gl_absolute_header_sed"`'"'
10327 gl_cv_next_stdint_h
='<'stdint.h
'>'
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10333 $as_echo "$gl_cv_next_stdint_h" >&6; }
10335 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10337 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10338 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10339 gl_next_as_first_directive
='<'stdint.h
'>'
10341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10342 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10344 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10349 if test $ac_cv_header_stdint_h = yes; then
10356 if test $ac_cv_header_stdint_h = yes; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10358 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10359 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10362 gl_cv_header_working_stdint_h
=no
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10367 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10368 #include <stdint.h>
10369 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10370 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10371 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10375 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10376 included before <wchar.h>. */
10377 #include <stddef.h>
10378 #include <signal.h>
10380 # include <stdio.h>
10382 # include <wchar.h>
10387 int8_t a1 = INT8_MAX;
10388 int8_t a1min = INT8_MIN;
10391 int16_t a2 = INT16_MAX;
10392 int16_t a2min = INT16_MIN;
10395 int32_t a3 = INT32_MAX;
10396 int32_t a3min = INT32_MIN;
10399 int64_t a4 = INT64_MAX;
10400 int64_t a4min = INT64_MIN;
10403 uint8_t b1 = UINT8_MAX;
10405 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10408 uint16_t b2 = UINT16_MAX;
10411 uint32_t b3 = UINT32_MAX;
10414 uint64_t b4 = UINT64_MAX;
10416 int_least8_t c1 = INT8_C (0x7f);
10417 int_least8_t c1max = INT_LEAST8_MAX;
10418 int_least8_t c1min = INT_LEAST8_MIN;
10419 int_least16_t c2 = INT16_C (0x7fff);
10420 int_least16_t c2max = INT_LEAST16_MAX;
10421 int_least16_t c2min = INT_LEAST16_MIN;
10422 int_least32_t c3 = INT32_C (0x7fffffff);
10423 int_least32_t c3max = INT_LEAST32_MAX;
10424 int_least32_t c3min = INT_LEAST32_MIN;
10425 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10426 int_least64_t c4max = INT_LEAST64_MAX;
10427 int_least64_t c4min = INT_LEAST64_MIN;
10428 uint_least8_t d1 = UINT8_C (0xff);
10429 uint_least8_t d1max = UINT_LEAST8_MAX;
10430 uint_least16_t d2 = UINT16_C (0xffff);
10431 uint_least16_t d2max = UINT_LEAST16_MAX;
10432 uint_least32_t d3 = UINT32_C (0xffffffff);
10433 uint_least32_t d3max = UINT_LEAST32_MAX;
10434 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10435 uint_least64_t d4max = UINT_LEAST64_MAX;
10436 int_fast8_t e1 = INT_FAST8_MAX;
10437 int_fast8_t e1min = INT_FAST8_MIN;
10438 int_fast16_t e2 = INT_FAST16_MAX;
10439 int_fast16_t e2min = INT_FAST16_MIN;
10440 int_fast32_t e3 = INT_FAST32_MAX;
10441 int_fast32_t e3min = INT_FAST32_MIN;
10442 int_fast64_t e4 = INT_FAST64_MAX;
10443 int_fast64_t e4min = INT_FAST64_MIN;
10444 uint_fast8_t f1 = UINT_FAST8_MAX;
10445 uint_fast16_t f2 = UINT_FAST16_MAX;
10446 uint_fast32_t f3 = UINT_FAST32_MAX;
10447 uint_fast64_t f4 = UINT_FAST64_MAX;
10449 intptr_t g = INTPTR_MAX;
10450 intptr_t gmin = INTPTR_MIN;
10453 uintptr_t h = UINTPTR_MAX;
10455 intmax_t i = INTMAX_MAX;
10456 uintmax_t j = UINTMAX_MAX;
10458 #include <limits.h> /* for CHAR_BIT */
10459 #define TYPE_MINIMUM(t) \
10460 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10461 #define TYPE_MAXIMUM(t) \
10462 ((t) ((t) 0 < (t) -1 \
10464 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10467 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10468 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10470 /* Detect bug in FreeBSD 6.0 / ia64. */
10471 int check_SIG_ATOMIC:
10472 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10473 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10475 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10477 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10478 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10480 /* Detect bug in mingw. */
10482 WINT_MIN == TYPE_MINIMUM (wint_t)
10483 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10486 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10488 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10489 int check_UINT16_C:
10490 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10492 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10494 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10497 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10500 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10503 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10505 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10506 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10507 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10508 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10509 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10510 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10511 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10512 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10513 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10514 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10515 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10526 if ac_fn_c_try_compile
"$LINENO"; then :
10527 if test "$cross_compiling" = yes; then :
10528 gl_cv_header_working_stdint_h
=yes
10531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10535 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10536 #include <stdint.h>
10539 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10540 included before <wchar.h>. */
10541 #include <stddef.h>
10542 #include <signal.h>
10544 # include <stdio.h>
10546 # include <wchar.h>
10551 #include <string.h>
10552 #define MVAL(macro) MVAL1(macro)
10553 #define MVAL1(expression) #expression
10554 static const char *macro_values[] =
10588 for (mv = macro_values; *mv != NULL; mv++)
10590 const char *value = *mv;
10591 /* Test whether it looks like a cast expression. */
10592 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10593 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10594 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10595 || strncmp (value, "((int)"/*)*/, 6) == 0
10596 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10597 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10598 return mv - macro_values + 1;
10606 if ac_fn_c_try_run
"$LINENO"; then :
10607 gl_cv_header_working_stdint_h
=yes
10609 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10610 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10619 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10621 if test "$gl_cv_header_working_stdint_h" = yes; then
10624 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10626 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10627 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10628 eval as_val
=\$
$as_ac_Header
10629 if test "x$as_val" = x
""yes; then :
10630 cat >>confdefs.h
<<_ACEOF
10631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10638 if test $ac_cv_header_sys_inttypes_h = yes; then
10639 HAVE_SYS_INTTYPES_H
=1
10641 HAVE_SYS_INTTYPES_H
=0
10644 if test $ac_cv_header_sys_bitypes_h = yes; then
10645 HAVE_SYS_BITYPES_H
=1
10647 HAVE_SYS_BITYPES_H
=0
10653 if test $APPLE_UNIVERSAL_BUILD = 0; then
10656 for gltype
in ptrdiff_t size_t
; do
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10658 $as_echo_n "checking for bit size of $gltype... " >&6; }
10659 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10660 $as_echo_n "(cached) " >&6
10662 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10663 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10664 included before <wchar.h>. */
10665 #include <stddef.h>
10666 #include <signal.h>
10668 # include <stdio.h>
10670 # include <wchar.h>
10673 #include <limits.h>"; then :
10679 eval gl_cv_bitsizeof_
${gltype}=\
$result
10682 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10684 $as_echo "$ac_res" >&6; }
10685 eval result
=\
$gl_cv_bitsizeof_${gltype}
10686 if test $result = unknown
; then
10689 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10690 cat >>confdefs.h
<<_ACEOF
10691 #define BITSIZEOF_${GLTYPE} $result
10694 eval BITSIZEOF_
${GLTYPE}=\
$result
10701 for gltype
in sig_atomic_t wchar_t wint_t
; do
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10703 $as_echo_n "checking for bit size of $gltype... " >&6; }
10704 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10705 $as_echo_n "(cached) " >&6
10707 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10708 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10709 included before <wchar.h>. */
10710 #include <stddef.h>
10711 #include <signal.h>
10713 # include <stdio.h>
10715 # include <wchar.h>
10718 #include <limits.h>"; then :
10724 eval gl_cv_bitsizeof_
${gltype}=\
$result
10727 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10729 $as_echo "$ac_res" >&6; }
10730 eval result
=\
$gl_cv_bitsizeof_${gltype}
10731 if test $result = unknown
; then
10734 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10735 cat >>confdefs.h
<<_ACEOF
10736 #define BITSIZEOF_${GLTYPE} $result
10739 eval BITSIZEOF_
${GLTYPE}=\
$result
10745 for gltype
in sig_atomic_t wchar_t wint_t
; do
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10747 $as_echo_n "checking whether $gltype is signed... " >&6; }
10748 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10749 $as_echo_n "(cached) " >&6
10751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10754 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10755 included before <wchar.h>. */
10756 #include <stddef.h>
10757 #include <signal.h>
10759 # include <stdio.h>
10761 # include <wchar.h>
10764 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10773 if ac_fn_c_try_compile
"$LINENO"; then :
10778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10779 eval gl_cv_type_
${gltype}_signed
=\
$result
10782 eval ac_res
=\
$gl_cv_type_${gltype}_signed
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10784 $as_echo "$ac_res" >&6; }
10785 eval result
=\
$gl_cv_type_${gltype}_signed
10786 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10787 if test "$result" = yes; then
10788 cat >>confdefs.h
<<_ACEOF
10789 #define HAVE_SIGNED_${GLTYPE} 1
10792 eval HAVE_SIGNED_
${GLTYPE}=1
10794 eval HAVE_SIGNED_
${GLTYPE}=0
10799 gl_cv_type_ptrdiff_t_signed
=yes
10800 gl_cv_type_size_t_signed
=no
10801 if test $APPLE_UNIVERSAL_BUILD = 0; then
10804 for gltype
in ptrdiff_t size_t
; do
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10806 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10807 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10808 $as_echo_n "(cached) " >&6
10810 eval gl_cv_type_
${gltype}_suffix
=no
10811 eval result
=\
$gl_cv_type_${gltype}_signed
10812 if test "$result" = yes; then
10817 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10819 '') gltype1
='int';;
10820 l
) gltype1
='long int';;
10821 ll
) gltype1
='long long int';;
10822 i64
) gltype1
='__int64';;
10823 u
) gltype1
='unsigned int';;
10824 ul
) gltype1
='unsigned long int';;
10825 ull
) gltype1
='unsigned long long int';;
10826 ui64
)gltype1
='unsigned __int64';;
10828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10832 included before <wchar.h>. */
10833 #include <stddef.h>
10834 #include <signal.h>
10836 # include <stdio.h>
10838 # include <wchar.h>
10841 extern $gltype foo;
10842 extern $gltype1 foo;
10851 if ac_fn_c_try_compile
"$LINENO"; then :
10852 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10855 eval result
=\
$gl_cv_type_${gltype}_suffix
10856 test "$result" != no
&& break
10859 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10861 $as_echo "$ac_res" >&6; }
10862 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10863 eval result
=\
$gl_cv_type_${gltype}_suffix
10864 test "$result" = no
&& result
=
10865 eval ${GLTYPE}_SUFFIX
=\
$result
10866 cat >>confdefs.h
<<_ACEOF
10867 #define ${GLTYPE}_SUFFIX $result
10876 for gltype
in sig_atomic_t wchar_t wint_t
; do
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10878 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10879 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10880 $as_echo_n "(cached) " >&6
10882 eval gl_cv_type_
${gltype}_suffix
=no
10883 eval result
=\
$gl_cv_type_${gltype}_signed
10884 if test "$result" = yes; then
10889 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10891 '') gltype1
='int';;
10892 l
) gltype1
='long int';;
10893 ll
) gltype1
='long long int';;
10894 i64
) gltype1
='__int64';;
10895 u
) gltype1
='unsigned int';;
10896 ul
) gltype1
='unsigned long int';;
10897 ull
) gltype1
='unsigned long long int';;
10898 ui64
)gltype1
='unsigned __int64';;
10900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10904 included before <wchar.h>. */
10905 #include <stddef.h>
10906 #include <signal.h>
10908 # include <stdio.h>
10910 # include <wchar.h>
10913 extern $gltype foo;
10914 extern $gltype1 foo;
10923 if ac_fn_c_try_compile
"$LINENO"; then :
10924 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10927 eval result
=\
$gl_cv_type_${gltype}_suffix
10928 test "$result" != no
&& break
10931 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10933 $as_echo "$ac_res" >&6; }
10934 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10935 eval result
=\
$gl_cv_type_${gltype}_suffix
10936 test "$result" = no
&& result
=
10937 eval ${GLTYPE}_SUFFIX
=\
$result
10938 cat >>confdefs.h
<<_ACEOF
10939 #define ${GLTYPE}_SUFFIX $result
10946 if test $BITSIZEOF_WINT_T -lt 32; then
10947 BITSIZEOF_WINT_T
=32
10953 if test -n "$STDINT_H"; then
10954 GL_GENERATE_STDINT_H_TRUE
=
10955 GL_GENERATE_STDINT_H_FALSE
='#'
10957 GL_GENERATE_STDINT_H_TRUE
='#'
10958 GL_GENERATE_STDINT_H_FALSE
=
10967 GNULIB_STRTOIMAX
=0;
10968 GNULIB_STRTOUMAX
=0;
10969 HAVE_DECL_IMAXABS
=1;
10970 HAVE_DECL_IMAXDIV
=1;
10971 HAVE_DECL_STRTOIMAX
=1;
10972 HAVE_DECL_STRTOUMAX
=1;
10973 REPLACE_STRTOIMAX
=0;
10974 INT32_MAX_LT_INTMAX_MAX
=1;
10975 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10976 PRI_MACROS_BROKEN
=0;
10977 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10978 UINT32_MAX_LT_UINTMAX_MAX
=1;
10979 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10995 if test $gl_cv_have_include_next = yes; then
10996 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10999 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11000 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11004 if test $ac_cv_header_inttypes_h = yes; then
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include <inttypes.h>
11013 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11014 *) gl_absname_cpp
="$ac_cpp" ;;
11019 gl_dirsep_regex
='[/\\]'
11022 gl_dirsep_regex
='\/'
11025 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11027 gl_header_literal_regex
=`echo 'inttypes.h' \
11028 | sed -e "$gl_make_literal_regex_sed"`
11029 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11035 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11036 sed -n "$gl_absolute_header_sed"`'"'
11038 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11044 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11046 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11048 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11050 gl_next_as_first_directive
='<'inttypes.h
'>'
11052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11053 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11055 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11070 $as_echo_n "checking for 64-bit off_t... " >&6; }
11071 if test "${gl_cv_type_off_t_64+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #include <sys/types.h>
11077 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11087 if ac_fn_c_try_compile
"$LINENO"; then :
11088 gl_cv_type_off_t_64
=yes
11090 gl_cv_type_off_t_64
=no
11092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11096 $as_echo "$gl_cv_type_off_t_64" >&6; }
11097 if test $gl_cv_type_off_t_64 = no
; then
11098 WINDOWS_64_BIT_OFF_T
=1
11100 WINDOWS_64_BIT_OFF_T
=0
11102 WINDOWS_64_BIT_ST_SIZE
=1
11105 WINDOWS_64_BIT_OFF_T
=0
11106 WINDOWS_64_BIT_ST_SIZE
=0
11123 GNULIB_UTIMENSAT
=0;
11137 REPLACE_FUTIMENS
=0;
11143 REPLACE_UTIMENSAT
=0;
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11149 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11150 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11153 rm -f conftest.sym conftest.
file
11154 echo >conftest.
file
11155 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11156 if test "$cross_compiling" = yes; then :
11158 # Guess yes on glibc systems.
11159 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
11160 # If we don't know, assume the worst.
11161 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
11165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 $ac_includes_default
11172 /* Linux will dereference the symlink and fail, as required by
11173 POSIX. That is better in the sense that it means we will not
11174 have to compile and use the lstat wrapper. */
11175 return lstat ("conftest.sym/", &sbuf) == 0;
11181 if ac_fn_c_try_run
"$LINENO"; then :
11182 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
11184 gl_cv_func_lstat_dereferences_slashed_symlink
=no
11186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11191 # If the 'ln -s' command failed, then we probably don't even
11192 # have an lstat function.
11193 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
11195 rm -f conftest.sym conftest.
file
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11199 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11200 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11203 cat >>confdefs.h
<<_ACEOF
11204 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11212 GNULIB_NANOSLEEP
=0;
11216 HAVE_DECL_LOCALTIME_R
=1;
11220 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
11221 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
11222 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
11223 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11242 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11243 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/select.h>
11258 if ac_fn_c_try_compile
"$LINENO"; then :
11259 gl_cv_header_sys_select_h_selfcontained
=yes
11261 gl_cv_header_sys_select_h_selfcontained
=no
11263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11264 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 #include <sys/select.h>
11271 int memset; int bzero;
11277 if ac_fn_c_try_compile
"$LINENO"; then :
11278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #include <sys/select.h>
11286 #define memset nonexistent_memset
11291 void *memset (void *, int, unsigned long);
11293 #define bzero nonexistent_bzero
11298 void bzero (void *, unsigned long);
11307 if ac_fn_c_try_link
"$LINENO"; then :
11310 gl_cv_header_sys_select_h_selfcontained
=no
11312 rm -f core conftest.err conftest.
$ac_objext \
11313 conftest
$ac_exeext conftest.
$ac_ext
11316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11321 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11331 if test $gl_cv_have_include_next = yes; then
11332 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11335 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11336 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11340 if test $ac_cv_header_sys_select_h = yes; then
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <sys/select.h>
11349 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11350 *) gl_absname_cpp
="$ac_cpp" ;;
11355 gl_dirsep_regex
='[/\\]'
11358 gl_dirsep_regex
='\/'
11361 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11363 gl_header_literal_regex
=`echo 'sys/select.h' \
11364 | sed -e "$gl_make_literal_regex_sed"`
11365 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11366 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11371 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11372 sed -n "$gl_absolute_header_sed"`'"'
11374 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11380 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11382 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
11384 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11386 gl_next_as_first_directive
='<'sys
/select.h
'>'
11388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11389 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
11391 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
11396 if test $ac_cv_header_sys_select_h = yes; then
11397 HAVE_SYS_SELECT_H
=1
11399 HAVE_SYS_SELECT_H
=0
11406 if test $ac_cv_header_sys_socket_h != yes; then
11407 for ac_header
in winsock2.h
11409 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11410 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
11411 cat >>confdefs.h
<<_ACEOF
11412 #define HAVE_WINSOCK2_H 1
11420 if test "$ac_cv_header_winsock2_h" = yes; then
11422 UNISTD_H_HAVE_WINSOCK2_H
=1
11423 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11435 GNULIB_PTHREAD_SIGMASK
=0;
11437 GNULIB_SIGNAL_H_SIGPIPE
=0;
11438 GNULIB_SIGPROCMASK
=0;
11439 GNULIB_SIGACTION
=0;
11440 HAVE_POSIX_SIGNALBLOCKING
=1;
11441 HAVE_PTHREAD_SIGMASK
=1;
11446 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
11448 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
11450 HAVE_SIGHANDLER_T
=1;
11451 REPLACE_PTHREAD_SIGMASK
=0;
11459 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11460 #include <signal.h>
11461 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11462 #include <sys/types.h>
11465 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
11467 cat >>confdefs.h
<<_ACEOF
11468 #define HAVE_SIGSET_T 1
11471 gl_cv_type_sigset_t
=yes
11473 gl_cv_type_sigset_t
=no
11476 if test $gl_cv_type_sigset_t != yes; then
11480 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11481 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11485 cat >>confdefs.h
<<_ACEOF
11493 if test $ac_cv_header_sys_socket_h = no
; then
11494 for ac_header
in ws2tcpip.h
11496 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11497 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
11498 cat >>confdefs.h
<<_ACEOF
11499 #define HAVE_WS2TCPIP_H 1
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11509 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11510 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11516 #include <stdbool.h>
11518 "error: bool is not defined"
11521 "error: false is not defined"
11524 "error: false is not 0"
11527 "error: true is not defined"
11530 "error: true is not 1"
11532 #ifndef __bool_true_false_are_defined
11533 "error: __bool_true_false_are_defined is not defined"
11536 struct s { _Bool s: 1; _Bool t; } s;
11538 char a[true == 1 ? 1 : -1];
11539 char b[false == 0 ? 1 : -1];
11540 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11541 char d[(bool) 0.5 == true ? 1 : -1];
11542 /* See body of main program for 'e'. */
11543 char f[(_Bool) 0.0 == false ? 1 : -1];
11545 char h[sizeof (_Bool)];
11546 char i[sizeof s.t];
11547 enum { j = false, k = true, l = false * true, m = true * 256 };
11548 /* The following fails for
11549 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11551 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11552 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11553 /* Catch a bug in an HP-UX C compiler. See
11554 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11555 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11567 /* Refer to every declared value, to avoid compiler optimizations. */
11568 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11569 + !m + !n + !o + !p + !q + !pq);
11575 if ac_fn_c_try_compile
"$LINENO"; then :
11576 ac_cv_header_stdbool_h
=yes
11578 ac_cv_header_stdbool_h
=no
11580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11583 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11584 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11585 if test "x$ac_cv_type__Bool" = x
""yes; then :
11587 cat >>confdefs.h
<<_ACEOF
11588 #define HAVE__BOOL 1
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11601 $as_echo_n "checking for wchar_t... " >&6; }
11602 if test "${gt_cv_c_wchar_t+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #include <stddef.h>
11608 wchar_t foo = (wchar_t)'\0';
11617 if ac_fn_c_try_compile
"$LINENO"; then :
11618 gt_cv_c_wchar_t
=yes
11622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11625 $as_echo "$gt_cv_c_wchar_t" >&6; }
11626 if test $gt_cv_c_wchar_t = yes; then
11628 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11641 GNULIB_FPRINTF_POSIX
=0;
11657 GNULIB_OBSTACK_PRINTF
=0;
11658 GNULIB_OBSTACK_PRINTF_POSIX
=0;
11663 GNULIB_PRINTF_POSIX
=0;
11672 GNULIB_SPRINTF_POSIX
=0;
11673 GNULIB_STDIO_H_NONBLOCKING
=0;
11674 GNULIB_STDIO_H_SIGPIPE
=0;
11676 GNULIB_VASPRINTF
=0;
11681 GNULIB_VFPRINTF_POSIX
=0;
11683 GNULIB_VPRINTF_POSIX
=0;
11684 GNULIB_VSNPRINTF
=0;
11685 GNULIB_VSPRINTF_POSIX
=0;
11686 HAVE_DECL_FPURGE
=1;
11687 HAVE_DECL_FSEEKO
=1;
11688 HAVE_DECL_FTELLO
=1;
11689 HAVE_DECL_GETDELIM
=1;
11690 HAVE_DECL_GETLINE
=1;
11691 HAVE_DECL_OBSTACK_PRINTF
=1;
11692 HAVE_DECL_SNPRINTF
=1;
11693 HAVE_DECL_VSNPRINTF
=1;
11714 REPLACE_GETDELIM
=0;
11716 REPLACE_OBSTACK_PRINTF
=0;
11722 REPLACE_RENAMEAT
=0;
11723 REPLACE_SNPRINTF
=0;
11725 REPLACE_STDIO_READ_FUNCS
=0;
11726 REPLACE_STDIO_WRITE_FUNCS
=0;
11728 REPLACE_VASPRINTF
=0;
11729 REPLACE_VDPRINTF
=0;
11730 REPLACE_VFPRINTF
=0;
11732 REPLACE_VSNPRINTF
=0;
11733 REPLACE_VSPRINTF
=0;
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11736 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11737 if test "${ac_cv_struct_tm+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 #include <sys/types.h>
11749 int *p = &tm.tm_sec;
11755 if ac_fn_c_try_compile
"$LINENO"; then :
11756 ac_cv_struct_tm
=time.h
11758 ac_cv_struct_tm
=sys
/time.h
11760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11763 $as_echo "$ac_cv_struct_tm" >&6; }
11764 if test $ac_cv_struct_tm = sys
/time.h
; then
11766 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11770 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11771 #include <$ac_cv_struct_tm>
11774 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
11776 cat >>confdefs.h
<<_ACEOF
11777 #define HAVE_STRUCT_TM_TM_ZONE 1
11783 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11785 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11788 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11790 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
11796 cat >>confdefs.h
<<_ACEOF
11797 #define HAVE_DECL_TZNAME $ac_have_decl
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11801 $as_echo_n "checking for tzname... " >&6; }
11802 if test "${ac_cv_var_tzname+set}" = set; then :
11803 $as_echo_n "(cached) " >&6
11805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 #if !HAVE_DECL_TZNAME
11809 extern char *tzname[];
11815 return tzname[0][0];
11820 if ac_fn_c_try_link
"$LINENO"; then :
11821 ac_cv_var_tzname
=yes
11823 ac_cv_var_tzname
=no
11825 rm -f core conftest.err conftest.
$ac_objext \
11826 conftest
$ac_exeext conftest.
$ac_ext
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11829 $as_echo "$ac_cv_var_tzname" >&6; }
11830 if test $ac_cv_var_tzname = yes; then
11832 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11838 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11840 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
11842 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11851 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11852 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
11858 cat >>confdefs.h
<<_ACEOF
11859 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11864 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11865 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
11871 cat >>confdefs.h
<<_ACEOF
11872 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11878 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11879 if test "${ac_cv_header_stat_broken+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <sys/types.h>
11885 #include <sys/stat.h>
11887 #if defined S_ISBLK && defined S_IFDIR
11888 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11891 #if defined S_ISBLK && defined S_IFCHR
11892 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11895 #if defined S_ISLNK && defined S_IFREG
11896 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11899 #if defined S_ISSOCK && defined S_IFREG
11900 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11904 if ac_fn_c_try_compile
"$LINENO"; then :
11905 ac_cv_header_stat_broken
=no
11907 ac_cv_header_stat_broken
=yes
11909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11912 $as_echo "$ac_cv_header_stat_broken" >&6; }
11913 if test $ac_cv_header_stat_broken = yes; then
11915 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11921 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11922 if test "x$ac_cv_type_mode_t" = x
""yes; then :
11926 cat >>confdefs.h
<<_ACEOF
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11935 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11936 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11946 static struct timespec x; x.tv_sec = x.tv_nsec;
11951 if ac_fn_c_try_compile
"$LINENO"; then :
11952 gl_cv_sys_struct_timespec_in_time_h
=yes
11954 gl_cv_sys_struct_timespec_in_time_h
=no
11956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11959 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11961 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
11962 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
11963 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
11964 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11965 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11968 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11969 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
11972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 #include <sys/time.h>
11979 static struct timespec x; x.tv_sec = x.tv_nsec;
11984 if ac_fn_c_try_compile
"$LINENO"; then :
11985 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
11987 gl_cv_sys_struct_timespec_in_sys_time_h
=no
11989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11992 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11993 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11994 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11997 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11998 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003 #include <pthread.h>
12008 static struct timespec x; x.tv_sec = x.tv_nsec;
12013 if ac_fn_c_try_compile
"$LINENO"; then :
12014 gl_cv_sys_struct_timespec_in_pthread_h
=yes
12016 gl_cv_sys_struct_timespec_in_pthread_h
=no
12018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12021 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12022 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12023 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
12042 if test $gl_cv_have_include_next = yes; then
12043 gl_cv_next_time_h
='<'time.h
'>'
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12046 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12047 if test "${gl_cv_next_time_h+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12057 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12058 *) gl_absname_cpp
="$ac_cpp" ;;
12063 gl_dirsep_regex
='[/\\]'
12066 gl_dirsep_regex
='\/'
12069 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12071 gl_header_literal_regex
=`echo 'time.h' \
12072 | sed -e "$gl_make_literal_regex_sed"`
12073 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12074 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12079 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12080 sed -n "$gl_absolute_header_sed"`'"'
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12085 $as_echo "$gl_cv_next_time_h" >&6; }
12087 NEXT_TIME_H
=$gl_cv_next_time_h
12089 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12091 gl_next_as_first_directive
='<'time.h
'>'
12093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12094 gl_next_as_first_directive
=$gl_cv_next_time_h
12096 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12113 $as_echo_n "checking whether the utimes function works... " >&6; }
12114 if test "${gl_cv_func_working_utimes+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12118 if test "$cross_compiling" = yes; then :
12119 gl_cv_func_working_utimes
=no
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 #include <sys/types.h>
12125 #include <sys/stat.h>
12127 #include <sys/time.h>
12129 #include <unistd.h>
12130 #include <stdlib.h>
12135 inorder (time_t a, time_t b, time_t c)
12137 return a <= b && b <= c;
12144 char const *file = "conftest.utimes";
12145 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12147 /* Test whether utimes() essentially works. */
12150 FILE *f = fopen (file, "w");
12153 else if (fclose (f) != 0)
12155 else if (utimes (file, timeval) != 0)
12157 else if (lstat (file, &sbuf) != 0)
12159 else if (!(sbuf.st_atime == timeval[0].tv_sec
12160 && sbuf.st_mtime == timeval[1].tv_sec))
12162 if (unlink (file) != 0)
12166 /* Test whether utimes() with a NULL argument sets the file's timestamp
12167 to the current time. Use 'fstat' as well as 'time' to
12168 determine the "current" time, to accommodate NFS file systems
12169 if there is a time skew between the host and the NFS server. */
12171 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12177 struct stat st0, st1, st2;
12178 if (time (&t0) == (time_t) -1)
12180 else if (fstat (fd, &st0) != 0)
12182 else if (utimes (file, timeval) != 0)
12184 else if (utimes (file, NULL) != 0)
12186 else if (fstat (fd, &st1) != 0)
12188 else if (write (fd, "\n", 1) != 1)
12190 else if (fstat (fd, &st2) != 0)
12192 else if (time (&t2) == (time_t) -1)
12196 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12197 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12198 if (! (st1.st_atime == st1.st_mtime))
12200 if (! (m_ok_POSIX || m_ok_NFS))
12203 if (close (fd) != 0)
12206 if (unlink (file) != 0)
12210 /* Test whether utimes() with a NULL argument works on read-only files. */
12212 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12215 else if (close (fd) != 0)
12217 else if (utimes (file, NULL) != 0)
12219 if (unlink (file) != 0)
12227 if ac_fn_c_try_run
"$LINENO"; then :
12228 gl_cv_func_working_utimes
=yes
12230 gl_cv_func_working_utimes
=no
12232 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12233 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12238 $as_echo "$gl_cv_func_working_utimes" >&6; }
12240 if test $gl_cv_func_working_utimes = yes; then
12242 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12251 $as_echo_n "checking for struct utimbuf... " >&6; }
12252 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #if HAVE_SYS_TIME_H
12258 #include <sys/time.h>
12261 #ifdef HAVE_UTIME_H
12268 static struct utimbuf x; x.actime = x.modtime;
12273 if ac_fn_c_try_compile
"$LINENO"; then :
12274 gl_cv_sys_struct_utimbuf
=yes
12276 gl_cv_sys_struct_utimbuf
=no
12278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12281 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12283 if test $gl_cv_sys_struct_utimbuf = yes; then
12285 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12303 GL_COND_LIBTOOL_TRUE
=
12304 GL_COND_LIBTOOL_FALSE
='#'
12306 GL_COND_LIBTOOL_TRUE
='#'
12307 GL_COND_LIBTOOL_FALSE
=
12310 gl_cond_libtool
=false
12323 gl_source_base
='lib'
12326 if test $ac_cv_func_alloca_works = no
; then
12330 # Define an additional variable used in the Makefile substitution.
12331 if test $ac_cv_working_alloca_h = yes; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12333 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12334 if test "${gl_cv_rpl_alloca+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
12348 gl_cv_rpl_alloca
=yes
12350 gl_cv_rpl_alloca
=no
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12357 $as_echo "$gl_cv_rpl_alloca" >&6; }
12358 if test $gl_cv_rpl_alloca = yes; then
12360 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12370 if test -n "$ALLOCA_H"; then
12371 GL_GENERATE_ALLOCA_H_TRUE
=
12372 GL_GENERATE_ALLOCA_H_FALSE
='#'
12374 GL_GENERATE_ALLOCA_H_TRUE
='#'
12375 GL_GENERATE_ALLOCA_H_FALSE
=
12383 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12384 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12386 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12387 # programs in the package would end up linked with that potentially-shared
12388 # library, inducing unnecessary run-time overhead.
12391 gl_saved_libs
=$LIBS
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12393 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12394 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12397 ac_func_search_save_LIBS
=$LIBS
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12407 char clock_gettime ();
12411 return clock_gettime ();
12416 for ac_lib
in '' rt posix4
; do
12417 if test -z "$ac_lib"; then
12418 ac_res
="none required"
12421 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12423 if ac_fn_c_try_link
"$LINENO"; then :
12424 ac_cv_search_clock_gettime
=$ac_res
12426 rm -f core conftest.err conftest.
$ac_objext \
12428 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12432 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12435 ac_cv_search_clock_gettime
=no
12437 rm conftest.
$ac_ext
12438 LIBS
=$ac_func_search_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12441 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12442 ac_res
=$ac_cv_search_clock_gettime
12443 if test "$ac_res" != no
; then :
12444 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12445 test "$ac_cv_search_clock_gettime" = "none required" ||
12446 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
12449 for ac_func
in clock_gettime clock_settime
12451 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12453 eval as_val
=\$
$as_ac_var
12454 if test "x$as_val" = x
""yes; then :
12455 cat >>confdefs.h
<<_ACEOF
12456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462 LIBS
=$gl_saved_libs
12488 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12491 if test $HAVE_DUP2 = 1; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12493 $as_echo_n "checking whether dup2 works... " >&6; }
12494 if test "${gl_cv_func_dup2_works+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12497 if test "$cross_compiling" = yes; then :
12499 mingw
*) # on this platform, dup2 always returns 0 for success
12500 gl_cv_func_dup2_works
="guessing no" ;;
12501 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
12502 gl_cv_func_dup2_works
="guessing no" ;;
12503 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12504 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12505 gl_cv_func_dup2_works
="guessing no" ;;
12506 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12507 gl_cv_func_dup2_works
="guessing no" ;;
12508 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12509 gl_cv_func_dup2_works
="guessing no" ;;
12510 *) gl_cv_func_dup2_works
="guessing yes" ;;
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12516 #include <unistd.h>
12524 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12527 if (dup2 (1, 1) == 0)
12530 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12534 if (dup2 (0, 0) != -1)
12536 /* Many gnulib modules require POSIX conformance of EBADF. */
12537 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12546 if ac_fn_c_try_run
"$LINENO"; then :
12547 gl_cv_func_dup2_works
=yes
12549 gl_cv_func_dup2_works
=no
12551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12558 $as_echo "$gl_cv_func_dup2_works" >&6; }
12559 case "$gl_cv_func_dup2_works" in
12568 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
12577 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
12598 # Persuade glibc <stdlib.h> to declare getloadavg().
12603 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12604 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12606 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12607 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12610 gl_func_getloadavg_done
=no
12612 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12613 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12614 # to get the right answer into the cache.
12615 # For kstat on solaris, we need to test for libelf and libkvm to force the
12616 # definition of SVR4 below.
12617 if test $gl_func_getloadavg_done = no
; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12619 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12620 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12623 ac_check_lib_save_LIBS
=$LIBS
12625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply. */
12638 return elf_begin ();
12643 if ac_fn_c_try_link
"$LINENO"; then :
12644 ac_cv_lib_elf_elf_begin
=yes
12646 ac_cv_lib_elf_elf_begin
=no
12648 rm -f core conftest.err conftest.
$ac_objext \
12649 conftest
$ac_exeext conftest.
$ac_ext
12650 LIBS
=$ac_check_lib_save_LIBS
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12653 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12654 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12659 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12660 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12663 ac_check_lib_save_LIBS
=$LIBS
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12678 return kvm_open ();
12683 if ac_fn_c_try_link
"$LINENO"; then :
12684 ac_cv_lib_kvm_kvm_open
=yes
12686 ac_cv_lib_kvm_kvm_open
=no
12688 rm -f core conftest.err conftest.
$ac_objext \
12689 conftest
$ac_exeext conftest.
$ac_ext
12690 LIBS
=$ac_check_lib_save_LIBS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12693 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12694 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12698 # Check for the 4.4BSD definition of getloadavg.
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12700 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12701 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 ac_check_lib_save_LIBS
=$LIBS
12705 LIBS
="-lutil $LIBS"
12706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12715 char getloadavg ();
12719 return getloadavg ();
12724 if ac_fn_c_try_link
"$LINENO"; then :
12725 ac_cv_lib_util_getloadavg
=yes
12727 ac_cv_lib_util_getloadavg
=no
12729 rm -f core conftest.err conftest.
$ac_objext \
12730 conftest
$ac_exeext conftest.
$ac_ext
12731 LIBS
=$ac_check_lib_save_LIBS
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12734 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12735 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12736 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
12741 if test $gl_func_getloadavg_done = no
; then
12742 # There is a commonly available library for RS/6000 AIX.
12743 # Since it is not a standard part of AIX, it might be installed locally.
12744 gl_getloadavg_LIBS
=$LIBS
12745 LIBS
="-L/usr/local/lib $LIBS"
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12747 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12748 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 ac_check_lib_save_LIBS
=$LIBS
12752 LIBS
="-lgetloadavg $LIBS"
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char getloadavg ();
12766 return getloadavg ();
12771 if ac_fn_c_try_link
"$LINENO"; then :
12772 ac_cv_lib_getloadavg_getloadavg
=yes
12774 ac_cv_lib_getloadavg_getloadavg
=no
12776 rm -f core conftest.err conftest.
$ac_objext \
12777 conftest
$ac_exeext conftest.
$ac_ext
12778 LIBS
=$ac_check_lib_save_LIBS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12781 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12782 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12783 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
12785 LIBS
=$gl_getloadavg_LIBS
12790 # Set up the replacement function if necessary.
12791 if test $gl_func_getloadavg_done = no
; then
12794 # Solaris has libkstat which does not require root.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12796 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12797 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_check_lib_save_LIBS
=$LIBS
12801 LIBS
="-lkstat $LIBS"
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12811 char kstat_open ();
12815 return kstat_open ();
12820 if ac_fn_c_try_link
"$LINENO"; then :
12821 ac_cv_lib_kstat_kstat_open
=yes
12823 ac_cv_lib_kstat_kstat_open
=no
12825 rm -f core conftest.err conftest.
$ac_objext \
12826 conftest
$ac_exeext conftest.
$ac_ext
12827 LIBS
=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12830 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12831 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12832 cat >>confdefs.h
<<_ACEOF
12833 #define HAVE_LIBKSTAT 1
12836 LIBS
="-lkstat $LIBS"
12840 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
12842 # AIX has libperfstat which does not require root
12843 if test $gl_func_getloadavg_done = no
; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12845 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12846 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 ac_check_lib_save_LIBS
=$LIBS
12850 LIBS
="-lperfstat $LIBS"
12851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12860 char perfstat_cpu_total ();
12864 return perfstat_cpu_total ();
12869 if ac_fn_c_try_link
"$LINENO"; then :
12870 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
12872 ac_cv_lib_perfstat_perfstat_cpu_total
=no
12874 rm -f core conftest.err conftest.
$ac_objext \
12875 conftest
$ac_exeext conftest.
$ac_ext
12876 LIBS
=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12879 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12880 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
12881 cat >>confdefs.h
<<_ACEOF
12882 #define HAVE_LIBPERFSTAT 1
12885 LIBS
="-lperfstat $LIBS"
12889 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
12892 if test $gl_func_getloadavg_done = no
; then
12893 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12894 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12895 gl_func_getloadavg_done
=yes
12897 $as_echo "#define DGUX 1" >>confdefs.h
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12900 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12901 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12904 ac_check_lib_save_LIBS
=$LIBS
12906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12915 char dg_sys_info ();
12919 return dg_sys_info ();
12924 if ac_fn_c_try_link
"$LINENO"; then :
12925 ac_cv_lib_dgc_dg_sys_info
=yes
12927 ac_cv_lib_dgc_dg_sys_info
=no
12929 rm -f core conftest.err conftest.
$ac_objext \
12930 conftest
$ac_exeext conftest.
$ac_ext
12931 LIBS
=$ac_check_lib_save_LIBS
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12934 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12935 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12936 cat >>confdefs.h
<<_ACEOF
12937 #define HAVE_LIBDGC 1
12952 if test "x$gl_save_LIBS" = x
; then
12953 GETLOADAVG_LIBS
=$LIBS
12955 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
12960 # Test whether the system declares getloadavg. Solaris has the function
12961 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
12962 for ac_header
in sys
/loadavg.h
12964 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
12965 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
12966 cat >>confdefs.h
<<_ACEOF
12967 #define HAVE_SYS_LOADAVG_H 1
12974 if test $ac_cv_header_sys_loadavg_h = yes; then
12975 HAVE_SYS_LOADAVG_H
=1
12977 HAVE_SYS_LOADAVG_H
=0
12979 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
12980 # include <sys/loadavg.h>
12982 #include <stdlib.h>
12984 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
12987 HAVE_DECL_GETLOADAVG
=0
12991 if test $HAVE_GETLOADAVG = 0; then
13000 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
13003 # Figure out what our getloadavg.c needs.
13005 # On HPUX9, an unprivileged user can get load averages this way.
13006 if test $gl_func_getloadavg_done = no
; then
13007 for ac_func
in pstat_getdynamic
13009 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13010 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
13011 cat >>confdefs.h
<<_ACEOF
13012 #define HAVE_PSTAT_GETDYNAMIC 1
13014 gl_func_getloadavg_done
=yes
13020 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13021 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13022 # Irix 4.0.5F has the header but not the library.
13023 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13024 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13025 gl_func_getloadavg_done
=yes
13027 $as_echo "#define SVR4 1" >>confdefs.h
13031 if test $gl_func_getloadavg_done = no
; then
13032 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13033 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
13034 gl_func_getloadavg_done
=yes
13036 $as_echo "#define UMAX 1" >>confdefs.h
13039 $as_echo "#define UMAX4_3 1" >>confdefs.h
13046 if test $gl_func_getloadavg_done = no
; then
13047 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13048 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
13049 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13056 if test $gl_func_getloadavg_done = no
; then
13057 for ac_header
in mach
/mach.h
13059 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13060 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
13061 cat >>confdefs.h
<<_ACEOF
13062 #define HAVE_MACH_MACH_H 1
13071 for ac_header
in nlist.h
13073 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
13075 cat >>confdefs.h
<<_ACEOF
13076 #define HAVE_NLIST_H 1
13078 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13080 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
13082 cat >>confdefs.h
<<_ACEOF
13083 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13096 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13097 x.n_un.n_name = "";
13105 if ac_fn_c_try_link
"$LINENO"; then :
13107 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13110 rm -f core conftest.err conftest.
$ac_objext \
13111 conftest
$ac_exeext conftest.
$ac_ext
13123 GNULIB_GETLOADAVG
=1
13134 if test $REPLACE_GETOPT = 1; then
13143 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13153 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13158 GNULIB_GL_UNISTD_H_GETOPT
=1
13169 if test -n "$gl_replace_getopt"; then :
13176 if test $REPLACE_GETOPT = 1; then
13180 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13186 if test $REPLACE_GETOPT = 1; then
13195 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13205 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13210 GNULIB_GL_UNISTD_H_GETOPT
=1
13224 gl_gettimeofday_timezone
=void
13225 if test $ac_cv_func_gettimeofday != yes; then
13226 HAVE_GETTIMEOFDAY
=0
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13232 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13233 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13236 if test "$cross_compiling" = yes; then :
13237 # When cross-compiling:
13239 # Guess all is fine on glibc systems.
13240 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
13241 # If we don't know, assume the worst.
13242 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
13246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <string.h>
13249 #include <sys/time.h>
13251 #include <stdlib.h>
13259 struct tm saved_lt;
13261 lt = localtime (&t);
13263 gettimeofday (&tv, NULL);
13264 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13270 if ac_fn_c_try_run
"$LINENO"; then :
13271 gl_cv_func_gettimeofday_clobber
=no
13273 gl_cv_func_gettimeofday_clobber
=yes
13275 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13276 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13281 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13283 case "$gl_cv_func_gettimeofday_clobber" in
13285 REPLACE_GETTIMEOFDAY
=1
13288 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13291 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13295 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13301 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13302 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 #include <sys/time.h>
13309 int gettimeofday (struct timeval *restrict, void *restrict);
13314 /* glibc uses struct timezone * rather than the POSIX void *
13315 if _GNU_SOURCE is defined. However, since the only portable
13316 use of gettimeofday uses NULL as the second parameter, and
13317 since the glibc definition is actually more typesafe, it is
13318 not worth wrapping this to get a compliant signature. */
13319 int (*f) (struct timeval *restrict, void *restrict)
13322 return !(x | c.tv_sec | c.tv_usec);
13328 if ac_fn_c_try_compile
"$LINENO"; then :
13329 gl_cv_func_gettimeofday_posix_signature
=yes
13331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <sys/time.h>
13334 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13344 if ac_fn_c_try_compile
"$LINENO"; then :
13345 gl_cv_func_gettimeofday_posix_signature
=almost
13347 gl_cv_func_gettimeofday_posix_signature
=no
13349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13354 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13355 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
13356 gl_gettimeofday_timezone
='struct timezone'
13357 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13358 REPLACE_GETTIMEOFDAY
=1
13360 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13361 REPLACE_GETTIMEOFDAY
=1
13366 cat >>confdefs.h
<<_ACEOF
13367 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13371 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
13380 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
13383 for ac_header
in sys
/timeb.h
13385 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13386 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
13387 cat >>confdefs.h
<<_ACEOF
13388 #define HAVE_SYS_TIMEB_H 1
13395 for ac_func
in _ftime
13397 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
13398 if test "x$ac_cv_func__ftime" = x
""yes; then :
13399 cat >>confdefs.h
<<_ACEOF
13400 #define HAVE__FTIME 1
13413 GNULIB_GETTIMEOFDAY
=1
13425 if test $ac_cv_func_lstat = yes; then
13427 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13436 if test $REPLACE_LSTAT = 1; then
13445 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
13469 if test $APPLE_UNIVERSAL_BUILD = 1; then
13470 # A universal build on Apple Mac OS X platforms.
13471 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13472 # But we need a configuration result that is valid in both modes.
13473 gl_cv_func_working_mktime
=no
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13476 $as_echo_n "checking for working mktime... " >&6; }
13477 if test "${gl_cv_func_working_mktime+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13480 if test "$cross_compiling" = yes; then :
13481 gl_cv_func_working_mktime
=no
13483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 /* Test program from Paul Eggert and Tony Leneis. */
13486 #include <limits.h>
13487 #include <stdlib.h>
13490 #ifdef HAVE_UNISTD_H
13491 # include <unistd.h>
13495 # define alarm(X) /* empty */
13498 /* Work around redefinition to rpl_putenv by other config tests. */
13501 static time_t time_t_max;
13502 static time_t time_t_min;
13504 /* Values we'll use to set the TZ environment variable. */
13505 static char *tz_strings[] = {
13506 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13507 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13509 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13511 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13512 Based on a problem report from Andreas Jaeger. */
13514 spring_forward_gap ()
13516 /* glibc (up to about 1998-10-07) failed this test. */
13519 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13520 instead of "TZ=America/Vancouver" in order to detect the bug even
13521 on systems that don't support the Olson extension, or don't have the
13522 full zoneinfo tables installed. */
13523 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13532 return mktime (&tm) != (time_t) -1;
13536 mktime_test1 (time_t now)
13539 return ! (lt = localtime (&now)) || mktime (lt) == now;
13543 mktime_test (time_t now)
13545 return (mktime_test1 (now)
13546 && mktime_test1 ((time_t) (time_t_max - now))
13547 && mktime_test1 ((time_t) (time_t_min + now)));
13553 /* Based on code from Ariel Faigon. */
13563 return tm.tm_mon == 2 && tm.tm_mday == 31;
13567 bigtime_test (int j)
13571 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13572 now = mktime (&tm);
13573 if (now != (time_t) -1)
13575 struct tm *lt = localtime (&now);
13577 && lt->tm_year == tm.tm_year
13578 && lt->tm_mon == tm.tm_mon
13579 && lt->tm_mday == tm.tm_mday
13580 && lt->tm_hour == tm.tm_hour
13581 && lt->tm_min == tm.tm_min
13582 && lt->tm_sec == tm.tm_sec
13583 && lt->tm_yday == tm.tm_yday
13584 && lt->tm_wday == tm.tm_wday
13585 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13586 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13595 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13596 ignoring leap seconds. */
13597 unsigned long int answer = 2527315200UL;
13601 tm.tm_year = 2050 - 1900;
13604 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13607 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13608 instead of "TZ=America/Vancouver" in order to detect the bug even
13609 on systems that don't support the Olson extension, or don't have the
13610 full zoneinfo tables installed. */
13611 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13615 /* Check that the result is either a failure, or close enough
13616 to the correct answer that we can assume the discrepancy is
13617 due to leap seconds. */
13618 return (t == (time_t) -1
13619 || (0 < t && answer - 120 <= t && t <= answer + 120));
13628 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13629 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13631 /* This test makes some buggy mktime implementations loop.
13632 Give up after 60 seconds; a mktime slower than that
13633 isn't worth using anyway. */
13636 time_t_max = (! time_t_signed
13638 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13640 time_t_min = (! time_t_signed
13642 : time_t_signed_magnitude
13646 delta = time_t_max / 997; /* a suitable prime number */
13647 for (i = 0; i < N_STRINGS; i++)
13650 putenv (tz_strings[i]);
13652 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13653 if (! mktime_test (t))
13655 if ((result & 2) == 0
13656 && ! (mktime_test ((time_t) 1)
13657 && mktime_test ((time_t) (60 * 60))
13658 && mktime_test ((time_t) (60 * 60 * 24))))
13661 for (j = 1; (result & 4) == 0; j <<= 1)
13663 if (! bigtime_test (j))
13665 if (INT_MAX / 2 < j)
13668 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13671 if (! irix_6_4_bug ())
13673 if (! spring_forward_gap ())
13675 if (! year_2050_test ())
13680 if ac_fn_c_try_run
"$LINENO"; then :
13681 gl_cv_func_working_mktime
=yes
13683 gl_cv_func_working_mktime
=no
13685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13692 $as_echo "$gl_cv_func_working_mktime" >&6; }
13694 if test $gl_cv_func_working_mktime = no
; then
13700 if test $REPLACE_MKTIME = 1; then
13709 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
13732 if test $ac_cv_func_pselect = yes; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13734 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13735 if test "${gl_cv_sig_pselect+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 #include <sys/select.h>
13745 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13746 struct timespec const *restrict,
13747 sigset_t const *restrict) = pselect;
13753 if ac_fn_c_try_link
"$LINENO"; then :
13754 gl_cv_sig_pselect
=yes
13756 gl_cv_sig_pselect
=no
13758 rm -f core conftest.err conftest.
$ac_objext \
13759 conftest
$ac_exeext conftest.
$ac_ext
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13762 $as_echo "$gl_cv_sig_pselect" >&6; }
13765 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
13769 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
13778 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
13796 LIB_PTHREAD_SIGMASK
=
13799 if test $ac_cv_func_pthread_sigmask = yes; then
13802 HAVE_PTHREAD_SIGMASK
=0
13803 REPLACE_PTHREAD_SIGMASK
=1
13809 if test $HAVE_PTHREAD_SIGMASK = 1; then
13812 if test -z "$LIB_PTHREAD_SIGMASK"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13814 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13815 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13819 if test "$cross_compiling" = yes; then :
13822 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
13823 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
13825 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
13829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 #include <pthread.h>
13833 #include <signal.h>
13834 #include <stddef.h>
13838 sigemptyset (&set);
13839 return pthread_sigmask (1729, &set, NULL) != 0;
13842 if ac_fn_c_try_run
"$LINENO"; then :
13843 gl_cv_func_pthread_sigmask_in_libc_works
=no
13845 gl_cv_func_pthread_sigmask_in_libc_works
=yes
13847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13854 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13855 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13857 REPLACE_PTHREAD_SIGMASK
=1
13859 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13866 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13867 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13871 gl_save_LIBS
="$LIBS"
13872 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
13873 if test "$cross_compiling" = yes; then :
13876 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
13878 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 #include <pthread.h>
13886 #include <signal.h>
13887 #include <stddef.h>
13891 sigemptyset (&set);
13892 if (pthread_sigmask (1729, &set, NULL) == -1)
13897 if ac_fn_c_try_run
"$LINENO"; then :
13898 gl_cv_func_pthread_sigmask_return_works
=yes
13900 gl_cv_func_pthread_sigmask_return_works
=no
13902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13906 LIBS
="$gl_save_LIBS"
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13910 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13911 case "$gl_cv_func_pthread_sigmask_return_works" in
13913 REPLACE_PTHREAD_SIGMASK
=1
13915 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13921 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13922 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13928 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
13930 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
13932 gl_save_LIBS
="$LIBS"
13933 LIBS
="$LIBS $LIBMULTITHREAD"
13934 if test "$cross_compiling" = yes; then :
13937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 #include <pthread.h>
13941 #include <signal.h>
13943 #include <stdlib.h>
13944 #include <unistd.h>
13945 static volatile int sigint_occurred;
13947 sigint_handler (int sig)
13954 int pid = getpid ();
13956 signal (SIGINT, sigint_handler);
13957 sigemptyset (&set);
13958 sigaddset (&set, SIGINT);
13959 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
13961 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
13962 if (!(system (command) == 0))
13965 if (!(sigint_occurred == 0))
13967 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
13969 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
13974 if ac_fn_c_try_run
"$LINENO"; then :
13977 gl_cv_func_pthread_sigmask_unblock_works
=no
13979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13983 LIBS
="$gl_save_LIBS"
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
13987 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
13988 case "$gl_cv_func_pthread_sigmask_unblock_works" in
13990 REPLACE_PTHREAD_SIGMASK
=1
13992 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
13998 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
14007 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14010 if test $HAVE_PTHREAD_SIGMASK = 1; then
14012 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14022 GNULIB_PTHREAD_SIGMASK
=1
14031 if test $ac_cv_func_readlink = no
; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14035 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14036 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 #include <unistd.h>
14042 /* Cause compilation failure if original declaration has wrong type. */
14043 ssize_t readlink (const char *, char *, size_t);
14052 if ac_fn_c_try_compile
"$LINENO"; then :
14053 gl_cv_decl_readlink_works
=yes
14055 gl_cv_decl_readlink_works
=no
14057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14060 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14062 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14063 if test "${gl_cv_func_readlink_works+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14066 # We have readlink, so assume ln -s works.
14067 ln -s conftest.no-such conftest.link
14068 ln -s conftest.link conftest.lnk2
14069 if test "$cross_compiling" = yes; then :
14071 # Guess yes on glibc systems.
14072 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
14073 # If we don't know, assume the worst.
14074 *) gl_cv_func_readlink_works
="guessing no" ;;
14078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <unistd.h>
14086 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14091 if ac_fn_c_try_run
"$LINENO"; then :
14092 gl_cv_func_readlink_works
=yes
14094 gl_cv_func_readlink_works
=no
14096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14100 rm -f conftest.link conftest.lnk2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14103 $as_echo "$gl_cv_func_readlink_works" >&6; }
14104 case "$gl_cv_func_readlink_works" in
14106 if test "$gl_cv_decl_readlink_works" != yes; then
14112 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14119 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
14128 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
14156 if test $gl_cv_have_include_next = yes; then
14157 gl_cv_next_signal_h
='<'signal.h
'>'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14160 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14161 if test "${gl_cv_next_signal_h+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <signal.h>
14171 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14172 *) gl_absname_cpp
="$ac_cpp" ;;
14177 gl_dirsep_regex
='[/\\]'
14180 gl_dirsep_regex
='\/'
14183 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14185 gl_header_literal_regex
=`echo 'signal.h' \
14186 | sed -e "$gl_make_literal_regex_sed"`
14187 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14188 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14193 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14194 sed -n "$gl_absolute_header_sed"`'"'
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14199 $as_echo "$gl_cv_next_signal_h" >&6; }
14201 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
14203 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14205 gl_next_as_first_directive
='<'signal.h
'>'
14207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14208 gl_next_as_first_directive
=$gl_cv_next_signal_h
14210 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
14216 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14217 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14218 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14219 #include <signal.h>
14222 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
14225 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
14234 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14235 #include <signal.h>
14238 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
14241 HAVE_SIGHANDLER_T
=0
14247 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14248 /* <sys/types.h> is not needed according to POSIX, but the
14249 <sys/socket.h> in i386-unknown-freebsd4.10 and
14250 powerpc-apple-darwin5.5 required it. */
14251 #include <sys/types.h>
14252 #if HAVE_SYS_SOCKET_H
14253 # include <sys/socket.h>
14254 #elif HAVE_WS2TCPIP_H
14255 # include <ws2tcpip.h>
14259 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14263 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14264 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14267 # Systems have either "struct sockaddr *" or
14268 # "void *" as the second argument to getpeername
14269 gl_cv_socklen_t_equiv
=
14270 for arg2
in "struct sockaddr" void
; do
14271 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
14272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <sys/types.h>
14275 #include <sys/socket.h>
14277 int getpeername (int, $arg2 *, $t *);
14282 getpeername (0, 0, &len);
14287 if ac_fn_c_try_compile
"$LINENO"; then :
14288 gl_cv_socklen_t_equiv
="$t"
14290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14291 test "$gl_cv_socklen_t_equiv" != "" && break
14293 test "$gl_cv_socklen_t_equiv" != "" && break
14298 if test "$gl_cv_socklen_t_equiv" = ""; then
14299 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14302 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14304 cat >>confdefs.h
<<_ACEOF
14305 #define socklen_t $gl_cv_socklen_t_equiv
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14312 $as_echo_n "checking for ssize_t... " >&6; }
14313 if test "${gt_cv_ssize_t+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <sys/types.h>
14322 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14328 if ac_fn_c_try_compile
"$LINENO"; then :
14333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14336 $as_echo "$gt_cv_ssize_t" >&6; }
14337 if test $gt_cv_ssize_t = no
; then
14339 $as_echo "#define ssize_t int" >>confdefs.h
14348 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>
14349 #include <sys/stat.h>
14351 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
14353 cat >>confdefs.h
<<_ACEOF
14354 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14358 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14359 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14365 #include <sys/types.h>
14366 #include <sys/stat.h>
14367 #if HAVE_SYS_TIME_H
14368 # include <sys/time.h>
14371 struct timespec ts;
14384 if ac_fn_c_try_compile
"$LINENO"; then :
14385 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14387 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14392 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14393 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14395 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14399 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>
14400 #include <sys/stat.h>
14402 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
14404 cat >>confdefs.h
<<_ACEOF
14405 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14410 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14411 #include <sys/stat.h>
14413 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
14415 cat >>confdefs.h
<<_ACEOF
14416 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14421 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>
14422 #include <sys/stat.h>
14424 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
14426 cat >>confdefs.h
<<_ACEOF
14427 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14444 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>
14445 #include <sys/stat.h>
14447 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
14449 cat >>confdefs.h
<<_ACEOF
14450 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14455 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14456 #include <sys/stat.h>
14458 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
14460 cat >>confdefs.h
<<_ACEOF
14461 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14466 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>
14467 #include <sys/stat.h>
14469 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
14471 cat >>confdefs.h
<<_ACEOF
14472 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14485 $as_echo_n "checking for working stdalign.h... " >&6; }
14486 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 #include <stdalign.h>
14492 #include <stddef.h>
14494 /* Test that alignof yields a result consistent with offsetof.
14495 This catches GCC bug 52023
14496 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14498 template <class t> struct alignof_helper { char a; t b; };
14499 # define ao(type) offsetof (alignof_helper<type>, b)
14501 # define ao(type) offsetof (struct { char a; type b; }, b)
14503 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14504 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14505 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14507 /* Test _Alignas only on platforms where gnulib can help. */
14509 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14510 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14511 int alignas (8) alignas_int = 1;
14512 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14523 if ac_fn_c_try_compile
"$LINENO"; then :
14524 gl_cv_header_working_stdalign_h
=yes
14526 gl_cv_header_working_stdalign_h
=no
14528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14531 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14533 if test $gl_cv_header_working_stdalign_h = yes; then
14536 STDALIGN_H
='stdalign.h'
14540 if test -n "$STDALIGN_H"; then
14541 GL_GENERATE_STDALIGN_H_TRUE
=
14542 GL_GENERATE_STDALIGN_H_FALSE
='#'
14544 GL_GENERATE_STDALIGN_H_TRUE
='#'
14545 GL_GENERATE_STDALIGN_H_FALSE
=
14551 NEXT_STDARG_H
='<stdarg.h>'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14553 $as_echo_n "checking for va_copy... " >&6; }
14554 if test "${gl_cv_func_va_copy+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
14558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 #include <stdarg.h>
14566 void (*func) (va_list, va_list) = va_copy;
14573 if ac_fn_c_try_compile
"$LINENO"; then :
14574 gl_cv_func_va_copy
=yes
14576 gl_cv_func_va_copy
=no
14578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14582 $as_echo "$gl_cv_func_va_copy" >&6; }
14583 if test $gl_cv_func_va_copy = no
; then
14584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 #if defined _AIX && !defined __GNUC__
14591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14592 $EGREP "vaccine" >/dev
/null
2>&1; then :
14599 if test $gl_aixcc = yes; then
14609 if test $gl_cv_have_include_next = yes; then
14610 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14613 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14614 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 #include <stdarg.h>
14624 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14625 *) gl_absname_cpp
="$ac_cpp" ;;
14630 gl_dirsep_regex
='[/\\]'
14633 gl_dirsep_regex
='\/'
14636 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14638 gl_header_literal_regex
=`echo 'stdarg.h' \
14639 | sed -e "$gl_make_literal_regex_sed"`
14640 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14641 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14646 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14647 sed -n "$gl_absolute_header_sed"`'"'
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14652 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14654 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
14656 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14658 gl_next_as_first_directive
='<'stdarg.h
'>'
14660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14661 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
14663 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
14668 if test "$gl_cv_next_stdarg_h" = '""'; then
14669 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
14670 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
14674 saved_as_echo_n
="$as_echo_n"
14676 if test "${gl_cv_func___va_copy+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <stdarg.h>
14695 if ac_fn_c_try_compile
"$LINENO"; then :
14696 gl_cv_func___va_copy
=yes
14698 gl_cv_func___va_copy
=no
14700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 as_echo_n
="$saved_as_echo_n"
14705 if test $gl_cv_func___va_copy = yes; then
14707 $as_echo "#define va_copy __va_copy" >>confdefs.h
14712 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14718 if test -n "$STDARG_H"; then
14719 GL_GENERATE_STDARG_H_TRUE
=
14720 GL_GENERATE_STDARG_H_FALSE
='#'
14722 GL_GENERATE_STDARG_H_TRUE
='#'
14723 GL_GENERATE_STDARG_H_FALSE
=
14731 # Define two additional variables used in the Makefile substitution.
14733 if test "$ac_cv_header_stdbool_h" = yes; then
14736 STDBOOL_H
='stdbool.h'
14739 if test -n "$STDBOOL_H"; then
14740 GL_GENERATE_STDBOOL_H_TRUE
=
14741 GL_GENERATE_STDBOOL_H_FALSE
='#'
14743 GL_GENERATE_STDBOOL_H_TRUE
='#'
14744 GL_GENERATE_STDBOOL_H_FALSE
=
14748 if test "$ac_cv_type__Bool" = yes; then
14759 if test $gt_cv_c_wchar_t = no
; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14764 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14765 if test "${gl_cv_decl_null_works+set}" = set; then :
14766 $as_echo_n "(cached) " >&6
14768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <stddef.h>
14771 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14781 if ac_fn_c_try_compile
"$LINENO"; then :
14782 gl_cv_decl_null_works
=yes
14784 gl_cv_decl_null_works
=no
14786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14789 $as_echo "$gl_cv_decl_null_works" >&6; }
14790 if test $gl_cv_decl_null_works = no
; then
14795 if test -n "$STDDEF_H"; then
14796 GL_GENERATE_STDDEF_H_TRUE
=
14797 GL_GENERATE_STDDEF_H_FALSE
='#'
14799 GL_GENERATE_STDDEF_H_TRUE
='#'
14800 GL_GENERATE_STDDEF_H_FALSE
=
14803 if test -n "$STDDEF_H"; then
14812 if test $gl_cv_have_include_next = yes; then
14813 gl_cv_next_stddef_h
='<'stddef.h
'>'
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14816 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14817 if test "${gl_cv_next_stddef_h+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 #include <stddef.h>
14827 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14828 *) gl_absname_cpp
="$ac_cpp" ;;
14833 gl_dirsep_regex
='[/\\]'
14836 gl_dirsep_regex
='\/'
14839 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14841 gl_header_literal_regex
=`echo 'stddef.h' \
14842 | sed -e "$gl_make_literal_regex_sed"`
14843 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14849 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14850 sed -n "$gl_absolute_header_sed"`'"'
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14855 $as_echo "$gl_cv_next_stddef_h" >&6; }
14857 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
14859 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14861 gl_next_as_first_directive
='<'stddef.h
'>'
14863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14864 gl_next_as_first_directive
=$gl_cv_next_stddef_h
14866 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14885 if test $gl_cv_have_include_next = yes; then
14886 gl_cv_next_stdio_h
='<'stdio.h
'>'
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14889 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14890 if test "${gl_cv_next_stdio_h+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14900 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14901 *) gl_absname_cpp
="$ac_cpp" ;;
14906 gl_dirsep_regex
='[/\\]'
14909 gl_dirsep_regex
='\/'
14912 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14914 gl_header_literal_regex
=`echo 'stdio.h' \
14915 | sed -e "$gl_make_literal_regex_sed"`
14916 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14922 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14923 sed -n "$gl_absolute_header_sed"`'"'
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14928 $as_echo "$gl_cv_next_stdio_h" >&6; }
14930 NEXT_STDIO_H
=$gl_cv_next_stdio_h
14932 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14934 gl_next_as_first_directive
='<'stdio.h
'>'
14936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14937 gl_next_as_first_directive
=$gl_cv_next_stdio_h
14939 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
14948 cat >>confdefs.h
<<_ACEOF
14949 #define GNULIB_FSCANF 1
14956 cat >>confdefs.h
<<_ACEOF
14957 #define GNULIB_SCANF 1
14993 if test $gl_cv_have_include_next = yes; then
14994 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14997 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14998 if test "${gl_cv_next_stdlib_h+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <stdlib.h>
15008 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15009 *) gl_absname_cpp
="$ac_cpp" ;;
15014 gl_dirsep_regex
='[/\\]'
15017 gl_dirsep_regex
='\/'
15020 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15022 gl_header_literal_regex
=`echo 'stdlib.h' \
15023 | sed -e "$gl_make_literal_regex_sed"`
15024 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15025 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15030 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15031 sed -n "$gl_absolute_header_sed"`'"'
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15036 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15038 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
15040 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15042 gl_next_as_first_directive
='<'stdlib.h
'>'
15044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15045 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
15047 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
15057 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15065 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15074 if test "$ac_cv_have_decl_strtoimax" != yes; then
15075 HAVE_DECL_STRTOIMAX
=0
15078 if test $ac_cv_func_strtoimax = yes; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15081 $as_echo_n "checking whether strtoimax works... " >&6; }
15082 if test "${gl_cv_func_strtoimax+set}" = set; then :
15083 $as_echo_n "(cached) " >&6
15085 if test "$cross_compiling" = yes; then :
15087 # Guess no on AIX 5.
15088 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
15089 # Guess yes otherwise.
15090 *) gl_cv_func_strtoimax
="guessing yes" ;;
15094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15098 #include <string.h>
15099 #include <inttypes.h>
15102 if (sizeof (intmax_t) > sizeof (int))
15104 const char *s = "4294967295";
15108 res = strtoimax (s, &p, 10);
15109 if (p != s + strlen (s))
15113 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15118 const char *s = "2147483647";
15122 res = strtoimax (s, &p, 10);
15123 if (p != s + strlen (s))
15127 if (res != 2147483647)
15134 if ac_fn_c_try_run
"$LINENO"; then :
15135 gl_cv_func_strtoimax
=yes
15137 gl_cv_func_strtoimax
=no
15139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15146 $as_echo "$gl_cv_func_strtoimax" >&6; }
15147 case "$gl_cv_func_strtoimax" in
15148 *no
) REPLACE_STRTOIMAX
=1 ;;
15154 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
15163 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
15166 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15167 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
15173 cat >>confdefs.h
<<_ACEOF
15174 #define HAVE_DECL_STRTOLL $ac_have_decl
15195 if test "$ac_cv_have_decl_strtoumax" != yes; then
15196 HAVE_DECL_STRTOUMAX
=0
15199 if test $ac_cv_func_strtoumax = no
; then
15208 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
15211 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15212 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
15218 cat >>confdefs.h
<<_ACEOF
15219 #define HAVE_DECL_STRTOULL $ac_have_decl
15238 if test $ac_cv_func_symlink = no
; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15242 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15243 if test "${gl_cv_func_symlink_works+set}" = set; then :
15244 $as_echo_n "(cached) " >&6
15246 if test "$cross_compiling" = yes; then :
15248 # Guess yes on glibc systems.
15249 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
15250 # If we don't know, assume the worst.
15251 *) gl_cv_func_symlink_works
="guessing no" ;;
15255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #include <unistd.h>
15263 if (!symlink ("a", "conftest.link/"))
15265 if (symlink ("conftest.f", "conftest.lnk2"))
15267 else if (!symlink ("a", "conftest.lnk2/"))
15275 if ac_fn_c_try_run
"$LINENO"; then :
15276 gl_cv_func_symlink_works
=yes
15278 gl_cv_func_symlink_works
=no
15280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15284 rm -f conftest.f conftest.link conftest.lnk2
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15287 $as_echo "$gl_cv_func_symlink_works" >&6; }
15288 case "$gl_cv_func_symlink_works" in
15296 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
15305 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15323 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15324 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15325 $as_echo_n "(cached) " >&6
15328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/select.h>
15339 if ac_fn_c_try_compile
"$LINENO"; then :
15340 gl_cv_header_sys_select_h_selfcontained
=yes
15342 gl_cv_header_sys_select_h_selfcontained
=no
15344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15345 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 #include <sys/select.h>
15352 int memset; int bzero;
15358 if ac_fn_c_try_compile
"$LINENO"; then :
15359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #include <sys/select.h>
15367 #define memset nonexistent_memset
15372 void *memset (void *, int, unsigned long);
15374 #define bzero nonexistent_bzero
15379 void bzero (void *, unsigned long);
15388 if ac_fn_c_try_link
"$LINENO"; then :
15391 gl_cv_header_sys_select_h_selfcontained
=no
15393 rm -f core conftest.err conftest.
$ac_objext \
15394 conftest
$ac_exeext conftest.
$ac_ext
15397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15402 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15412 if test $gl_cv_have_include_next = yes; then
15413 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15416 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15417 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15418 $as_echo_n "(cached) " >&6
15421 if test $ac_cv_header_sys_select_h = yes; then
15424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #include <sys/select.h>
15430 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15431 *) gl_absname_cpp
="$ac_cpp" ;;
15436 gl_dirsep_regex
='[/\\]'
15439 gl_dirsep_regex
='\/'
15442 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15444 gl_header_literal_regex
=`echo 'sys/select.h' \
15445 | sed -e "$gl_make_literal_regex_sed"`
15446 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15447 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15452 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15453 sed -n "$gl_absolute_header_sed"`'"'
15455 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15461 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15463 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
15465 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15467 gl_next_as_first_directive
='<'sys
/select.h
'>'
15469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15470 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
15472 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
15477 if test $ac_cv_header_sys_select_h = yes; then
15478 HAVE_SYS_SELECT_H
=1
15480 HAVE_SYS_SELECT_H
=0
15487 if test $ac_cv_header_sys_socket_h != yes; then
15488 for ac_header
in winsock2.h
15490 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15491 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
15492 cat >>confdefs.h
<<_ACEOF
15493 #define HAVE_WINSOCK2_H 1
15501 if test "$ac_cv_header_winsock2_h" = yes; then
15503 UNISTD_H_HAVE_WINSOCK2_H
=1
15504 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
15530 if test $gl_cv_have_include_next = yes; then
15531 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15534 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15535 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15539 if test $ac_cv_header_sys_stat_h = yes; then
15542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 #include <sys/stat.h>
15548 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15549 *) gl_absname_cpp
="$ac_cpp" ;;
15554 gl_dirsep_regex
='[/\\]'
15557 gl_dirsep_regex
='\/'
15560 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15562 gl_header_literal_regex
=`echo 'sys/stat.h' \
15563 | sed -e "$gl_make_literal_regex_sed"`
15564 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15570 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15571 sed -n "$gl_absolute_header_sed"`'"'
15573 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15579 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15581 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
15583 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15585 gl_next_as_first_directive
='<'sys
/stat.h
'>'
15587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15588 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
15590 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
15602 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15604 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15608 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15609 #include <sys/stat.h>
15611 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
15615 $as_echo "#define nlink_t int" >>confdefs.h
15636 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15638 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15644 cat >>confdefs.h
<<_ACEOF
15645 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15648 if test $ac_cv_have_decl_localtime_r = no
; then
15649 HAVE_DECL_LOCALTIME_R
=0
15653 if test $ac_cv_func_localtime_r = yes; then
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15656 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15657 if test "${gl_cv_time_r_posix+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
15660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15666 /* We don't need to append 'restrict's to the argument types,
15667 even though the POSIX signature has the 'restrict's,
15668 since C99 says they can't affect type compatibility. */
15669 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15671 /* Check the return type is a pointer.
15672 On HP-UX 10 it is 'int'. */
15673 *localtime_r (0, 0);
15679 if ac_fn_c_try_compile
"$LINENO"; then :
15680 gl_cv_time_r_posix
=yes
15682 gl_cv_time_r_posix
=no
15684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15688 $as_echo "$gl_cv_time_r_posix" >&6; }
15689 if test $gl_cv_time_r_posix = yes; then
15690 REPLACE_LOCALTIME_R
=0
15692 REPLACE_LOCALTIME_R
=1
15698 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15707 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15741 if test $gl_cv_have_include_next = yes; then
15742 gl_cv_next_unistd_h
='<'unistd.h
'>'
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15745 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15746 if test "${gl_cv_next_unistd_h+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15750 if test $ac_cv_header_unistd_h = yes; then
15753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15754 /* end confdefs.h. */
15755 #include <unistd.h>
15759 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15760 *) gl_absname_cpp
="$ac_cpp" ;;
15765 gl_dirsep_regex
='[/\\]'
15768 gl_dirsep_regex
='\/'
15771 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15773 gl_header_literal_regex
=`echo 'unistd.h' \
15774 | sed -e "$gl_make_literal_regex_sed"`
15775 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15776 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15781 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15782 sed -n "$gl_absolute_header_sed"`'"'
15784 gl_cv_next_unistd_h
='<'unistd.h
'>'
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15790 $as_echo "$gl_cv_next_unistd_h" >&6; }
15792 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15794 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15796 gl_next_as_first_directive
='<'unistd.h
'>'
15798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15799 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15801 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15806 if test $ac_cv_header_unistd_h = yes; then
15825 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15827 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15828 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15831 touch conftest.
file
15832 if test "$cross_compiling" = yes; then :
15834 # Guess yes on glibc systems.
15835 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
15836 # If we don't know, assume the worst.
15837 *) gl_cv_func_futimesat_works
="guessing no" ;;
15841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15844 #include <stddef.h>
15845 #include <sys/times.h>
15851 int fd = open ("conftest.file", O_RDWR);
15852 if (fd < 0) return 1;
15853 if (futimesat (fd, NULL, NULL)) return 2;
15859 if ac_fn_c_try_run
"$LINENO"; then :
15860 gl_cv_func_futimesat_works
=yes
15862 gl_cv_func_futimesat_works
=no
15864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15868 rm -f conftest.
file
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15871 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15872 case "$gl_cv_func_futimesat_works" in
15876 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15882 gl_gnulib_enabled_dosname
=false
15883 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
15884 gl_gnulib_enabled_pathmax
=false
15885 gl_gnulib_enabled_stat
=false
15886 gl_gnulib_enabled_strtoll
=false
15887 gl_gnulib_enabled_strtoull
=false
15888 gl_gnulib_enabled_verify
=false
15889 func_gl_gnulib_m4code_dosname
()
15891 if ! $gl_gnulib_enabled_dosname; then
15892 gl_gnulib_enabled_dosname
=true
15895 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
15897 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15900 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
15903 func_gl_gnulib_m4code_pathmax
()
15905 if ! $gl_gnulib_enabled_pathmax; then
15909 gl_gnulib_enabled_pathmax
=true
15912 func_gl_gnulib_m4code_stat
()
15914 if ! $gl_gnulib_enabled_stat; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15919 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15920 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15921 $as_echo_n "(cached) " >&6
15923 if test "$cross_compiling" = yes; then :
15925 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
15926 *) gl_cv_func_stat_dir_slash
="guessing yes";;
15929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931 #include <sys/stat.h>
15936 struct stat st; return stat (".", &st) != stat ("./", &st);
15941 if ac_fn_c_try_run
"$LINENO"; then :
15942 gl_cv_func_stat_dir_slash
=yes
15944 gl_cv_func_stat_dir_slash
=no
15946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15952 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15954 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15955 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15956 $as_echo_n "(cached) " >&6
15959 # Assume that if we have lstat, we can also check symlinks.
15960 if test $ac_cv_func_lstat = yes; then
15961 ln -s conftest.tmp conftest.lnk
15963 if test "$cross_compiling" = yes; then :
15965 # Guess yes on glibc systems.
15966 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
15967 # If we don't know, assume the worst.
15968 *) gl_cv_func_stat_file_slash
="guessing no" ;;
15972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15974 #include <sys/stat.h>
15981 if (!stat ("conftest.tmp/", &st))
15984 if (!stat ("conftest.lnk/", &st))
15993 if ac_fn_c_try_run
"$LINENO"; then :
15994 gl_cv_func_stat_file_slash
=yes
15996 gl_cv_func_stat_file_slash
=no
15998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16002 rm -f conftest.tmp conftest.lnk
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16005 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16006 case $gl_cv_func_stat_dir_slash in
16007 *no
) REPLACE_STAT
=1
16009 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16012 case $gl_cv_func_stat_file_slash in
16013 *no
) REPLACE_STAT
=1
16015 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16019 if test $REPLACE_STAT = 1; then
16028 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16046 gl_gnulib_enabled_stat
=true
16047 if test $REPLACE_STAT = 1; then
16048 func_gl_gnulib_m4code_dosname
16050 if test $REPLACE_STAT = 1; then
16051 func_gl_gnulib_m4code_pathmax
16053 if test $REPLACE_STAT = 1; then
16054 func_gl_gnulib_m4code_verify
16058 func_gl_gnulib_m4code_strtoll
()
16060 if ! $gl_gnulib_enabled_strtoll; then
16064 if test "$ac_cv_type_long_long_int" = yes; then
16065 for ac_func
in strtoll
16067 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
16068 if test "x$ac_cv_func_strtoll" = x
""yes; then :
16069 cat >>confdefs.h
<<_ACEOF
16070 #define HAVE_STRTOLL 1
16076 if test $ac_cv_func_strtoll = no
; then
16081 if test $HAVE_STRTOLL = 0; then
16090 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
16107 gl_gnulib_enabled_strtoll
=true
16110 func_gl_gnulib_m4code_strtoull
()
16112 if ! $gl_gnulib_enabled_strtoull; then
16116 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16117 for ac_func
in strtoull
16119 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
16120 if test "x$ac_cv_func_strtoull" = x
""yes; then :
16121 cat >>confdefs.h
<<_ACEOF
16122 #define HAVE_STRTOULL 1
16128 if test $ac_cv_func_strtoull = no
; then
16133 if test $HAVE_STRTOULL = 0; then
16142 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
16159 gl_gnulib_enabled_strtoull
=true
16162 func_gl_gnulib_m4code_verify
()
16164 if ! $gl_gnulib_enabled_verify; then
16165 gl_gnulib_enabled_verify
=true
16168 if test $REPLACE_GETOPT = 1; then
16169 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16171 if test $REPLACE_LSTAT = 1; then
16172 func_gl_gnulib_m4code_dosname
16174 if test $REPLACE_LSTAT = 1; then
16175 func_gl_gnulib_m4code_stat
16177 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
16178 func_gl_gnulib_m4code_stat
16180 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16181 func_gl_gnulib_m4code_strtoll
16183 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
16184 func_gl_gnulib_m4code_verify
16186 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
16187 func_gl_gnulib_m4code_strtoull
16189 if test $ac_cv_func_strtoumax = no
; then
16190 func_gl_gnulib_m4code_verify
16193 if $gl_gnulib_enabled_dosname; then
16194 gl_GNULIB_ENABLED_dosname_TRUE
=
16195 gl_GNULIB_ENABLED_dosname_FALSE
='#'
16197 gl_GNULIB_ENABLED_dosname_TRUE
='#'
16198 gl_GNULIB_ENABLED_dosname_FALSE
=
16201 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16202 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
16203 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
16205 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
16206 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
16209 if $gl_gnulib_enabled_pathmax; then
16210 gl_GNULIB_ENABLED_pathmax_TRUE
=
16211 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
16213 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
16214 gl_GNULIB_ENABLED_pathmax_FALSE
=
16217 if $gl_gnulib_enabled_stat; then
16218 gl_GNULIB_ENABLED_stat_TRUE
=
16219 gl_GNULIB_ENABLED_stat_FALSE
='#'
16221 gl_GNULIB_ENABLED_stat_TRUE
='#'
16222 gl_GNULIB_ENABLED_stat_FALSE
=
16225 if $gl_gnulib_enabled_strtoll; then
16226 gl_GNULIB_ENABLED_strtoll_TRUE
=
16227 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
16229 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
16230 gl_GNULIB_ENABLED_strtoll_FALSE
=
16233 if $gl_gnulib_enabled_strtoull; then
16234 gl_GNULIB_ENABLED_strtoull_TRUE
=
16235 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
16237 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
16238 gl_GNULIB_ENABLED_strtoull_FALSE
=
16241 if $gl_gnulib_enabled_verify; then
16242 gl_GNULIB_ENABLED_verify_TRUE
=
16243 gl_GNULIB_ENABLED_verify_FALSE
='#'
16245 gl_GNULIB_ENABLED_verify_TRUE
='#'
16246 gl_GNULIB_ENABLED_verify_FALSE
=
16249 # End of code from modules
16270 gl_source_base
='tests'
16271 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
16273 gl_module_indicator_condition
=$gltests_WITNESS
16284 LIBGNU_LIBDEPS
="$gl_libdeps"
16286 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
16290 # Extract the first word of "pkg-config", so it can be a program name with args.
16291 set dummy pkg-config
; ac_word
=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16295 $as_echo_n "(cached) " >&6
16297 case $PKG_CONFIG in
16299 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
16302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16303 for as_dir
in $PATH
16306 test -z "$as_dir" && as_dir
=.
16307 for ac_exec_ext
in '' $ac_executable_extensions; do
16308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16309 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
16321 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
16322 if test -n "$PKG_CONFIG"; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16324 $as_echo "$PKG_CONFIG" >&6; }
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327 $as_echo "no" >&6; }
16335 if test "${with_sound}" != "no"; then
16336 # Sound support for GNU/Linux and the free BSDs.
16337 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
16339 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16341 eval as_val
=\$
$as_ac_Header
16342 if test "x$as_val" = x
""yes; then :
16343 cat >>confdefs.h
<<_ACEOF
16344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346 have_sound_header
=yes
16351 # Emulation library used on NetBSD.
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16353 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16354 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16355 $as_echo_n "(cached) " >&6
16357 ac_check_lib_save_LIBS
=$LIBS
16358 LIBS
="-lossaudio $LIBS"
16359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16362 /* Override any GCC internal prototype to avoid an error.
16363 Use char because int might match the return type of a GCC
16364 builtin and then its argument prototype would still apply. */
16368 char _oss_ioctl ();
16372 return _oss_ioctl ();
16377 if ac_fn_c_try_link
"$LINENO"; then :
16378 ac_cv_lib_ossaudio__oss_ioctl
=yes
16380 ac_cv_lib_ossaudio__oss_ioctl
=no
16382 rm -f core conftest.err conftest.
$ac_objext \
16383 conftest
$ac_exeext conftest.
$ac_ext
16384 LIBS
=$ac_check_lib_save_LIBS
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16387 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16388 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
16389 LIBSOUND
=-lossaudio
16396 ALSA_REQUIRED
=1.0.0
16397 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
16401 if test "$PKG_CONFIG" = "no" ; then
16404 PKG_CONFIG_MIN_VERSION
=0.9.0
16405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16407 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16409 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16410 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16411 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16418 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16419 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16421 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16428 ## If we have a custom action on failure, don't print errors, but
16429 ## do set a variable so people can do so.
16430 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16442 if test $succeeded = yes; then
16448 if test $HAVE_ALSA = yes; then
16449 SAVE_CFLAGS
="$CFLAGS"
16451 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
16452 LIBS
="$ALSA_LIBS $LIBS"
16453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 #include <asoundlib.h>
16459 snd_lib_error_set_handler (0);
16464 if ac_fn_c_try_compile
"$LINENO"; then :
16465 emacs_alsa_normal
=yes
16467 emacs_alsa_normal
=no
16469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16470 if test "$emacs_alsa_normal" != yes; then
16471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #include <alsa/asoundlib.h>
16477 snd_lib_error_set_handler (0);
16482 if ac_fn_c_try_compile
"$LINENO"; then :
16483 emacs_alsa_subdir
=yes
16485 emacs_alsa_subdir
=no
16487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16488 if test "$emacs_alsa_subdir" != yes; then
16489 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16491 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16494 CFLAGS
="$SAVE_CFLAGS"
16496 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
16497 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
16499 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16503 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
16505 gnu-linux|freebsd|netbsd
)
16507 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16545 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16548 #include <sys/personality.h>
16552 personality (PER_LINUX32)
16557 if ac_fn_c_try_compile
"$LINENO"; then :
16558 emacs_cv_personality_linux32
=yes
16560 emacs_cv_personality_linux32
=no
16562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16564 $as_echo "$emacs_cv_personality_linux32" >&6; }
16566 if test $emacs_cv_personality_linux32 = yes; then
16568 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16572 for ac_header
in term.h
16574 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
16575 if test "x$ac_cv_header_term_h" = x
""yes; then :
16576 cat >>confdefs.h
<<_ACEOF
16577 #define HAVE_TERM_H 1
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16585 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16586 if test "${ac_cv_header_time+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16591 #include <sys/types.h>
16592 #include <sys/time.h>
16598 if ((struct tm *) 0)
16604 if ac_fn_c_try_compile
"$LINENO"; then :
16605 ac_cv_header_time
=yes
16607 ac_cv_header_time
=no
16609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16612 $as_echo "$ac_cv_header_time" >&6; }
16613 if test $ac_cv_header_time = yes; then
16615 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16619 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16620 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
16626 cat >>confdefs.h
<<_ACEOF
16627 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16630 if test $ac_cv_have_decl_sys_siglist != yes; then
16631 # For Tru64, at least:
16632 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16633 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
16639 cat >>confdefs.h
<<_ACEOF
16640 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16643 if test $ac_cv_have_decl___sys_siglist = yes; then
16645 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16650 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16651 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16652 $as_echo_n "(cached) " >&6
16654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16656 #include <sys/types.h>
16657 #include <sys/wait.h>
16658 #ifndef WEXITSTATUS
16659 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16662 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16675 if ac_fn_c_try_compile
"$LINENO"; then :
16676 ac_cv_header_sys_wait_h
=yes
16678 ac_cv_header_sys_wait_h
=no
16680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16683 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16684 if test $ac_cv_header_sys_wait_h = yes; then
16686 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16692 $as_echo_n "checking for speed_t... " >&6; }
16693 if test "${emacs_cv_speed_t+set}" = set; then :
16694 $as_echo_n "(cached) " >&6
16696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <termios.h>
16707 if ac_fn_c_try_compile
"$LINENO"; then :
16708 emacs_cv_speed_t
=yes
16710 emacs_cv_speed_t
=no
16712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16715 $as_echo "$emacs_cv_speed_t" >&6; }
16716 if test $emacs_cv_speed_t = yes; then
16718 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16723 $as_echo_n "checking for struct exception... " >&6; }
16724 if test "${emacs_cv_struct_exception+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
16727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16733 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16738 if ac_fn_c_try_compile
"$LINENO"; then :
16739 emacs_cv_struct_exception
=yes
16741 emacs_cv_struct_exception
=no
16743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16746 $as_echo "$emacs_cv_struct_exception" >&6; }
16747 HAVE_EXCEPTION
=$emacs_cv_struct_exception
16748 if test $emacs_cv_struct_exception != yes; then
16750 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16755 for ac_header
in net
/if.h
16757 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16758 #if HAVE_SYS_SOCKET_H
16759 #include <sys/socket.h>
16762 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
16763 cat >>confdefs.h
<<_ACEOF
16764 #define HAVE_NET_IF_H 1
16771 for ac_header
in ifaddrs.h
16773 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16774 #if HAVE_SYS_SOCKET_H
16775 #include <sys/socket.h>
16778 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
16779 cat >>confdefs.h
<<_ACEOF
16780 #define HAVE_IFADDRS_H 1
16787 for ac_header
in net
/if_dl.h
16789 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16790 #if HAVE_SYS_SOCKET_H
16791 #include <sys/socket.h>
16794 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
16795 cat >>confdefs.h
<<_ACEOF
16796 #define HAVE_NET_IF_DL_H 1
16804 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16805 #if HAVE_SYS_SOCKET_H
16806 #include <sys/socket.h>
16809 #include <net/if.h>
16812 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
16814 cat >>confdefs.h
<<_ACEOF
16815 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16820 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16821 #if HAVE_SYS_SOCKET_H
16822 #include <sys/socket.h>
16825 #include <net/if.h>
16828 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
16830 cat >>confdefs.h
<<_ACEOF
16831 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16836 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16837 #if HAVE_SYS_SOCKET_H
16838 #include <sys/socket.h>
16841 #include <net/if.h>
16844 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
16846 cat >>confdefs.h
<<_ACEOF
16847 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16852 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16853 #if HAVE_SYS_SOCKET_H
16854 #include <sys/socket.h>
16857 #include <net/if.h>
16860 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
16862 cat >>confdefs.h
<<_ACEOF
16863 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16868 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16869 #if HAVE_SYS_SOCKET_H
16870 #include <sys/socket.h>
16873 #include <net/if.h>
16876 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
16878 cat >>confdefs.h
<<_ACEOF
16879 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16884 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16885 #if HAVE_SYS_SOCKET_H
16886 #include <sys/socket.h>
16889 #include <net/if.h>
16892 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
16894 cat >>confdefs.h
<<_ACEOF
16895 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16904 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16905 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 char __attribute__ ((__aligned__ (1 << 3))) c;
16919 if ac_fn_c_try_compile
"$LINENO"; then :
16920 emacs_cv_attribute_aligned
=yes
16922 emacs_cv_attribute_aligned
=no
16924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16927 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16928 if test $emacs_cv_attribute_aligned = yes; then
16930 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16938 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16940 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16942 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16943 if test "x$testval" != x
; then
16946 ac_enable_autodepend
=no
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16949 $as_echo "$HAVE_GNU_MAKE" >&6; }
16950 if test $HAVE_GNU_MAKE = yes; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16952 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16953 SAVE_CFLAGS
="$CFLAGS"
16954 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16966 if ac_fn_c_try_compile
"$LINENO"; then :
16969 ac_enable_autodepend
=no
16971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16972 CFLAGS
="$SAVE_CFLAGS"
16973 test -f deps.d || ac_enable_autodepend
=no
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
16976 $as_echo "$ac_enable_autodepend" >&6; }
16978 if test $ac_enable_autodepend = yes; then
16979 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
16980 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
16981 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
16982 deps_frag
=autodeps.mk
16985 deps_frag
=$srcdir/src
/$deps_frag
16991 lisp_frag
=$srcdir/src
/lisp.mk
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
16996 $as_echo_n "checking for long file names... " >&6; }
16997 if test "${ac_cv_sys_long_file_names+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
17000 ac_cv_sys_long_file_names
=yes
17001 # Test for long file names in all the places we know might matter:
17002 # . the current directory, where building will happen
17003 # $prefix/lib where we will be installing things
17004 # $exec_prefix/lib likewise
17005 # $TMPDIR if set, where it might want to write temporary files
17006 # /tmp where it might want to write temporary files
17007 # /var/tmp likewise
17008 # /usr/tmp likewise
17009 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
17010 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17011 # in the usual case where exec_prefix is '${prefix}'.
17013 . |
/* | ?
:[\\/]*) ;; #(
17016 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
17017 ac_xdir
=$ac_dir/cf$$
17018 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
17019 ac_tf1
=$ac_xdir/conftest9012345
17020 ac_tf2
=$ac_xdir/conftest9012346
17021 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17022 ac_cv_sys_long_file_names
=no
17023 rm -f -r "$ac_xdir" 2>/dev
/null
17024 test $ac_cv_sys_long_file_names = no
&& break
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17028 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17029 if test $ac_cv_sys_long_file_names = yes; then
17031 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17036 #### Choose a window system.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17039 $as_echo_n "checking for X... " >&6; }
17042 # Check whether --with-x was given.
17043 if test "${with_x+set}" = set; then :
17047 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17048 if test "x$with_x" = xno
; then
17049 # The user explicitly disabled X.
17052 case $x_includes,$x_libraries in #(
17053 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
17054 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
17055 $as_echo_n "(cached) " >&6
17057 # One or both of the vars are not set, and there is no cached value.
17058 ac_x_includes
=no ac_x_libraries
=no
17059 rm -f -r conftest.dir
17060 if mkdir conftest.dir
; then
17062 cat >Imakefile
<<'_ACEOF'
17064 @echo incroot='${INCROOT}'
17066 @echo usrlibdir='${USRLIBDIR}'
17068 @echo libdir='${LIBDIR}'
17070 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17072 for ac_var
in incroot usrlibdir libdir
; do
17073 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17075 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17076 for ac_extension
in a so sl dylib la dll
; do
17077 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17078 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17079 ac_im_usrlibdir
=$ac_im_libdir; break
17082 # Screen out bogus values from the imake configuration. They are
17083 # bogus both because they are the default anyway, and because
17084 # using them would break gcc on systems where it needs fixed includes.
17085 case $ac_im_incroot in
17086 /usr
/include
) ac_x_includes
= ;;
17087 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17089 case $ac_im_usrlibdir in
17090 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17091 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17095 rm -f -r conftest.dir
17098 # Standard set of common directories for X headers.
17099 # Check X11 before X11Rn because it is often a symlink to the current release.
17113 /usr/local/X11/include
17114 /usr/local/X11R7/include
17115 /usr/local/X11R6/include
17116 /usr/local/X11R5/include
17117 /usr/local/X11R4/include
17119 /usr/local/include/X11
17120 /usr/local/include/X11R7
17121 /usr/local/include/X11R6
17122 /usr/local/include/X11R5
17123 /usr/local/include/X11R4
17127 /usr/XFree86/include/X11
17131 /usr/unsupported/include
17132 /usr/athena/include
17133 /usr/local/x11r5/include
17134 /usr/lpp/Xamples/include
17136 /usr/openwin/include
17137 /usr/openwin/share/include'
17139 if test "$ac_x_includes" = no
; then
17140 # Guess where to find include files, by looking for Xlib.h.
17141 # First, try using that file with no special directory specified.
17142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17144 #include <X11/Xlib.h>
17146 if ac_fn_c_try_cpp
"$LINENO"; then :
17147 # We can compile using X headers with no special include directory.
17150 for ac_dir
in $ac_x_header_dirs; do
17151 if test -r "$ac_dir/X11/Xlib.h"; then
17152 ac_x_includes
=$ac_dir
17157 rm -f conftest.err conftest.
$ac_ext
17158 fi # $ac_x_includes = no
17160 if test "$ac_x_libraries" = no
; then
17161 # Check for the libraries.
17162 # See if we find them without any special options.
17163 # Don't add to $LIBS permanently.
17166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17168 #include <X11/Xlib.h>
17177 if ac_fn_c_try_link
"$LINENO"; then :
17179 # We can link X programs with no special library path.
17183 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17185 # Don't even attempt the hair of trying to link an X program!
17186 for ac_extension
in a so sl dylib la dll
; do
17187 if test -r "$ac_dir/libX11.$ac_extension"; then
17188 ac_x_libraries
=$ac_dir
17194 rm -f core conftest.err conftest.
$ac_objext \
17195 conftest
$ac_exeext conftest.
$ac_ext
17196 fi # $ac_x_libraries = no
17198 case $ac_x_includes,$ac_x_libraries in #(
17199 no
,* |
*,no |
*\'*)
17200 # Didn't find X, or a directory has "'" in its name.
17201 ac_cv_have_x
="have_x=no";; #(
17203 # Record where we found X for the cache.
17204 ac_cv_have_x
="have_x=yes\
17205 ac_x_includes='$ac_x_includes'\
17206 ac_x_libraries='$ac_x_libraries'"
17212 eval "$ac_cv_have_x"
17215 if test "$have_x" != yes; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17217 $as_echo "$have_x" >&6; }
17220 # If each of the values was on the command line, it overrides each guess.
17221 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17222 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17223 # Update the cache value to reflect the command line values.
17224 ac_cv_have_x
="have_x=yes\
17225 ac_x_includes='$x_includes'\
17226 ac_x_libraries='$x_libraries'"
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17228 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17231 if test "$no_x" = yes; then
17237 LD_SWITCH_X_SITE_RPATH
=
17238 if test "${x_libraries}" != NONE
; then
17239 if test -n "${x_libraries}"; then
17240 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17241 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17243 x_default_search_path
=""
17244 x_search_path
=${x_libraries}
17245 if test -z "${x_search_path}"; then
17246 x_search_path
=/usr
/lib
17248 for x_library
in `echo ${x_search_path}: | \
17249 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17251 ${x_library}/X11/%L/%T/%N%C%S:\
17252 ${x_library}/X11/%l/%T/%N%C%S:\
17253 ${x_library}/X11/%T/%N%C%S:\
17254 ${x_library}/X11/%L/%T/%N%S:\
17255 ${x_library}/X11/%l/%T/%N%S:\
17256 ${x_library}/X11/%T/%N%S"
17257 if test x
"${x_default_search_path}" = x
; then
17258 x_default_search_path
=${x_search_path}
17260 x_default_search_path
="${x_search_path}:${x_default_search_path}"
17266 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
17267 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17270 if test x
"${x_includes}" = x
; then
17271 bitmapdir
=/usr
/include
/X11
/bitmaps
17273 # accumulate include directories that have X11 bitmap subdirectories
17275 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17276 if test -d "${bmd}/X11/bitmaps"; then
17277 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
17279 if test -d "${bmd}/bitmaps"; then
17280 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
17283 if test ${bmd_acc} != "dummyval"; then
17284 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17291 tmp_CPPFLAGS
="$CPPFLAGS"
17292 tmp_CFLAGS
="$CFLAGS"
17293 CPPFLAGS
="$CPPFLAGS -x objective-c"
17294 CFLAGS
="$CFLAGS -x objective-c"
17295 TEMACS_LDFLAGS2
="\${LDFLAGS}"
17297 if test "${with_ns}" != no
; then
17298 if test "${opsys}" = darwin
; then
17300 ns_appdir
=`pwd`/nextstep
/Emacs.app
17301 ns_appbindir
=${ns_appdir}/Contents
/MacOS
17302 ns_appresdir
=${ns_appdir}/Contents
/Resources
17303 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
17304 elif test -f $GNUSTEP_CONFIG_FILE; then
17305 NS_IMPL_GNUSTEP
=yes
17306 ns_appdir
=`pwd`/nextstep
/Emacs.app
17307 ns_appbindir
=${ns_appdir}
17308 ns_appresdir
=${ns_appdir}/Resources
17309 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
17310 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17311 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17312 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17313 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17314 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17315 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
17316 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17317 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
17318 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17319 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17320 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17325 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17326 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17327 $as_echo_n "(cached) " >&6
17329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331 #include <GNUstepBase/GSConfig.h>
17335 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17344 if ac_fn_c_try_compile
"$LINENO"; then :
17345 emacs_cv_objc_exceptions
=yes
17347 emacs_cv_objc_exceptions
=no
17349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17352 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17353 if test $emacs_cv_objc_exceptions = yes; then
17355 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17357 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
17361 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
17363 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17364 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
17367 as_fn_error
"\`--with-ns' was specified, but the include
17368 files are missing or cannot be compiled." "$LINENO" 5
17372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 #include <Foundation/NSObjCRuntime.h>
17383 if ac_fn_c_try_compile
"$LINENO"; then :
17384 ns_have_nsinteger
=yes
17386 ns_have_nsinteger
=no
17388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17389 if test $ns_have_nsinteger = yes; then
17391 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17397 INSTALL_ARCH_INDEP_EXTRA
=install-etc
17398 ns_self_contained
=no
17402 if test "${HAVE_NS}" = yes; then
17403 if test "$with_toolkit_scroll_bars" = "no"; then
17404 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17407 window_system
=nextstep
17409 # set up packaging dirs
17410 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17411 ns_self_contained
=yes
17412 prefix
=${ns_appresdir}
17413 exec_prefix
=${ns_appbindir}
17414 libexecdir
="\${ns_appbindir}/libexec"
17415 archlibdir
="\${ns_appbindir}/libexec"
17416 docdir
="\${ns_appresdir}/etc"
17417 etcdir
="\${ns_appresdir}/etc"
17418 infodir
="\${ns_appresdir}/info"
17419 mandir
="\${ns_appresdir}/man"
17420 lispdir
="\${ns_appresdir}/lisp"
17421 leimdir
="\${ns_appresdir}/leim"
17422 INSTALL_ARCH_INDEP_EXTRA
=
17424 ns_frag
=$srcdir/src
/ns.mk
17425 NS_OBJ
="fontset.o fringe.o image.o"
17426 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17428 CFLAGS
="$tmp_CFLAGS"
17429 CPPFLAGS
="$tmp_CPPFLAGS"
17437 case "${window_system}" in
17441 case "${with_x_toolkit}" in
17442 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
17443 motif
) USE_X_TOOLKIT
=MOTIF
;;
17445 USE_X_TOOLKIT
=none
;;
17446 gtk3
) with_gtk3
=yes
17447 USE_X_TOOLKIT
=none
;;
17448 no
) USE_X_TOOLKIT
=none
;;
17449 * ) USE_X_TOOLKIT
=maybe
;;
17459 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
17460 # Extract the first word of "X", so it can be a program name with args.
17461 set dummy X
; ac_word
=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17463 $as_echo_n "checking for $ac_word... " >&6; }
17464 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17465 $as_echo_n "(cached) " >&6
17467 if test -n "$HAVE_XSERVER"; then
17468 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
17470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17471 for as_dir
in $PATH
17474 test -z "$as_dir" && as_dir
=.
17475 for ac_exec_ext
in '' $ac_executable_extensions; do
17476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17477 ac_cv_prog_HAVE_XSERVER
="true"
17478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17485 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
17488 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
17489 if test -n "$HAVE_XSERVER"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17491 $as_echo "$HAVE_XSERVER" >&6; }
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17498 if test "$HAVE_XSERVER" = true ||
17499 test -n "$DISPLAY" ||
17500 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17501 as_fn_error
"You seem to be running X, but no X development libraries
17502 were found. You should install the relevant development files for X
17503 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17504 sure you have development files for image handling, i.e.
17505 tiff, gif, jpeg, png and xpm.
17506 If you are sure you want Emacs compiled without X window support, pass
17508 to configure." "$LINENO" 5
17512 ### If we're using X11, we should use the X menu package.
17514 case ${HAVE_X11} in
17515 yes ) HAVE_MENUS
=yes ;;
17518 # Does the opsystem file prohibit the use of the GNU malloc?
17519 # Assume not, until told otherwise.
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17523 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17524 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17525 $as_echo_n "(cached) " >&6
17527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <malloc.h>
17530 static void hook (void) {}
17534 malloc_set_state (malloc_get_state ());
17535 __after_morecore_hook = hook;
17536 __malloc_initialize_hook = hook;
17541 if ac_fn_c_try_link
"$LINENO"; then :
17542 emacs_cv_var_doug_lea_malloc
=yes
17544 emacs_cv_var_doug_lea_malloc
=no
17546 rm -f core conftest.err conftest.
$ac_objext \
17547 conftest
$ac_exeext conftest.
$ac_ext
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17550 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17551 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
17556 ## darwin ld insists on the use of malloc routines in the System framework.
17557 darwin|sol2-10
) system_malloc
=yes ;;
17560 if test "${system_malloc}" = "yes"; then
17562 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17565 GNU_MALLOC_reason
="
17566 (The GNU allocators don't work with this system configuration.)"
17570 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
17571 VMLIMIT_OBJ
=vm-limit.o
17576 if test "$doug_lea_malloc" = "yes" ; then
17577 if test "$GNU_MALLOC" = yes ; then
17578 GNU_MALLOC_reason
="
17579 (Using Doug Lea's new malloc from the GNU C Library.)"
17582 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17585 ## Use mmap directly for allocating larger buffers.
17586 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17587 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17588 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17590 gnu
*) REL_ALLOC
=no
;;
17594 if test x
"${REL_ALLOC}" = x
; then
17595 REL_ALLOC
=${GNU_MALLOC}
17598 use_mmap_for_buffers
=no
17600 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
17606 for ac_func
in getpagesize
17608 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17609 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
17610 cat >>confdefs.h
<<_ACEOF
17611 #define HAVE_GETPAGESIZE 1
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17618 $as_echo_n "checking for working mmap... " >&6; }
17619 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17620 $as_echo_n "(cached) " >&6
17622 if test "$cross_compiling" = yes; then :
17623 ac_cv_func_mmap_fixed_mapped
=no
17625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 $ac_includes_default
17628 /* malloc might have been renamed as rpl_malloc. */
17631 /* Thanks to Mike Haertel and Jim Avera for this test.
17632 Here is a matrix of mmap possibilities:
17633 mmap private not fixed
17634 mmap private fixed at somewhere currently unmapped
17635 mmap private fixed at somewhere already mapped
17636 mmap shared not fixed
17637 mmap shared fixed at somewhere currently unmapped
17638 mmap shared fixed at somewhere already mapped
17639 For private mappings, we should verify that changes cannot be read()
17640 back from the file, nor mmap's back from the file at a different
17641 address. (There have been systems where private was not correctly
17642 implemented like the infamous i386 svr4.0, and systems where the
17643 VM page cache was not coherent with the file system buffer cache
17644 like early versions of FreeBSD and possibly contemporary NetBSD.)
17645 For shared mappings, we should conversely verify that changes get
17646 propagated back to all the places they're supposed to be.
17648 Grep wants private fixed already mapped.
17649 The main things grep needs to know about mmap are:
17650 * does it exist and is it safe to write into the mmap'd area
17651 * how to use it (BSD variants) */
17654 #include <sys/mman.h>
17656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17660 /* This mess was copied from the GNU getpagesize.h. */
17661 #ifndef HAVE_GETPAGESIZE
17662 # ifdef _SC_PAGESIZE
17663 # define getpagesize() sysconf(_SC_PAGESIZE)
17664 # else /* no _SC_PAGESIZE */
17665 # ifdef HAVE_SYS_PARAM_H
17666 # include <sys/param.h>
17667 # ifdef EXEC_PAGESIZE
17668 # define getpagesize() EXEC_PAGESIZE
17669 # else /* no EXEC_PAGESIZE */
17671 # define getpagesize() NBPG * CLSIZE
17674 # endif /* no CLSIZE */
17675 # else /* no NBPG */
17677 # define getpagesize() NBPC
17678 # else /* no NBPC */
17680 # define getpagesize() PAGESIZE
17681 # endif /* PAGESIZE */
17682 # endif /* no NBPC */
17683 # endif /* no NBPG */
17684 # endif /* no EXEC_PAGESIZE */
17685 # else /* no HAVE_SYS_PARAM_H */
17686 # define getpagesize() 8192 /* punt totally */
17687 # endif /* no HAVE_SYS_PARAM_H */
17688 # endif /* no _SC_PAGESIZE */
17690 #endif /* no HAVE_GETPAGESIZE */
17695 char *data, *data2, *data3;
17696 const char *cdata2;
17700 pagesize = getpagesize ();
17702 /* First, make a file with some known garbage in it. */
17703 data = (char *) malloc (pagesize);
17706 for (i = 0; i < pagesize; ++i)
17707 *(data + i) = rand ();
17709 fd = creat ("conftest.mmap", 0600);
17712 if (write (fd, data, pagesize) != pagesize)
17716 /* Next, check that the tail of a page is zero-filled. File must have
17717 non-zero length, otherwise we risk SIGBUS for entire page. */
17718 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17722 if (write (fd2, cdata2, 1) != 1)
17724 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17725 if (data2 == MAP_FAILED)
17727 for (i = 0; i < pagesize; ++i)
17731 if (munmap (data2, pagesize))
17734 /* Next, try to mmap the file at a fixed address which already has
17735 something else allocated at it. If we can, also make sure that
17736 we see the same garbage. */
17737 fd = open ("conftest.mmap", O_RDWR);
17740 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17741 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17743 for (i = 0; i < pagesize; ++i)
17744 if (*(data + i) != *(data2 + i))
17747 /* Finally, make sure that changes to the mapped area do not
17748 percolate back to the file as seen by read(). (This is a bug on
17749 some variants of i386 svr4.0.) */
17750 for (i = 0; i < pagesize; ++i)
17751 *(data2 + i) = *(data2 + i) + 1;
17752 data3 = (char *) malloc (pagesize);
17755 if (read (fd, data3, pagesize) != pagesize)
17757 for (i = 0; i < pagesize; ++i)
17758 if (*(data + i) != *(data3 + i))
17764 if ac_fn_c_try_run
"$LINENO"; then :
17765 ac_cv_func_mmap_fixed_mapped
=yes
17767 ac_cv_func_mmap_fixed_mapped
=no
17769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17775 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17776 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17778 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17781 rm -f conftest.mmap conftest.txt
17783 if test $use_mmap_for_buffers = yes; then
17785 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17790 LIBS
="$LIBS_SYSTEM $LIBS"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17793 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17794 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17797 ac_check_lib_save_LIBS
=$LIBS
17798 LIBS
="-ldnet $LIBS"
17799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17812 return dnet_ntoa ();
17817 if ac_fn_c_try_link
"$LINENO"; then :
17818 ac_cv_lib_dnet_dnet_ntoa
=yes
17820 ac_cv_lib_dnet_dnet_ntoa
=no
17822 rm -f core conftest.err conftest.
$ac_objext \
17823 conftest
$ac_exeext conftest.
$ac_ext
17824 LIBS
=$ac_check_lib_save_LIBS
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17827 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17828 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
17829 cat >>confdefs.h
<<_ACEOF
17830 #define HAVE_LIBDNET 1
17833 LIBS
="-ldnet $LIBS"
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17839 $as_echo_n "checking for main in -lXbsd... " >&6; }
17840 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17843 ac_check_lib_save_LIBS
=$LIBS
17844 LIBS
="-lXbsd $LIBS"
17845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17857 if ac_fn_c_try_link
"$LINENO"; then :
17858 ac_cv_lib_Xbsd_main
=yes
17860 ac_cv_lib_Xbsd_main
=no
17862 rm -f core conftest.err conftest.
$ac_objext \
17863 conftest
$ac_exeext conftest.
$ac_ext
17864 LIBS
=$ac_check_lib_save_LIBS
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17868 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
17869 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
17877 if test "$ac_cv_header_pthread_h"; then
17878 if test "$GMALLOC_OBJ" = gmalloc.o
; then
17879 emacs_pthread_function
=pthread_atfork
17881 emacs_pthread_function
=pthread_self
17883 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17885 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17886 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17887 $as_echo_n "(cached) " >&6
17889 ac_check_lib_save_LIBS
=$LIBS
17890 LIBS
="-lpthread $LIBS"
17891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17900 char $emacs_pthread_function ();
17904 return $emacs_pthread_function ();
17909 if ac_fn_c_try_link
"$LINENO"; then :
17910 eval "$as_ac_Lib=yes"
17912 eval "$as_ac_Lib=no"
17914 rm -f core conftest.err conftest.
$ac_objext \
17915 conftest
$ac_exeext conftest.
$ac_ext
17916 LIBS
=$ac_check_lib_save_LIBS
17918 eval ac_res
=\$
$as_ac_Lib
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17920 $as_echo "$ac_res" >&6; }
17921 eval as_val
=\$
$as_ac_Lib
17922 if test "x$as_val" = x
""yes; then :
17927 if test "$HAVE_PTHREAD" = yes; then
17928 case "${canonical}" in
17930 *) LIB_PTHREAD
="-lpthread"
17931 LIBS
="$LIB_PTHREAD $LIBS" ;;
17934 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17940 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17941 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17942 $as_echo_n "(cached) " >&6
17944 ac_check_lib_save_LIBS
=$LIBS
17945 LIBS
="-lpthreads $LIBS"
17946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17959 return cma_open ();
17964 if ac_fn_c_try_link
"$LINENO"; then :
17965 ac_cv_lib_pthreads_cma_open
=yes
17967 ac_cv_lib_pthreads_cma_open
=no
17969 rm -f core conftest.err conftest.
$ac_objext \
17970 conftest
$ac_exeext conftest.
$ac_ext
17971 LIBS
=$ac_check_lib_save_LIBS
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
17974 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
17975 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
17976 cat >>confdefs.h
<<_ACEOF
17977 #define HAVE_LIBPTHREADS 1
17980 LIBS
="-lpthreads $LIBS"
17985 ## Note: when using cpp in s/aix4.2.h, this definition depended on
17986 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
17987 ## the system file was sourced. Hence the value of LIBS_SYSTEM
17988 ## added to LIBS in configure would never contain the pthreads part,
17989 ## but the value used in Makefiles might. FIXME?
17991 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
17992 ## be harmless on older versions of X where it happens to exist.
17993 test "$opsys" = "aix4-2" && \
17994 test $ac_cv_lib_pthreads_cma_open = yes && \
17995 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18001 $as_echo_n "checking for -bbigtoc option... " >&6; }
18002 if test "${gdb_cv_bigtoc+set}" = set; then :
18003 $as_echo_n "(cached) " >&6
18007 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
18008 *) gdb_cv_bigtoc
=-bbigtoc ;;
18011 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
18012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18023 if ac_fn_c_try_link
"$LINENO"; then :
18028 rm -f core conftest.err conftest.
$ac_objext \
18029 conftest
$ac_exeext conftest.
$ac_ext
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18033 $as_echo "$gdb_cv_bigtoc" >&6; }
18037 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18038 # used for the tests that follow. We set them back to REAL_CFLAGS and
18039 # REAL_CPPFLAGS later on.
18041 REAL_CFLAGS
="$CFLAGS"
18042 REAL_CPPFLAGS
="$CPPFLAGS"
18044 if test "${HAVE_X11}" = "yes"; then
18045 DEFS
="$C_SWITCH_X_SITE $DEFS"
18046 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
18048 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
18049 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
18051 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18052 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18053 # but it's more convenient here to set LD_RUN_PATH since this
18054 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18055 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
18056 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18060 if test "${opsys}" = "gnu-linux"; then
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18062 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18069 XOpenDisplay ("foo");
18074 if ac_fn_c_try_link
"$LINENO"; then :
18075 xgnu_linux_first_failure
=no
18077 xgnu_linux_first_failure
=yes
18079 rm -f core conftest.err conftest.
$ac_objext \
18080 conftest
$ac_exeext conftest.
$ac_ext
18081 if test "${xgnu_linux_first_failure}" = "yes"; then
18082 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
18083 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
18084 OLD_CPPFLAGS
="$CPPFLAGS"
18086 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
18087 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
18088 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
18089 LIBS
="$LIBS -b i486-linuxaout"
18090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18096 XOpenDisplay ("foo");
18101 if ac_fn_c_try_link
"$LINENO"; then :
18102 xgnu_linux_second_failure
=no
18104 xgnu_linux_second_failure
=yes
18106 rm -f core conftest.err conftest.
$ac_objext \
18107 conftest
$ac_exeext conftest.
$ac_ext
18108 if test "${xgnu_linux_second_failure}" = "yes"; then
18109 # If we get the same failure with -b, there is no use adding -b.
18110 # So take it out. This plays safe.
18111 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
18112 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
18113 CPPFLAGS
="$OLD_CPPFLAGS"
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18116 $as_echo "no" >&6; }
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119 $as_echo "yes" >&6; }
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18123 $as_echo "no" >&6; }
18127 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18128 # header files included from there.
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18130 $as_echo_n "checking for Xkb... " >&6; }
18131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133 #include <X11/Xlib.h>
18134 #include <X11/XKBlib.h>
18138 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18143 if ac_fn_c_try_link
"$LINENO"; then :
18148 rm -f core conftest.err conftest.
$ac_objext \
18149 conftest
$ac_exeext conftest.
$ac_ext
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18151 $as_echo "$emacs_xkb" >&6; }
18152 if test $emacs_xkb = yes; then
18154 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18158 for ac_func
in XrmSetDatabase XScreenResourceString \
18159 XScreenNumberOfScreen
18161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18163 eval as_val
=\$
$as_ac_var
18164 if test "x$as_val" = x
""yes; then :
18165 cat >>confdefs.h
<<_ACEOF
18166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18174 if test "${window_system}" = "x11"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18176 $as_echo_n "checking X11 version 6... " >&6; }
18177 if test "${emacs_cv_x11_version_6+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 #include <X11/Xlib.h>
18186 #if XlibSpecificationRelease < 6
18194 if ac_fn_c_try_link
"$LINENO"; then :
18195 emacs_cv_x11_version_6
=yes
18197 emacs_cv_x11_version_6
=no
18199 rm -f core conftest.err conftest.
$ac_objext \
18200 conftest
$ac_exeext conftest.
$ac_ext
18203 if test $emacs_cv_x11_version_6 = yes; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18205 $as_echo "6 or newer" >&6; }
18207 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18210 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18212 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18217 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18223 $as_echo "before 6" >&6; }
18228 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18230 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
18231 if test "${with_rsvg}" != "no"; then
18232 RSVG_REQUIRED
=2.11.0
18233 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
18238 if test "$PKG_CONFIG" = "no" ; then
18241 PKG_CONFIG_MIN_VERSION
=0.9.0
18242 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18244 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18246 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18247 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18248 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18255 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18256 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18258 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262 $as_echo "no" >&6; }
18265 ## If we have a custom action on failure, don't print errors, but
18266 ## do set a variable so people can do so.
18267 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18279 if test $succeeded = yes; then
18288 if test $HAVE_RSVG = yes; then
18290 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18292 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
18293 LIBS
="$RSVG_LIBS $LIBS"
18298 HAVE_IMAGEMAGICK
=no
18299 if test "${HAVE_X11}" = "yes"; then
18300 if test "${with_imagemagick}" != "no"; then
18301 ## 6.2.8 is the earliest version known to work, but earlier versions
18302 ## might work - let us know if you find one.
18303 ## 6.0.7 does not work. See bug#7955.
18304 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
18308 if test "$PKG_CONFIG" = "no" ; then
18311 PKG_CONFIG_MIN_VERSION
=0.9.0
18312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18314 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18316 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18317 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18318 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18325 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18326 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18328 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 IMAGEMAGICK_CFLAGS
=""
18334 IMAGEMAGICK_LIBS
=""
18335 ## If we have a custom action on failure, don't print errors, but
18336 ## do set a variable so people can do so.
18337 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18349 if test $succeeded = yes; then
18350 HAVE_IMAGEMAGICK
=yes
18358 if test $HAVE_IMAGEMAGICK = yes; then
18360 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18362 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
18363 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
18364 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
18366 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18367 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18368 eval as_val
=\$
$as_ac_var
18369 if test "x$as_val" = x
""yes; then :
18370 cat >>confdefs.h
<<_ACEOF
18371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18384 if test "${with_gtk3}" = "yes"; then
18387 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18392 if test "$PKG_CONFIG" = "no" ; then
18395 PKG_CONFIG_MIN_VERSION
=0.9.0
18396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18398 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18400 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18401 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18402 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18409 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18410 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18412 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18419 ## If we have a custom action on failure, don't print errors, but
18420 ## do set a variable so people can do so.
18421 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18433 if test $succeeded = yes; then
18439 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18440 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18443 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18445 GTK_OBJ
=emacsgtkfixed.o
18448 if test "$pkg_check_gtk" != "yes"; then
18450 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
18453 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18458 if test "$PKG_CONFIG" = "no" ; then
18461 PKG_CONFIG_MIN_VERSION
=0.9.0
18462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18464 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18466 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18467 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18468 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18475 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18476 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18478 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482 $as_echo "no" >&6; }
18485 ## If we have a custom action on failure, don't print errors, but
18486 ## do set a variable so people can do so.
18487 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18494 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18495 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18499 if test $succeeded = yes; then
18505 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18506 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18511 if test x
"$pkg_check_gtk" = xyes
; then
18515 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
18516 CFLAGS
="$CFLAGS $GTK_CFLAGS"
18517 LIBS
="$GTK_LIBS $LIBS"
18519 for ac_func
in gtk_main
18521 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18522 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
18523 cat >>confdefs.h
<<_ACEOF
18524 #define HAVE_GTK_MAIN 1
18530 if test "${GTK_COMPILES}" != "yes"; then
18531 if test "$USE_X_TOOLKIT" != "maybe"; then
18532 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18537 $as_echo "#define USE_GTK 1" >>confdefs.h
18539 GTK_OBJ
="gtkutil.o $GTK_OBJ"
18541 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18545 closing open displays. This is no problem if you just use
18546 one display, but if you use more than one and close one of them
18547 Emacs may crash." >&5
18548 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18549 closing open displays. This is no problem if you just use
18550 one display, but if you use more than one and close one of them
18551 Emacs may crash." >&2;}
18560 if test "${HAVE_GTK}" = "yes"; then
18562 if test "$with_toolkit_scroll_bars" != no
; then
18563 with_toolkit_scroll_bars
=yes
18566 HAVE_GTK_FILE_SELECTION
=no
18567 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18568 #include <gtk/gtk.h>
18570 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
18571 HAVE_GTK_FILE_SELECTION
=yes
18573 HAVE_GTK_FILE_SELECTION
=no
18576 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18577 for ac_func
in gtk_file_selection_new
18579 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18580 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
18581 cat >>confdefs.h
<<_ACEOF
18582 #define HAVE_GTK_FILE_SELECTION_NEW 1
18591 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
18592 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18593 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18594 gtk_orientable_set_orientation \
18595 gtk_window_set_has_resize_grip
18597 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18599 eval as_val
=\$
$as_ac_var
18600 if test "x$as_val" = x
""yes; then :
18601 cat >>confdefs.h
<<_ACEOF
18602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18612 if test "${with_dbus}" = "yes"; then
18616 if test "$PKG_CONFIG" = "no" ; then
18619 PKG_CONFIG_MIN_VERSION
=0.9.0
18620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18622 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18624 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18625 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18626 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18633 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18634 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18636 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640 $as_echo "no" >&6; }
18643 ## If we have a custom action on failure, don't print errors, but
18644 ## do set a variable so people can do so.
18645 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18657 if test $succeeded = yes; then
18663 if test "$HAVE_DBUS" = yes; then
18664 LIBS
="$LIBS $DBUS_LIBS"
18666 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18668 for ac_func
in dbus_watch_get_unix_fd \
18669 dbus_type_is_valid \
18670 dbus_validate_bus_name \
18671 dbus_validate_path \
18672 dbus_validate_interface \
18673 dbus_validate_member
18675 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18676 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18677 eval as_val
=\$
$as_ac_var
18678 if test "x$as_val" = x
""yes; then :
18679 cat >>confdefs.h
<<_ACEOF
18680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18686 DBUS_OBJ
=dbusbind.o
18692 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18696 if test "$PKG_CONFIG" = "no" ; then
18699 PKG_CONFIG_MIN_VERSION
=0.9.0
18700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18702 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18704 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18705 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18706 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18713 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18714 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18716 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720 $as_echo "no" >&6; }
18721 GSETTINGS_CFLAGS
=""
18723 ## If we have a custom action on failure, don't print errors, but
18724 ## do set a variable so people can do so.
18725 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18737 if test $succeeded = yes; then
18743 if test "$HAVE_GSETTINGS" = "yes"; then
18745 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18747 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
18748 SETTINGS_LIBS
="$GSETTINGS_LIBS"
18753 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18757 if test "$PKG_CONFIG" = "no" ; then
18760 PKG_CONFIG_MIN_VERSION
=0.9.0
18761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18763 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18765 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18766 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18767 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18774 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18775 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18777 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781 $as_echo "no" >&6; }
18784 ## If we have a custom action on failure, don't print errors, but
18785 ## do set a variable so people can do so.
18786 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18798 if test $succeeded = yes; then
18804 if test "$HAVE_GCONF" = yes; then
18806 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18808 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18809 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
18813 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
18814 SAVE_CFLAGS
="$CFLAGS"
18816 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
18817 LIBS
="$SETTINGS_LIBS $LIBS"
18818 for ac_func
in g_type_init
18820 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18821 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
18822 cat >>confdefs.h
<<_ACEOF
18823 #define HAVE_G_TYPE_INIT 1
18829 CFLAGS
="$SAVE_CFLAGS"
18838 if test "${with_selinux}" = "yes"; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18840 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18841 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18842 $as_echo_n "(cached) " >&6
18844 ac_check_lib_save_LIBS
=$LIBS
18845 LIBS
="-lselinux $LIBS"
18846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18855 char lgetfilecon ();
18859 return lgetfilecon ();
18864 if ac_fn_c_try_link
"$LINENO"; then :
18865 ac_cv_lib_selinux_lgetfilecon
=yes
18867 ac_cv_lib_selinux_lgetfilecon
=no
18869 rm -f core conftest.err conftest.
$ac_objext \
18870 conftest
$ac_exeext conftest.
$ac_ext
18871 LIBS
=$ac_check_lib_save_LIBS
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18874 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18875 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
18876 HAVE_LIBSELINUX
=yes
18881 if test "$HAVE_LIBSELINUX" = yes; then
18883 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18885 LIBSELINUX_LIBS
=-lselinux
18891 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
18892 if test "${with_gnutls}" = "yes" ; then
18896 if test "$PKG_CONFIG" = "no" ; then
18899 PKG_CONFIG_MIN_VERSION
=0.9.0
18900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18902 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18904 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18905 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18906 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18913 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18914 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18916 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18920 $as_echo "no" >&6; }
18921 LIBGNUTLS_CFLAGS
=""
18923 ## If we have a custom action on failure, don't print errors, but
18924 ## do set a variable so people can do so.
18925 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18937 if test $succeeded = yes; then
18943 if test "${HAVE_GNUTLS}" = "yes"; then
18945 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18949 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
18950 LIBS
="$LIBGNUTLS_LIBS $LIBS"
18951 for ac_func
in gnutls_certificate_set_verify_function
18953 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18954 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
18955 cat >>confdefs.h
<<_ACEOF
18956 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
18958 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
18963 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
18965 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
18975 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
18976 if test "$with_xaw3d" != no
; then
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
18978 $as_echo_n "checking for xaw3d... " >&6; }
18979 if test "${emacs_cv_xaw3d+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18985 #include <X11/Intrinsic.h>
18986 #include <X11/Xaw3d/Simple.h>
18995 if ac_fn_c_try_link
"$LINENO"; then :
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
18997 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
18998 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
18999 $as_echo_n "(cached) " >&6
19001 ac_check_lib_save_LIBS
=$LIBS
19002 LIBS
="-lXaw3d $LIBS"
19003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19012 char XawScrollbarSetThumb ();
19016 return XawScrollbarSetThumb ();
19021 if ac_fn_c_try_link
"$LINENO"; then :
19022 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
19024 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
19026 rm -f core conftest.err conftest.
$ac_objext \
19027 conftest
$ac_exeext conftest.
$ac_ext
19028 LIBS
=$ac_check_lib_save_LIBS
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19031 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19032 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
19041 rm -f core conftest.err conftest.
$ac_objext \
19042 conftest
$ac_exeext conftest.
$ac_ext
19048 if test $emacs_cv_xaw3d = yes; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19050 $as_echo "yes; using Lucid toolkit" >&6; }
19051 USE_X_TOOLKIT
=LUCID
19055 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19061 $as_echo_n "checking for libXaw... " >&6; }
19062 if test "${emacs_cv_xaw+set}" = set; then :
19063 $as_echo_n "(cached) " >&6
19065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 #include <X11/Intrinsic.h>
19069 #include <X11/Xaw/Simple.h>
19078 if ac_fn_c_try_link
"$LINENO"; then :
19083 rm -f core conftest.err conftest.
$ac_objext \
19084 conftest
$ac_exeext conftest.
$ac_ext
19087 if test $emacs_cv_xaw = yes; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19089 $as_echo "yes; using Lucid toolkit" >&6; }
19090 USE_X_TOOLKIT
=LUCID
19092 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
19093 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19095 as_fn_error
"No X toolkit could be found.
19096 If you are sure you want Emacs compiled without an X toolkit, pass
19097 --with-x-toolkit=no
19098 to configure. Otherwise, install the development libraries for the toolkit
19099 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19104 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
19107 if test "${USE_X_TOOLKIT}" != "none"; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19109 $as_echo_n "checking X11 toolkit version... " >&6; }
19110 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19111 $as_echo_n "(cached) " >&6
19113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19115 #include <X11/Intrinsic.h>
19119 #if XtSpecificationRelease < 6
19127 if ac_fn_c_try_link
"$LINENO"; then :
19128 emacs_cv_x11_toolkit_version_6
=yes
19130 emacs_cv_x11_toolkit_version_6
=no
19132 rm -f core conftest.err conftest.
$ac_objext \
19133 conftest
$ac_exeext conftest.
$ac_ext
19136 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
19137 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19139 $as_echo "6 or newer" >&6; }
19141 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19143 LIBXTR6
="-lSM -lICE"
19145 ## Use libw.a along with X11R6 Xt.
19146 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19150 $as_echo "before 6" >&6; }
19154 if test x
$HAVE_X11XTR6 = xyes
; then
19155 LIBS
="-lXt -lSM -lICE $LIBS"
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19160 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19161 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19162 $as_echo_n "(cached) " >&6
19164 ac_check_lib_save_LIBS
=$LIBS
19166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19169 /* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19175 char XmuConvertStandardSelection ();
19179 return XmuConvertStandardSelection ();
19184 if ac_fn_c_try_link
"$LINENO"; then :
19185 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
19187 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
19189 rm -f core conftest.err conftest.
$ac_objext \
19190 conftest
$ac_exeext conftest.
$ac_ext
19191 LIBS
=$ac_check_lib_save_LIBS
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19194 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19195 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
19196 cat >>confdefs.h
<<_ACEOF
19197 #define HAVE_LIBXMU 1
19204 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
19210 ## These systems don't supply Xmu.
19212 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
19217 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19218 if test "${HAVE_X11}" = "yes"; then
19219 if test "${USE_X_TOOLKIT}" != "none"; then
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19221 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19222 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19223 $as_echo_n "(cached) " >&6
19225 ac_check_lib_save_LIBS
=$LIBS
19226 LIBS
="-lXext $LIBS"
19227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h. */
19230 /* Override any GCC internal prototype to avoid an error.
19231 Use char because int might match the return type of a GCC
19232 builtin and then its argument prototype would still apply. */
19236 char XShapeQueryExtension ();
19240 return XShapeQueryExtension ();
19245 if ac_fn_c_try_link
"$LINENO"; then :
19246 ac_cv_lib_Xext_XShapeQueryExtension
=yes
19248 ac_cv_lib_Xext_XShapeQueryExtension
=no
19250 rm -f core conftest.err conftest.
$ac_objext \
19251 conftest
$ac_exeext conftest.
$ac_ext
19252 LIBS
=$ac_check_lib_save_LIBS
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19255 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19256 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
19257 cat >>confdefs.h
<<_ACEOF
19258 #define HAVE_LIBXEXT 1
19261 LIBS
="-lXext $LIBS"
19269 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19271 $as_echo_n "checking for Motif version 2.1... " >&6; }
19272 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19281 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19284 Motif version prior to 2.1.
19290 if ac_fn_c_try_compile
"$LINENO"; then :
19291 emacs_cv_motif_version_2_1
=yes
19293 emacs_cv_motif_version_2_1
=no
19295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19298 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19299 if test $emacs_cv_motif_version_2_1 = yes; then
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19301 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19302 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19303 $as_echo_n "(cached) " >&6
19305 ac_check_lib_save_LIBS
=$LIBS
19307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19310 /* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19316 char XpCreateContext ();
19320 return XpCreateContext ();
19325 if ac_fn_c_try_link
"$LINENO"; then :
19326 ac_cv_lib_Xp_XpCreateContext
=yes
19328 ac_cv_lib_Xp_XpCreateContext
=no
19330 rm -f core conftest.err conftest.
$ac_objext \
19331 conftest
$ac_exeext conftest.
$ac_ext
19332 LIBS
=$ac_check_lib_save_LIBS
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19335 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19336 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19342 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19343 if test "${emacs_cv_lesstif+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19346 # We put this in CFLAGS temporarily to precede other -I options
19347 # that might be in CFLAGS temporarily.
19348 # We put this in CPPFLAGS where it precedes the other -I options.
19349 OLD_CPPFLAGS
=$CPPFLAGS
19351 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19352 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19364 if ac_fn_c_try_compile
"$LINENO"; then :
19365 emacs_cv_lesstif
=yes
19367 emacs_cv_lesstif
=no
19369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19372 $as_echo "$emacs_cv_lesstif" >&6; }
19373 if test $emacs_cv_lesstif = yes; then
19374 # Make sure this -I option remains in CPPFLAGS after it is set
19375 # back to REAL_CPPFLAGS.
19376 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19377 # have those other -I options anyway. Ultimately, having this
19378 # directory ultimately in CPPFLAGS will be enough.
19379 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19380 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19383 CPPFLAGS
=$OLD_CPPFLAGS
19386 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19387 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
19390 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
19397 USE_TOOLKIT_SCROLL_BARS
=no
19398 if test "${with_toolkit_scroll_bars}" != "no"; then
19399 if test "${USE_X_TOOLKIT}" != "none"; then
19400 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19401 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19404 USE_TOOLKIT_SCROLL_BARS
=yes
19405 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
19406 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19408 USE_TOOLKIT_SCROLL_BARS
=yes
19410 elif test "${HAVE_GTK}" = "yes"; then
19411 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19413 USE_TOOLKIT_SCROLL_BARS
=yes
19414 elif test "${HAVE_NS}" = "yes"; then
19415 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19417 USE_TOOLKIT_SCROLL_BARS
=yes
19421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19422 /* end confdefs.h. */
19424 #include <X11/Xlib.h>
19425 #include <X11/Xresource.h>
19434 if ac_fn_c_try_compile
"$LINENO"; then :
19437 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19445 if test "${with_xim}" != "no"; then
19447 $as_echo "#define USE_XIM 1" >>confdefs.h
19452 if test "${HAVE_XIM}" != "no"; then
19453 late_CFLAGS
=$CFLAGS
19454 if test "$GCC" = yes; then
19455 CFLAGS
="$CFLAGS --pedantic-errors"
19457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19460 #include <X11/Xlib.h>
19461 #include <X11/Xresource.h>
19470 XPointer *client_data;
19472 /* If we're not using GCC, it's probably not XFree86, and this is
19473 probably right, but we can't use something like --pedantic-errors. */
19474 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19475 char*, XIMProc, XPointer*);
19477 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19483 if ac_fn_c_try_compile
"$LINENO"; then :
19484 emacs_cv_arg6_star
=yes
19486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19487 if test "$emacs_cv_arg6_star" = yes; then
19488 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19491 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19494 CFLAGS
=$late_CFLAGS
19497 ### Start of font-backend (under any platform) section.
19498 # (nothing here yet -- this is a placeholder)
19499 ### End of font-backend (under any platform) section.
19501 ### Start of font-backend (under X11) section.
19502 if test "${HAVE_X11}" = "yes"; then
19506 if test "$PKG_CONFIG" = "no" ; then
19509 PKG_CONFIG_MIN_VERSION
=0.9.0
19510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19512 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19514 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19515 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19516 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19523 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19524 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19526 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19530 $as_echo "no" >&6; }
19531 FONTCONFIG_CFLAGS
=""
19533 ## If we have a custom action on failure, don't print errors, but
19534 ## do set a variable so people can do so.
19535 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19547 if test $succeeded = yes; then
19554 ## Use -lXft if available, unless `--with-xft=no'.
19556 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
19559 if test "x${with_xft}" != "xno"; then
19564 if test "$PKG_CONFIG" = "no" ; then
19567 PKG_CONFIG_MIN_VERSION
=0.9.0
19568 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19570 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19572 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19573 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19574 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19581 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19582 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19584 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19588 $as_echo "no" >&6; }
19591 ## If we have a custom action on failure, don't print errors, but
19592 ## do set a variable so people can do so.
19593 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19605 if test $succeeded = yes; then
19611 ## Because xftfont.c uses XRenderQueryExtension, we also
19612 ## need to link to -lXrender.
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19615 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19616 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19617 $as_echo_n "(cached) " >&6
19619 ac_check_lib_save_LIBS
=$LIBS
19620 LIBS
="-lXrender $LIBS"
19621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19630 char XRenderQueryExtension ();
19634 return XRenderQueryExtension ();
19639 if ac_fn_c_try_link
"$LINENO"; then :
19640 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
19642 ac_cv_lib_Xrender_XRenderQueryExtension
=no
19644 rm -f core conftest.err conftest.
$ac_objext \
19645 conftest
$ac_exeext conftest.
$ac_ext
19646 LIBS
=$ac_check_lib_save_LIBS
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19649 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19650 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
19654 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
19655 OLD_CPPFLAGS
="$CPPFLAGS"
19656 OLD_CFLAGS
="$CFLAGS"
19658 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
19659 CFLAGS
="$CFLAGS $XFT_CFLAGS"
19660 XFT_LIBS
="-lXrender $XFT_LIBS"
19661 LIBS
="$XFT_LIBS $LIBS"
19662 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19663 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19665 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19666 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19667 $as_echo_n "(cached) " >&6
19669 ac_check_lib_save_LIBS
=$LIBS
19670 LIBS
="-lXft $XFT_LIBS $LIBS"
19671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19674 /* Override any GCC internal prototype to avoid an error.
19675 Use char because int might match the return type of a GCC
19676 builtin and then its argument prototype would still apply. */
19680 char XftFontOpen ();
19684 return XftFontOpen ();
19689 if ac_fn_c_try_link
"$LINENO"; then :
19690 ac_cv_lib_Xft_XftFontOpen
=yes
19692 ac_cv_lib_Xft_XftFontOpen
=no
19694 rm -f core conftest.err conftest.
$ac_objext \
19695 conftest
$ac_exeext conftest.
$ac_ext
19696 LIBS
=$ac_check_lib_save_LIBS
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19699 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19700 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
19708 if test "${HAVE_XFT}" = "yes"; then
19710 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19713 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
19715 CPPFLAGS
="$OLD_CPPFLAGS"
19716 CFLAGS
="$OLD_CFLAGS"
19718 fi # "${HAVE_XFT}" = "yes"
19719 fi # "$HAVE_XFT" != no
19720 fi # "x${with_xft}" != "xno"
19722 ## We used to allow building with FreeType and without Xft.
19723 ## However, the ftx font backend driver is not in good shape.
19724 if test "$HAVE_XFT" != "yes"; then
19731 if test "$PKG_CONFIG" = "no" ; then
19734 PKG_CONFIG_MIN_VERSION
=0.9.0
19735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19737 $as_echo_n "checking for freetype2... " >&6; }
19739 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19740 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19741 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19748 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19749 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19751 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755 $as_echo "no" >&6; }
19758 ## If we have a custom action on failure, don't print errors, but
19759 ## do set a variable so people can do so.
19760 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19772 if test $succeeded = yes; then
19779 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
19783 if test "${HAVE_FREETYPE}" = "yes"; then
19785 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19787 if test "${with_libotf}" != "no"; then
19791 if test "$PKG_CONFIG" = "no" ; then
19794 PKG_CONFIG_MIN_VERSION
=0.9.0
19795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19797 $as_echo_n "checking for libotf... " >&6; }
19799 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19800 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19801 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19808 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19809 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19811 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19815 $as_echo "no" >&6; }
19818 ## If we have a custom action on failure, don't print errors, but
19819 ## do set a variable so people can do so.
19820 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19832 if test $succeeded = yes; then
19838 if test "$HAVE_LIBOTF" = "yes"; then
19840 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19843 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19844 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19845 $as_echo_n "(cached) " >&6
19847 ac_check_lib_save_LIBS
=$LIBS
19849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h. */
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19858 char OTF_get_variation_glyphs ();
19862 return OTF_get_variation_glyphs ();
19867 if ac_fn_c_try_link
"$LINENO"; then :
19868 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
19870 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
19872 rm -f core conftest.err conftest.
$ac_objext \
19873 conftest
$ac_exeext conftest.
$ac_ext
19874 LIBS
=$ac_check_lib_save_LIBS
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19877 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19878 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
19879 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
19881 HAVE_OTF_GET_VARIATION_GLYPHS
=no
19884 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19886 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19894 if test "${HAVE_LIBOTF}" = yes; then
19895 if test "${with_m17n_flt}" != "no"; then
19899 if test "$PKG_CONFIG" = "no" ; then
19902 PKG_CONFIG_MIN_VERSION
=0.9.0
19903 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19905 $as_echo_n "checking for m17n-flt... " >&6; }
19907 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19908 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19909 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19916 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19917 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19919 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923 $as_echo "no" >&6; }
19926 ## If we have a custom action on failure, don't print errors, but
19927 ## do set a variable so people can do so.
19928 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19935 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19936 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19940 if test $succeeded = yes; then
19946 if test "$HAVE_M17N_FLT" = "yes"; then
19948 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19960 ### End of font-backend (under X11) section.
19971 ### Use -lXpm if available, unless `--with-xpm=no'.
19974 if test "${HAVE_X11}" = "yes"; then
19975 if test "${with_xpm}" != "no"; then
19976 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
19977 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
19979 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
19980 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19983 ac_check_lib_save_LIBS
=$LIBS
19984 LIBS
="-lXpm -lX11 $LIBS"
19985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19994 char XpmReadFileToPixmap ();
19998 return XpmReadFileToPixmap ();
20003 if ac_fn_c_try_link
"$LINENO"; then :
20004 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
20006 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
20008 rm -f core conftest.err conftest.
$ac_objext \
20009 conftest
$ac_exeext conftest.
$ac_ext
20010 LIBS
=$ac_check_lib_save_LIBS
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20013 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20014 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
20021 if test "${HAVE_XPM}" = "yes"; then
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20023 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20026 #include "X11/xpm.h"
20027 #ifndef XpmReturnAllocPixels
20028 no_return_alloc_pixels
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
20041 if test "${HAVE_XPM}" = "yes"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20043 $as_echo "yes" >&6; }
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20051 if test "${HAVE_XPM}" = "yes"; then
20053 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20060 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20063 if test "${HAVE_X11}" = "yes"; then
20064 if test "${with_jpeg}" != "no"; then
20065 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20066 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20068 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20069 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20072 ac_check_lib_save_LIBS
=$LIBS
20073 LIBS
="-ljpeg $LIBS"
20074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20083 char jpeg_destroy_compress ();
20087 return jpeg_destroy_compress ();
20092 if ac_fn_c_try_link
"$LINENO"; then :
20093 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
20095 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
20097 rm -f core conftest.err conftest.
$ac_objext \
20098 conftest
$ac_exeext conftest.
$ac_ext
20099 LIBS
=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20102 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20103 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
20112 if test "${HAVE_JPEG}" = "yes"; then
20113 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117 #include <jpeglib.h>
20118 version=JPEG_LIB_VERSION
20121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20122 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
20123 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20127 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20133 if test "${HAVE_JPEG}" = "yes"; then
20139 ### Use -lpng if available, unless `--with-png=no'.
20142 if test "${HAVE_X11}" = "yes"; then
20143 if test "${with_png}" != "no"; then
20144 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20145 # in /usr/include/libpng.
20146 for ac_header
in png.h libpng
/png.h
20148 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20149 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20150 eval as_val
=\$
$as_ac_Header
20151 if test "x$as_val" = x
""yes; then :
20152 cat >>confdefs.h
<<_ACEOF
20153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20160 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20162 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20163 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20164 $as_echo_n "(cached) " >&6
20166 ac_check_lib_save_LIBS
=$LIBS
20167 LIBS
="-lpng -lz -lm $LIBS"
20168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20177 char png_get_channels ();
20181 return png_get_channels ();
20186 if ac_fn_c_try_link
"$LINENO"; then :
20187 ac_cv_lib_png_png_get_channels
=yes
20189 ac_cv_lib_png_png_get_channels
=no
20191 rm -f core conftest.err conftest.
$ac_objext \
20192 conftest
$ac_exeext conftest.
$ac_ext
20193 LIBS
=$ac_check_lib_save_LIBS
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20196 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20197 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
20204 if test "${HAVE_PNG}" = "yes"; then
20206 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20208 LIBPNG
="-lpng -lz -lm"
20213 ### Use -ltiff if available, unless `--with-tiff=no'.
20216 if test "${HAVE_X11}" = "yes"; then
20217 if test "${with_tiff}" != "no"; then
20218 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20219 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
20221 # At least one tiff package requires the jpeg library.
20222 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20224 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20225 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20226 $as_echo_n "(cached) " >&6
20228 ac_check_lib_save_LIBS
=$LIBS
20229 LIBS
="-ltiff $tifflibs $LIBS"
20230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20233 /* Override any GCC internal prototype to avoid an error.
20234 Use char because int might match the return type of a GCC
20235 builtin and then its argument prototype would still apply. */
20239 char TIFFGetVersion ();
20243 return TIFFGetVersion ();
20248 if ac_fn_c_try_link
"$LINENO"; then :
20249 ac_cv_lib_tiff_TIFFGetVersion
=yes
20251 ac_cv_lib_tiff_TIFFGetVersion
=no
20253 rm -f core conftest.err conftest.
$ac_objext \
20254 conftest
$ac_exeext conftest.
$ac_ext
20255 LIBS
=$ac_check_lib_save_LIBS
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20258 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20259 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
20268 if test "${HAVE_TIFF}" = "yes"; then
20270 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20277 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20280 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20281 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20282 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
20283 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20284 # Earlier versions can crash Emacs.
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20286 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20287 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20288 $as_echo_n "(cached) " >&6
20290 ac_check_lib_save_LIBS
=$LIBS
20292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20295 /* Override any GCC internal prototype to avoid an error.
20296 Use char because int might match the return type of a GCC
20297 builtin and then its argument prototype would still apply. */
20301 char EGifPutExtensionLast ();
20305 return EGifPutExtensionLast ();
20310 if ac_fn_c_try_link
"$LINENO"; then :
20311 ac_cv_lib_gif_EGifPutExtensionLast
=yes
20313 ac_cv_lib_gif_EGifPutExtensionLast
=no
20315 rm -f core conftest.err conftest.
$ac_objext \
20316 conftest
$ac_exeext conftest.
$ac_ext
20317 LIBS
=$ac_check_lib_save_LIBS
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20320 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20321 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
20331 if test "$HAVE_GIF" = yes; then
20333 elif test "$HAVE_GIF" = maybe
; then
20334 # If gif_lib.h but no libgif, try libungif.
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20336 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20337 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20338 $as_echo_n "(cached) " >&6
20340 ac_check_lib_save_LIBS
=$LIBS
20341 LIBS
="-lungif $LIBS"
20342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20345 /* Override any GCC internal prototype to avoid an error.
20346 Use char because int might match the return type of a GCC
20347 builtin and then its argument prototype would still apply. */
20351 char EGifPutExtensionLast ();
20355 return EGifPutExtensionLast ();
20360 if ac_fn_c_try_link
"$LINENO"; then :
20361 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
20363 ac_cv_lib_ungif_EGifPutExtensionLast
=no
20365 rm -f core conftest.err conftest.
$ac_objext \
20366 conftest
$ac_exeext conftest.
$ac_ext
20367 LIBS
=$ac_check_lib_save_LIBS
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20370 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20371 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
20377 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
20380 if test "${HAVE_GIF}" = "yes"; then
20382 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20388 if test "${HAVE_X11}" = "yes"; then
20391 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20392 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
20393 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20394 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
20395 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20396 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
20397 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20398 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
20399 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20400 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
20402 if test "X${MISSING}" != X
; then
20403 as_fn_error
"The following required libraries were not found:
20405 Maybe some development libraries/packages are missing?
20406 If you don't want to link with them give
20408 as options to configure" "$LINENO" 5
20412 ### Use -lgpm if available, unless `--with-gpm=no'.
20415 if test "${with_gpm}" != "no"; then
20416 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20417 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20419 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20420 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20423 ac_check_lib_save_LIBS
=$LIBS
20425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20438 return Gpm_Open ();
20443 if ac_fn_c_try_link
"$LINENO"; then :
20444 ac_cv_lib_gpm_Gpm_Open
=yes
20446 ac_cv_lib_gpm_Gpm_Open
=no
20448 rm -f core conftest.err conftest.
$ac_objext \
20449 conftest
$ac_exeext conftest.
$ac_ext
20450 LIBS
=$ac_check_lib_save_LIBS
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20453 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20454 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
20462 if test "${HAVE_GPM}" = "yes"; then
20464 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20476 ### Use NeXTstep API to implement GUI.
20477 if test "${HAVE_NS}" = "yes"; then
20479 $as_echo "#define HAVE_NS 1" >>confdefs.h
20481 if test "${NS_IMPL_COCOA}" = "yes"; then
20483 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20486 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20488 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20490 # See also .m.o rule in Makefile.in */
20491 # FIXME: are all these flags really needed? Document here why. */
20492 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20493 ## Extra CFLAGS applied to src/*.m files.
20494 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"
20496 # We also have mouse menus.
20502 ### Use session management (-lSM -lICE) if available
20505 if test "${HAVE_X11}" = "yes"; then
20506 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20507 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20509 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20510 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20511 $as_echo_n "(cached) " >&6
20513 ac_check_lib_save_LIBS
=$LIBS
20514 LIBS
="-lSM -lICE $LIBS"
20515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20516 /* end confdefs.h. */
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20524 char SmcOpenConnection ();
20528 return SmcOpenConnection ();
20533 if ac_fn_c_try_link
"$LINENO"; then :
20534 ac_cv_lib_SM_SmcOpenConnection
=yes
20536 ac_cv_lib_SM_SmcOpenConnection
=no
20538 rm -f core conftest.err conftest.
$ac_objext \
20539 conftest
$ac_exeext conftest.
$ac_ext
20540 LIBS
=$ac_check_lib_save_LIBS
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20543 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20544 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
20552 if test "${HAVE_X_SM}" = "yes"; then
20554 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20556 LIBXSM
="-lSM -lICE"
20559 *) LIBS
="$LIBXSM $LIBS" ;;
20565 ### Use libxml (-lxml2) if available
20567 if test "${with_xml2}" != "no"; then
20568 ### I'm not sure what the version number should be, so I just guessed.
20572 if test "$PKG_CONFIG" = "no" ; then
20575 PKG_CONFIG_MIN_VERSION
=0.9.0
20576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20578 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20580 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20581 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20582 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20589 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20590 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20592 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20596 $as_echo "no" >&6; }
20599 ## If we have a custom action on failure, don't print errors, but
20600 ## do set a variable so people can do so.
20601 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20613 if test $succeeded = yes; then
20619 if test "${HAVE_LIBXML2}" = "yes"; then
20620 LIBS
="$LIBXML2_LIBS $LIBS"
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20622 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20623 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20624 $as_echo_n "(cached) " >&6
20626 ac_check_lib_save_LIBS
=$LIBS
20627 LIBS
="-lxml2 $LIBS"
20628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20637 char htmlReadMemory ();
20641 return htmlReadMemory ();
20646 if ac_fn_c_try_link
"$LINENO"; then :
20647 ac_cv_lib_xml2_htmlReadMemory
=yes
20649 ac_cv_lib_xml2_htmlReadMemory
=no
20651 rm -f core conftest.err conftest.
$ac_objext \
20652 conftest
$ac_exeext conftest.
$ac_ext
20653 LIBS
=$ac_check_lib_save_LIBS
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20656 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20657 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
20663 if test "${HAVE_LIBXML2}" = "yes"; then
20665 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20676 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20678 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20679 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20680 $as_echo_n "(cached) " >&6
20682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20683 /* end confdefs.h. */
20693 if ac_fn_c_try_link
"$LINENO"; then :
20694 emacs_cv_netdb_declares_h_errno
=yes
20696 emacs_cv_netdb_declares_h_errno
=no
20698 rm -f core conftest.err conftest.
$ac_objext \
20699 conftest
$ac_exeext conftest.
$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20702 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20703 if test $emacs_cv_netdb_declares_h_errno = yes; then
20705 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20709 # fmod, logb, and frexp are found in -lm on most systems.
20710 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20712 $as_echo_n "checking for sqrt in -lm... " >&6; }
20713 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20714 $as_echo_n "(cached) " >&6
20716 ac_check_lib_save_LIBS
=$LIBS
20718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20736 if ac_fn_c_try_link
"$LINENO"; then :
20737 ac_cv_lib_m_sqrt
=yes
20739 ac_cv_lib_m_sqrt
=no
20741 rm -f core conftest.err conftest.
$ac_objext \
20742 conftest
$ac_exeext conftest.
$ac_ext
20743 LIBS
=$ac_check_lib_save_LIBS
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20746 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20747 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
20748 cat >>confdefs.h
<<_ACEOF
20749 #define HAVE_LIBM 1
20757 # Check for mail-locking functions in a "mail" library. Probably this should
20758 # have the same check as for liblockfile below.
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20760 $as_echo_n "checking for maillock in -lmail... " >&6; }
20761 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20764 ac_check_lib_save_LIBS
=$LIBS
20765 LIBS
="-lmail $LIBS"
20766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20769 /* Override any GCC internal prototype to avoid an error.
20770 Use char because int might match the return type of a GCC
20771 builtin and then its argument prototype would still apply. */
20779 return maillock ();
20784 if ac_fn_c_try_link
"$LINENO"; then :
20785 ac_cv_lib_mail_maillock
=yes
20787 ac_cv_lib_mail_maillock
=no
20789 rm -f core conftest.err conftest.
$ac_objext \
20790 conftest
$ac_exeext conftest.
$ac_ext
20791 LIBS
=$ac_check_lib_save_LIBS
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20794 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20795 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
20801 if test $have_mail = yes; then
20803 LIBS
="$LIBS_MAIL $LIBS"
20805 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20811 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20812 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20815 ac_check_lib_save_LIBS
=$LIBS
20816 LIBS
="-llockfile $LIBS"
20817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20830 return maillock ();
20835 if ac_fn_c_try_link
"$LINENO"; then :
20836 ac_cv_lib_lockfile_maillock
=yes
20838 ac_cv_lib_lockfile_maillock
=no
20840 rm -f core conftest.err conftest.
$ac_objext \
20841 conftest
$ac_exeext conftest.
$ac_ext
20842 LIBS
=$ac_check_lib_save_LIBS
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20845 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20846 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
20852 if test $have_lockfile = yes; then
20853 LIBS_MAIL
=-llockfile
20854 LIBS
="$LIBS_MAIL $LIBS"
20856 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20859 # If we have the shared liblockfile, assume we must use it for mail
20860 # locking (e.g. Debian). If we couldn't link against liblockfile
20861 # (no liblockfile.a installed), ensure that we don't need to.
20862 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20863 set dummy liblockfile.so
; ac_word
=$2
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20865 $as_echo_n "checking for $ac_word... " >&6; }
20866 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20869 if test -n "$liblockfile"; then
20870 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
20872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20873 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20874 for as_dir
in $as_dummy
20877 test -z "$as_dir" && as_dir
=.
20878 for ac_exec_ext
in '' $ac_executable_extensions; do
20879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20880 ac_cv_prog_liblockfile
="yes"
20881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20888 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
20891 liblockfile
=$ac_cv_prog_liblockfile
20892 if test -n "$liblockfile"; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20894 $as_echo "$liblockfile" >&6; }
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897 $as_echo "no" >&6; }
20901 if test $ac_cv_prog_liblockfile = yes; then
20902 as_fn_error
"Shared liblockfile found but can't link against it.
20903 This probably means that movemail could lose mail.
20904 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20912 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20913 ## interlock access to the mail spool. The alternative is a lock file named
20914 ## /usr/spool/mail/$USER.lock.
20917 aix4-2
) mail_lock
="lockf" ;;
20919 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
20921 ## On GNU/Linux systems, both methods are used by various mail programs.
20922 ## I assume most people are using newer mailers that have heard of flock.
20923 ## Change this if you need to.
20924 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20925 ## configure gets the right answers, and that means *NOT* using flock.
20926 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20927 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20928 ## Debian maintainer hasn't provided a clean fix for Emacs.
20929 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20930 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20931 ## correct logic. -- fx
20932 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20933 ## liblockfile is a Free Software replacement for libmail, used on
20934 ## Debian systems and elsewhere. -rfr.
20937 if test $have_mail = yes ||
test $have_lockfile = yes; then
20938 test $ac_cv_header_maillock_h = yes && mail_lock
=no
20944 case "$mail_lock" in
20946 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
20950 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
20953 *) BLESSMAIL_TARGET
="need-blessmail" ;;
20958 for ac_func
in gethostname \
20959 rename closedir mkdir
rmdir getrusage get_current_dir_name \
20960 random lrand48 logb frexp fmod rint cbrt setsid \
20961 strerror fpathconf
select euidaccess getpagesize setlocale \
20962 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
20963 __fpending strsignal setitimer \
20964 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
20965 gai_strerror mkstemp getline getdelim fsync sync \
20966 difftime posix_memalign \
20967 getpwent endpwent getgrent endgrent \
20969 strcasecmp strncasecmp \
20970 cfmakeraw cfsetspeed copysign __executable_start
20972 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20973 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20974 eval as_val
=\$
$as_ac_var
20975 if test "x$as_val" = x
""yes; then :
20976 cat >>confdefs.h
<<_ACEOF
20977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
20985 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
20986 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
20987 $as_echo_n "(cached) " >&6
20989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20995 __builtin_unwind_init ();
21000 if ac_fn_c_try_link
"$LINENO"; then :
21001 emacs_cv_func___builtin_unwind_init
=yes
21003 emacs_cv_func___builtin_unwind_init
=no
21005 rm -f core conftest.err conftest.
$ac_objext \
21006 conftest
$ac_exeext conftest.
$ac_ext
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21009 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21010 if test $emacs_cv_func___builtin_unwind_init = yes; then
21012 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21021 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21022 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
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
=no
; break
21042 rm -f core conftest.err conftest.
$ac_objext \
21043 conftest
$ac_exeext conftest.
$ac_ext
21044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046 #define _LARGEFILE_SOURCE 1
21047 #include <sys/types.h> /* for off_t */
21052 int (*fp) (FILE *, off_t, int) = fseeko;
21053 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21058 if ac_fn_c_try_link
"$LINENO"; then :
21059 ac_cv_sys_largefile_source
=1; break
21061 rm -f core conftest.err conftest.
$ac_objext \
21062 conftest
$ac_exeext conftest.
$ac_ext
21063 ac_cv_sys_largefile_source
=unknown
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21068 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21069 case $ac_cv_sys_largefile_source in #(
21072 cat >>confdefs.h
<<_ACEOF
21073 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21079 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21080 # in glibc 2.1.3, but that breaks too many other things.
21081 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21082 if test $ac_cv_sys_largefile_source != unknown
; then
21084 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21090 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21091 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21092 $as_echo_n "(cached) " >&6
21094 # Use it with a single arg.
21095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21096 /* end confdefs.h. */
21097 $ac_includes_default
21106 if ac_fn_c_try_compile
"$LINENO"; then :
21107 ac_cv_func_getpgrp_void
=no
21109 ac_cv_func_getpgrp_void
=yes
21111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21115 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21116 if test $ac_cv_func_getpgrp_void = yes; then
21118 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21124 for ac_func
in grantpt
21126 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
21127 if test "x$ac_cv_func_grantpt" = x
""yes; then :
21128 cat >>confdefs.h
<<_ACEOF
21129 #define HAVE_GRANTPT 1
21136 # PTY-related GNU extensions.
21137 for ac_func
in getpt
21139 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
21140 if test "x$ac_cv_func_getpt" = x
""yes; then :
21141 cat >>confdefs.h
<<_ACEOF
21142 #define HAVE_GETPT 1
21149 # Check this now, so that we will NOT find the above functions in ncurses.
21150 # That is because we have not set up to link ncurses in lib-src.
21151 # It's better to believe a function is not available
21152 # than to expect to find it in ncurses.
21153 # Also we need tputs and friends to be able to build at all.
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21155 $as_echo_n "checking for library containing tputs... " >&6; }
21156 # Run a test program that contains a call to tputs, a call that is
21157 # never executed. This tests whether a pre-'main' dynamic linker
21158 # works with the library. It's too much trouble to actually call
21159 # tputs in the test program, due to portability hassles. When
21160 # cross-compiling, assume the test program will run if it links.
21162 # Maybe curses should be tried earlier?
21163 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21164 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
21166 if test -z "$tputs_library"; then
21168 msg
='none required'
21170 LIBS_TERMCAP
=-l$tputs_library
21172 LIBS
="$LIBS_TERMCAP $LIBS"
21174 if test "$cross_compiling" = yes; then :
21175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21176 /* end confdefs.h. */
21178 extern void tputs (const char *, int, int (*)(int));
21179 int main (int argc, char **argv)
21182 tputs (argv[0], 0, 0);
21187 if ac_fn_c_try_link
"$LINENO"; then :
21192 rm -f core conftest.err conftest.
$ac_objext \
21193 conftest
$ac_exeext conftest.
$ac_ext
21195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21198 extern void tputs (const char *, int, int (*)(int));
21199 int main (int argc, char **argv)
21202 tputs (argv[0], 0, 0);
21207 if ac_fn_c_try_run
"$LINENO"; then :
21212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21217 if test "X$msg" != Xno
; then
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21222 $as_echo "$msg" >&6; }
21223 if test "X$msg" = Xno
; then
21224 as_fn_error
"The required function \`tputs' was not found in any library.
21225 The following libraries were tried (in order):
21226 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21227 Please try installing whichever of these libraries is most appropriate
21228 for your system, together with its header files.
21229 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21232 ## Use termcap instead of terminfo?
21233 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21235 ## FIXME? In the cases below where we unconditionally set
21236 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21237 ## if that was found above to have tputs.
21238 ## Should we use the gnu* logic everywhere?
21240 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21241 ## The ncurses library has been moved out of the System framework in
21242 ## Mac OS X 10.2. So if configure detects it, set the command-line
21243 ## option to use it.
21244 darwin
) LIBS_TERMCAP
="-lncurses" ;;
21246 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21250 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21251 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21252 $as_echo_n "(cached) " >&6
21254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21256 #include <osreldate.h>
21260 #if __FreeBSD_version < 400000
21268 if ac_fn_c_try_link
"$LINENO"; then :
21269 emacs_cv_freebsd_terminfo
=yes
21271 emacs_cv_freebsd_terminfo
=no
21273 rm -f core conftest.err conftest.
$ac_objext \
21274 conftest
$ac_exeext conftest.
$ac_ext
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21279 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21281 if test $emacs_cv_freebsd_terminfo = yes; then
21282 LIBS_TERMCAP
="-lncurses"
21285 LIBS_TERMCAP
="-ltermcap"
21290 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21292 LIBS_TERMCAP
="-ltermcap"
21296 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
21298 ## hpux: Make sure we get select from libc rather than from libcurses
21299 ## because libcurses on HPUX 10.10 has a broken version of select.
21300 ## We used to use -lc -lcurses, but this may be cleaner.
21301 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21302 # set that way, now it uses the default). Isn't this a contradiction?
21303 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
21307 TERMCAP_OBJ
=tparam.o
21308 if test $TERMINFO = yes; then
21310 $as_echo "#define TERMINFO 1" >>confdefs.h
21312 TERMCAP_OBJ
=terminfo.o
21318 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21322 #include <netinet/in.h>
21323 #include <arpa/nameser.h>
21324 #include <resolv.h>
21333 if ac_fn_c_try_link
"$LINENO"; then :
21338 rm -f core conftest.err conftest.
$ac_objext \
21339 conftest
$ac_exeext conftest.
$ac_ext
21340 if test "$have_res_init" = no
; then
21342 LIBS
="$LIBS -lresolv"
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21344 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21346 /* end confdefs.h. */
21347 #include <netinet/in.h>
21348 #include <arpa/nameser.h>
21349 #include <resolv.h>
21358 if ac_fn_c_try_link
"$LINENO"; then :
21363 rm -f core conftest.err conftest.
$ac_objext \
21364 conftest
$ac_exeext conftest.
$ac_ext
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21366 $as_echo "$have_res_init" >&6; }
21367 if test "$have_res_init" = yes ; then
21373 if test "$have_res_init" = yes; then
21375 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21379 # Do we need the Hesiod library to provide the support routines?
21381 if test "$with_hesiod" != no
; then
21382 # Don't set $LIBS here -- see comments above. FIXME which comments?
21383 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
21384 if test "x$ac_cv_func_res_send" = x
""yes; then :
21387 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
21388 if test "x$ac_cv_func___res_send" = x
""yes; then :
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21392 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21393 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21396 ac_check_lib_save_LIBS
=$LIBS
21397 LIBS
="-lresolv $LIBS"
21398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21401 /* Override any GCC internal prototype to avoid an error.
21402 Use char because int might match the return type of a GCC
21403 builtin and then its argument prototype would still apply. */
21411 return res_send ();
21416 if ac_fn_c_try_link
"$LINENO"; then :
21417 ac_cv_lib_resolv_res_send
=yes
21419 ac_cv_lib_resolv_res_send
=no
21421 rm -f core conftest.err conftest.
$ac_objext \
21422 conftest
$ac_exeext conftest.
$ac_ext
21423 LIBS
=$ac_check_lib_save_LIBS
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21426 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21427 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21431 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21432 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21435 ac_check_lib_save_LIBS
=$LIBS
21436 LIBS
="-lresolv $LIBS"
21437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21440 /* Override any GCC internal prototype to avoid an error.
21441 Use char because int might match the return type of a GCC
21442 builtin and then its argument prototype would still apply. */
21446 char __res_send ();
21450 return __res_send ();
21455 if ac_fn_c_try_link
"$LINENO"; then :
21456 ac_cv_lib_resolv___res_send
=yes
21458 ac_cv_lib_resolv___res_send
=no
21460 rm -f core conftest.err conftest.
$ac_objext \
21461 conftest
$ac_exeext conftest.
$ac_ext
21462 LIBS
=$ac_check_lib_save_LIBS
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21465 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21466 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
21476 if test "$resolv" = yes ; then
21481 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21482 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21486 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21487 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21490 ac_check_lib_save_LIBS
=$LIBS
21491 LIBS
="-lhesiod $RESOLVLIB $LIBS"
21492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21493 /* end confdefs.h. */
21495 /* Override any GCC internal prototype to avoid an error.
21496 Use char because int might match the return type of a GCC
21497 builtin and then its argument prototype would still apply. */
21501 char hes_getmailhost ();
21505 return hes_getmailhost ();
21510 if ac_fn_c_try_link
"$LINENO"; then :
21511 ac_cv_lib_hesiod_hes_getmailhost
=yes
21513 ac_cv_lib_hesiod_hes_getmailhost
=no
21515 rm -f core conftest.err conftest.
$ac_objext \
21516 conftest
$ac_exeext conftest.
$ac_ext
21517 LIBS
=$ac_check_lib_save_LIBS
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21520 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21521 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
21530 if test x
"$hesiod" = xyes
; then
21532 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21539 # Do we need libresolv (due to res_init or Hesiod)?
21540 if test "$resolv" = yes ; then
21542 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21550 # These tell us which Kerberos-related libraries to use.
21557 if test "${with_kerberos}" != no
; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21559 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21560 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21561 $as_echo_n "(cached) " >&6
21563 ac_check_lib_save_LIBS
=$LIBS
21564 LIBS
="-lcom_err $LIBS"
21565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21566 /* end confdefs.h. */
21568 /* Override any GCC internal prototype to avoid an error.
21569 Use char because int might match the return type of a GCC
21570 builtin and then its argument prototype would still apply. */
21583 if ac_fn_c_try_link
"$LINENO"; then :
21584 ac_cv_lib_com_err_com_err
=yes
21586 ac_cv_lib_com_err_com_err
=no
21588 rm -f core conftest.err conftest.
$ac_objext \
21589 conftest
$ac_exeext conftest.
$ac_ext
21590 LIBS
=$ac_check_lib_save_LIBS
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21593 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21594 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
21600 if test $have_com_err = yes; then
21601 COM_ERRLIB
=-lcom_err
21602 LIBS
="$COM_ERRLIB $LIBS"
21604 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21608 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21609 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21612 ac_check_lib_save_LIBS
=$LIBS
21613 LIBS
="-lcrypto $LIBS"
21614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21623 char mit_des_cbc_encrypt ();
21627 return mit_des_cbc_encrypt ();
21632 if ac_fn_c_try_link
"$LINENO"; then :
21633 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
21635 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
21637 rm -f core conftest.err conftest.
$ac_objext \
21638 conftest
$ac_exeext conftest.
$ac_ext
21639 LIBS
=$ac_check_lib_save_LIBS
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21642 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21643 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
21649 if test $have_crypto = yes; then
21651 LIBS
="$CRYPTOLIB $LIBS"
21653 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21657 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21658 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21659 $as_echo_n "(cached) " >&6
21661 ac_check_lib_save_LIBS
=$LIBS
21662 LIBS
="-lk5crypto $LIBS"
21663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21666 /* Override any GCC internal prototype to avoid an error.
21667 Use char because int might match the return type of a GCC
21668 builtin and then its argument prototype would still apply. */
21672 char mit_des_cbc_encrypt ();
21676 return mit_des_cbc_encrypt ();
21681 if ac_fn_c_try_link
"$LINENO"; then :
21682 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21684 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21686 rm -f core conftest.err conftest.
$ac_objext \
21687 conftest
$ac_exeext conftest.
$ac_ext
21688 LIBS
=$ac_check_lib_save_LIBS
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21691 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21692 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
21698 if test $have_k5crypto = yes; then
21699 CRYPTOLIB
=-lk5crypto
21700 LIBS
="$CRYPTOLIB $LIBS"
21702 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21706 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21707 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21710 ac_check_lib_save_LIBS
=$LIBS
21711 LIBS
="-lkrb5 $LIBS"
21712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21715 /* Override any GCC internal prototype to avoid an error.
21716 Use char because int might match the return type of a GCC
21717 builtin and then its argument prototype would still apply. */
21721 char krb5_init_context ();
21725 return krb5_init_context ();
21730 if ac_fn_c_try_link
"$LINENO"; then :
21731 ac_cv_lib_krb5_krb5_init_context
=yes
21733 ac_cv_lib_krb5_krb5_init_context
=no
21735 rm -f core conftest.err conftest.
$ac_objext \
21736 conftest
$ac_exeext conftest.
$ac_ext
21737 LIBS
=$ac_check_lib_save_LIBS
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21740 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21741 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
21747 if test $have_krb5=yes; then
21749 LIBS
="$KRB5LIB $LIBS"
21751 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21754 if test "${with_kerberos5}" = no
; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21756 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21757 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21760 ac_check_lib_save_LIBS
=$LIBS
21761 LIBS
="-ldes425 $LIBS"
21762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21771 char des_cbc_encrypt ();
21775 return des_cbc_encrypt ();
21780 if ac_fn_c_try_link
"$LINENO"; then :
21781 ac_cv_lib_des425_des_cbc_encrypt
=yes
21783 ac_cv_lib_des425_des_cbc_encrypt
=no
21785 rm -f core conftest.err conftest.
$ac_objext \
21786 conftest
$ac_exeext conftest.
$ac_ext
21787 LIBS
=$ac_check_lib_save_LIBS
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21790 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21791 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
21797 if test $have_des425 = yes; then
21799 LIBS
="$DESLIB $LIBS"
21801 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21805 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21806 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21807 $as_echo_n "(cached) " >&6
21809 ac_check_lib_save_LIBS
=$LIBS
21811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21812 /* end confdefs.h. */
21814 /* Override any GCC internal prototype to avoid an error.
21815 Use char because int might match the return type of a GCC
21816 builtin and then its argument prototype would still apply. */
21820 char des_cbc_encrypt ();
21824 return des_cbc_encrypt ();
21829 if ac_fn_c_try_link
"$LINENO"; then :
21830 ac_cv_lib_des_des_cbc_encrypt
=yes
21832 ac_cv_lib_des_des_cbc_encrypt
=no
21834 rm -f core conftest.err conftest.
$ac_objext \
21835 conftest
$ac_exeext conftest.
$ac_ext
21836 LIBS
=$ac_check_lib_save_LIBS
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21839 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21840 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
21846 if test $have_des = yes; then
21848 LIBS
="$DESLIB $LIBS"
21850 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21855 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21856 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21859 ac_check_lib_save_LIBS
=$LIBS
21860 LIBS
="-lkrb4 $LIBS"
21861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21870 char krb_get_cred ();
21874 return krb_get_cred ();
21879 if ac_fn_c_try_link
"$LINENO"; then :
21880 ac_cv_lib_krb4_krb_get_cred
=yes
21882 ac_cv_lib_krb4_krb_get_cred
=no
21884 rm -f core conftest.err conftest.
$ac_objext \
21885 conftest
$ac_exeext conftest.
$ac_ext
21886 LIBS
=$ac_check_lib_save_LIBS
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21889 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21890 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
21896 if test $have_krb4 = yes; then
21898 LIBS
="$KRB4LIB $LIBS"
21900 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21904 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21905 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21906 $as_echo_n "(cached) " >&6
21908 ac_check_lib_save_LIBS
=$LIBS
21910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h. */
21913 /* Override any GCC internal prototype to avoid an error.
21914 Use char because int might match the return type of a GCC
21915 builtin and then its argument prototype would still apply. */
21919 char krb_get_cred ();
21923 return krb_get_cred ();
21928 if ac_fn_c_try_link
"$LINENO"; then :
21929 ac_cv_lib_krb_krb_get_cred
=yes
21931 ac_cv_lib_krb_krb_get_cred
=no
21933 rm -f core conftest.err conftest.
$ac_objext \
21934 conftest
$ac_exeext conftest.
$ac_ext
21935 LIBS
=$ac_check_lib_save_LIBS
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21938 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21939 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
21945 if test $have_krb = yes; then
21947 LIBS
="$KRB4LIB $LIBS"
21949 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21955 if test "${with_kerberos5}" != no
; then
21956 for ac_header
in krb5.h
21958 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21959 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
21960 cat >>confdefs.h
<<_ACEOF
21961 #define HAVE_KRB5_H 1
21963 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21965 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
21967 cat >>confdefs.h
<<_ACEOF
21968 #define HAVE_KRB5_ERROR_TEXT 1
21973 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21975 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
21977 cat >>confdefs.h
<<_ACEOF
21978 #define HAVE_KRB5_ERROR_E_TEXT 1
21989 for ac_header
in des.h
21991 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21992 if test "x$ac_cv_header_des_h" = x
""yes; then :
21993 cat >>confdefs.h
<<_ACEOF
21994 #define HAVE_DES_H 1
21998 for ac_header
in kerberosIV
/des.h
22000 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22001 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
22002 cat >>confdefs.h
<<_ACEOF
22003 #define HAVE_KERBEROSIV_DES_H 1
22007 for ac_header
in kerberos
/des.h
22009 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22010 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
22011 cat >>confdefs.h
<<_ACEOF
22012 #define HAVE_KERBEROS_DES_H 1
22027 for ac_header
in krb.h
22029 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22030 if test "x$ac_cv_header_krb_h" = x
""yes; then :
22031 cat >>confdefs.h
<<_ACEOF
22032 #define HAVE_KRB_H 1
22036 for ac_header
in kerberosIV
/krb.h
22038 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22039 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
22040 cat >>confdefs.h
<<_ACEOF
22041 #define HAVE_KERBEROSIV_KRB_H 1
22045 for ac_header
in kerberos
/krb.h
22047 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22048 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
22049 cat >>confdefs.h
<<_ACEOF
22050 #define HAVE_KERBEROS_KRB_H 1
22066 for ac_header
in com_err.h
22068 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22069 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
22070 cat >>confdefs.h
<<_ACEOF
22071 #define HAVE_COM_ERR_H 1
22086 for ac_func
in tzset
22088 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
22089 if test "x$ac_cv_func_tzset" = x
""yes; then :
22090 cat >>confdefs.h
<<_ACEOF
22091 #define HAVE_TZSET 1
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22098 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22099 if test "${emacs_cv_localtime_cache+set}" = set; then :
22100 $as_echo_n "(cached) " >&6
22102 if test x
$ac_cv_func_tzset = xyes
; then
22103 if test "$cross_compiling" = yes; then :
22104 # If we have tzset, assume the worst when cross-compiling.
22105 emacs_cv_localtime_cache
=yes
22107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22110 char TZ_GMT0[] = "TZ=GMT0";
22111 char TZ_PST8[] = "TZ=PST8";
22114 time_t now = time ((time_t *) 0);
22115 int hour_GMT0, hour_unset;
22116 if (putenv (TZ_GMT0) != 0)
22118 hour_GMT0 = localtime (&now)->tm_hour;
22120 hour_unset = localtime (&now)->tm_hour;
22121 if (putenv (TZ_PST8) != 0)
22123 if (localtime (&now)->tm_hour == hour_GMT0)
22126 if (localtime (&now)->tm_hour != hour_unset)
22131 if ac_fn_c_try_run
"$LINENO"; then :
22132 emacs_cv_localtime_cache
=no
22134 emacs_cv_localtime_cache
=yes
22136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22141 # If we lack tzset, report that localtime does not cache TZ,
22142 # since we can't invalidate the cache if we don't have tzset.
22143 emacs_cv_localtime_cache
=no
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22147 $as_echo "$emacs_cv_localtime_cache" >&6; }
22148 if test $emacs_cv_localtime_cache = yes; then
22150 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22155 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
22156 if test "x$ac_cv_func_socket" = x
""yes; then :
22162 if test $ok_so_far = yes; then
22163 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22164 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
22172 if test $ok_so_far = yes; then
22173 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22174 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
22182 if test $ok_so_far = yes; then
22184 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22188 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22190 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22195 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22196 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22198 $as_echo "yes" >&6; }
22200 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22204 $as_echo "no" >&6; }
22207 for ac_header
in vfork.h
22209 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22210 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
22211 cat >>confdefs.h
<<_ACEOF
22212 #define HAVE_VFORK_H 1
22219 for ac_func
in fork vfork
22221 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22222 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22223 eval as_val
=\$
$as_ac_var
22224 if test "x$as_val" = x
""yes; then :
22225 cat >>confdefs.h
<<_ACEOF
22226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22232 if test "x$ac_cv_func_fork" = xyes
; then
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22234 $as_echo_n "checking for working fork... " >&6; }
22235 if test "${ac_cv_func_fork_works+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22238 if test "$cross_compiling" = yes; then :
22239 ac_cv_func_fork_works
=cross
22241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243 $ac_includes_default
22248 /* By Ruediger Kuhlmann. */
22249 return fork () < 0;
22255 if ac_fn_c_try_run
"$LINENO"; then :
22256 ac_cv_func_fork_works
=yes
22258 ac_cv_func_fork_works
=no
22260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22266 $as_echo "$ac_cv_func_fork_works" >&6; }
22269 ac_cv_func_fork_works
=$ac_cv_func_fork
22271 if test "x$ac_cv_func_fork_works" = xcross
; then
22273 *-*-amigaos* |
*-*-msdosdjgpp*)
22274 # Override, as these systems have only a dummy fork() stub
22275 ac_cv_func_fork_works
=no
22278 ac_cv_func_fork_works
=yes
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22282 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22284 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22285 if test "x$ac_cv_func_vfork" = xyes
; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22287 $as_echo_n "checking for working vfork... " >&6; }
22288 if test "${ac_cv_func_vfork_works+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22291 if test "$cross_compiling" = yes; then :
22292 ac_cv_func_vfork_works
=cross
22294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22295 /* end confdefs.h. */
22296 /* Thanks to Paul Eggert for this test. */
22297 $ac_includes_default
22298 #include <sys/wait.h>
22299 #ifdef HAVE_VFORK_H
22300 # include <vfork.h>
22302 /* On some sparc systems, changes by the child to local and incoming
22303 argument registers are propagated back to the parent. The compiler
22304 is told about this with #include <vfork.h>, but some compilers
22305 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22306 static variable whose address is put into a register that is
22307 clobbered by the vfork. */
22310 sparc_address_test (int arg)
22312 sparc_address_test (arg) int arg;
22315 static pid_t child;
22333 pid_t parent = getpid ();
22336 sparc_address_test (0);
22341 /* Here is another test for sparc vfork register problems. This
22342 test uses lots of local variables, at least as many local
22343 variables as main has allocated so far including compiler
22344 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22345 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22346 reuse the register of parent for one of the local variables,
22347 since it will think that parent can't possibly be used any more
22348 in this routine. Assigning to the local variable will thus
22349 munge parent in the parent process. */
22351 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22352 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22353 /* Convince the compiler that p..p7 are live; otherwise, it might
22354 use the same hardware register for all 8 local variables. */
22355 if (p != p1 || p != p2 || p != p3 || p != p4
22356 || p != p5 || p != p6 || p != p7)
22359 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22360 from child file descriptors. If the child closes a descriptor
22361 before it execs or exits, this munges the parent's descriptor
22362 as well. Test for this by closing stdout in the child. */
22363 _exit(close(fileno(stdout)) != 0);
22368 while (wait(&status) != child)
22371 /* Was there some problem with vforking? */
22374 /* Did the child fail? (This shouldn't happen.) */
22377 /* Did the vfork/compiler bug occur? */
22378 || parent != getpid()
22380 /* Did the file descriptor bug occur? */
22381 || fstat(fileno(stdout), &st) != 0
22386 if ac_fn_c_try_run
"$LINENO"; then :
22387 ac_cv_func_vfork_works
=yes
22389 ac_cv_func_vfork_works
=no
22391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22397 $as_echo "$ac_cv_func_vfork_works" >&6; }
22400 if test "x$ac_cv_func_fork_works" = xcross
; then
22401 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22403 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22406 if test "x$ac_cv_func_vfork_works" = xyes
; then
22408 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22412 $as_echo "#define vfork fork" >>confdefs.h
22415 if test "x$ac_cv_func_fork_works" = xyes
; then
22417 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22422 for ac_func
in snprintf
22424 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
22425 if test "x$ac_cv_func_snprintf" = x
""yes; then :
22426 cat >>confdefs.h
<<_ACEOF
22427 #define HAVE_SNPRINTF 1
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22435 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22436 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22437 $as_echo_n "(cached) " >&6
22439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22441 #include <langinfo.h>
22445 char* cs = nl_langinfo(CODESET);
22450 if ac_fn_c_try_link
"$LINENO"; then :
22451 emacs_cv_langinfo_codeset
=yes
22453 emacs_cv_langinfo_codeset
=no
22455 rm -f core conftest.err conftest.
$ac_objext \
22456 conftest
$ac_exeext conftest.
$ac_ext
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22460 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22461 if test $emacs_cv_langinfo_codeset = yes; then
22463 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22468 $as_echo_n "checking for mbstate_t... " >&6; }
22469 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 # include <wchar.h>
22479 mbstate_t x; return sizeof x;
22484 if ac_fn_c_try_compile
"$LINENO"; then :
22485 ac_cv_type_mbstate_t
=yes
22487 ac_cv_type_mbstate_t
=no
22489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22492 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22493 if test $ac_cv_type_mbstate_t = yes; then
22495 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22499 $as_echo "#define mbstate_t int" >>confdefs.h
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22504 $as_echo_n "checking for C restricted array declarations... " >&6; }
22505 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h. */
22510 void fred (int x[__restrict]);
22519 if ac_fn_c_try_compile
"$LINENO"; then :
22520 emacs_cv_c_restrict_arr
=yes
22522 emacs_cv_c_restrict_arr
=no
22524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22527 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22528 if test "$emacs_cv_c_restrict_arr" = yes; then
22530 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22536 darwin | gnu | hpux
* |
*bsd
)
22538 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22544 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
22546 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22554 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22560 gnu-kfreebsd
) opsysfile
="s/gnu-linux.h" ;;
22564 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22567 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22570 opsysfile
="s/hpux10-20.h"
22573 openbsd
) opsysfile
="s/netbsd.h" ;;
22577 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22579 opsysfile
="s/sol2-6.h"
22583 # Set up the CFLAGS for real compilation, so we can substitute it.
22584 CFLAGS
="$REAL_CFLAGS"
22585 CPPFLAGS
="$REAL_CPPFLAGS"
22587 ## Hack to detect a buggy GCC version.
22588 if test "x$GCC" = xyes \
22589 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22590 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
22591 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
22592 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22595 version
=$PACKAGE_VERSION
22597 ### Specify what sort of things we'll be editing into Makefile and config.h.
22598 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22623 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22624 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22625 ## end of LIBX_BASE, but nothing ever set it.
22630 ## Used in lwlib/Makefile.in.
22632 if test -n "${opsysfile}"; then
22633 S_FILE
="\$(srcdir)/${opsysfile}"
22646 cat >>confdefs.h
<<_ACEOF
22647 #define EMACS_CONFIGURATION "${canonical}"
22651 cat >>confdefs.h
<<_ACEOF
22652 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22655 if test -n "$opsysfile"; then
22657 cat >>confdefs.h
<<_ACEOF
22658 #define config_opsysfile "${opsysfile}"
22666 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22668 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22671 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22673 if test "$HAVE_XFT" = "yes"; then
22674 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22675 elif test "$HAVE_FREETYPE" = "yes"; then
22676 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
22686 if test "${USE_X_TOOLKIT}" != "none" ; then
22687 WIDGET_OBJ
=widget.o
22689 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22691 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22693 $as_echo "#define USE_LUCID 1" >>confdefs.h
22695 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22697 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22702 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22703 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
22707 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22708 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22709 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
22713 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22714 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
22717 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
22723 case "$USE_X_TOOLKIT" in
22724 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
22725 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
22726 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
22730 if test "$USE_X_TOOLKIT" = "none"; then
22731 LIBXT_OTHER
="\$(LIBXSM)"
22732 OLDXMENU_TARGET
="really-oldXMenu"
22734 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22735 OLDXMENU_TARGET
="really-lwlib"
22739 ## The X Menu stuff is present in the X10 distribution, but missing
22740 ## from X11. If we have X10, just use the installed library;
22741 ## otherwise, use our own copy.
22742 if test "${HAVE_X11}" = "yes" ; then
22744 $as_echo "#define HAVE_X11 1" >>confdefs.h
22747 if test "$USE_X_TOOLKIT" = "none"; then
22748 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
22750 OLDXMENU
="\${lwlibdir}/liblw.a"
22752 LIBXMENU
="\$(OLDXMENU)"
22753 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
22754 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
22756 ## For a syntactically valid Makefile; not actually used for anything.
22757 ## See comments in src/Makefile.in.
22759 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22760 if test "${HAVE_X_WINDOWS}" = "yes"; then
22769 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
22782 if test "${HAVE_MENUS}" = "yes" ; then
22784 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22788 if test "${GNU_MALLOC}" = "yes" ; then
22790 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22795 if test "${REL_ALLOC}" = "yes" ; then
22797 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22800 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
22804 if test "$opsys" = "cygwin"; then
22805 CYGWIN_OBJ
="sheap.o"
22806 ## Cygwin differs because of its unexec().
22808 POST_ALLOC_OBJ
=lastfile.o
22811 PRE_ALLOC_OBJ
=lastfile.o
22819 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22822 ## The -headerpad option tells ld (see man page) to leave room at the
22823 ## end of the header for adding load commands. Needed for dumping.
22824 ## 0x690 is the total size of 30 segment load commands (at 56
22825 ## each); under Cocoa 31 commands are required.
22826 if test "$HAVE_NS" = "yes"; then
22827 libs_nsgui
="-framework AppKit"
22828 headerpad_extra
=6C8
22831 headerpad_extra
=690
22833 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22835 ## This is here because src/Makefile.in did some extra fiddling around
22836 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22837 ## #ifndef LD_SWITCH_SYSTEM
22838 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22839 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22840 ## not using gcc, darwin.
22841 ## Because this was done in src/Makefile.in, the resulting part of
22842 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22843 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22844 ## rather than LD_SWITCH_SYSTEM.
22845 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22846 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22849 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22850 ## find X at run-time.
22851 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22852 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22853 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22854 ## had different values in configure (in ac_link) and src/Makefile.in.
22855 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22856 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22858 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22861 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22862 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22871 ## gnu: GNU needs its own crt0.
22872 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22874 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22875 ## library search parth, i.e. it won't search /usr/lib for libc and
22876 ## friends. Using -nostartfiles instead avoids this problem, and
22877 ## will also work on earlier NetBSD releases.
22878 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22880 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22881 ## MkLinux/LinuxPPC needs this.
22882 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22884 case "$canonical" in
22885 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
22891 if test "x$ORDINARY_LINK" = "xyes"; then
22895 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22898 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22899 ## freebsd, gnu-* not on powerpc*|s390x*.
22900 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22902 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22903 ## places that are difficult to figure out at make time. Fortunately,
22904 ## these same versions allow you to pass arbitrary flags on to the
22905 ## linker, so there is no reason not to use it as a linker.
22907 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22908 ## searching for libraries in its internal directories, so we have to
22909 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22910 LD_FIRSTFLAG
="-nostdlib"
22913 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22914 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22919 ## FIXME? The logic here is not precisely the same as that above.
22920 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22921 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22923 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22926 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22929 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22930 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22936 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22937 ## immediately undefine it again and redefine it to empty.
22938 ## Was the C_SWITCH_X_SITE part really necessary?
22939 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22945 ## Ask GCC where to find libgcc.a.
22946 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22951 ## If we're using X11/GNUstep, define some consequences.
22952 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22954 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22957 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22964 #### Report on what we decided to do.
22965 #### Report GTK as a toolkit, even if it doesn't use Xt.
22966 #### It makes printing result more understandable as using GTK sets
22967 #### toolkit_scroll_bars to yes by default.
22968 if test "${HAVE_GTK}" = "yes"; then
22973 Configured for \`${canonical}'.
22975 Where should the build process find the source code? ${srcdir}
22976 What operating system file should Emacs use? ${opsysfile-none}
22977 What compiler should emacs be built with? ${CC} ${CFLAGS}
22978 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22979 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22980 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22981 What window system should Emacs use? ${window_system}
22982 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22984 if test -n "${x_includes}"; then
22985 echo " Where do we find X Windows header files? ${x_includes}"
22987 echo " Where do we find X Windows header files? Standard dirs"
22989 if test -n "${x_libraries}"; then
22990 echo " Where do we find X Windows libraries? ${x_libraries}"
22992 echo " Where do we find X Windows libraries? Standard dirs"
22995 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22996 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22997 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22998 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22999 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23000 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23001 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23002 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23004 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23005 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23006 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23007 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23008 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23009 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23010 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23012 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23013 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23014 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23015 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23017 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23020 if test -n "${EMACSDATA}"; then
23021 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23023 if test -n "${EMACSDOC}"; then
23024 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23027 if test $USE_XASSERTS = yes; then
23028 echo " Compiling with asserts turned on."
23029 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23034 if test "$HAVE_NS" = "yes"; then
23036 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23037 The installed application will go to nextstep/Emacs.app and can be
23038 run or moved from there."
23039 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23040 echo "The application will be fully self-contained."
23042 echo "The lisp resources for the application will be installed under ${prefix}.
23043 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23044 to run if these resources are not installed."
23049 if test "${opsys}" = "cygwin"; then
23051 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23052 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23058 # Remove any trailing slashes in these variables.
23059 test "${prefix}" != NONE
&&
23060 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23061 test "${exec_prefix}" != NONE
&&
23062 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23064 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"
23066 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"
23069 opt_makefile
=test
/automated
/Makefile
23071 if test -f $srcdir/${opt_makefile}.
in; then
23072 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23073 ac_config_files
="$ac_config_files test/automated/Makefile"
23078 opt_makefile
=admin
/unidata
/Makefile
23080 if test -f $srcdir/${opt_makefile}.
in; then
23081 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23082 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23087 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23091 ac_config_commands
="$ac_config_commands mkdirs"
23094 ac_config_commands
="$ac_config_commands epaths"
23097 ac_config_commands
="$ac_config_commands gdbinit"
23100 cat >confcache
<<\_ACEOF
23101 # This file is a shell script that caches the results of configure
23102 # tests run on this system so they can be shared between configure
23103 # scripts and configure runs, see configure's option --config-cache.
23104 # It is not useful on other systems. If it contains results you don't
23105 # want to keep, you may remove or edit it.
23107 # config.status only pays attention to the cache file if you give it
23108 # the --recheck option to rerun configure.
23110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23112 # following values.
23116 # The following way of writing the cache mishandles newlines in values,
23117 # but we know of no workaround that is simple, portable, and efficient.
23118 # So, we kill variables containing newlines.
23119 # Ultrix sh set writes to stderr and can't be redirected directly,
23120 # and sets the high bit in the cache file unless we assign to the vars.
23122 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23123 eval ac_val
=\$
$ac_var
23127 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23131 _ | IFS | as_nl
) ;; #(
23132 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23133 *) { eval $ac_var=; unset $ac_var;} ;;
23139 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23140 *${as_nl}ac_space
=\
*)
23141 # `set' does not quote correctly, so add quotes: double-quote
23142 # substitution turns \\\\ into \\, and sed turns \\ into \.
23145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23148 # `set' quotes correctly as required by POSIX, so do not add quotes.
23149 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23160 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23162 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23163 if test -w "$cache_file"; then
23164 test "x$cache_file" != "x/dev/null" &&
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23166 $as_echo "$as_me: updating cache $cache_file" >&6;}
23167 cat confcache
>$cache_file
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23170 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23175 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23176 # Let make expand exec_prefix.
23177 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23179 DEFS
=-DHAVE_CONFIG_H
23183 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23184 # 1. Remove the extension, and $U if already installed.
23185 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23186 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23187 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23188 # will be set to the directory where LIBOBJS objects are built.
23189 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23190 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23192 LIBOBJS
=$ac_libobjs
23194 LTLIBOBJS
=$ac_ltlibobjs
23197 if test -n "$EXEEXT"; then
23199 am__EXEEXT_FALSE
='#'
23201 am__EXEEXT_TRUE
='#'
23205 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23206 as_fn_error
"conditional \"AMDEP\" was never defined.
23207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23210 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23213 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23214 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23217 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23218 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23222 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23223 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23226 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23227 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23230 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23231 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23234 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23235 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23238 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23239 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23242 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23243 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23246 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23247 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23251 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23255 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23259 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23262 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23263 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23267 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23273 if test -n "$gl_LIBOBJS"; then
23274 # Remove the extension.
23275 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23276 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23277 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23278 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23281 gl_LIBOBJS
=$gl_libobjs
23283 gl_LTLIBOBJS
=$gl_ltlibobjs
23289 if test -n "$gltests_LIBOBJS"; then
23290 # Remove the extension.
23291 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23292 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23293 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23294 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23297 gltests_LIBOBJS
=$gltests_libobjs
23299 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23303 : ${CONFIG_STATUS=./config.status}
23305 ac_clean_files_save
=$ac_clean_files
23306 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23308 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23310 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23312 # Generated by $as_me.
23313 # Run this file to recreate the current configuration.
23314 # Compiler output produced by configure, useful for debugging
23315 # configure, is in config.log if it exists.
23318 ac_cs_recheck=false
23321 SHELL=\${CONFIG_SHELL-$SHELL}
23324 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23325 ## -------------------- ##
23326 ## M4sh Initialization. ##
23327 ## -------------------- ##
23329 # Be more Bourne compatible
23330 DUALCASE
=1; export DUALCASE
# for MKS sh
23331 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23334 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23335 # is contrary to our usage. Disable this feature.
23336 alias -g '${1+"$@"}'='"$@"'
23337 setopt NO_GLOB_SUBST
23339 case `(set -o) 2>/dev/null` in #(
23351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23352 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23355 # Prefer a ksh shell builtin over an external printf program on Solaris,
23356 # but without wasting forks for bash or zsh.
23357 if test -z "$BASH_VERSION$ZSH_VERSION" \
23358 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23359 as_echo='print
-r --'
23360 as_echo_n='print
-rn --'
23361 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23362 as_echo='printf %s
\n'
23363 as_echo_n='printf %s
'
23365 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23366 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23367 as_echo_n='/usr
/ucb
/echo -n'
23369 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23370 as_echo_n_body='eval
23374 expr "X$arg" : "X\\(.*\\)$as_nl";
23375 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23377 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23379 export as_echo_n_body
23380 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23382 export as_echo_body
23383 as_echo='sh
-c $as_echo_body as_echo
'
23386 # The user is always right.
23387 if test "${PATH_SEPARATOR+set}" != set; then
23389 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23390 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23397 # We need space, tab and new line, in precisely that order. Quoting is
23398 # there to prevent editors from complaining about space-tab.
23399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23400 # splitting by setting IFS to empty value.)
23403 # Find who we are. Look in the path if we contain no directory separator.
23405 *[\\/]* ) as_myself=$0 ;;
23406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23407 for as_dir in $PATH
23410 test -z "$as_dir" && as_dir=.
23411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23417 # We did not find ourselves, most probably we were run as `sh COMMAND'
23418 # in which case we are not to be found in the path.
23419 if test "x$as_myself" = x
; then
23422 if test ! -f "$as_myself"; then
23423 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23427 # Unset variables that we do not need and which cause bugs (e.g. in
23428 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23429 # suppresses any "Segmentation fault" message there. '((' could
23430 # trigger a bug in pdksh 5.2.14.
23431 for as_var
in BASH_ENV ENV MAIL MAILPATH
23432 do eval test x\
${$as_var+set} = xset \
23433 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23446 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23449 # as_fn_error ERROR [LINENO LOG_FD]
23450 # ---------------------------------
23451 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23452 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23453 # script with status $?, using 1 if that was 0.
23456 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23458 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23459 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23461 $as_echo "$as_me: error: $1" >&2
23462 as_fn_exit
$as_status
23466 # as_fn_set_status STATUS
23467 # -----------------------
23468 # Set $? to STATUS, without forking.
23469 as_fn_set_status
()
23472 } # as_fn_set_status
23474 # as_fn_exit STATUS
23475 # -----------------
23476 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23480 as_fn_set_status
$1
23486 # Portably unset VAR.
23489 { eval $1=; unset $1;}
23491 as_unset
=as_fn_unset
23492 # as_fn_append VAR VALUE
23493 # ----------------------
23494 # Append the text in VALUE to the end of the definition contained in VAR. Take
23495 # advantage of any shell optimizations that allow amortized linear growth over
23496 # repeated appends, instead of the typical quadratic growth present in naive
23498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23499 eval 'as_fn_append ()
23510 # as_fn_arith ARG...
23511 # ------------------
23512 # Perform arithmetic evaluation on the ARGs, and store the result in the
23513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23514 # must be portable across $(()) and expr.
23515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23516 eval 'as_fn_arith ()
23523 as_val
=`expr "$@" || test $? -eq 1`
23528 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23529 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23535 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23536 as_basename
=basename
23541 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23547 as_me
=`$as_basename -- "$0" ||
23548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23549 X"$0" : 'X\(//\)$' \| \
23550 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23552 sed '/^.*\/\([^/][^/]*\)\/*$/{
23566 # Avoid depending upon Character Ranges.
23567 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23568 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23569 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23570 as_cr_digits
='0123456789'
23571 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23573 ECHO_C
= ECHO_N
= ECHO_T
=
23574 case `echo -n x` in #(((((
23576 case `echo 'xy\c'` in
23577 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23579 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23586 rm -f conf$$ conf$$.exe conf$$.
file
23587 if test -d conf$$.dir
; then
23588 rm -f conf$$.dir
/conf$$.
file
23591 mkdir conf$$.dir
2>/dev
/null
23593 if (echo >conf$$.
file) 2>/dev
/null
; then
23594 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23596 # ... but there are two gotchas:
23597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23599 # In both cases, we have to default to `cp -p'.
23600 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23602 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23610 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23611 rmdir conf$$.dir
2>/dev
/null
23616 # Create "$as_dir" as a directory, including parents if necessary.
23621 -*) as_dir
=.
/$as_dir;;
23623 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23627 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23628 *) as_qdir
=$as_dir;;
23630 as_dirs
="'$as_qdir' $as_dirs"
23631 as_dir
=`$as_dirname -- "$as_dir" ||
23632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633 X"$as_dir" : 'X\(//\)[^/]' \| \
23634 X"$as_dir" : 'X\(//\)$' \| \
23635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23636 $as_echo X"$as_dir" |
23637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23641 /^X\(\/\/\)[^/].*/{
23654 test -d "$as_dir" && break
23656 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23657 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23661 if mkdir
-p .
2>/dev
/null
; then
23662 as_mkdir_p
='mkdir -p "$as_dir"'
23664 test -d .
/-p && rmdir .
/-p
23668 if test -x / >/dev
/null
2>&1; then
23669 as_test_x
='test -x'
23671 if ls -dL / >/dev
/null
2>&1; then
23678 if test -d "$1"; then
23684 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23685 ???[sx]*):;;*)false;;esac;fi
23689 as_executable_p
=$as_test_x
23691 # Sed expression to map a string onto a valid CPP name.
23692 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23694 # Sed expression to map a string onto a valid variable name.
23695 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23699 ## ----------------------------------- ##
23700 ## Main body of $CONFIG_STATUS script. ##
23701 ## ----------------------------------- ##
23703 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23706 # Save the log message, to keep $0 and so on meaningful, and to
23707 # report actual input values of CONFIG_FILES etc. instead of their
23708 # values after options handling.
23710 This file was extended by emacs $as_me 24.1.50, which was
23711 generated by GNU Autoconf 2.65. Invocation command line was
23713 CONFIG_FILES = $CONFIG_FILES
23714 CONFIG_HEADERS = $CONFIG_HEADERS
23715 CONFIG_LINKS = $CONFIG_LINKS
23716 CONFIG_COMMANDS = $CONFIG_COMMANDS
23719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23724 case $ac_config_files in *"
23725 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23728 case $ac_config_headers in *"
23729 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23734 # Files that config.status was made for.
23735 config_files="$ac_config_files"
23736 config_headers="$ac_config_headers"
23737 config_commands="$ac_config_commands"
23741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23743 \`$as_me' instantiates files and other configuration actions
23744 from templates according to the current configuration. Unless the files
23745 and actions are specified as TAGs, all are instantiated by default.
23747 Usage: $0 [OPTION]... [TAG]...
23749 -h, --help print this help, then exit
23750 -V, --version print version number and configuration settings, then exit
23751 --config print configuration, then exit
23752 -q, --quiet, --silent
23753 do not print progress messages
23754 -d, --debug don't remove temporary files
23755 --recheck update $as_me by reconfiguring in the same conditions
23756 --file=FILE[:TEMPLATE]
23757 instantiate the configuration file FILE
23758 --header=FILE[:TEMPLATE]
23759 instantiate the configuration header FILE
23761 Configuration files:
23764 Configuration headers:
23767 Configuration commands:
23770 Report bugs to the package provider."
23773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23774 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23776 emacs config.status 24.1.50
23777 configured by $0, generated by GNU Autoconf 2.65,
23778 with options \\"\$ac_cs_config\\"
23780 Copyright (C) 2009 Free Software Foundation, Inc.
23781 This config.status script is free software; the Free Software Foundation
23782 gives unlimited permission to copy, distribute and modify it."
23789 test -n "\$AWK" || AWK=awk
23792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23793 # The default lists apply if the user does not specify any file.
23799 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23800 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23811 # Handling of the options.
23812 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23814 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23815 $as_echo "$ac_cs_version"; exit ;;
23816 --config |
--confi |
--conf |
--con |
--co |
--c )
23817 $as_echo "$ac_cs_config"; exit ;;
23818 --debug |
--debu |
--deb |
--de |
--d |
-d )
23820 --file |
--fil |
--fi |
--f )
23823 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23825 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23826 ac_need_defaults
=false
;;
23827 --header |
--heade |
--head |
--hea )
23830 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23832 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23833 ac_need_defaults
=false
;;
23835 # Conflict between --help and --header
23836 as_fn_error
"ambiguous option: \`$1'
23837 Try \`$0 --help' for more information.";;
23838 --help |
--hel |
-h )
23839 $as_echo "$ac_cs_usage"; exit ;;
23840 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23841 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23844 # This is an error.
23845 -*) as_fn_error
"unrecognized option: \`$1'
23846 Try \`$0 --help' for more information." ;;
23848 *) as_fn_append ac_config_targets
" $1"
23849 ac_need_defaults
=false
;;
23855 ac_configure_extra_args
=
23857 if $ac_cs_silent; then
23859 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23864 if \$ac_cs_recheck; then
23865 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23867 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23868 CONFIG_SHELL='$SHELL'
23869 export CONFIG_SHELL
23874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23879 ## Running $as_me. ##
23885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23889 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23890 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23896 # Handling of arguments.
23897 for ac_config_target
in $ac_config_targets
23899 case $ac_config_target in
23900 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23901 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23902 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23903 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23904 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23905 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23906 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23907 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23908 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23909 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23910 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23911 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23912 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23913 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23914 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23915 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23916 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23917 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23918 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23920 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23925 # If the user did not use the arguments to specify the items to instantiate,
23926 # then the envvar interface is used. Set only those that are not.
23927 # We use the long form for the default assignment because of an extremely
23928 # bizarre bug on SunOS 4.1.3.
23929 if $ac_need_defaults; then
23930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23935 # Have a temporary directory for convenience. Make it in the build tree
23936 # simply because there is no reason against having it here, and in addition,
23937 # creating and moving files from /tmp can sometimes cause problems.
23938 # Hook for its removal unless debugging.
23939 # Note that there is a small window in which the directory will not be cleaned:
23940 # after its creation but before its name has been assigned to `$tmp'.
23944 trap 'exit_status=$?
23945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23947 trap 'as_fn_exit 1' 1 2 13 15
23949 # Create a (secure) tmp directory for tmp files.
23952 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23953 test -n "$tmp" && test -d "$tmp"
23956 tmp
=.
/conf$$
-$RANDOM
23957 (umask 077 && mkdir
"$tmp")
23958 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23960 # Set up the scripts for CONFIG_FILES section.
23961 # No need to generate them if there are no CONFIG_FILES.
23962 # This happens for instance with `./config.status config.h'.
23963 if test -n "$CONFIG_FILES"; then
23965 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23966 ac_cs_awk_getline
=:
23967 ac_cs_awk_pipe_init
=
23968 ac_cs_awk_read_file
='
23969 while ((getline aline < (F[key])) > 0)
23972 ac_cs_awk_pipe_fini
=
23974 ac_cs_awk_getline
=false
23975 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23976 ac_cs_awk_read_file
='
23978 print "cat " F[key] " &&"
23979 '$ac_cs_awk_pipe_init
23980 # The final `:' finishes the AND list.
23981 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23983 ac_cr
=`echo X | tr X '\015'`
23984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23985 # But we know of no other shell where ac_cr would be empty at this
23986 # point, so we can use a bashism as a fallback.
23987 if test "x$ac_cr" = x
; then
23988 eval ac_cr
=\$
\'\\r
\'
23990 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23994 ac_cs_awk_cr
=$ac_cr
23997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24000 # Create commands to substitute file output variables.
24002 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24003 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24004 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24007 } >conf$
$files.sh
&&
24008 . .
/conf$
$files.sh ||
24009 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24010 rm -f conf$
$files.sh
24013 echo "cat >conf$$subs.awk <<_ACEOF" &&
24014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24016 } >conf$$subs.sh ||
24017 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24020 for ac_last_try in false false false false false :; do
24021 . ./conf$$subs.sh ||
24022 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24024 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24025 if test $ac_delim_n = $ac_delim_num; then
24027 elif $ac_last_try; then
24028 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24030 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24033 rm -f conf$$subs.sh
24035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24036 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24040 s/^/S["/; s
/!.
*/"]=/
24050 s/\(.\{148\}\)..*/\1/
24052 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24057 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24064 s/\(.\{148\}\)..*/\1/
24066 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24070 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24075 ' <conf$$subs.awk | sed '
24080 ' >>$CONFIG_STATUS || ac_write_fail=1
24081 rm -f conf$$subs.awk
24082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24084 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24085 for (key in S) S_is_set[key] = 1
24087 \$ac_cs_awk_pipe_init
24091 nfields = split(line, field, "@
")
24093 len = length(field[1])
24094 for (i = 2; i < nfields; i++) {
24096 keylen = length(key)
24097 if (S_is_set[key]) {
24099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24100 len += length(value) + length(field[++i])
24105 if (nfields == 3 && !substed) {
24107 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24108 \$ac_cs_awk_read_file
24114 \$ac_cs_awk_pipe_fini
24117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24118 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24119 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24122 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24123 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24128 # trailing colons and then remove the whole line if VPATH becomes empty
24129 # (actually we leave an empty line to preserve line numbers).
24130 if test "x
$srcdir" = x.; then
24131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24132 s/:*\$(srcdir):*/:/
24133 s/:*\${srcdir}:*/:/
24135 s/^\([^=]*=[ ]*\):*/\1/
24141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24142 fi # test -n "$CONFIG_FILES"
24144 # Set up the scripts for CONFIG_HEADERS section.
24145 # No need to generate them if there are no CONFIG_HEADERS.
24146 # This happens for instance with `./config.status Makefile'.
24147 if test -n "$CONFIG_HEADERS"; then
24148 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24152 # Transform confdefs.h into an awk script `defines.awk', embedded as
24153 # here-document in config.status, that substitutes the proper values into
24154 # config.h.in to produce config.h.
24156 # Create a delimiter string that does not exist in confdefs.h, to ease
24157 # handling of long lines.
24159 for ac_last_try in false false :; do
24160 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24161 if test -z "$ac_t"; then
24163 elif $ac_last_try; then
24164 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24166 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24170 # For the awk script, D is an array of macro values keyed by name,
24171 # likewise P contains macro parameters if any. Preserve backslash
24172 # newline sequences.
24174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24176 s/.\{148\}/&'"$ac_delim"'/g
24179 s/^[ ]*#[ ]*define[ ][ ]*/ /
24186 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24188 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24193 D["\
1"]=" \
3\\\\\\n
"\\/p
24195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24200 s/.\{148\}/&'"$ac_delim"'/g
24205 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24208 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24210 ' <confdefs.h | sed '
24211 s/'"$ac_delim"'/"\\\
24212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24215 for (key in D) D_is_set[key] = 1
24218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24220 split(line, arg, " ")
24221 if (arg[1] == "#") {
24225 defundef
= substr
(arg
[1], 2)
24228 split(mac1
, mac2
, "(") #)
24230 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24231 if (D_is_set
[macro
]) {
24232 # Preserve the white space surrounding the "#".
24233 print prefix
"define", macro P
[macro
] D
[macro
]
24236 # Replace #undef with comments. This is necessary, for example,
24237 # in the case of _POSIX_SOURCE, which is predefined and required
24238 # on some systems where configure will not decide to define it.
24239 if (defundef
== "undef") {
24240 print
"/*", prefix defundef
, macro
, "*/"
24248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24249 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24250 fi # test -n "$CONFIG_HEADERS"
24253 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24258 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24260 case $ac_mode$ac_tag in
24262 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24263 :[FH
]-) ac_tag
=-:-;;
24264 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24281 -) ac_f
="$tmp/stdin";;
24282 *) # Look for the file first in the build tree, then in the source tree
24283 # (if the path is not absolute). The absolute path cannot be DOS-style,
24284 # because $ac_f cannot contain `:'.
24288 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24290 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24292 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24293 as_fn_append ac_file_inputs
" '$ac_f'"
24296 # Let's still pretend it is `configure' which instantiates (i.e., don't
24297 # use $as_me), people would be surprised to read:
24298 # /* config.h. Generated by config.status. */
24299 configure_input
='Generated from '`
24300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24302 if test x
"$ac_file" != x-
; then
24303 configure_input
="$ac_file. $configure_input"
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24305 $as_echo "$as_me: creating $ac_file" >&6;}
24307 # Neutralize special characters interpreted by sed in replacement strings.
24308 case $configure_input in #(
24309 *\
&* |
*\|
* |
*\\* )
24310 ac_sed_conf_input
=`$as_echo "$configure_input" |
24311 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24312 *) ac_sed_conf_input
=$configure_input;;
24316 *:-:* |
*:-) cat >"$tmp/stdin" \
24317 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24322 ac_dir
=`$as_dirname -- "$ac_file" ||
24323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24324 X"$ac_file" : 'X\(//\)[^/]' \| \
24325 X"$ac_file" : 'X\(//\)$' \| \
24326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24327 $as_echo X"$ac_file" |
24328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24332 /^X\(\/\/\)[^/].*/{
24345 as_dir
="$ac_dir"; as_fn_mkdir_p
24349 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24351 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24352 # A ".." for each directory in $ac_dir_suffix.
24353 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24354 case $ac_top_builddir_sub in
24355 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24356 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24359 ac_abs_top_builddir
=$ac_pwd
24360 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24361 # for backward compatibility:
24362 ac_top_builddir
=$ac_top_build_prefix
24365 .
) # We are building in place.
24367 ac_top_srcdir
=$ac_top_builddir_sub
24368 ac_abs_top_srcdir
=$ac_pwd ;;
24369 [\\/]* | ?
:[\\/]* ) # Absolute name.
24370 ac_srcdir
=$srcdir$ac_dir_suffix;
24371 ac_top_srcdir
=$srcdir
24372 ac_abs_top_srcdir
=$srcdir ;;
24373 *) # Relative name.
24374 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24375 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24376 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24378 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24388 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24389 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24391 ac_MKDIR_P
=$MKDIR_P
24393 [\\/$
]* | ?
:[\\/]* ) ;;
24394 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24399 # If the template does not know about datarootdir, expand it.
24400 # FIXME: This hack should be removed a few years after 2.60.
24401 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24413 *datarootdir
*) ac_datarootdir_seen
=yes;;
24414 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24419 ac_datarootdir_hack='
24420 s&@datadir@&$datadir&g
24421 s&@docdir@&$docdir&g
24422 s&@infodir@&$infodir&g
24423 s&@localedir@&$localedir&g
24424 s&@mandir@&$mandir&g
24425 s&\\\${datarootdir}&$datarootdir&g' ;;
24429 # Neutralize VPATH when `$srcdir' = `.'.
24430 # Shell code in configure.ac might set extrasub.
24431 # FIXME: do we really want to maintain this feature?
24432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24433 ac_sed_extra="$ac_vpsub
24436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24438 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24439 s|@configure_input@|
$ac_sed_conf_input|
;t t
24440 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24441 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24442 s
&@srcdir@
&$ac_srcdir&;t t
24443 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24444 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24445 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24446 s
&@builddir@
&$ac_builddir&;t t
24447 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24448 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24449 s
&@INSTALL@
&$ac_INSTALL&;t t
24450 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24451 $ac_datarootdir_hack
24453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24454 if $ac_cs_awk_getline; then
24455 $AWK -f "$tmp/subs.
awk"
24457 $AWK -f "$tmp/subs.
awk" | $SHELL
24459 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24465 which seems to be undefined. Please make sure it is defined." >&5
24466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24467 which seems to be undefined. Please make sure it is defined." >&2;}
24471 -) cat "$tmp/out" && rm -f "$tmp/out";;
24472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24474 || as_fn_error "could not create $ac_file" "$LINENO" 5
24480 if test x"$ac_file" != x-; then
24482 $as_echo "/* $configure_input */" \
24483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24484 } >"$tmp/config.h" \
24485 || as_fn_error "could not create $ac_file" "$LINENO" 5
24486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24491 mv "$tmp/config.h" "$ac_file" \
24492 || as_fn_error "could not create $ac_file" "$LINENO" 5
24495 $as_echo "/* $configure_input */" \
24496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24497 || as_fn_error "could not create -" "$LINENO" 5
24499 # Compute "$ac_file"'s index
in $config_headers.
24502 for _am_header
in $config_headers :; do
24503 case $_am_header in
24504 $_am_arg |
$_am_arg:* )
24507 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24512 X"$_am_arg" : 'X\(//\)[^/]' \| \
24513 X"$_am_arg" : 'X\(//\)$' \| \
24514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24515 $as_echo X"$_am_arg" |
24516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24520 /^X\(\/\/\)[^/].*/{
24532 s/.*/./; q'`/stamp-h
$_am_stamp_count
24535 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24536 $as_echo "$as_me: executing $ac_file commands" >&6;}
24541 case $ac_file$ac_mode in
24542 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24543 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24544 # are listed without --file. Let's play safe and only enable the eval
24545 # if we detect the quoting.
24546 case $CONFIG_FILES in
24547 *\'*) eval set x
"$CONFIG_FILES" ;;
24548 *) set x
$CONFIG_FILES ;;
24553 # Strip MF so we end up with the name of the file.
24554 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24555 # Check whether this is an Automake generated Makefile or not.
24556 # We used to match only the files named `Makefile.in', but
24557 # some people rename them; so instead we look at the file content.
24558 # Grep'ing the first line is not enough: some people post-process
24559 # each Makefile.in and add a new line on top of each file to say so.
24560 # Grep'ing the whole file is not good either: AIX grep has a line
24561 # limit of 2048, but all sed's we know have understand at least 4000.
24562 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24563 dirpart
=`$as_dirname -- "$mf" ||
24564 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24565 X"$mf" : 'X\(//\)[^/]' \| \
24566 X"$mf" : 'X\(//\)$' \| \
24567 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24573 /^X\(\/\/\)[^/].*/{
24589 # Extract the definition of DEPDIR, am__include, and am__quote
24590 # from the Makefile without running `make'.
24591 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24592 test -z "$DEPDIR" && continue
24593 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24594 test -z "am__include" && continue
24595 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24596 # When using ansi2knr, U may be empty or an underscore; expand it
24597 U
=`sed -n 's/^U = //p' < "$mf"`
24598 # Find all dependency output files, they are included files with
24599 # $(DEPDIR) in their names. We invoke sed twice because it is the
24600 # simplest approach to changing $(DEPDIR) to its actual value in the
24602 for file in `sed -n "
24603 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24604 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24605 # Make sure the directory exists.
24606 test -f "$dirpart/$file" && continue
24607 fdir
=`$as_dirname -- "$file" ||
24608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609 X"$file" : 'X\(//\)[^/]' \| \
24610 X"$file" : 'X\(//\)$' \| \
24611 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24612 $as_echo X"$file" |
24613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24617 /^X\(\/\/\)[^/].*/{
24630 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24631 # echo "creating $dirpart/$file"
24632 echo '# dummy' > "$dirpart/$file"
24638 for dir
in etc lisp
; do
24639 test -d ${dir} || mkdir
${dir}
24643 echo creating src
/epaths.h
24644 ${MAKE-make} epaths-force
24647 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24648 echo creating src
/.gdbinit
24649 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24659 ac_clean_files
=$ac_clean_files_save
24661 test $ac_write_fail = 0 ||
24662 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24665 # configure is writing to config.log, and then calls config.status.
24666 # config.status does its own redirection, appending to config.log.
24667 # Unfortunately, on DOS this fails, as config.log is still kept open
24668 # by configure, so config.status won't be able to write to it; its
24669 # output is simply discarded. So we exec the FD to /dev/null,
24670 # effectively closing config.log, so it can be properly (re)opened and
24671 # appended to by config.status. When coming back to configure, we
24672 # need to make the FD available again.
24673 if test "$no_create" != yes; then
24675 ac_config_status_args
=
24676 test "$silent" = yes &&
24677 ac_config_status_args
="$ac_config_status_args --quiet"
24679 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24681 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24682 # would make configure fail if this is the last instruction.
24683 $ac_cs_success || as_fn_exit $?
24685 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24687 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}