2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.94.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.94'
553 PACKAGE_STRING
='emacs 24.0.94'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
642 x_default_search_path
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
670 gl_GNULIB_ENABLED_sigprocmask_FALSE
671 gl_GNULIB_ENABLED_sigprocmask_TRUE
672 gl_GNULIB_ENABLED_pathmax_FALSE
673 gl_GNULIB_ENABLED_pathmax_TRUE
675 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
676 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
677 gl_GNULIB_ENABLED_dosname_FALSE
678 gl_GNULIB_ENABLED_dosname_TRUE
682 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
686 TIME_H_DEFINES_STRUCT_TIMESPEC
687 NEXT_AS_FIRST_DIRECTIVE_TIME_H
689 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
691 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
693 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
702 REPLACE_STDIO_WRITE_FUNCS
703 REPLACE_STDIO_READ_FUNCS
712 REPLACE_OBSTACK_PRINTF
734 HAVE_DECL_OBSTACK_PRINTF
740 GNULIB_VSPRINTF_POSIX
744 GNULIB_VFPRINTF_POSIX
751 GNULIB_STDIO_H_SIGPIPE
752 GNULIB_STDIO_H_NONBLOCKING
766 GNULIB_OBSTACK_PRINTF_POSIX
767 GNULIB_OBSTACK_PRINTF
792 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
794 GL_GENERATE_STDDEF_H_FALSE
795 GL_GENERATE_STDDEF_H_TRUE
800 GL_GENERATE_STDBOOL_H_FALSE
801 GL_GENERATE_STDBOOL_H_TRUE
803 GL_GENERATE_STDARG_H_FALSE
804 GL_GENERATE_STDARG_H_TRUE
806 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
815 HAVE_DECL_LOCALTIME_R
853 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
855 UINT64_MAX_EQ_ULONG_MAX
856 UINT32_MAX_LT_UINTMAX_MAX
859 INT64_MAX_EQ_LONG_MAX
860 INT32_MAX_LT_INTMAX_MAX
869 GL_GENERATE_STDINT_H_FALSE
870 GL_GENERATE_STDINT_H_TRUE
879 HAVE_SIGNED_SIG_ATOMIC_T
882 BITSIZEOF_SIG_ATOMIC_T
885 APPLE_UNIVERSAL_BUILD
889 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
894 HAVE_UNSIGNED_LONG_LONG_INT
898 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
915 REPLACE_CANONICALIZE_FILE_NAME
920 HAVE_STRUCT_RANDOM_DATA
939 HAVE_CANONICALIZE_FILE_NAME
966 GNULIB_CANONICALIZE_FILE_NAME
970 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
971 UNISTD_H_HAVE_WINSOCK2_H
991 REPLACE_GETDOMAINNAME
1001 HAVE_DECL_GETUSERSHELL
1002 HAVE_DECL_GETPAGESIZE
1003 HAVE_DECL_GETLOGIN_R
1004 HAVE_DECL_GETDOMAINNAME
1040 GNULIB_UNISTD_H_SIGPIPE
1041 GNULIB_UNISTD_H_NONBLOCKING
1042 GNULIB_UNISTD_H_GETOPT
1066 GNULIB_GETDTABLESIZE
1067 GNULIB_GETDOMAINNAME
1080 GL_GENERATE_ALLOCA_H_FALSE
1081 GL_GENERATE_ALLOCA_H_TRUE
1084 GL_COND_LIBTOOL_FALSE
1085 GL_COND_LIBTOOL_TRUE
1133 LD_SWITCH_X_SITE_AUX_RPATH
1134 LD_SWITCH_X_SITE_AUX
1197 INSTALL_STRIP_PROGRAM
1239 program_transform_name
1250 ac_subst_files
='deps_frag
1254 enable_option_checking
1277 with_toolkit_scroll_bars
1288 with_pkg_config_prog
1292 enable_ns_self_contained
1294 enable_maintainer_mode
1295 enable_locallisppath
1297 enable_use_lisp_union_type
1300 enable_dependency_tracking
1304 ac_precious_vars
='build_alias
1316 # Initialize some variables set by options.
1318 ac_init_version
=false
1319 ac_unrecognized_opts
=
1320 ac_unrecognized_sep
=
1321 # The variables have the same names as the options, with
1322 # dashes changed to underlines.
1323 cache_file
=/dev
/null
1330 program_transform_name
=s
,x
,x
,
1338 # Installation directory options.
1339 # These are left unexpanded so users can "make install exec_prefix=/foo"
1340 # and all the variables that are supposed to be based on exec_prefix
1341 # by default will actually change.
1342 # Use braces instead of parens because sh, perl, etc. also accept them.
1343 # (The list follows the same order as the GNU Coding Standards.)
1344 bindir
='${exec_prefix}/bin'
1345 sbindir
='${exec_prefix}/sbin'
1346 libexecdir
='${exec_prefix}/libexec'
1347 datarootdir
='${prefix}/share'
1348 datadir
='${datarootdir}'
1349 sysconfdir
='${prefix}/etc'
1350 sharedstatedir
='${prefix}/com'
1351 localstatedir
='${prefix}/var'
1352 includedir
='${prefix}/include'
1353 oldincludedir
='/usr/include'
1354 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1355 infodir
='${datarootdir}/info'
1360 libdir
='${exec_prefix}/lib'
1361 localedir
='${datarootdir}/locale'
1362 mandir
='${datarootdir}/man'
1368 # If the previous option needs an argument, assign it.
1369 if test -n "$ac_prev"; then
1370 eval $ac_prev=\
$ac_option
1376 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1380 # Accept the important Cygnus configure options, so we can diagnose typos.
1382 case $ac_dashdash$ac_option in
1386 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1388 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1389 bindir
=$ac_optarg ;;
1391 -build |
--build |
--buil |
--bui |
--bu)
1392 ac_prev
=build_alias
;;
1393 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1394 build_alias
=$ac_optarg ;;
1396 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1397 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1398 ac_prev
=cache_file
;;
1399 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1400 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1401 cache_file
=$ac_optarg ;;
1403 --config-cache |
-C)
1404 cache_file
=config.cache
;;
1406 -datadir |
--datadir |
--datadi |
--datad)
1408 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1409 datadir
=$ac_optarg ;;
1411 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1412 |
--dataroo |
--dataro |
--datar)
1413 ac_prev
=datarootdir
;;
1414 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1415 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1416 datarootdir
=$ac_optarg ;;
1418 -disable-* |
--disable-*)
1419 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1422 as_fn_error
"invalid feature name: $ac_useropt"
1423 ac_useropt_orig
=$ac_useropt
1424 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1427 "enable_
$ac_useropt"
1429 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1430 ac_unrecognized_sep
=', ';;
1432 eval enable_
$ac_useropt=no
;;
1434 -docdir |
--docdir |
--docdi |
--doc |
--do)
1436 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1437 docdir
=$ac_optarg ;;
1439 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1441 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1442 dvidir
=$ac_optarg ;;
1444 -enable-* |
--enable-*)
1445 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1446 # Reject names that are not valid shell variable names.
1447 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1448 as_fn_error
"invalid feature name: $ac_useropt"
1449 ac_useropt_orig
=$ac_useropt
1450 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451 case $ac_user_opts in
1453 "enable_
$ac_useropt"
1455 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1456 ac_unrecognized_sep
=', ';;
1458 eval enable_
$ac_useropt=\
$ac_optarg ;;
1460 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1461 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1462 |
--exec |
--exe |
--ex)
1463 ac_prev
=exec_prefix
;;
1464 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1465 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1466 |
--exec=* |
--exe=* |
--ex=*)
1467 exec_prefix
=$ac_optarg ;;
1469 -gas |
--gas |
--ga |
--g)
1470 # Obsolete; use --with-gas.
1473 -help |
--help |
--hel |
--he |
-h)
1474 ac_init_help
=long
;;
1475 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1476 ac_init_help
=recursive
;;
1477 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1478 ac_init_help
=short
;;
1480 -host |
--host |
--hos |
--ho)
1481 ac_prev
=host_alias
;;
1482 -host=* |
--host=* |
--hos=* |
--ho=*)
1483 host_alias
=$ac_optarg ;;
1485 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1487 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1489 htmldir
=$ac_optarg ;;
1491 -includedir |
--includedir |
--includedi |
--included |
--include \
1492 |
--includ |
--inclu |
--incl |
--inc)
1493 ac_prev
=includedir
;;
1494 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1495 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1496 includedir
=$ac_optarg ;;
1498 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1500 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1501 infodir
=$ac_optarg ;;
1503 -libdir |
--libdir |
--libdi |
--libd)
1505 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1506 libdir
=$ac_optarg ;;
1508 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1509 |
--libexe |
--libex |
--libe)
1510 ac_prev
=libexecdir
;;
1511 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1512 |
--libexe=* |
--libex=* |
--libe=*)
1513 libexecdir
=$ac_optarg ;;
1515 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1516 ac_prev
=localedir
;;
1517 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1518 localedir
=$ac_optarg ;;
1520 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1521 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1522 ac_prev
=localstatedir
;;
1523 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1524 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1525 localstatedir
=$ac_optarg ;;
1527 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1529 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1530 mandir
=$ac_optarg ;;
1532 -nfp |
--nfp |
--nf)
1533 # Obsolete; use --without-fp.
1536 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1537 |
--no-cr |
--no-c |
-n)
1540 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1541 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1544 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1545 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1546 |
--oldin |
--oldi |
--old |
--ol |
--o)
1547 ac_prev
=oldincludedir
;;
1548 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1549 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1550 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1551 oldincludedir
=$ac_optarg ;;
1553 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1555 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1556 prefix
=$ac_optarg ;;
1558 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1559 |
--program-pre |
--program-pr |
--program-p)
1560 ac_prev
=program_prefix
;;
1561 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1562 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1563 program_prefix
=$ac_optarg ;;
1565 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1566 |
--program-suf |
--program-su |
--program-s)
1567 ac_prev
=program_suffix
;;
1568 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1569 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1570 program_suffix
=$ac_optarg ;;
1572 -program-transform-name |
--program-transform-name \
1573 |
--program-transform-nam |
--program-transform-na \
1574 |
--program-transform-n |
--program-transform- \
1575 |
--program-transform |
--program-transfor \
1576 |
--program-transfo |
--program-transf \
1577 |
--program-trans |
--program-tran \
1578 |
--progr-tra |
--program-tr |
--program-t)
1579 ac_prev
=program_transform_name
;;
1580 -program-transform-name=* |
--program-transform-name=* \
1581 |
--program-transform-nam=* |
--program-transform-na=* \
1582 |
--program-transform-n=* |
--program-transform-=* \
1583 |
--program-transform=* |
--program-transfor=* \
1584 |
--program-transfo=* |
--program-transf=* \
1585 |
--program-trans=* |
--program-tran=* \
1586 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1587 program_transform_name
=$ac_optarg ;;
1589 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1591 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1592 pdfdir
=$ac_optarg ;;
1594 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1596 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1599 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1600 |
-silent |
--silent |
--silen |
--sile |
--sil)
1603 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1605 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1607 sbindir
=$ac_optarg ;;
1609 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1610 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1611 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1613 ac_prev
=sharedstatedir
;;
1614 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1615 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1616 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1618 sharedstatedir
=$ac_optarg ;;
1620 -site |
--site |
--sit)
1622 -site=* |
--site=* |
--sit=*)
1625 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1627 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1628 srcdir
=$ac_optarg ;;
1630 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1631 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1632 ac_prev
=sysconfdir
;;
1633 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1634 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1635 sysconfdir
=$ac_optarg ;;
1637 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1638 ac_prev
=target_alias
;;
1639 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1640 target_alias
=$ac_optarg ;;
1642 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1645 -version |
--version |
--versio |
--versi |
--vers |
-V)
1646 ac_init_version
=: ;;
1649 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1650 # Reject names that are not valid shell variable names.
1651 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1652 as_fn_error
"invalid package name: $ac_useropt"
1653 ac_useropt_orig
=$ac_useropt
1654 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1655 case $ac_user_opts in
1659 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1660 ac_unrecognized_sep
=', ';;
1662 eval with_
$ac_useropt=\
$ac_optarg ;;
1664 -without-* |
--without-*)
1665 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1666 # Reject names that are not valid shell variable names.
1667 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1668 as_fn_error
"invalid package name: $ac_useropt"
1669 ac_useropt_orig
=$ac_useropt
1670 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671 case $ac_user_opts in
1675 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1676 ac_unrecognized_sep
=', ';;
1678 eval with_
$ac_useropt=no
;;
1681 # Obsolete; use --with-x.
1684 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1685 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1686 ac_prev
=x_includes
;;
1687 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1688 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1689 x_includes
=$ac_optarg ;;
1691 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1692 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1693 ac_prev
=x_libraries
;;
1694 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1695 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1696 x_libraries
=$ac_optarg ;;
1698 -*) as_fn_error
"unrecognized option: \`$ac_option'
1699 Try \`$0 --help' for more information."
1703 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1704 # Reject names that are not valid shell variable names.
1705 case $ac_envvar in #(
1706 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1707 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1709 eval $ac_envvar=\
$ac_optarg
1710 export $ac_envvar ;;
1713 # FIXME: should be removed in autoconf 3.0.
1714 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1715 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1716 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1717 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1723 if test -n "$ac_prev"; then
1724 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1725 as_fn_error
"missing argument to $ac_option"
1728 if test -n "$ac_unrecognized_opts"; then
1729 case $enable_option_checking in
1731 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1732 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1736 # Check all directory arguments for consistency.
1737 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1738 datadir sysconfdir sharedstatedir localstatedir includedir \
1739 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1740 libdir localedir mandir
1742 eval ac_val
=\$
$ac_var
1743 # Remove trailing slashes.
1746 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1747 eval $ac_var=\
$ac_val;;
1749 # Be sure to have absolute directory names.
1751 [\\/$
]* | ?
:[\\/]* ) continue;;
1752 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1754 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1757 # There might be people who depend on the old broken behavior: `$host'
1758 # used to hold the argument of --host etc.
1759 # FIXME: To remove some day.
1762 target
=$target_alias
1764 # FIXME: To remove some day.
1765 if test "x$host_alias" != x
; then
1766 if test "x$build_alias" = x
; then
1767 cross_compiling
=maybe
1768 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1769 If a cross compiler is detected then cross compile mode will be used." >&2
1770 elif test "x$build_alias" != "x$host_alias"; then
1776 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1778 test "$silent" = yes && exec 6>/dev
/null
1781 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1782 ac_ls_di
=`ls -di .` &&
1783 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1784 as_fn_error
"working directory cannot be determined"
1785 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1786 as_fn_error
"pwd does not report name of working directory"
1789 # Find the source files, if location was not specified.
1790 if test -z "$srcdir"; then
1791 ac_srcdir_defaulted
=yes
1792 # Try the directory containing this script, then the parent directory.
1793 ac_confdir
=`$as_dirname -- "$as_myself" ||
1794 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1795 X"$as_myself" : 'X\(//\)[^/]' \| \
1796 X"$as_myself" : 'X\(//\)$' \| \
1797 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1798 $as_echo X"$as_myself" |
1799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1817 if test ! -r "$srcdir/$ac_unique_file"; then
1821 ac_srcdir_defaulted
=no
1823 if test ! -r "$srcdir/$ac_unique_file"; then
1824 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1825 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1827 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1829 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1831 # When building in place, set srcdir=.
1832 if test "$ac_abs_confdir" = "$ac_pwd"; then
1835 # Remove unnecessary trailing slashes from srcdir.
1836 # Double slashes in file names in object file debugging info
1837 # mess up M-x gdb in Emacs.
1839 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1841 for ac_var
in $ac_precious_vars; do
1842 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1843 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1844 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1845 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1849 # Report the --help message.
1851 if test "$ac_init_help" = "long"; then
1852 # Omit some internal or obsolete options to make the list less imposing.
1853 # This message is too long to be a string in the A/UX 3.1 sh.
1855 \`configure' configures emacs 24.0.94 to adapt to many kinds of systems.
1857 Usage: $0 [OPTION]... [VAR=VALUE]...
1859 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1860 VAR=VALUE. See below for descriptions of some of the useful variables.
1862 Defaults for the options are specified in brackets.
1865 -h, --help display this help and exit
1866 --help=short display options specific to this package
1867 --help=recursive display the short help of all the included packages
1868 -V, --version display version information and exit
1869 -q, --quiet, --silent do not print \`checking...' messages
1870 --cache-file=FILE cache test results in FILE [disabled]
1871 -C, --config-cache alias for \`--cache-file=config.cache'
1872 -n, --no-create do not create output files
1873 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1875 Installation directories:
1876 --prefix=PREFIX install architecture-independent files in PREFIX
1877 [$ac_default_prefix]
1878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1881 By default, \`make install' will install all the files in
1882 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1883 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1884 for instance \`--prefix=\$HOME'.
1886 For better control, use the options below.
1888 Fine tuning of the installation directories:
1889 --bindir=DIR user executables [EPREFIX/bin]
1890 --sbindir=DIR system admin executables [EPREFIX/sbin]
1891 --libexecdir=DIR program executables [EPREFIX/libexec]
1892 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1893 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1894 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1895 --libdir=DIR object code libraries [EPREFIX/lib]
1896 --includedir=DIR C header files [PREFIX/include]
1897 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1898 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1899 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1900 --infodir=DIR info documentation [DATAROOTDIR/info]
1901 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1902 --mandir=DIR man documentation [DATAROOTDIR/man]
1903 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1904 --htmldir=DIR html documentation [DOCDIR]
1905 --dvidir=DIR dvi documentation [DOCDIR]
1906 --pdfdir=DIR pdf documentation [DOCDIR]
1907 --psdir=DIR ps documentation [DOCDIR]
1913 --program-prefix=PREFIX prepend PREFIX to installed program names
1914 --program-suffix=SUFFIX append SUFFIX to installed program names
1915 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1918 --x-includes=DIR X include files are
in DIR
1919 --x-libraries=DIR X library files are
in DIR
1922 --build=BUILD configure
for building on BUILD
[guessed
]
1923 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1927 if test -n "$ac_init_help"; then
1928 case $ac_init_help in
1929 short | recursive
) echo "Configuration of emacs 24.0.94:";;
1934 --disable-option-checking ignore unrecognized
--enable/--with options
1935 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1936 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1937 --disable-ns-self-contained
1938 disable self contained build under NeXTstep
1939 --enable-asserts compile code with asserts enabled
1940 --enable-maintainer-mode
1941 enable make rules and dependencies not useful
(and
1942 sometimes confusing
) to the casual installer
1943 --enable-locallisppath=PATH
1944 directories Emacs should search
for lisp files
1945 specific to this site
1946 --enable-checking[=LIST
]
1947 enable expensive run-time checks. With LIST
, enable
1948 only specific categories of checks. Categories are
:
1949 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1950 stringfreelist
, xmallocoverrun
, conslist
1951 --enable-use-lisp-union-type
1952 use a union
for the Lisp_Object data
type. This is
1953 only useful
for development
for catching certain
1955 --enable-profiling build emacs with profiling support. This might not
1956 work on all platforms
1957 --enable-autodepend automatically generate dependencies to .h-files.
1958 Requires GNU Make and Gcc. Enabled
if GNU Make and
1960 --disable-dependency-tracking speeds up one-time build
1961 --enable-dependency-tracking do not reject slow dependency extractors
1962 --disable-largefile omit support
for large files
1965 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1966 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1967 --without-pop don
't support POP mail retrieval with movemail
1968 --with-kerberos support Kerberos-authenticated POP
1969 --with-kerberos5 support Kerberos version 5 authenticated POP
1970 --with-hesiod support Hesiod to get the POP server host
1971 --with-mmdf support MMDF mailboxes
1972 --with-mail-unlink unlink, rather than empty, mail spool after reading
1973 --with-mailhost=HOSTNAME
1974 string giving default POP mail host
1975 --without-sound don't compile with sound support
1976 --without-sync-input process async input synchronously
1977 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1978 lucid or athena
, motif
, no
)
1979 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1980 --without-xpm don
't compile with XPM image support
1981 --without-jpeg don't compile with JPEG image support
1982 --without-tiff don
't compile with TIFF image support
1983 --without-gif don't compile with GIF image support
1984 --without-png don
't compile with PNG image support
1985 --without-rsvg don't compile with SVG image support
1986 --without-xml2 don
't compile with XML parsing support
1987 --without-imagemagick don't compile with ImageMagick image support
1988 --without-xft don
't use XFT for anti aliased fonts
1989 --without-libotf don't use libotf
for OpenType font support
1990 --without-m17n-flt don
't use m17n-flt for text shaping
1991 --without-toolkit-scroll-bars
1992 don't use Motif or Xaw3d scroll bars
1993 --without-xaw3d don
't use Xaw3d
1994 --without-xim don't use X11 XIM
1995 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1996 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1998 --without-dbus don't compile with D-Bus support
1999 --without-gconf don
't compile with GConf support
2000 --without-selinux don't compile with SELinux support
2001 --without-gnutls don
't use -lgnutls for SSL/TLS support
2002 --without-makeinfo don't require makeinfo
for building manuals
2003 --without-compress-info don
't compress the installed Info pages
2004 --with-pkg-config-prog=PATH
2005 path to pkg-config for finding GTK and librsvg
2006 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2007 /usr/lib, or /usr/lib64 on some platforms.
2008 --with-gameuser=USER user for shared game score files
2009 --with-gnustep-conf=PATH
2010 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2011 or /etc/GNUstep/GNUstep.conf
2012 --with-x use the X Window System
2014 Some influential environment variables:
2015 CC C compiler command
2016 CFLAGS C compiler flags
2017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2018 nonstandard directory <lib dir>
2019 LIBS libraries to pass to the linker, e.g. -l<library>
2020 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2021 you have headers in a nonstandard directory <include dir>
2023 XMKMF Path to xmkmf, Makefile generator for X Window System
2025 Use these variables to override the choices made by `configure' or to
help
2026 it to
find libraries and programs with nonstandard names
/locations.
2028 Report bugs to the package provider.
2033 if test "$ac_init_help" = "recursive"; then
2034 # If there are subdirs, report their specific --help.
2035 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2036 test -d "$ac_dir" ||
2037 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2042 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2044 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2045 # A ".." for each directory in $ac_dir_suffix.
2046 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2047 case $ac_top_builddir_sub in
2048 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2049 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2052 ac_abs_top_builddir
=$ac_pwd
2053 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2054 # for backward compatibility:
2055 ac_top_builddir
=$ac_top_build_prefix
2058 .
) # We are building in place.
2060 ac_top_srcdir
=$ac_top_builddir_sub
2061 ac_abs_top_srcdir
=$ac_pwd ;;
2062 [\\/]* | ?
:[\\/]* ) # Absolute name.
2063 ac_srcdir
=$srcdir$ac_dir_suffix;
2064 ac_top_srcdir
=$srcdir
2065 ac_abs_top_srcdir
=$srcdir ;;
2067 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2068 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2069 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2071 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2073 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2074 # Check for guested configure.
2075 if test -f "$ac_srcdir/configure.gnu"; then
2077 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2078 elif test -f "$ac_srcdir/configure"; then
2080 $SHELL "$ac_srcdir/configure" --help=recursive
2082 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2084 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2088 test -n "$ac_init_help" && exit $ac_status
2089 if $ac_init_version; then
2091 emacs configure
24.0.94
2092 generated by GNU Autoconf
2.65
2094 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2095 This configure
script is free software
; the Free Software Foundation
2096 gives unlimited permission to copy
, distribute and modify it.
2101 ## ------------------------ ##
2102 ## Autoconf initialization. ##
2103 ## ------------------------ ##
2105 # ac_fn_c_try_compile LINENO
2106 # --------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_compile
()
2110 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2111 rm -f conftest.
$ac_objext
2112 if { { ac_try
="$ac_compile"
2114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_compile") 2>conftest.err
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_c_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest.$ac_objext; then :
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139 as_fn_set_status $ac_retval
2141 } # ac_fn_c_try_compile
2143 # ac_fn_c_try_cpp LINENO
2144 # ----------------------
2145 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if { { ac_try="$ac_cpp conftest.$ac_ext"
2151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2152 *) ac_try_echo
=$ac_try;;
2154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158 if test -s conftest.err
; then
2159 grep -v '^ *+' conftest.err
>conftest.er1
2160 cat conftest.er1
>&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } >/dev
/null
&& {
2165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.
$ac_ext >&5
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2176 as_fn_set_status
$ac_retval
2180 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181 # -------------------------------------------------------
2182 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183 # the include files in INCLUDES and setting the cache variable VAR
2185 ac_fn_c_check_header_mongrel
()
2187 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2188 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2198 # Is the header compilable?
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200 $as_echo_n "checking $2 usability... " >&6; }
2201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2206 if ac_fn_c_try_compile
"$LINENO"; then :
2207 ac_header_compiler
=yes
2209 ac_header_compiler
=no
2211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213 $as_echo "$ac_header_compiler" >&6; }
2215 # Is the header present?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217 $as_echo_n "checking $2 presence... " >&6; }
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 if ac_fn_c_try_cpp
"$LINENO"; then :
2223 ac_header_preproc
=yes
2225 ac_header_preproc
=no
2227 rm -f conftest.err conftest.
$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229 $as_echo "$ac_header_preproc" >&6; }
2231 # So? What about this header?
2232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2255 $as_echo_n "(cached) " >&6
2257 eval "$3=\$ac_header_compiler"
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2265 } # ac_fn_c_check_header_mongrel
2267 # ac_fn_c_try_run LINENO
2268 # ----------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2270 # that executables *can* be run.
2273 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2274 if { { ac_try
="$ac_link"
2276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>&5
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2285 { { case "(($ac_try" in
2286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2287 *) ac_try_echo
=$ac_try;;
2289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_try") 2>&5
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; }; }; then :
2297 $as_echo "$as_me: program exited with status $ac_status" >&5
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.
$ac_ext >&5
2301 ac_retval
=$ac_status
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2305 as_fn_set_status
$ac_retval
2309 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2310 # -------------------------------------------------------
2311 # Tests whether HEADER exists and can be compiled using the include files in
2312 # INCLUDES, setting the cache variable VAR accordingly.
2313 ac_fn_c_check_header_compile
()
2315 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2326 if ac_fn_c_try_compile
"$LINENO"; then :
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2338 } # ac_fn_c_check_header_compile
2340 # ac_fn_c_try_link LINENO
2341 # -----------------------
2342 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2346 rm -f conftest.
$ac_objext conftest
$ac_exeext
2347 if { { ac_try
="$ac_link"
2349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353 $as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_link") 2>conftest.err
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_c_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest$ac_exeext && {
2366 test "$cross_compiling" = yes ||
2367 $as_test_x conftest$ac_exeext
2371 $as_echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2376 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2377 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2378 # interfere with the next link command; also delete a directory that is
2379 # left behind by Apple's compiler. We do this before executing the actions.
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 as_fn_set_status $ac_retval
2384 } # ac_fn_c_try_link
2386 # ac_fn_c_check_decl LINENO SYMBOL VAR
2387 # ------------------------------------
2388 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2389 ac_fn_c_check_decl ()
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2393 $as_echo_n "checking whether $2 is declared... " >&6; }
2394 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395 $as_echo_n "(cached) " >&6
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2411 if ac_fn_c_try_compile "$LINENO"; then :
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_c_check_decl
2425 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2426 # ----------------------------------------------
2427 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2428 ac_fn_c_check_header_preproc ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 if ac_fn_c_try_cpp "$LINENO"; then :
2445 rm -f conftest.err conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 } # ac_fn_c_check_header_preproc
2454 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2455 # ----------------------------------------------------
2456 # Tries to find if the field MEMBER exists in type AGGR, after including
2457 # INCLUDES, setting cache variable VAR accordingly.
2458 ac_fn_c_check_member ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2462 $as_echo_n "checking for $2.$3... " >&6; }
2463 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2479 if ac_fn_c_try_compile "$LINENO"; then :
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2489 if (sizeof ac_aggr.$3)
2495 if ac_fn_c_try_compile "$LINENO"; then :
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_member
2511 # ac_fn_c_check_func LINENO FUNC VAR
2512 # ----------------------------------
2513 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2514 ac_fn_c_check_func ()
2516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2518 $as_echo_n "checking for $2... " >&6; }
2519 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2520 $as_echo_n "(cached) " >&6
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2526 #define $2 innocuous_$2
2528 /* System header to define __stub macros and hopefully few prototypes,
2529 which can conflict with char $2 (); below.
2530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2531 <limits.h> exists even on freestanding compilers. */
2534 # include <limits.h>
2536 # include <assert.h>
2541 /* Override any GCC internal prototype to avoid an error.
2542 Use char because int might match the return type of a GCC
2543 builtin and then its argument prototype would still apply. */
2548 /* The GNU C library defines this for functions which it implements
2549 to always fail with ENOSYS. Some functions are actually named
2550 something starting with __ and the normal name is an alias. */
2551 #if defined __stub_$2 || defined __stub___$2
2563 if ac_fn_c_try_link "$LINENO"; then :
2568 rm -f core conftest.err conftest.$ac_objext \
2569 conftest$ac_exeext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576 } # ac_fn_c_check_func
2580 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2581 # ----------------------------------------------------
2582 # Tries to find if the field MEMBER exists in type AGGR, after including
2583 # INCLUDES, setting cache variable VAR accordingly.
2584 ac_fn_c_check_member ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2588 $as_echo_n "checking for $2.$3... " >&6; }
2589 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2605 if ac_fn_c_try_compile "$LINENO"; then :
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2615 if (sizeof ac_aggr.$3)
2621 if ac_fn_c_try_compile "$LINENO"; then :
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632 $as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635 } # ac_fn_c_check_member
2637 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2638 # -------------------------------------------
2639 # Tests whether TYPE exists after having included INCLUDES, setting cache
2640 # variable VAR accordingly.
2641 ac_fn_c_check_type ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2645 $as_echo_n "checking for $2... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2675 if ac_fn_c_try_compile "$LINENO"; then :
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 } # ac_fn_c_check_type
2691 >>>>>>> MERGE-SOURCE
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2697 ac_fn_c_compute_int ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2715 if ac_fn_c_try_compile "$LINENO"; then :
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 static int test_array [1 - 2 * !(($2) < 0)];
2757 if ac_fn_c_try_compile "$LINENO"; then :
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 if ac_fn_c_try_compile "$LINENO"; then :
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2830 FILE *f = fopen ("conftest.val", "w");
2835 long int i = longval ();
2838 fprintf (f, "%ld", i);
2842 unsigned long int i = ulongval ();
2845 fprintf (f, "%lu", i);
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2855 if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866 as_fn_set_status $ac_retval
2868 } # ac_fn_c_compute_int
2870 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2871 # -------------------------------------------
2872 # Tests whether TYPE exists after having included INCLUDES, setting cache
2873 # variable VAR accordingly.
2874 ac_fn_c_check_type ()
2876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878 $as_echo_n "checking for $2... " >&6; }
2879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2880 $as_echo_n "(cached) " >&6
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2895 if ac_fn_c_try_compile "$LINENO"; then :
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2908 if ac_fn_c_try_compile "$LINENO"; then :
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2919 $as_echo "$ac_res" >&6; }
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2922 } # ac_fn_c_check_type
2923 cat >config.log <<_ACEOF
2924 This file contains any messages produced by compilers while
2925 running configure, to aid debugging if configure makes a mistake.
2927 It was created by emacs $as_me 24.0.94, which was
2928 generated by GNU Autoconf 2.65. Invocation command line was
2940 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2941 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2942 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2943 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2944 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2946 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2947 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2949 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2950 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2951 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2952 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2953 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2954 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2955 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 $as_echo "PATH: $as_dir"
2980 # Keep a trace of the command line.
2981 # Strip out --no-create and --no-recursion so they do not pile up.
2982 # Strip out --silent because we don't want to record it for future runs.
2983 # Also quote any args containing shell meta-characters.
2984 # Make two passes to allow for proper duplicate-argument suppression.
2988 ac_must_keep_next=false
2994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2996 | -silent | --silent | --silen | --sile | --sil)
2999 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3004 as_fn_append ac_configure_args1 " '$ac_arg'"
3005 if test $ac_must_keep_next = true; then
3006 ac_must_keep_next=false # Got value, back to normal.
3009 *=* | --config-cache | -C | -disable-* | --disable-* \
3010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3012 | -with-* | --with-* | -without-* | --without-* | --x)
3013 case "$ac_configure_args0 " in
3014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3017 -* ) ac_must_keep_next=true ;;
3020 as_fn_append ac_configure_args " '$ac_arg'"
3025 { ac_configure_args0=; unset ac_configure_args0;}
3026 { ac_configure_args1=; unset ac_configure_args1;}
3028 # When interrupted or exit'd, cleanup temporary files, and complete
3029 # config.log. We remove comments because anyway the quotes in there
3030 # would cause problems or look ugly.
3031 # WARNING: Use '\'' to represent an apostrophe within the trap.
3032 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3033 trap 'exit_status=$?
3034 # Save into config.log some information that might help in debugging.
3039 ## ---------------- ##
3040 ## Cache variables. ##
3041 ## ---------------- ##
3044 # The following way of writing the cache mishandles newlines in values,
3046 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3047 eval ac_val=\$$ac_var
3051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3055 _ | IFS | as_nl) ;; #(
3056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3057 *) { eval $ac_var=; unset $ac_var;} ;;
3062 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3063 *${as_nl}ac_space=\ *)
3065 "s/'\''/'\''\\\\'\'''\''/g;
3066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3077 ## ----------------- ##
3078 ## Output variables. ##
3079 ## ----------------- ##
3082 for ac_var in $ac_subst_vars
3084 eval ac_val=\$$ac_var
3086 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3088 $as_echo "$ac_var='\''$ac_val'\''"
3092 if test -n "$ac_subst_files"; then
3094 ## ------------------- ##
3095 ## File substitutions. ##
3096 ## ------------------- ##
3099 for ac_var in $ac_subst_files
3101 eval ac_val=\$$ac_var
3103 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3105 $as_echo "$ac_var='\''$ac_val'\''"
3110 if test -s confdefs.h; then
3120 test "$ac_signal" != 0 &&
3121 $as_echo "$as_me: caught signal $ac_signal"
3122 $as_echo "$as_me: exit $exit_status"
3124 rm -f core *.core core.conftest.* &&
3125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3128 for ac_signal in 1 2 13 15; do
3129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3134 rm -f -r conftest* confdefs.h
3136 $as_echo "/* confdefs.h */" > confdefs.h
3138 # Predefined preprocessor variables.
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE_NAME "$PACKAGE_NAME"
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_STRING "$PACKAGE_STRING"
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_URL "$PACKAGE_URL"
3165 # Let the site file select an alternate cache file if it wants to.
3166 # Prefer an explicitly selected file to automatically selected ones.
3169 if test -n "$CONFIG_SITE"; then
3170 ac_site_file1=$CONFIG_SITE
3171 elif test "x$prefix" != xNONE; then
3172 ac_site_file1=$prefix/share/config.site
3173 ac_site_file2=$prefix/etc/config.site
3175 ac_site_file1=$ac_default_prefix/share/config.site
3176 ac_site_file2=$ac_default_prefix/etc/config.site
3178 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3180 test "x$ac_site_file" = xNONE && continue
3181 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3183 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3184 sed 's/^/| /' "$ac_site_file" >&5
3189 if test -r "$cache_file"; then
3190 # Some versions of bash will fail to source /dev/null (special files
3191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3194 $as_echo "$as_me: loading cache $cache_file" >&6;}
3196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3197 *) . "./$cache_file";;
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3202 $as_echo "$as_me: creating cache $cache_file" >&6;}
3206 as_fn_append ac_header_list " stdlib.h"
3207 as_fn_append ac_header_list " unistd.h"
3208 as_fn_append ac_header_list " sys/param.h"
3209 as_fn_append ac_func_list " readlinkat"
3210 gl_getopt_required=GNU
3211 as_fn_append ac_header_list " getopt.h"
3212 as_fn_append ac_header_list " wchar.h"
3213 as_fn_append ac_header_list " stdint.h"
3214 as_fn_append ac_header_list " inttypes.h"
3215 as_fn_append ac_func_list " lstat"
3216 as_fn_append ac_func_list " alarm"
3217 as_fn_append ac_func_list " readlink"
3218 as_fn_append ac_header_list " sys/socket.h"
3219 as_fn_append ac_func_list " tzset"
3220 as_fn_append ac_func_list " strtoimax"
3221 as_fn_append ac_func_list " strtoumax"
3222 as_fn_append ac_func_list " symlink"
3223 as_fn_append ac_header_list " sys/stat.h"
3224 as_fn_append ac_header_list " sys/time.h"
3225 as_fn_append ac_func_list " localtime_r"
3226 # Check that the precious variables saved in the cache have kept the same
3228 ac_cache_corrupted=false
3229 for ac_var in $ac_precious_vars; do
3230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3231 eval ac_new_set=\$ac_env_${ac_var}_set
3232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3233 eval ac_new_val=\$ac_env_${ac_var}_value
3234 case $ac_old_set,$ac_new_set in
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3237 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3241 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3245 if test "x$ac_old_val" != "x$ac_new_val"; then
3246 # differences in whitespace do not lead to failure.
3247 ac_old_val_w=`echo x
$ac_old_val`
3248 ac_new_val_w=`echo x
$ac_new_val`
3249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3251 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3252 ac_cache_corrupted=:
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3255 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3256 eval $ac_var=\$ac_old_val
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3259 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3261 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3264 # Pass precious variables to config.status.
3265 if test "$ac_new_set" = set; then
3267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3268 *) ac_arg=$ac_var=$ac_new_val ;;
3270 case " $ac_configure_args " in
3271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3276 if $ac_cache_corrupted; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3280 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3281 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3283 ## -------------------- ##
3284 ## Main body of script. ##
3285 ## -------------------- ##
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3298 for ac_dir in build-aux "$srcdir"/build-aux; do
3299 for ac_t in install-sh install.sh shtool; do
3300 if test -f "$ac_dir/$ac_t"; then
3302 ac_install_sh="$ac_aux_dir/$ac_t -c"
3307 if test -z "$ac_aux_dir"; then
3308 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3311 # These three variables are undocumented and unsupported,
3312 # and are intended to be withdrawn in a future Autoconf release.
3313 # They can cause serious problems if a builder's source tree is in a directory
3314 # whose full name contains unusual characters.
3315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3320 am__api_version='1.11'
3322 # Find a good install program. We prefer a C program (faster),
3323 # so one script is as good as another. But avoid the broken or
3324 # incompatible versions:
3325 # SysV /etc/install, /usr/sbin/install
3326 # SunOS /usr/etc/install
3327 # IRIX /sbin/install
3329 # AmigaOS /C/install, which installs bootblocks on floppy discs
3330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3333 # OS/2's system install, which has a completely different semantic
3334 # ./install, which can be erroneously created by make from ./install.sh.
3335 # Reject install programs that cannot install multiple files.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3337 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3338 if test -z "$INSTALL"; then
3339 if test "${ac_cv_path_install+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 # Account for people who put trailing slashes in PATH elements.
3348 case $as_dir/ in #((
3349 ./ | .// | /[cC]/* | \
3350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3351 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3354 # OSF1 and SCO ODT 3.0 have their own names for install.
3355 # Don't use installbsd from OSF since it installs stuff as root
3357 for ac_prog in ginstall scoinst install; do
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3360 if test $ac_prog = install &&
3361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3362 # AIX install. It has an incompatible calling convention.
3364 elif test $ac_prog = install &&
3365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3366 # program-specific install script used by HP pwplus--don't use.
3369 rm -rf conftest.one conftest.two conftest.dir
3370 echo one > conftest.one
3371 echo two > conftest.two
3373 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3374 test -s conftest.one && test -s conftest.two &&
3375 test -s conftest.dir/conftest.one &&
3376 test -s conftest.dir/conftest.two
3378 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3391 rm -rf conftest.one conftest.two conftest.dir
3394 if test "${ac_cv_path_install+set}" = set; then
3395 INSTALL=$ac_cv_path_install
3397 # As a last resort, use the slow shell script. Don't cache a
3398 # value for INSTALL within a source directory, because that will
3399 # break other packages using the cache if that directory is
3400 # removed, or if the value is a relative name.
3401 INSTALL=$ac_install_sh
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3405 $as_echo "$INSTALL" >&6; }
3407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3408 # It thinks the first close brace ends the variable substitution.
3409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3416 $as_echo_n "checking whether build environment is sane... " >&6; }
3419 echo timestamp > conftest.file
3420 # Reject unsafe characters in $srcdir or the absolute working directory
3421 # name. Accept space and tab only in the latter.
3425 *[\\\"\#\$\&\'\`$am_lf]*)
3426 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3429 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3430 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3433 # Do `set' in a subshell so we don't clobber the current shell's
3434 # arguments. Must try -L first in case configure is actually a
3435 # symlink; some systems play weird games with the mod time of symlinks
3436 # (eg FreeBSD returns the mod time of the symlink's containing
3439 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3440 if test "$*" = "X"; then
3442 set X
`ls -t "$srcdir/configure" conftest.file`
3445 if test "$*" != "X $srcdir/configure conftest.file" \
3446 && test "$*" != "X conftest.file $srcdir/configure"; then
3448 # If neither matched, then we have a broken ls. This can happen
3449 # if, for instance, CONFIG_SHELL is bash and it inherits a
3450 # broken ls alias from the environment. This has actually
3451 # happened. Such a system could not be considered "sane".
3452 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3453 alias in your environment" "$LINENO" 5
3456 test "$2" = conftest.
file
3462 as_fn_error
"newly created file is older than distributed files!
3463 Check your system clock" "$LINENO" 5
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3467 test "$program_prefix" != NONE
&&
3468 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3469 # Use a double $ so make ignores it.
3470 test "$program_suffix" != NONE
&&
3471 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3472 # Double any \ or $.
3473 # By default was `s,x,x', remove it if useless.
3474 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3475 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir
=`cd $ac_aux_dir && pwd`
3480 if test x
"${MISSING+set}" != xset
; then
3483 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3485 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3488 # Use eval to expand $SHELL
3489 if eval "$MISSING --run true"; then
3490 am_missing_run
="$MISSING --run "
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3494 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3497 if test x
"${install_sh}" != xset
; then
3500 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3502 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3506 # Installed binaries are usually stripped using `strip' when the user
3507 # run `make install-strip'. However `strip' might not be the right
3508 # tool to use in cross-compilation environments, therefore Automake
3509 # will honor the `STRIP' environment variable to overrule this program.
3510 if test "$cross_compiling" != no
; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3513 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_STRIP+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$STRIP"; then
3520 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 STRIP
=$ac_cv_prog_STRIP
3540 if test -n "$STRIP"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3542 $as_echo "$STRIP" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$ac_cv_prog_STRIP"; then
3552 # Extract the first word of "strip", so it can be a program name with args.
3553 set dummy strip
; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$ac_ct_STRIP"; then
3560 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_ac_ct_STRIP
="strip"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3580 if test -n "$ac_ct_STRIP"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3582 $as_echo "$ac_ct_STRIP" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3588 if test "x$ac_ct_STRIP" = x
; then
3591 case $cross_compiling:$ac_tool_warned in
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned
=yes ;;
3600 STRIP
="$ac_cv_prog_STRIP"
3604 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3607 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3608 if test -z "$MKDIR_P"; then
3609 if test "${ac_cv_path_mkdir+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3613 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3616 test -z "$as_dir" && as_dir
=.
3617 for ac_prog
in mkdir gmkdir
; do
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3620 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3621 'mkdir (GNU coreutils) '* | \
3622 'mkdir (coreutils) '* | \
3623 'mkdir (fileutils) '4.1*)
3624 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3634 test -d .
/--version && rmdir .
/--version
3635 if test "${ac_cv_path_mkdir+set}" = set; then
3636 MKDIR_P
="$ac_cv_path_mkdir -p"
3638 # As a last resort, use the slow shell script. Don't cache a
3639 # value for MKDIR_P within a source directory, because that will
3640 # break other packages using the cache if that directory is
3641 # removed, or if the value is a relative name.
3642 MKDIR_P
="$ac_install_sh -d"
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3646 $as_echo "$MKDIR_P" >&6; }
3651 [\\/$
]* | ?
:[\\/]*) ;;
3652 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3655 for ac_prog
in gawk mawk nawk
awk
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy
$ac_prog; ac_word
=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_AWK+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 if test -n "$AWK"; then
3665 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir
=.
3672 for ac_exec_ext
in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_AWK
="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 if test -n "$AWK"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3687 $as_echo "$AWK" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3694 test -n "$AWK" && break
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3700 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3701 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3702 $as_echo_n "(cached) " >&6
3704 cat >conftest.
make <<\_ACEOF
3707 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3712 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3714 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3718 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 SET_MAKE
="MAKE=${MAKE-make}"
3728 rm -rf .tst
2>/dev
/null
3729 mkdir .tst
2>/dev
/null
3730 if test -d .tst
; then
3735 rmdir .tst
2>/dev
/null
3737 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3738 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3739 # is not polluted with repeated "-I."
3740 am__isrc
=' -I$(srcdir)'
3741 # test to see if srcdir already configured
3742 if test -f $srcdir/config.status
; then
3743 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3747 # test whether we have cygpath
3748 if test -z "$CYGPATH_W"; then
3749 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3750 CYGPATH_W
='cygpath -w'
3757 # Define the identity of the package.
3762 cat >>confdefs.h
<<_ACEOF
3763 #define PACKAGE "$PACKAGE"
3767 cat >>confdefs.h
<<_ACEOF
3768 #define VERSION "$VERSION"
3771 # Some tools Automake needs.
3773 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3776 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3779 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3782 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3785 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3787 # We need awk for the "check" target. The system "awk" is bad on
3789 # Always define AMTAR for backward compatibility.
3791 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3793 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3802 lispdir
='${datadir}/emacs/${version}/lisp'
3803 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3804 '${datadir}/emacs/site-lisp'
3805 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3806 etcdir
='${datadir}/emacs/${version}/etc'
3807 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3808 docdir
='${datadir}/emacs/${version}/etc'
3809 gamedir
='${localstatedir}/games/emacs'
3814 # Check whether --with-pop was given.
3815 if test "${with_pop+set}" = set; then :
3821 if test "$with_pop" = yes; then
3822 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3827 # Check whether --with-kerberos was given.
3828 if test "${with_kerberos+set}" = set; then :
3829 withval
=$with_kerberos;
3834 if test "$with_kerberos" != no
; then
3835 $as_echo "#define KERBEROS 1" >>confdefs.h
3840 # Check whether --with-kerberos5 was given.
3841 if test "${with_kerberos5+set}" = set; then :
3842 withval
=$with_kerberos5;
3847 if test "${with_kerberos5}" != no
; then
3848 if test "${with_kerberos}" = no
; then
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3854 $as_echo "#define KERBEROS5 1" >>confdefs.h
3859 # Check whether --with-hesiod was given.
3860 if test "${with_hesiod+set}" = set; then :
3861 withval
=$with_hesiod;
3866 if test "$with_hesiod" != no
; then
3868 $as_echo "#define HESIOD 1" >>confdefs.h
3873 # Check whether --with-mmdf was given.
3874 if test "${with_mmdf+set}" = set; then :
3880 if test "$with_mmdf" != no
; then
3882 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3887 # Check whether --with-mail-unlink was given.
3888 if test "${with_mail_unlink+set}" = set; then :
3889 withval
=$with_mail_unlink;
3894 if test "$with_mail_unlink" != no
; then
3896 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3901 # Check whether --with-mailhost was given.
3902 if test "${with_mailhost+set}" = set; then :
3903 withval
=$with_mailhost;
3904 cat >>confdefs.h
<<_ACEOF
3905 #define MAILHOST "$withval"
3912 # Check whether --with-sound was given.
3913 if test "${with_sound+set}" = set; then :
3914 withval
=$with_sound;
3921 # Check whether --with-sync-input was given.
3922 if test "${with_sync_input+set}" = set; then :
3923 withval
=$with_sync_input;
3928 if test "$with_sync_input" = yes; then
3930 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3935 # Check whether --with-x-toolkit was given.
3936 if test "${with_x_toolkit+set}" = set; then :
3937 withval
=$with_x_toolkit; case "${withval}" in
3938 y | ye |
yes ) val
=gtk
;;
3940 l | lu | luc | luci | lucid
) val
=lucid
;;
3941 a |
at | ath | athe | athen | athena
) val
=athena
;;
3942 m | mo | mot | moti | motif
) val
=motif
;;
3943 g | gt | gtk
) val
=gtk
;;
3946 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3947 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3948 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3957 # Check whether --with-wide-int was given.
3958 if test "${with_wide_int+set}" = set; then :
3959 withval
=$with_wide_int;
3964 if test "$with_wide_int" = yes; then
3966 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3971 # Check whether --with-xpm was given.
3972 if test "${with_xpm+set}" = set; then :
3979 # Check whether --with-jpeg was given.
3980 if test "${with_jpeg+set}" = set; then :
3987 # Check whether --with-tiff was given.
3988 if test "${with_tiff+set}" = set; then :
3995 # Check whether --with-gif was given.
3996 if test "${with_gif+set}" = set; then :
4003 # Check whether --with-png was given.
4004 if test "${with_png+set}" = set; then :
4011 # Check whether --with-rsvg was given.
4012 if test "${with_rsvg+set}" = set; then :
4019 # Check whether --with-xml2 was given.
4020 if test "${with_xml2+set}" = set; then :
4027 # Check whether --with-imagemagick was given.
4028 if test "${with_imagemagick+set}" = set; then :
4029 withval
=$with_imagemagick;
4031 with_imagemagick
=yes
4036 # Check whether --with-xft was given.
4037 if test "${with_xft+set}" = set; then :
4044 # Check whether --with-libotf was given.
4045 if test "${with_libotf+set}" = set; then :
4046 withval
=$with_libotf;
4052 # Check whether --with-m17n-flt was given.
4053 if test "${with_m17n_flt+set}" = set; then :
4054 withval
=$with_m17n_flt;
4061 # Check whether --with-toolkit-scroll-bars was given.
4062 if test "${with_toolkit_scroll_bars+set}" = set; then :
4063 withval
=$with_toolkit_scroll_bars;
4065 with_toolkit_scroll_bars
=yes
4069 # Check whether --with-xaw3d was given.
4070 if test "${with_xaw3d+set}" = set; then :
4071 withval
=$with_xaw3d;
4077 # Check whether --with-xim was given.
4078 if test "${with_xim+set}" = set; then :
4085 # Check whether --with-ns was given.
4086 if test "${with_ns+set}" = set; then :
4094 # Check whether --with-gpm was given.
4095 if test "${with_gpm+set}" = set; then :
4102 # Check whether --with-dbus was given.
4103 if test "${with_dbus+set}" = set; then :
4110 # Check whether --with-gconf was given.
4111 if test "${with_gconf+set}" = set; then :
4112 withval
=$with_gconf;
4118 # Check whether --with-selinux was given.
4119 if test "${with_selinux+set}" = set; then :
4120 withval
=$with_selinux;
4126 # Check whether --with-gnutls was given.
4127 if test "${with_gnutls+set}" = set; then :
4128 withval
=$with_gnutls;
4134 ## For the times when you want to build Emacs but don't have
4135 ## a suitable makeinfo, and can live without the manuals.
4137 # Check whether --with-makeinfo was given.
4138 if test "${with_makeinfo+set}" = set; then :
4139 withval
=$with_makeinfo;
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-maintainer-mode was given.
4221 if test "${enable_maintainer_mode+set}" = set; then :
4222 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4224 USE_MAINTAINER_MODE
=yes
4227 if test $USE_MAINTAINER_MODE = yes; then
4234 # Check whether --enable-locallisppath was given.
4235 if test "${enable_locallisppath+set}" = set; then :
4236 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4238 elif test "${enableval}" != "yes"; then
4239 locallisppath
=${enableval}
4244 # Check whether --enable-checking was given.
4245 if test "${enable_checking+set}" = set; then :
4246 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4249 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4250 for check
in $ac_checking_flags
4253 # these set all the flags to specific states
4254 yes) ac_enable_checking
=1 ;;
4255 no
) ac_enable_checking
= ;
4256 ac_gc_check_stringbytes
= ;
4257 ac_gc_check_string_overrun
= ;
4258 ac_gc_check_string_free_list
= ;
4259 ac_xmalloc_overrun
= ;
4260 ac_gc_check_cons_list
= ;;
4261 all
) ac_enable_checking
=1 ;
4262 ac_gc_check_stringbytes
=1 ;
4263 ac_gc_check_string_overrun
=1 ;
4264 ac_gc_check_string_free_list
=1 ;
4265 ac_xmalloc_overrun
=1 ;
4266 ac_gc_check_cons_list
=1 ;;
4267 # these enable particular checks
4268 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4269 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4270 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4271 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4272 conslist
) ac_gc_check_cons_list
=1 ;;
4273 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4278 if test x
$ac_enable_checking != x
; then
4280 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4283 if test x
$ac_gc_check_stringbytes != x
; then
4285 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4288 if test x
$ac_gc_check_string_overrun != x
; then
4290 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4293 if test x
$ac_gc_check_string_free_list != x
; then
4295 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4298 if test x
$ac_xmalloc_overrun != x
; then
4300 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4303 if test x
$ac_gc_check_cons_list != x
; then
4305 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4309 # Check whether --enable-use-lisp-union-type was given.
4310 if test "${enable_use_lisp_union_type+set}" = set; then :
4311 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4313 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4320 # Check whether --enable-profiling was given.
4321 if test "${enable_profiling+set}" = set; then :
4322 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4325 if test x
$ac_enable_profiling != x
; then
4326 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4332 # Check whether --enable-autodepend was given.
4333 if test "${enable_autodepend+set}" = set; then :
4334 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4336 ac_enable_autodepend
=yes
4340 #### Make srcdir absolute, if it isn't already. It's important to
4341 #### avoid running the path through pwd unnecessarily, since pwd can
4342 #### give you automounter prefixes, which can go away. We do all this
4343 #### so Emacs can find its files when run uninstalled.
4344 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4349 ## We may be able to use the $PWD environment variable to make this
4350 ## absolute. But sometimes PWD is inaccurate.
4351 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4352 ## but that tested only for a well-formed and valid PWD,
4353 ## it did not object when PWD was well-formed and valid but just wrong.
4354 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4358 srcdir
="`(cd ${srcdir}; pwd)`"
4361 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4364 #### Given the configuration name, set machfile and opsysfile to the
4365 #### names of the m/*.h and s/*.h files we should use.
4367 ### Canonicalize the configuration name.
4369 # Make sure we can run config.sub.
4370 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4371 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4374 $as_echo_n "checking build system type... " >&6; }
4375 if test "${ac_cv_build+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4378 ac_build_alias
=$build_alias
4379 test "x$ac_build_alias" = x
&&
4380 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4381 test "x$ac_build_alias" = x
&&
4382 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4383 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4384 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4388 $as_echo "$ac_cv_build" >&6; }
4389 case $ac_cv_build in
4391 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4394 ac_save_IFS
=$IFS; IFS
='-'
4400 # Remember, the first character of IFS is used to create $*,
4401 # except with old shells:
4404 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4408 $as_echo_n "checking host system type... " >&6; }
4409 if test "${ac_cv_host+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4412 if test "x$host_alias" = x
; then
4413 ac_cv_host
=$ac_cv_build
4415 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4416 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4421 $as_echo "$ac_cv_host" >&6; }
4424 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4427 ac_save_IFS
=$IFS; IFS
='-'
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4437 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4441 configuration
=${host_alias-${build_alias-$host}}
4445 ### If you add support for a new configuration, add code to this
4446 ### switch statement to recognize your configuration name and select
4447 ### the appropriate operating system and machine description files.
4449 ### You would hope that you could choose an m/*.h file pretty much
4450 ### based on the machine portion of the configuration name, and an s/*.h
4451 ### file based on the operating system portion. However, it turns out
4452 ### that each m/*.h file is pretty manufacturer-specific - for
4453 ### example mips.h is MIPS
4454 ### So we basically have to have a special case for each
4455 ### configuration name.
4457 ### As far as handling version numbers on operating systems is
4458 ### concerned, make sure things will fail in a fixable way. If
4459 ### /etc/MACHINES doesn't say anything about version numbers, be
4460 ### prepared to handle anything reasonably. If version numbers
4461 ### matter, be sure /etc/MACHINES says something about it.
4463 machine
='' opsys
='' unported
=no
4464 case "${canonical}" in
4466 ## GNU/Linux and similar ports
4469 case ${canonical} in
4470 alpha
*) machine
=alpha
;;
4471 s390x-
*) machine
=ibms390x
;;
4472 powerpc
*) machine
=macppc
;;
4473 sparc
*) machine
=sparc
;;
4474 ia64
*) machine
=ia64
;;
4475 m68k
*) machine
=m68k
;;
4476 x86_64
*) machine
=amdx86-64
;;
4483 case "${canonical}" in
4484 alpha
*) machine
=alpha
;;
4485 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4486 ia64-
*) machine
=ia64
;;
4487 i
[3456]86-*) machine
=intel386
;;
4488 powerpc-
*) machine
=macppc
;;
4489 sparc-
*) machine
=sparc
;;
4490 sparc64-
*) machine
=sparc
;;
4494 ## FreeBSD kernel + glibc based userland
4497 case "${canonical}" in
4498 alpha
*) machine
=alpha
;;
4499 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4500 ia64-
*) machine
=ia64
;;
4501 i
[3456]86-*) machine
=intel386
;;
4502 powerpc-
*) machine
=macppc
;;
4503 sparc-
*) machine
=sparc
;;
4504 sparc64-
*) machine
=sparc
;;
4511 case "${canonical}" in
4512 alpha
*) machine
=alpha
;;
4513 x86_64-
*) machine
=amdx86-64
;;
4514 i
[3456]86-*) machine
=intel386
;;
4515 m68k-
*) machine
=m68k
;;
4516 powerpc-
*) machine
=macppc
;;
4517 sparc
*-) machine
=sparc
;;
4518 vax-
*) machine
=vax
;;
4525 case "${canonical}" in
4526 alpha
*) machine
=alpha
;;
4527 x86_64-
*) machine
=amdx86-64
;;
4528 i386-
*) machine
=intel386
;;
4529 powerpc-
*) machine
=macppc
;;
4530 sparc
*) machine
=sparc
;;
4531 vax-
*) machine
=vax
;;
4535 ## Apple Darwin / Mac OS X
4537 case "${canonical}" in
4538 i
[3456]86-* ) machine
=intel386
;;
4539 powerpc-
* ) machine
=macppc
;;
4540 x86_64-
* ) machine
=amdx86-64
;;
4544 # Define CPP as follows to make autoconf work correctly.
4545 CPP
="${CC-cc} -E -no-cpp-precomp"
4546 # Use fink packages if available.
4547 if test -d /sw
/include
&& test -d /sw
/lib
; then
4548 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4549 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4550 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4554 ## HP 9000 series 700 and 800, running HP/UX
4555 hppa
*-hp-hpux10.2
* )
4558 hppa
*-hp-hpux1[1-9]* )
4560 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4564 rs6000-ibm-aix4.
[23]* )
4565 machine
=ibmrs6000 opsys
=aix4-2
4567 powerpc-ibm-aix4.
[23]* )
4568 machine
=ibmrs6000 opsys
=aix4-2
4570 rs6000-ibm-aix
[56]* )
4571 machine
=ibmrs6000 opsys
=aix4-2
4573 powerpc-ibm-aix
[56]* )
4574 machine
=ibmrs6000 opsys
=aix4-2
4577 ## Silicon Graphics machines
4580 machine
=iris4d opsys
=irix6-5
4581 # Without defining _LANGUAGE_C, things get masked out in the headers
4582 # so that, for instance, grepping for `free' in stdlib.h fails and
4583 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4584 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4585 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4590 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4591 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4592 case "${canonical}" in
4593 i
[3456]86-*-* ) machine
=intel386
;;
4594 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4595 sparc
* ) machine
=sparc
;;
4598 case "${canonical}" in
4599 *-sunos5.6
* |
*-solaris2.6
* )
4601 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4604 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4606 emacs_check_sunpro_c
=yes
4607 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4609 *-sunos5* |
*-solaris* )
4611 emacs_check_sunpro_c
=yes
4612 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4615 ## Watch out for a compiler that we know will not work.
4616 case "${canonical}" in
4617 *-solaris* |
*-sunos5* )
4618 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4619 ## /usr/ucb/cc doesn't work;
4620 ## we should find some other compiler that does work.
4628 ## Intel 386 machines where we don't care about the manufacturer.
4631 case "${canonical}" in
4632 *-cygwin ) opsys
=cygwin
;;
4633 *-darwin* ) opsys
=darwin
4634 CPP
="${CC-cc} -E -no-cpp-precomp"
4636 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4637 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4638 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4639 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4648 ### If the code above didn't choose an operating system, just choose
4649 ### an operating system based on the configuration name. You really
4650 ### only want to use this when you have no idea what the right
4651 ### operating system is; if you know what operating systems a machine
4652 ### runs, it's cleaner to make it explicit in the case statement
4654 if test x
"${opsys}" = x
; then
4655 case "${canonical}" in
4656 *-gnu* ) opsys
=gnu
;;
4665 if test $unported = yes; then
4666 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4667 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4670 if test -n "$machine"; then
4671 machfile
="m/${machine}.h"
4675 opsysfile
="s/${opsys}.h"
4678 #### Choose a compiler.
4679 test -n "$CC" && cc_specified
=yes
4681 # Save the value of CFLAGS that the user specified.
4682 SPECIFIED_CFLAGS
="$CFLAGS"
4685 ac_cpp
='$CPP $CPPFLAGS'
4686 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4691 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_CC+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC
="$CC" # Let the user override the test.
4700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir
=.
4705 for ac_exec_ext
in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test -n "$CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720 $as_echo "$CC" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4728 if test -z "$ac_cv_prog_CC"; then
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731 set dummy gcc
; ac_word
=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$ac_ct_CC"; then
4738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir
=.
4745 for ac_exec_ext
in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_ac_ct_CC
="gcc"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4758 if test -n "$ac_ct_CC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4760 $as_echo "$ac_ct_CC" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4766 if test "x$ac_ct_CC" = x
; then
4769 case $cross_compiling:$ac_tool_warned in
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773 ac_tool_warned
=yes ;;
4781 if test -z "$CC"; then
4782 if test -n "$ac_tool_prefix"; then
4783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4784 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_CC+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC
="$CC" # Let the user override the test.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir
=.
4798 for ac_exec_ext
in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 if test -n "$CC"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4813 $as_echo "$CC" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4822 if test -z "$CC"; then
4823 # Extract the first word of "cc", so it can be a program name with args.
4824 set dummy cc
; ac_word
=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_CC+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC
="$CC" # Let the user override the test.
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir
=.
4839 for ac_exec_ext
in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4842 ac_prog_rejected
=yes
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 if test $ac_prog_rejected = yes; then
4854 # We found a bogon in the path, so make sure we never use it.
4855 set dummy
$ac_cv_prog_CC
4857 if test $# != 0; then
4858 # We chose a different compiler from the bogus one.
4859 # However, it has the same basename, so the bogon will be chosen
4860 # first if we set CC to just the basename; use the full file name.
4862 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4868 if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4878 if test -z "$CC"; then
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog
in cl.exe
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_CC+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$CC"; then
4890 ac_cv_prog_CC
="$CC" # Let the user override the test.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 if test -n "$CC"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4912 $as_echo "$CC" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 test -n "$CC" && break
4922 if test -z "$CC"; then
4924 for ac_prog
in cl.exe
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy
$ac_prog; ac_word
=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4933 if test -n "$ac_ct_CC"; then
4934 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir
=.
4941 for ac_exec_ext
in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_ac_ct_CC
="$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4954 if test -n "$ac_ct_CC"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4956 $as_echo "$ac_ct_CC" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 test -n "$ac_ct_CC" && break
4966 if test "x$ac_ct_CC" = x
; then
4969 case $cross_compiling:$ac_tool_warned in
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned
=yes ;;
4982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error
"no acceptable C compiler found in \$PATH
4985 See \`config.log' for more details." "$LINENO" 5; }
4987 # Provide some information about the compiler.
4988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4991 for ac_option
in --version -v -V -qversion; do
4992 { { ac_try
="$ac_compiler $ac_option >&5"
4994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998 $as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5001 if test -s conftest.err; then
5003 ... rest of stderr output deleted ...
5004 10q' conftest.err >conftest.er1
5005 cat conftest.er1 >&5
5007 rm -f conftest.er1 conftest.err
5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5023 ac_clean_files_save=$ac_clean_files
5024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5025 # Try to create an executable without -o first, disregard a.out.
5026 # It will help us diagnose broken compilers, and finding out an intuition
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5029 $as_echo_n "checking whether the C compiler works... " >&6; }
5030 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5032 # The possible output files:
5033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5036 for ac_file in $ac_files
5039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5045 if { { ac_try="$ac_link_default"
5047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5048 *) ac_try_echo
=$ac_try;;
5050 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link_default") 2>&5
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5059 # so that the user can short-circuit this test for compilers unknown to
5061 for ac_file
in $ac_files ''
5063 test -f "$ac_file" ||
continue
5065 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5068 # We found the default executable, but exeext='' is most
5072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5074 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5076 # We set ac_cv_exeext here because the later test for it is not
5077 # safe: cross compilers may not add the suffix if given an `-o'
5078 # argument, so we may need to know it at that point already.
5079 # Even if this section looks crufty: it has the advantage of
5086 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5091 if test -z "$ac_file"; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 $as_echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.
$ac_ext >&5
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 { as_fn_set_status
77
5100 as_fn_error
"C compiler cannot create executables
5101 See \`config.log' for more details." "$LINENO" 5; }; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5107 $as_echo_n "checking for C compiler default output file name... " >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5109 $as_echo "$ac_file" >&6; }
5110 ac_exeext
=$ac_cv_exeext
5112 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5113 ac_clean_files
=$ac_clean_files_save
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5115 $as_echo_n "checking for suffix of executables... " >&6; }
5116 if { { ac_try
="$ac_link"
5118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5122 $as_echo "$ac_try_echo"; } >&5
5123 (eval "$ac_link") 2>&5
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; then :
5127 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5128 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5129 # work properly (i.e., refer to `conftest.exe'), while it won't with
5131 for ac_file
in conftest.exe conftest conftest.
*; do
5132 test -f "$ac_file" ||
continue
5134 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5135 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5144 See \`config.log' for more details." "$LINENO" 5; }
5146 rm -f conftest conftest
$ac_cv_exeext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5148 $as_echo "$ac_cv_exeext" >&6; }
5150 rm -f conftest.
$ac_ext
5151 EXEEXT
=$ac_cv_exeext
5153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5159 FILE *f = fopen ("conftest.out", "w");
5160 return ferror (f) || fclose (f) != 0;
5166 ac_clean_files
="$ac_clean_files conftest.out"
5167 # Check that the compiler produces executables we can run. If not, either
5168 # the compiler is broken, or we cross compile.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5170 $as_echo_n "checking whether we are cross compiling... " >&6; }
5171 if test "$cross_compiling" != yes; then
5172 { { ac_try
="$ac_link"
5174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_link") 2>&5
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183 if { ac_try='./conftest$ac_cv_exeext'
5184 { { case "(($ac_try" in
5185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5186 *) ac_try_echo
=$ac_try;;
5188 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5189 $as_echo "$ac_try_echo"; } >&5
5190 (eval "$ac_try") 2>&5
5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; }; then
5196 if test "$cross_compiling" = maybe
; then
5199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5201 as_fn_error
"cannot run C compiled programs.
5202 If you meant to cross compile, use \`--host'.
5203 See \`config.log' for more details." "$LINENO" 5; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5208 $as_echo "$cross_compiling" >&6; }
5210 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5211 ac_clean_files
=$ac_clean_files_save
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5213 $as_echo_n "checking for suffix of object files... " >&6; }
5214 if test "${ac_cv_objext+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5228 rm -f conftest.o conftest.obj
5229 if { { ac_try
="$ac_compile"
5231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5235 $as_echo "$ac_try_echo"; } >&5
5236 (eval "$ac_compile") 2>&5
5238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5239 test $ac_status = 0; }; then :
5240 for ac_file in conftest.o conftest.obj conftest.*; do
5241 test -f "$ac_file" || continue;
5243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5244 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5249 $as_echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5254 as_fn_error "cannot compute suffix of object files
: cannot compile
5255 See \
`config.log' for more details." "$LINENO" 5; }
5257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5260 $as_echo "$ac_cv_objext" >&6; }
5261 OBJEXT=$ac_cv_objext
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5265 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5282 if ac_fn_c_try_compile "$LINENO"; then :
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5292 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5293 if test $ac_compiler_gnu = yes; then
5298 ac_test_CFLAGS=${CFLAGS+set}
5299 ac_save_CFLAGS=$CFLAGS
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5301 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5302 if test "${ac_cv_prog_cc_g+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 ac_save_c_werror_flag=$ac_c_werror_flag
5306 ac_c_werror_flag=yes
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5320 if ac_fn_c_try_compile "$LINENO"; then :
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5335 if ac_fn_c_try_compile "$LINENO"; then :
5338 ac_c_werror_flag=$ac_save_c_werror_flag
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5351 if ac_fn_c_try_compile "$LINENO"; then :
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_c_werror_flag=$ac_save_c_werror_flag
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5362 $as_echo "$ac_cv_prog_cc_g" >&6; }
5363 if test "$ac_test_CFLAGS" = set; then
5364 CFLAGS=$ac_save_CFLAGS
5365 elif test $ac_cv_prog_cc_g = yes; then
5366 if test "$GCC" = yes; then
5372 if test "$GCC" = yes; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5379 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5380 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5383 ac_cv_prog_cc_c89=no
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5389 #include <sys/types.h>
5390 #include <sys/stat.h>
5391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5392 struct buf { int x; };
5393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5394 static char *e (p, i)
5400 static char *f (char * (*g) (char **, int), char **p, ...)
5405 s = g (p, va_arg (v,int));
5410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5411 function prototypes and stuff, but not '\xHH' hex character constants.
5412 These don't provoke an error unfortunately, instead are silently treated
5413 as 'x'. The following induces an error, until -std is added to get
5414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5415 array size at least. It's necessary to write '\x00'==0 to get something
5416 that's true only with -std. */
5417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5420 inside strings and character constants. */
5422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5424 int test (int i, double x);
5425 struct s1 {int (*f) (int a);};
5426 struct s2 {int (*f) (double a);};
5427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5441 CC="$ac_save_CC $ac_arg"
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ac_cv_prog_cc_c89=$ac_arg
5445 rm -f core conftest.err conftest.$ac_objext
5446 test "x$ac_cv_prog_cc_c89" != "xno" && break
5448 rm -f conftest.$ac_ext
5453 case "x$ac_cv_prog_cc_c89" in
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5456 $as_echo "none needed" >&6; } ;;
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5459 $as_echo "unsupported" >&6; } ;;
5461 CC="$CC $ac_cv_prog_cc_c89"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5463 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5465 if test "x$ac_cv_prog_cc_c89" != xno; then :
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 DEPDIR="${am__leading_dot}deps"
5476 ac_config_commands="$ac_config_commands depfiles"
5479 am_make=${MAKE-make}
5480 cat > confinc << 'END'
5482 @echo this is the am__doit target
5485 # If we don't find an include directive, just comment out the code.
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5491 # First try GNU make style include.
5492 echo "include confinc" > confmf
5493 # Ignore all kinds of additional output from `make'.
5494 case `$am_make -s -f confmf 2> /dev/null` in #(
5495 *the\ am__doit\ target*)
5501 # Now try BSD make style include.
5502 if test "$am__include" = "#"; then
5503 echo '.include
"confinc"' > confmf
5504 case `$am_make -s -f confmf 2> /dev/null` in #(
5505 *the\ am__doit\ target*)
5506 am__include=.include
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5515 $as_echo "$_am_result" >&6; }
5516 rm -f confinc confmf
5518 # Check whether --enable-dependency-tracking was given.
5519 if test "${enable_dependency_tracking+set}" = set; then :
5520 enableval=$enable_dependency_tracking;
5523 if test "x$enable_dependency_tracking" != xno; then
5524 am_depcomp="$ac_aux_dir/depcomp"
5527 if test "x$enable_dependency_tracking" != xno
; then
5537 depcc
="$CC" am_compiler_list
=
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5540 $as_echo_n "checking dependency style of $depcc... " >&6; }
5541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5545 # We make a subdir and do the tests there. Otherwise we can end up
5546 # making bogus files that we don't know about and never remove. For
5547 # instance it was reported that on HP-UX the gcc test will end up
5548 # making a dummy file named `D' -- because `-MD' means `put the output
5551 # Copy depcomp to subdir because otherwise we won't find it if we're
5552 # using a relative directory.
5553 cp "$am_depcomp" conftest.dir
5555 # We will build objects and dependencies in a subdirectory because
5556 # it helps to detect inapplicable dependency modes. For instance
5557 # both Tru64's cc and ICC support -MD to output dependencies as a
5558 # side effect of compilation, but ICC will put the dependencies in
5559 # the current directory while Tru64 will put them in the object
5563 am_cv_CC_dependencies_compiler_type
=none
5564 if test "$am_compiler_list" = ""; then
5565 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5568 case " $depcc " in #(
5569 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5572 for depmode
in $am_compiler_list; do
5573 # Setup a source with many dependencies, because some compilers
5574 # like to wrap large dependency lists on column 80 (with \), and
5575 # we should not choose a depcomp mode which is confused by this.
5577 # We need to recreate these files for each test, as the compiler may
5578 # overwrite some of them when testing with obscure command lines.
5579 # This happens at least with the AIX C compiler.
5581 for i
in 1 2 3 4 5 6; do
5582 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5584 # Solaris 8's {/usr,}/bin/sh.
5585 touch sub
/conftst
$i.h
5587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5590 # mode. It turns out that the SunPro C++ compiler does not properly
5591 # handle `-M -o', and we need to detect this. Also, some Intel
5592 # versions had trouble with output in subdirs
5593 am__obj
=sub
/conftest.
${OBJEXT-o}
5594 am__minus_obj
="-o $am__obj"
5597 # This depmode causes a compiler race in universal mode.
5598 test "$am__universal" = false ||
continue
5601 # after this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested
5603 if test "x$enable_dependency_tracking" = xyes
; then
5609 msvisualcpp | msvcmsys
)
5610 # This compiler won't grok `-c -o', but also, the minuso test has
5611 # not run yet. These depmodes are late enough in the game, and
5612 # so weak that their functioning should not be impacted.
5613 am__obj
=conftest.
${OBJEXT-o}
5618 if depmode
=$depmode \
5619 source=sub
/conftest.c object
=$am__obj \
5620 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5621 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5622 >/dev
/null
2>conftest.err
&&
5623 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5624 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5625 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5626 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5627 # icc doesn't choke on unknown options, it will just issue warnings
5628 # or remarks (even with -Werror). So we grep stderr for any message
5629 # that says an option was ignored or not supported.
5630 # When given -MP, icc 7.0 and 7.1 complain thusly:
5631 # icc: Command line warning: ignoring option '-M'; no argument required
5632 # The diagnosis changed in icc 8.0:
5633 # icc: Command line remark: option '-MP' not supported
5634 if (grep 'ignoring option' conftest.err ||
5635 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5636 am_cv_CC_dependencies_compiler_type
=$depmode
5645 am_cv_CC_dependencies_compiler_type
=none
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5650 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5651 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5654 test "x$enable_dependency_tracking" != xno \
5655 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5657 am__fastdepCC_FALSE
='#'
5659 am__fastdepCC_TRUE
='#'
5660 am__fastdepCC_FALSE
=
5664 if test "x$CC" != xcc
; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5666 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5669 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5671 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5672 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5673 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5674 $as_echo_n "(cached) " >&6
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5687 # Make sure it works both with $CC and with simple cc.
5688 # We do the test twice because some compilers refuse to overwrite an
5689 # existing .o file with -o, though they will create one.
5690 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5692 if { { case "(($ac_try" in
5693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; } &&
5702 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5704 *) ac_try_echo
=$ac_try;;
5706 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707 $as_echo "$ac_try_echo"; } >&5
5708 (eval "$ac_try") 2>&5
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; };
5713 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5714 if test "x$CC" != xcc
; then
5715 # Test first that cc exists at all.
5716 if { ac_try
='cc -c conftest.$ac_ext >&5'
5717 { { case "(($ac_try" in
5718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5722 $as_echo "$ac_try_echo"; } >&5
5723 (eval "$ac_try") 2>&5
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; }; }; then
5727 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5729 if { { case "(($ac_try" in
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735 (eval "$ac_try") 2>&5
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; } &&
5739 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5744 $as_echo "$ac_try_echo"; } >&5
5745 (eval "$ac_try") 2>&5
5747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748 test $ac_status = 0; };
5753 # cc exists but doesn't like -o.
5754 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5759 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5761 rm -f core conftest*
5764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766 $as_echo "yes" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5771 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5775 # FIXME: we rely on the cache variable name because
5776 # there is no other way.
5778 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5779 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5780 if test "$am_t" != yes; then
5781 # Losing compiler, so override with the script.
5782 # FIXME: It is wrong to rewrite CC.
5783 # But if we don't then we get into trouble of one sort or another.
5784 # A longer-term fix would be to have automake use am__CC in this case,
5785 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5786 CC="$am_aux_dir/compile $CC"
5791 # Initialize gnulib right after verifying that the C compiler works.
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5799 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5800 # On Suns, sometimes $CPP names a directory.
5801 if test -n "$CPP" && test -d "$CPP"; then
5804 if test -z "$CPP"; then
5805 if test "${ac_cv_prog_CPP+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5808 # Double quotes because CPP needs to be expanded
5809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5812 for ac_c_preproc_warn_flag in '' yes
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: fails on valid input.
5835 rm -f conftest.err conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844 # Broken: success on invalid input.
5847 # Passes both tests.
5851 rm -f conftest.err conftest.$ac_ext
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.
$ac_ext
5856 if $ac_preproc_ok; then :
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5869 $as_echo "$CPP" >&6; }
5871 for ac_c_preproc_warn_flag
in '' yes
5873 # Use a header file that comes with gcc, so configuring glibc
5874 # with a fresh cross-compiler works.
5875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876 # <limits.h> exists even on freestanding compilers.
5877 # On the NeXT, cc -E runs the code through the compiler's parser,
5878 # not just through cpp. "Syntax error" is here to catch this case.
5879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5882 # include <limits.h>
5884 # include <assert.h>
5888 if ac_fn_c_try_cpp
"$LINENO"; then :
5891 # Broken: fails on valid input.
5894 rm -f conftest.err conftest.
$ac_ext
5896 # OK, works on sane cases. Now check whether nonexistent headers
5897 # can be detected and how.
5898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <ac_nonexistent.h>
5902 if ac_fn_c_try_cpp
"$LINENO"; then :
5903 # Broken: success on invalid input.
5906 # Passes both tests.
5910 rm -f conftest.err conftest.
$ac_ext
5913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5914 rm -f conftest.err conftest.
$ac_ext
5915 if $ac_preproc_ok; then :
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5921 See \`config.log' for more details." "$LINENO" 5; }
5925 ac_cpp
='$CPP $CPPFLAGS'
5926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5932 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5933 if test "${ac_cv_path_GREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 if test -z "$GREP"; then
5937 ac_path_GREP_found
=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5943 test -z "$as_dir" && as_dir
=.
5944 for ac_prog
in grep ggrep
; do
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5948 # Check for GNU ac_path_GREP and select it if it is found.
5949 # Check for GNU $ac_path_GREP
5950 case `"$ac_path_GREP" --version 2>&1` in
5952 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5955 $as_echo_n 0123456789 >"conftest.in"
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'GREP' >> "conftest.nl"
5962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5965 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_GREP
="$ac_path_GREP"
5968 ac_path_GREP_max
=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5976 $ac_path_GREP_found && break 3
5981 if test -z "$ac_cv_path_GREP"; then
5982 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 ac_cv_path_GREP
=$GREP
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5990 $as_echo "$ac_cv_path_GREP" >&6; }
5991 GREP
="$ac_cv_path_GREP"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5995 $as_echo_n "checking for egrep... " >&6; }
5996 if test "${ac_cv_path_EGREP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5999 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6000 then ac_cv_path_EGREP
="$GREP -E"
6002 if test -z "$EGREP"; then
6003 ac_path_EGREP_found
=false
6004 # Loop through the user's path and test for each of PROGNAME-LIST
6005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6006 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6009 test -z "$as_dir" && as_dir
=.
6010 for ac_prog
in egrep; do
6011 for ac_exec_ext
in '' $ac_executable_extensions; do
6012 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6013 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6014 # Check for GNU ac_path_EGREP and select it if it is found.
6015 # Check for GNU $ac_path_EGREP
6016 case `"$ac_path_EGREP" --version 2>&1` in
6018 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6021 $as_echo_n 0123456789 >"conftest.in"
6024 cat "conftest.in" "conftest.in" >"conftest.tmp"
6025 mv "conftest.tmp" "conftest.in"
6026 cp "conftest.in" "conftest.nl"
6027 $as_echo 'EGREP' >> "conftest.nl"
6028 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6029 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6030 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6031 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6032 # Best one so far, save it but keep looking for a better one
6033 ac_cv_path_EGREP
="$ac_path_EGREP"
6034 ac_path_EGREP_max
=$ac_count
6036 # 10*(2^10) chars as input seems more than enough
6037 test $ac_count -gt 10 && break
6039 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6042 $ac_path_EGREP_found && break 3
6047 if test -z "$ac_cv_path_EGREP"; then
6048 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6051 ac_cv_path_EGREP
=$EGREP
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6057 $as_echo "$ac_cv_path_EGREP" >&6; }
6058 EGREP
="$ac_cv_path_EGREP"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6064 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6065 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6079 gl_cv_c_amsterdam_compiler
=yes
6081 gl_cv_c_amsterdam_compiler
=no
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6088 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6089 if test -z "$AR"; then
6090 if test $gl_cv_c_amsterdam_compiler = yes; then
6092 if test -z "$ARFLAGS"; then
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6098 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if test "${ac_cv_prog_AR+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$AR"; then
6105 ac_cv_prog_AR
="$AR" # Let the user override the test.
6107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir
=.
6112 for ac_exec_ext
in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 if test -n "$AR"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6127 $as_echo "$AR" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_prog_AR"; then
6137 # Extract the first word of "ar", so it can be a program name with args.
6138 set dummy
ar; ac_word
=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$ac_ct_AR"; then
6145 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir
=.
6152 for ac_exec_ext
in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_AR
="ar"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6165 if test -n "$ac_ct_AR"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6167 $as_echo "$ac_ct_AR" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6173 if test "x$ac_ct_AR" = x
; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned
=yes ;;
6188 if test -z "$ARFLAGS"; then
6193 if test -z "$ARFLAGS"; then
6199 if test -z "$RANLIB"; then
6200 if test $gl_cv_c_amsterdam_compiler = yes; then
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6205 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6211 if test -n "$RANLIB"; then
6212 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir
=.
6219 for ac_exec_ext
in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 RANLIB
=$ac_cv_prog_RANLIB
6232 if test -n "$RANLIB"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6234 $as_echo "$RANLIB" >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_RANLIB"; then
6243 ac_ct_RANLIB
=$RANLIB
6244 # Extract the first word of "ranlib", so it can be a program name with args.
6245 set dummy ranlib
; ac_word
=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$ac_ct_RANLIB"; then
6252 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir
=.
6259 for ac_exec_ext
in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6272 if test -n "$ac_ct_RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6274 $as_echo "$ac_ct_RANLIB" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_RANLIB" = x
; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned
=yes ;;
6289 RANLIB
=$ac_ct_RANLIB
6292 RANLIB
="$ac_cv_prog_RANLIB"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6300 $as_echo_n "checking for ANSI C header files... " >&6; }
6301 if test "${ac_cv_header_stdc+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6319 if ac_fn_c_try_compile
"$LINENO"; then :
6320 ac_cv_header_stdc
=yes
6322 ac_cv_header_stdc
=no
6324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 if test $ac_cv_header_stdc = yes; then
6327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "memchr" >/dev
/null
2>&1; then :
6337 ac_cv_header_stdc
=no
6343 if test $ac_cv_header_stdc = yes; then
6344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "free" >/dev
/null
2>&1; then :
6354 ac_cv_header_stdc
=no
6360 if test $ac_cv_header_stdc = yes; then
6361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6362 if test "$cross_compiling" = yes; then :
6365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 #if ((' ' & 0x0FF) == 0x020)
6370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6373 # define ISLOWER(c) \
6374 (('a' <= (c) && (c) <= 'i') \
6375 || ('j' <= (c) && (c) <= 'r') \
6376 || ('s' <= (c) && (c) <= 'z'))
6377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6385 for (i = 0; i < 256; i++)
6386 if (XOR (islower (i), ISLOWER (i))
6387 || toupper (i) != TOUPPER (i))
6392 if ac_fn_c_try_run
"$LINENO"; then :
6395 ac_cv_header_stdc
=no
6397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6404 $as_echo "$ac_cv_header_stdc" >&6; }
6405 if test $ac_cv_header_stdc = yes; then
6407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6412 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6413 inttypes.h stdint.h unistd.h
6415 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6418 eval as_val
=\$
$as_ac_Header
6419 if test "x$as_val" = x
""yes; then :
6420 cat >>confdefs.h
<<_ACEOF
6421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6432 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6440 if test "$MINIX" = yes; then
6442 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6445 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6448 $as_echo "#define _MINIX 1" >>confdefs.h
6455 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6469 # define __EXTENSIONS__ 1
6470 $ac_includes_default
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 ac_cv_safe_to_define___extensions__
=yes
6482 ac_cv_safe_to_define___extensions__
=no
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6488 test $ac_cv_safe_to_define___extensions__ = yes &&
6489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6493 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6495 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6497 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6499 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6508 # Check whether --enable-largefile was given.
6509 if test "${enable_largefile+set}" = set; then :
6510 enableval
=$enable_largefile;
6513 if test "$enable_largefile" != no
; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6517 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6520 ac_cv_sys_largefile_CC
=no
6521 if test "$GCC" != yes; then
6524 # IRIX 6.2 and later do not support large files by default,
6525 # so use the C compiler's -n32 option if that helps.
6526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 /* Check that off_t can represent 2**63 - 1 correctly.
6530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531 since some C++ compilers masquerading as C compilers
6532 incorrectly reject 9223372036854775807. */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535 && LARGE_OFF_T % 2147483647 == 1)
6545 if ac_fn_c_try_compile
"$LINENO"; then :
6548 rm -f core conftest.err conftest.
$ac_objext
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 ac_cv_sys_largefile_CC
=' -n32'; break
6553 rm -f core conftest.err conftest.
$ac_objext
6557 rm -f conftest.
$ac_ext
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6562 if test "$ac_cv_sys_largefile_CC" != no
; then
6563 CC
=$CC$ac_cv_sys_largefile_CC
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6568 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <sys/types.h>
6575 /* Check that off_t can represent 2**63 - 1 correctly.
6576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6577 since some C++ compilers masquerading as C compilers
6578 incorrectly reject 9223372036854775807. */
6579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6581 && LARGE_OFF_T % 2147483647 == 1)
6591 if ac_fn_c_try_compile
"$LINENO"; then :
6592 ac_cv_sys_file_offset_bits
=no
; break
6594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #define _FILE_OFFSET_BITS 64
6598 #include <sys/types.h>
6599 /* Check that off_t can represent 2**63 - 1 correctly.
6600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6601 since some C++ compilers masquerading as C compilers
6602 incorrectly reject 9223372036854775807. */
6603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6605 && LARGE_OFF_T % 2147483647 == 1)
6615 if ac_fn_c_try_compile
"$LINENO"; then :
6616 ac_cv_sys_file_offset_bits
=64; break
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 ac_cv_sys_file_offset_bits
=unknown
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6625 case $ac_cv_sys_file_offset_bits in #(
6628 cat >>confdefs.h
<<_ACEOF
6629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6634 if test $ac_cv_sys_file_offset_bits = unknown
; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6637 if test "${ac_cv_sys_large_files+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <sys/types.h>
6644 /* Check that off_t can represent 2**63 - 1 correctly.
6645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6646 since some C++ compilers masquerading as C compilers
6647 incorrectly reject 9223372036854775807. */
6648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6650 && LARGE_OFF_T % 2147483647 == 1)
6660 if ac_fn_c_try_compile
"$LINENO"; then :
6661 ac_cv_sys_large_files
=no
; break
6663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #define _LARGE_FILES 1
6667 #include <sys/types.h>
6668 /* Check that off_t can represent 2**63 - 1 correctly.
6669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6670 since some C++ compilers masquerading as C compilers
6671 incorrectly reject 9223372036854775807. */
6672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6674 && LARGE_OFF_T % 2147483647 == 1)
6684 if ac_fn_c_try_compile
"$LINENO"; then :
6685 ac_cv_sys_large_files
=1; break
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6688 ac_cv_sys_large_files
=unknown
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6693 $as_echo "$ac_cv_sys_large_files" >&6; }
6694 case $ac_cv_sys_large_files in #(
6697 cat >>confdefs.h
<<_ACEOF
6698 #define _LARGE_FILES $ac_cv_sys_large_files
6708 case $ac_cv_prog_cc_stdc in #(
6710 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6713 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6714 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6717 ac_cv_prog_cc_c99
=no
6719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6722 #include <stdbool.h>
6727 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6728 #define debug(...) fprintf (stderr, __VA_ARGS__)
6729 #define showlist(...) puts (#__VA_ARGS__)
6730 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6732 test_varargs_macros (void)
6737 debug ("X = %d\n", x);
6738 showlist (The first, second, and third items.);
6739 report (x>y, "x is %d but y is %d", x, y);
6742 // Check long long types.
6743 #define BIG64 18446744073709551615ull
6744 #define BIG32 4294967295ul
6745 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6747 your preprocessor is broken;
6751 your preprocessor is broken;
6753 static long long int bignum = -9223372036854775807LL;
6754 static unsigned long long int ubignum = BIG64;
6756 struct incomplete_array
6764 const wchar_t *name;
6768 typedef const char *ccp;
6771 test_restrict (ccp restrict text)
6773 // See if C++-style comments work.
6774 // Iterate through items via the restricted pointer.
6775 // Also check for declarations in for loops.
6776 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6781 // Check varargs and va_copy.
6783 test_varargs (const char *format, ...)
6786 va_start (args, format);
6788 va_copy (args_copy, args);
6799 str = va_arg (args_copy, const char *);
6802 number = va_arg (args_copy, int);
6805 fnumber = va_arg (args_copy, double);
6820 _Bool success = false;
6823 if (test_restrict ("String literal") == 0)
6825 char *restrict newvar = "Another string";
6828 test_varargs ("s, d' f .", "string", 65, 34.234);
6829 test_varargs_macros ();
6831 // Check flexible array members.
6832 struct incomplete_array *ia =
6833 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6835 for (int i = 0; i < ia->datasize; ++i)
6836 ia->data[i] = i * 1.234;
6838 // Check named initializers.
6839 struct named_init ni = {
6841 .name = L"Test wide string",
6842 .average = 543.34343,
6847 int dynamic_array[ni.number];
6848 dynamic_array[ni.number - 1] = 543;
6850 // work around unused variable warnings
6851 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6852 || dynamic_array[ni.number - 1] != 543);
6858 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6860 CC
="$ac_save_CC $ac_arg"
6861 if ac_fn_c_try_compile
"$LINENO"; then :
6862 ac_cv_prog_cc_c99
=$ac_arg
6864 rm -f core conftest.err conftest.
$ac_objext
6865 test "x$ac_cv_prog_cc_c99" != "xno" && break
6867 rm -f conftest.
$ac_ext
6872 case "x$ac_cv_prog_cc_c99" in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6875 $as_echo "none needed" >&6; } ;;
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6878 $as_echo "unsupported" >&6; } ;;
6880 CC
="$CC $ac_cv_prog_cc_c99"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6882 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6884 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6885 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6889 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6892 ac_cv_prog_cc_c89
=no
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6898 #include <sys/types.h>
6899 #include <sys/stat.h>
6900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6901 struct buf { int x; };
6902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6903 static char *e (p, i)
6909 static char *f (char * (*g) (char **, int), char **p, ...)
6914 s = g (p, va_arg (v,int));
6919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6920 function prototypes and stuff, but not '\xHH' hex character constants.
6921 These don't provoke an error unfortunately, instead are silently treated
6922 as 'x'. The following induces an error, until -std is added to get
6923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6924 array size at least. It's necessary to write '\x00'==0 to get something
6925 that's true only with -std. */
6926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6929 inside strings and character constants. */
6931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6933 int test (int i, double x);
6934 struct s1 {int (*f) (int a);};
6935 struct s2 {int (*f) (double a);};
6936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6947 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6950 CC
="$ac_save_CC $ac_arg"
6951 if ac_fn_c_try_compile
"$LINENO"; then :
6952 ac_cv_prog_cc_c89
=$ac_arg
6954 rm -f core conftest.err conftest.
$ac_objext
6955 test "x$ac_cv_prog_cc_c89" != "xno" && break
6957 rm -f conftest.
$ac_ext
6962 case "x$ac_cv_prog_cc_c89" in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6965 $as_echo "none needed" >&6; } ;;
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6968 $as_echo "unsupported" >&6; } ;;
6970 CC
="$CC $ac_cv_prog_cc_c89"
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6974 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6975 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6977 ac_cv_prog_cc_stdc
=no
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6984 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6985 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6989 case $ac_cv_prog_cc_stdc in #(
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6992 $as_echo "unsupported" >&6; } ;; #(
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6995 $as_echo "none needed" >&6; } ;; #(
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6998 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7003 # Code from module alloca-opt:
7004 # Code from module allocator:
7005 # Code from module careadlinkat:
7006 # Code from module crypto/md5:
7007 # Code from module crypto/sha1:
7008 # Code from module crypto/sha256:
7009 # Code from module crypto/sha512:
7010 # Code from module dosname:
7011 # Code from module dtoastr:
7012 # Code from module dup2:
7013 # Code from module extensions:
7015 # Code from module filemode:
7016 # Code from module getloadavg:
7017 # Code from module getopt-gnu:
7018 # Code from module getopt-posix:
7019 # Code from module gettext-h:
7020 # Code from module ignore-value:
7021 # Code from module include_next:
7022 # Code from module intprops:
7023 # Code from module inttypes-incomplete:
7024 # Code from module largefile:
7026 # Code from module lstat:
7027 # Code from module mktime:
7028 # Code from module multiarch:
7031 # Code from module nocrash:
7032 # Code from module pathmax:
7033 # Code from module pthread_sigmask:
7034 >>>>>>> MERGE-SOURCE
7035 # Code from module readlink:
7038 # Code from module signal:
7039 # Code from module sigprocmask:
7040 # Code from module snippet/_Noreturn:
7041 # Code from module snippet/arg-nonnull:
7042 # Code from module snippet/c++defs:
7043 # Code from module snippet/warn-on-use:
7044 >>>>>>> MERGE-SOURCE
7045 # Code from module socklen:
7046 # Code from module ssize_t:
7047 # Code from module stat:
7048 # Code from module stdarg:
7052 # Code from module stdbool:
7053 # Code from module stddef:
7054 # Code from module stdint:
7055 # Code from module stdio:
7056 # Code from module stdlib:
7057 # Code from module strftime:
7058 # Code from module strtoull:
7059 # Code from module strtoumax:
7060 # Code from module symlink:
7061 # Code from module sys_stat:
7062 # Code from module time:
7063 # Code from module time_r:
7064 # Code from module u64:
7065 # Code from module unistd:
7066 # Code from module verify:
7069 # On Suns, sometimes $CPP names a directory.
7070 if test -n "$CPP" && test -d "$CPP"; then
7074 ## If not using gcc, and on Solaris, and no CPP specified, see if
7075 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7076 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7077 test x"$CPP" = x; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7079 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7080 if test "${emacs_cv_sunpro_c+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7097 if ac_fn_c_try_link "$LINENO"; then :
7098 emacs_cv_sunpro_c=yes
7100 emacs_cv_sunpro_c=no
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7107 $as_echo "$emacs_cv_sunpro_c" >&6; }
7109 if test x"$emacs_cv_sunpro_c" = xyes; then
7110 NON_GNU_CPP="$CC -E -Xs"
7114 #### Some systems specify a CPP to use unless we are using GCC.
7115 #### Now that we know whether we are using GCC, we can decide whether
7116 #### to use that one.
7117 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7122 #### Some systems specify a CC to use unless we are using GCC.
7123 #### Now that we know whether we are using GCC, we can decide whether
7124 #### to use that one.
7125 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7126 test x$cc_specified != xyes
7131 if test x$GCC = xyes; then
7132 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7134 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7137 ### Use -Wdeclaration-after-statement if the compiler supports it
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7139 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7140 SAVE_CFLAGS="$CFLAGS"
7141 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7153 if ac_fn_c_try_compile "$LINENO"; then :
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 if test $has_option = yes; then
7160 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7163 $as_echo "$has_option" >&6; }
7164 CFLAGS="$SAVE_CFLAGS"
7168 ### Use -Wold-style-definition if the compiler supports it
7169 # This can be removed when conversion to standard C is finished.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7171 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7172 SAVE_CFLAGS="$CFLAGS"
7173 CFLAGS="$CFLAGS -Wold-style-definition"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7185 if ac_fn_c_try_compile "$LINENO"; then :
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 if test $has_option = yes; then
7192 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7195 $as_echo "$has_option" >&6; }
7196 CFLAGS="$SAVE_CFLAGS"
7200 ### Use -Wimplicit-function-declaration if the compiler supports it
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7202 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7203 SAVE_CFLAGS="$CFLAGS"
7204 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7216 if ac_fn_c_try_compile "$LINENO"; then :
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 if test $has_option = yes; then
7223 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7226 $as_echo "$has_option" >&6; }
7227 CFLAGS="$SAVE_CFLAGS"
7234 #### Some other nice autoconf tests.
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7242 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7243 # On Suns, sometimes $CPP names a directory.
7244 if test -n "$CPP" && test -d "$CPP"; then
7247 if test -z "$CPP"; then
7248 if test "${ac_cv_prog_CPP+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7251 # Double quotes because CPP needs to be expanded
7252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7255 for ac_c_preproc_warn_flag in '' yes
7257 # Use a header file that comes with gcc, so configuring glibc
7258 # with a fresh cross-compiler works.
7259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260 # <limits.h> exists even on freestanding compilers.
7261 # On the NeXT, cc -E runs the code through the compiler's parser,
7262 # not just through cpp. "Syntax error" is here to catch this case.
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7266 # include <limits.h>
7268 # include <assert.h>
7272 if ac_fn_c_try_cpp "$LINENO"; then :
7275 # Broken: fails on valid input.
7278 rm -f conftest.err conftest.$ac_ext
7280 # OK, works on sane cases. Now check whether nonexistent headers
7281 # can be detected and how.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <ac_nonexistent.h>
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7287 # Broken: success on invalid input.
7290 # Passes both tests.
7294 rm -f conftest.err conftest.$ac_ext
7297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7298 rm -f conftest.err conftest.$ac_ext
7299 if $ac_preproc_ok; then :
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7312 $as_echo "$CPP" >&6; }
7314 for ac_c_preproc_warn_flag in '' yes
7316 # Use a header file that comes with gcc, so configuring glibc
7317 # with a fresh cross-compiler works.
7318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7319 # <limits.h> exists even on freestanding compilers.
7320 # On the NeXT, cc -E runs the code through the compiler's parser,
7321 # not just through cpp. "Syntax error" is here to catch this case.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7325 # include <limits.h>
7327 # include <assert.h>
7331 if ac_fn_c_try_cpp "$LINENO"; then :
7334 # Broken: fails on valid input.
7337 rm -f conftest.err conftest.$ac_ext
7339 # OK, works on sane cases. Now check whether nonexistent headers
7340 # can be detected and how.
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <ac_nonexistent.h>
7345 if ac_fn_c_try_cpp "$LINENO"; then :
7346 # Broken: success on invalid input.
7349 # Passes both tests.
7353 rm -f conftest.err conftest.$ac_ext
7356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7357 rm -f conftest.err conftest.$ac_ext
7358 if $ac_preproc_ok; then :
7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7363 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7364 See \`config.log' for more details." "$LINENO" 5; }
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374 if test "x$RANLIB" = x; then
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7383 if test -n "$RANLIB"; then
7384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 RANLIB=$ac_cv_prog_RANLIB
7404 if test -n "$RANLIB"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7406 $as_echo "$RANLIB" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7414 if test -z "$ac_cv_prog_RANLIB"; then
7415 ac_ct_RANLIB=$RANLIB
7416 # Extract the first word of "ranlib", so it can be a program name with args.
7417 set dummy ranlib; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 if test -n "$ac_ct_RANLIB"; then
7424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_RANLIB="ranlib"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7444 if test -n "$ac_ct_RANLIB"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7446 $as_echo "$ac_ct_RANLIB" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7452 if test "x$ac_ct_RANLIB" = x; then
7455 case $cross_compiling:$ac_tool_warned in
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7461 RANLIB=$ac_ct_RANLIB
7464 RANLIB="$ac_cv_prog_RANLIB"
7469 ## Although we're running on an amd64 kernel, we're actually compiling for
7470 ## the x86 architecture. The user should probably have provided an
7471 ## explicit --build to `configure', but if everything else than the kernel
7472 ## is running in i386 mode, we can help them out.
7473 if test "$machine" = "amdx86-64"; then
7474 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7475 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7479 if test "$ac_cv_have_decl_i386" = "yes"; then
7480 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7482 machfile="m/${machine}.h"
7486 # Extract the first word of "install-info", so it can be a program name with args.
7487 set dummy install-info; ac_word=$2
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489 $as_echo_n "checking for $ac_word... " >&6; }
7490 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7493 case $INSTALL_INFO in
7495 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7517 if test -n "$INSTALL_INFO"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7519 $as_echo "$INSTALL_INFO" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7526 # Extract the first word of "install-info", so it can be a program name with args.
7527 set dummy install-info; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7533 case $INSTALL_INFO in
7535 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in /usr/sbin
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7557 if test -n "$INSTALL_INFO"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7559 $as_echo "$INSTALL_INFO" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7566 # Extract the first word of "install-info", so it can be a program name with args.
7567 set dummy install-info; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7573 case $INSTALL_INFO in
7575 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7597 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7598 if test -n "$INSTALL_INFO"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7600 $as_echo "$INSTALL_INFO" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7607 # Extract the first word of "gzip", so it can be a program name with args.
7608 set dummy gzip; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7616 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 GZIP_PROG=$ac_cv_path_GZIP_PROG
7638 if test -n "$GZIP_PROG"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7640 $as_echo "$GZIP_PROG" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7649 ## Need makeinfo >= 4.6 (?) to build the manuals.
7650 # Extract the first word of "makeinfo", so it can be a program name with args.
7651 set dummy makeinfo; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7659 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7681 MAKEINFO=$ac_cv_path_MAKEINFO
7682 if test -n "$MAKEINFO"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7684 $as_echo "$MAKEINFO" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 if test "$MAKEINFO" != "no" && \
7692 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
7696 ## Makeinfo is unusual. For a released Emacs, the manuals are
7697 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7698 ## therefore in the category of "special tools" not normally required, which
7699 ## configure does not have to check for (eg autoconf itself).
7700 ## In a Bazaar checkout on the other hand, the manuals are not included.
7701 ## So makeinfo is a requirement to build from Bazaar, and configure
7702 ## should test for it as it does for any other build requirement.
7703 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7704 ## with pre-built manuals, from a Bazaar checkout.
7707 if test "$MAKEINFO" = "no"; then
7709 if test "x${with_makeinfo}" = "xno"; then
7711 elif test ! -e $srcdir/info/emacs; then
7712 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7713 source tree does not seem to have pre-built manuals in the \`info' directory.
7714 Either install a suitable version of makeinfo, or re-run configure
7715 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7721 if test x$GCC = xyes; then
7722 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7723 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7725 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7726 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7730 late_LDFLAGS=$LDFLAGS
7731 if test x$GCC = xyes; then
7732 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7734 LDFLAGS="$LDFLAGS -znocombreloc"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7738 $as_echo_n "checking for -znocombreloc... " >&6; }
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7750 if ac_fn_c_try_link "$LINENO"; then :
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752 $as_echo "yes" >&6; }
7754 LDFLAGS=$late_LDFLAGS
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7758 rm -f core conftest.err conftest.$ac_objext \
7759 conftest$ac_exeext conftest.$ac_ext
7762 # The value of CPP is a quoted variable reference, so we need to do this
7763 # to get its actual value...
7764 CPP=`eval "echo $CPP"`
7767 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7769 your-opsys-here) CANNOT_DUMP=yes ;;
7772 test "$CANNOT_DUMP" = "yes" && \
7774 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7780 UNEXEC_OBJ=unexelf.o
7782 # MSDOS uses unexcoff.o
7783 # MSWindows uses unexw32.o
7785 UNEXEC_OBJ=unexaix.o
7791 UNEXEC_OBJ=unexmacosx.o
7794 UNEXEC_OBJ=unexhp9k800.o
7797 # Use the Solaris dldump() function, called from unexsol.c, to dump
7798 # emacs, instead of the generic ELF dump code found in unexelf.c.
7799 # The resulting binary has a complete symbol table, and is better
7800 # for debugging and other observability tools (debuggers, pstack, etc).
7802 # If you encounter a problem using dldump(), please consider sending
7803 # a message to the OpenSolaris tools-linking mailing list:
7804 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7806 # It is likely that dldump() works with older Solaris too, but this has
7807 # not been tested, so for now this change is for Solaris 10 or newer.
7808 UNEXEC_OBJ=unexsol.o
7815 ## Let `ld' find image libs and similar things in /usr/local/lib.
7816 ## The system compiler, GCC, has apparently been modified to not
7817 ## look there, contrary to what a stock GCC would do.
7818 LD_SWITCH_SYSTEM=-L/usr/local/lib
7822 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7823 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7827 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7831 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7832 ## otherwise Emacs dumps core on elf systems.
7833 LD_SWITCH_SYSTEM="-Z"
7838 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7840 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7841 ## which has not been defined yet. When this was handled with cpp,
7842 ## it was expanded to null when configure sourced the s/*.h file.
7843 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7844 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7845 ## (or somesuch), but because it is supposed to go at the _front_
7846 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7847 ## Compare with the gnu-linux case below, which added to the end
7848 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7849 ## LD_SWITCH_SYSTEM_TEMACS.
7852 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7853 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7858 if test "$machine" = "alpha"; then
7859 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7860 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7864 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7865 ## With ELF, make sure that all common symbols get allocated to in the
7866 ## data section. Otherwise, the dump of temacs may miss variables in
7867 ## the shared library that have been initialized. For example, with
7868 ## GNU libc, __malloc_initialized would normally be resolved to the
7869 ## shared library's .bss section, which is fatal.
7870 if test "x$GCC" = "xyes"; then
7871 C_SWITCH_MACHINE="-fno-common"
7873 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7876 UNEXEC_OBJ=unexalpha.o
7884 ## Some programs in src produce warnings saying certain subprograms
7885 ## are too complex and need a MAXMEM value greater than 2000 for
7886 ## additional optimization. --nils@exp-math.uni-essen.de
7887 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7888 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7889 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7890 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7896 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7897 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7899 freebsd) LIBS_SYSTEM="-lutil" ;;
7901 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7903 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7905 ## Motif needs -lgen.
7906 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7911 ### Make sure subsequent tests use flags consistent with the build flags.
7913 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7914 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7916 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7919 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7922 # Check whether --enable-largefile was given.
7923 if test "${enable_largefile+set}" = set; then :
7924 enableval=$enable_largefile;
7927 if test "$enable_largefile" != no; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7930 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7931 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7934 ac_cv_sys_largefile_CC=no
7935 if test "$GCC" != yes; then
7938 # IRIX 6.2 and later do not support large files by default,
7939 # so use the C compiler's -n32 option if that helps.
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #include <sys/types.h>
7943 /* Check that off_t can represent 2**63 - 1 correctly.
7944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7945 since some C++ compilers masquerading as C compilers
7946 incorrectly reject 9223372036854775807. */
7947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7949 && LARGE_OFF_T % 2147483647 == 1)
7959 if ac_fn_c_try_compile "$LINENO"; then :
7962 rm -f core conftest.err conftest.$ac_objext
7964 if ac_fn_c_try_compile "$LINENO"; then :
7965 ac_cv_sys_largefile_CC=' -n32'; break
7967 rm -f core conftest.err conftest.$ac_objext
7971 rm -f conftest.$ac_ext
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7975 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7976 if test "$ac_cv_sys_largefile_CC" != no; then
7977 CC=$CC$ac_cv_sys_largefile_CC
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7981 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7982 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
7989 /* Check that off_t can represent 2**63 - 1 correctly.
7990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7991 since some C++ compilers masquerading as C compilers
7992 incorrectly reject 9223372036854775807. */
7993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7995 && LARGE_OFF_T % 2147483647 == 1)
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_sys_file_offset_bits=no; break
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #define _FILE_OFFSET_BITS 64
8012 #include <sys/types.h>
8013 /* Check that off_t can represent 2**63 - 1 correctly.
8014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8015 since some C++ compilers masquerading as C compilers
8016 incorrectly reject 9223372036854775807. */
8017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8019 && LARGE_OFF_T % 2147483647 == 1)
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_sys_file_offset_bits=64; break
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 ac_cv_sys_file_offset_bits=unknown
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8038 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8039 case $ac_cv_sys_file_offset_bits in #(
8042 cat >>confdefs.h <<_ACEOF
8043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8048 if test $ac_cv_sys_file_offset_bits = unknown; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8050 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8051 if test "${ac_cv_sys_large_files+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <sys/types.h>
8058 /* Check that off_t can represent 2**63 - 1 correctly.
8059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8060 since some C++ compilers masquerading as C compilers
8061 incorrectly reject 9223372036854775807. */
8062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8064 && LARGE_OFF_T % 2147483647 == 1)
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 ac_cv_sys_large_files=no; break
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #define _LARGE_FILES 1
8081 #include <sys/types.h>
8082 /* Check that off_t can represent 2**63 - 1 correctly.
8083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8084 since some C++ compilers masquerading as C compilers
8085 incorrectly reject 9223372036854775807. */
8086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8088 && LARGE_OFF_T % 2147483647 == 1)
8098 if ac_fn_c_try_compile "$LINENO"; then :
8099 ac_cv_sys_large_files=1; break
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 ac_cv_sys_large_files=unknown
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8107 $as_echo "$ac_cv_sys_large_files" >&6; }
8108 case $ac_cv_sys_large_files in #(
8111 cat >>confdefs.h <<_ACEOF
8112 #define _LARGE_FILES $ac_cv_sys_large_files
8124 ## If user specified a crt-dir, use that unconditionally.
8125 if test "X$CRT_DIR" = "X"; then
8127 case "$canonical" in
8128 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8129 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8130 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8131 ## For anything else (eg /usr/lib32), it is up the user to specify
8132 ## the location (bug#5655).
8133 ## Test for crtn.o, not just the directory, because sometimes the
8134 ## directory exists but does not have the relevant files (bug#1287).
8135 ## FIXME better to test for binary compatibility somehow.
8136 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8139 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8143 hpux10-20) CRT_DIR=/lib ;;
8146 ## Default is /usr/lib.
8147 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8149 ## If we're using gcc, try to determine it automatically by asking
8150 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8151 ## system-dependent default from above.]
8152 if test "x${GCC}" = xyes; then
8153 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8156 CRT_DIR=`$as_dirname -- "$crt_file" ||
8157 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8158 X"$crt_file" : 'X\(//\)[^/]' \| \
8159 X"$crt_file" : 'X\(//\)$' \| \
8160 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8161 $as_echo X"$crt_file" |
8162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8185 ## Some platforms don't use any of these files, so it is not
8186 ## appropriate to put this test outside the if block.
8187 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8188 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8201 START_FILES='pre-crt0.o'
8204 ## Adding -lm confuses the dynamic linker, so omit it.
8206 START_FILES='pre-crt0.o'
8209 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8210 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8212 gnu-linux | gnu-kfreebsd )
8213 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8214 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8216 hpux10-20 | hpux11 )
8218 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8221 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8222 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8233 for file in x $LIB_STANDARD $START_FILES; do
8235 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8239 if test "x$crt_files" != x; then
8241 ## If user specified a crt-dir, use that unconditionally.
8244 if test "X$CRT_DIR" = "X"; then
8246 CRT_DIR=/usr/lib # default
8248 case "$canonical" in
8249 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8250 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8251 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8252 ## For anything else (eg /usr/lib32), it is up the user to specify
8253 ## the location (bug#5655).
8254 ## Test for crtn.o, not just the directory, because sometimes the
8255 ## directory exists but does not have the relevant files (bug#1287).
8256 ## FIXME better to test for binary compatibility somehow.
8257 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8260 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8264 hpux10-20) CRT_DIR=/lib ;;
8267 test "x${GCC}" = xyes && crt_gcc=yes
8273 for file in $crt_files; do
8275 ## If we're using gcc, try to determine it automatically by asking
8276 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8277 ## system-dependent default from above.]
8278 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8280 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8283 CRT_DIR=`$as_dirname -- "$crt_file" ||
8284 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8285 X"$crt_file" : 'X\(//\)[^/]' \| \
8286 X"$crt_file" : 'X\(//\)$' \| \
8287 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8288 $as_echo X"$crt_file" |
8289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8312 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8315 test "x$crt_missing" = x || \
8316 as_fn_error "Required file(s) not found:$crt_missing
8317 Try using the --with-crt-dir option." "$LINENO" 5
8319 fi # crt_files != ""
8325 if test -f $CRT_DIR/crti.o; then
8327 test -f $CRT_DIR/crtn.o || \
8328 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8330 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8331 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8337 >>>>>>> MERGE-SOURCE
8341 if test "${with_sound}" != "no"; then
8342 # Sound support for GNU/Linux and the free BSDs.
8343 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8347 eval as_val=\$$as_ac_Header
8348 if test "x$as_val" = x""yes; then :
8349 cat >>confdefs.h <<_ACEOF
8350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 have_sound_header=yes
8357 # Emulation library used on NetBSD.
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8359 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8360 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lossaudio $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8378 return _oss_ioctl ();
8383 if ac_fn_c_try_link "$LINENO"; then :
8384 ac_cv_lib_ossaudio__oss_ioctl=yes
8386 ac_cv_lib_ossaudio__oss_ioctl=no
8388 rm -f core conftest.err conftest.$ac_objext \
8389 conftest$ac_exeext conftest.$ac_ext
8390 LIBS=$ac_check_lib_save_LIBS
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8393 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8394 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8403 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8407 # Extract the first word of "pkg-config", so it can be a program name with args.
8408 set dummy pkg-config; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8416 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8439 if test -n "$PKG_CONFIG"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8441 $as_echo "$PKG_CONFIG" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8449 if test "$PKG_CONFIG" = "no" ; then
8452 PKG_CONFIG_MIN_VERSION=0.9.0
8453 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8455 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8457 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8459 $as_echo "yes" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8463 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8464 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8466 $as_echo "$ALSA_CFLAGS" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8469 $as_echo_n "checking ALSA_LIBS... " >&6; }
8470 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8472 $as_echo "$ALSA_LIBS" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8478 ## If we have a custom action on failure, don't print errors, but
8479 ## do set a variable so people can do so.
8480 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8492 if test $succeeded = yes; then
8498 if test $HAVE_ALSA = yes; then
8499 SAVE_CFLAGS="$CFLAGS"
8500 SAVE_LDFLAGS="$LDFLAGS"
8501 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8502 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <asoundlib.h>
8509 snd_lib_error_set_handler (0);
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 emacs_alsa_normal=yes
8517 emacs_alsa_normal=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 if test "$emacs_alsa_normal" != yes; then
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #include <alsa/asoundlib.h>
8527 snd_lib_error_set_handler (0);
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 emacs_alsa_subdir=yes
8535 emacs_alsa_subdir=no
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 if test "$emacs_alsa_subdir" != yes; then
8539 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8541 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8544 CFLAGS="$SAVE_CFLAGS"
8545 LDFLAGS="$SAVE_LDFLAGS"
8546 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8547 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8549 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8553 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8555 gnu-linux|freebsd|netbsd)
8557 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8566 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8567 linux/version.h sys/systeminfo.h \
8568 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8569 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8570 sys/utsname.h pwd.h utmp.h dirent.h util.h
8572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8574 eval as_val=\$$as_ac_Header
8575 if test "x$as_val" = x""yes; then :
8576 cat >>confdefs.h <<_ACEOF
8577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8586 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8589 #include <sys/personality.h>
8593 personality (PER_LINUX32)
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 emacs_cv_personality_linux32=yes
8601 emacs_cv_personality_linux32=no
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8605 $as_echo "$emacs_cv_personality_linux32" >&6; }
8607 if test $emacs_cv_personality_linux32 = yes; then
8609 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8613 for ac_header in term.h
8615 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8616 if test "x$ac_cv_header_term_h" = x""yes; then :
8617 cat >>confdefs.h <<_ACEOF
8618 #define HAVE_TERM_H 1
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8627 if test "${ac_cv_header_time+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/time.h>
8639 if ((struct tm *) 0)
8645 if ac_fn_c_try_compile "$LINENO"; then :
8646 ac_cv_header_time=yes
8648 ac_cv_header_time=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8653 $as_echo "$ac_cv_header_time" >&6; }
8654 if test $ac_cv_header_time = yes; then
8656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8660 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8661 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8671 if test $ac_cv_have_decl_sys_siglist != yes; then
8672 # For Tru64, at least:
8673 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8674 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8684 if test $ac_cv_have_decl___sys_siglist = yes; then
8686 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8691 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8692 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/types.h>
8698 #include <sys/wait.h>
8700 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8703 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8711 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 ac_cv_header_sys_wait_h=yes
8719 ac_cv_header_sys_wait_h=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8725 if test $ac_cv_header_sys_wait_h = yes; then
8727 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8733 $as_echo_n "checking for struct utimbuf... " >&6; }
8734 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #ifdef TIME_WITH_SYS_TIME
8740 #include <sys/time.h>
8743 #ifdef HAVE_SYS_TIME_H
8744 #include <sys/time.h>
8755 static struct utimbuf x; x.actime = x.modtime;
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 emacs_cv_struct_utimbuf=yes
8763 emacs_cv_struct_utimbuf=no
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8768 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8769 if test $emacs_cv_struct_utimbuf = yes; then
8771 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8776 $as_echo_n "checking for speed_t... " >&6; }
8777 if test "${emacs_cv_speed_t+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <termios.h>
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 emacs_cv_speed_t=yes
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8799 $as_echo "$emacs_cv_speed_t" >&6; }
8800 if test $emacs_cv_speed_t = yes; then
8802 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8807 $as_echo_n "checking for struct timeval... " >&6; }
8808 if test "${emacs_cv_struct_timeval+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #ifdef TIME_WITH_SYS_TIME
8814 #include <sys/time.h>
8817 #ifdef HAVE_SYS_TIME_H
8818 #include <sys/time.h>
8826 static struct timeval x; x.tv_sec = x.tv_usec;
8831 if ac_fn_c_try_compile "$LINENO"; then :
8832 emacs_cv_struct_timeval=yes
8834 emacs_cv_struct_timeval=no
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8839 $as_echo "$emacs_cv_struct_timeval" >&6; }
8840 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8841 if test $emacs_cv_struct_timeval = yes; then
8843 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8848 $as_echo_n "checking for struct exception... " >&6; }
8849 if test "${emacs_cv_struct_exception+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8858 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8863 if ac_fn_c_try_compile "$LINENO"; then :
8864 emacs_cv_struct_exception=yes
8866 emacs_cv_struct_exception=no
8868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8871 $as_echo "$emacs_cv_struct_exception" >&6; }
8872 HAVE_EXCEPTION=$emacs_cv_struct_exception
8873 if test $emacs_cv_struct_exception != yes; then
8875 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8881 for ac_header in sys/socket.h
8883 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8884 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_SYS_SOCKET_H 1
8893 >>>>>>> MERGE-SOURCE
8894 for ac_header in net/if.h
8896 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8901 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8902 cat >>confdefs.h <<_ACEOF
8903 #define HAVE_NET_IF_H 1
8912 for ac_header in ifaddrs.h
8914 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8919 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_IFADDRS_H 1
8928 for ac_header in net/if_dl.h
8930 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8931 #if HAVE_SYS_SOCKET_H
8932 #include <sys/socket.h>
8935 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_NET_IF_DL_H 1
8944 for ac_func in getifaddrs freeifaddrs
8946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8948 eval as_val=\$$as_ac_var
8949 if test "x$as_val" = x""yes; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8957 >>>>>>> MERGE-SOURCE
8959 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8960 #if HAVE_SYS_SOCKET_H
8961 #include <sys/socket.h>
8967 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8969 cat >>confdefs.h <<_ACEOF
8970 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8975 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8976 #if HAVE_SYS_SOCKET_H
8977 #include <sys/socket.h>
8983 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8985 cat >>confdefs.h <<_ACEOF
8986 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8991 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8992 #if HAVE_SYS_SOCKET_H
8993 #include <sys/socket.h>
8999 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9001 cat >>confdefs.h <<_ACEOF
9002 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9007 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9008 #if HAVE_SYS_SOCKET_H
9009 #include <sys/socket.h>
9015 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9023 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9024 #if HAVE_SYS_SOCKET_H
9025 #include <sys/socket.h>
9031 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9041 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9042 #if HAVE_SYS_SOCKET_H
9043 #include <sys/socket.h>
9049 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9057 >>>>>>> MERGE-SOURCE
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9062 $as_echo_n "checking for function prototypes... " >&6; }
9063 if test "$ac_cv_prog_cc_c89" != no; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9065 $as_echo "yes" >&6; }
9067 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9070 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9078 $as_echo_n "checking for working volatile... " >&6; }
9079 if test "${ac_cv_c_volatile+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9090 int * volatile y = (int *) 0;
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 ac_cv_c_volatile=yes
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9104 $as_echo "$ac_cv_c_volatile" >&6; }
9105 if test $ac_cv_c_volatile = no; then
9107 $as_echo "#define volatile /**/" >>confdefs.h
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9113 if test "${ac_cv_c_const+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9122 /* FIXME: Include the comments suggested by Paul. */
9124 /* Ultrix mips cc rejects this. */
9125 typedef int charset[2];
9127 /* SunOS 4.1.1 cc rejects this. */
9128 char const *const *pcpcc;
9130 /* NEC SVR4.0.2 mips cc rejects this. */
9131 struct point {int x, y;};
9132 static struct point const zero = {0,0};
9133 /* AIX XL C 1.02.0.0 rejects this.
9134 It does not let you subtract one const X* pointer from another in
9135 an arm of an if-expression whose if-part is not a constant
9137 const char *g = "string";
9138 pcpcc = &g + (g ? g-g : 0);
9139 /* HPUX 7.0 cc rejects these. */
9141 ppc = (char**) pcpcc;
9142 pcpcc = (char const *const *) ppc;
9143 { /* SCO 3.2v4 cc rejects this. */
9145 char const *s = 0 ? (char *) 0 : (char const *) 0;
9150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9152 const int *foo = &x[0];
9155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9156 typedef const int *iptr;
9160 { /* AIX XL C 1.02.0.0 rejects this saying
9161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9162 struct s { int j; const int *ap[3]; };
9163 struct s *b; b->j = 5;
9165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9169 return !cs[0] && !zero.x;
9176 if ac_fn_c_try_compile "$LINENO"; then :
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9184 $as_echo "$ac_cv_c_const" >&6; }
9185 if test $ac_cv_c_const = no; then
9187 $as_echo "#define const /**/" >>confdefs.h
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9192 $as_echo_n "checking for void * support... " >&6; }
9193 if test "${emacs_cv_void_star+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 emacs_cv_void_star=yes
9210 emacs_cv_void_star=no
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9215 $as_echo "$emacs_cv_void_star" >&6; }
9216 if test $emacs_cv_void_star = yes; then
9217 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9220 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9226 if test "${ac_cv_c_bigendian+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9229 ac_cv_c_bigendian=unknown
9230 # See if we're dealing with a universal compiler.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #ifndef __APPLE_CC__
9234 not a universal capable compiler
9239 if ac_fn_c_try_compile "$LINENO"; then :
9241 # Check for potential -arch flags. It is not universal unless
9242 # there are at least two -arch flags with different values.
9245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9246 if test -n "$ac_prev"; then
9248 i?86 | x86_64 | ppc | ppc64)
9249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9252 ac_cv_c_bigendian=universal
9258 elif test "x$ac_word" = "x-arch"; then
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 if test $ac_cv_c_bigendian = unknown; then
9265 # See if sys/param.h defines the BYTE_ORDER macro.
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/param.h>
9274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9284 if ac_fn_c_try_compile "$LINENO"; then :
9285 # It does; now see whether it defined to BIG_ENDIAN or not.
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9294 #if BYTE_ORDER != BIG_ENDIAN
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 ac_cv_c_bigendian=yes
9305 ac_cv_c_bigendian=no
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 if test $ac_cv_c_bigendian = unknown; then
9312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9328 if ac_fn_c_try_compile "$LINENO"; then :
9329 # It does; now see whether it defined to _BIG_ENDIAN or not.
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346 ac_cv_c_bigendian=yes
9348 ac_cv_c_bigendian=no
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 if test $ac_cv_c_bigendian = unknown; then
9355 # Compile a test program.
9356 if test "$cross_compiling" = yes; then :
9357 # Try to guess by grepping values from an object file.
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 short int ascii_mm[] =
9361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9362 short int ascii_ii[] =
9363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9364 int use_ascii (int i) {
9365 return ascii_mm[i] + ascii_ii[i];
9367 short int ebcdic_ii[] =
9368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9369 short int ebcdic_mm[] =
9370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9371 int use_ebcdic (int i) {
9372 return ebcdic_mm[i] + ebcdic_ii[i];
9379 return use_ascii (foo) == use_ebcdic (foo);
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9386 ac_cv_c_bigendian=yes
9388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9389 if test "$ac_cv_c_bigendian" = unknown; then
9390 ac_cv_c_bigendian=no
9392 # finding both strings is unlikely to happen, but who knows?
9393 ac_cv_c_bigendian=unknown
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 $ac_includes_default
9406 /* Are we little or big endian? From Harbison&Steele. */
9410 char c[sizeof (long int)];
9413 return u.c[sizeof (long int) - 1] == 1;
9419 if ac_fn_c_try_run "$LINENO"; then :
9420 ac_cv_c_bigendian=no
9422 ac_cv_c_bigendian=yes
9424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9431 $as_echo "$ac_cv_c_bigendian" >&6; }
9432 case $ac_cv_c_bigendian in #(
9434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9444 as_fn_error "unknown endianness
9445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9450 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9451 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 char __attribute__ ((__aligned__ (1 << 3))) c;
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 emacs_cv_attribute_aligned=yes
9468 emacs_cv_attribute_aligned=no
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9473 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9474 if test $emacs_cv_attribute_aligned = yes; then
9476 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9481 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9483 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9484 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9485 $as_echo_n "(cached) " >&6
9487 cat >conftest.make <<\_ACEOF
9490 @echo '@@@%%%=$(MAKE)=@@@%%%'
9492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9493 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9495 eval ac_cv_prog_make_${ac_make}_set=yes;;
9497 eval ac_cv_prog_make_${ac_make}_set=no;;
9501 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9503 $as_echo "yes" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 SET_MAKE="MAKE=${MAKE-make}"
9515 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9517 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9519 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9520 if test "x$testval" != x; then
9523 ac_enable_autodepend=no
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9526 $as_echo "$HAVE_GNU_MAKE" >&6; }
9527 if test $HAVE_GNU_MAKE = yes; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9529 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9530 SAVE_CFLAGS="$CFLAGS"
9531 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9543 if ac_fn_c_try_compile "$LINENO"; then :
9546 ac_enable_autodepend=no
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 CFLAGS="$SAVE_CFLAGS"
9550 test -f deps.d || ac_enable_autodepend=no
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9553 $as_echo "$ac_enable_autodepend" >&6; }
9555 if test $ac_enable_autodepend = yes; then
9556 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9557 ## In parallel builds, another make might create depdir between
9558 ## the first test and mkdir, so stick another test on the end.
9559 ## Or use install-sh -d? mkdir -p is not portable.
9560 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9561 deps_frag=autodeps.mk
9564 deps_frag=$srcdir/src/$deps_frag
9570 lisp_frag=$srcdir/src/lisp.mk
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9579 ac_cv_sys_long_file_names=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9588 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9592 . | /* | ?:[\\/]*) ;; #(
9595 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9596 ac_xdir=$ac_dir/cf$$
9597 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9598 ac_tf1=$ac_xdir/conftest9012345
9599 ac_tf2=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names=no
9602 rm -f -r "$ac_xdir" 2>/dev/null
9603 test $ac_cv_sys_long_file_names = no && break
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9610 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9615 #### Choose a window system.
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9618 $as_echo_n "checking for X... " >&6; }
9621 # Check whether --with-x was given.
9622 if test "${with_x+set}" = set; then :
9626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9627 if test "x$with_x" = xno; then
9628 # The user explicitly disabled X.
9631 case $x_includes,$x_libraries in #(
9632 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9633 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9636 # One or both of the vars are not set, and there is no cached value.
9637 ac_x_includes=no ac_x_libraries=no
9638 rm -f -r conftest.dir
9639 if mkdir conftest.dir; then
9641 cat >Imakefile <<'_ACEOF'
9643 @echo incroot='${INCROOT}'
9645 @echo usrlibdir='${USRLIBDIR}'
9647 @echo libdir='${LIBDIR}'
9649 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9650 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9651 for ac_var in incroot usrlibdir libdir; do
9652 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9654 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9655 for ac_extension in a so sl dylib la dll; do
9656 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9657 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9658 ac_im_usrlibdir=$ac_im_libdir; break
9661 # Screen out bogus values from the imake configuration. They are
9662 # bogus both because they are the default anyway, and because
9663 # using them would break gcc on systems where it needs fixed includes.
9664 case $ac_im_incroot in
9665 /usr/include) ac_x_includes= ;;
9666 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9668 case $ac_im_usrlibdir in
9669 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9670 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9674 rm -f -r conftest.dir
9677 # Standard set of common directories for X headers.
9678 # Check X11 before X11Rn because it is often a symlink to the current release.
9692 /usr/local/X11/include
9693 /usr/local/X11R7/include
9694 /usr/local/X11R6/include
9695 /usr/local/X11R5/include
9696 /usr/local/X11R4/include
9698 /usr/local/include/X11
9699 /usr/local/include/X11R7
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9706 /usr/XFree86/include/X11
9710 /usr/unsupported/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9718 if test "$ac_x_includes" = no; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <X11/Xlib.h>
9725 if ac_fn_c_try_cpp "$LINENO"; then :
9726 # We can compile using X headers with no special include directory.
9729 for ac_dir in $ac_x_header_dirs; do
9730 if test -r "$ac_dir/X11/Xlib.h"; then
9731 ac_x_includes=$ac_dir
9736 rm -f conftest.err conftest.$ac_ext
9737 fi # $ac_x_includes = no
9739 if test "$ac_x_libraries" = no; then
9740 # Check for the libraries.
9741 # See if we find them without any special options.
9742 # Don't add to $LIBS permanently.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #include <X11/Xlib.h>
9756 if ac_fn_c_try_link "$LINENO"; then :
9758 # We can link X programs with no special library path.
9762 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9764 # Don't even attempt the hair of trying to link an X program!
9765 for ac_extension in a so sl dylib la dll; do
9766 if test -r "$ac_dir/libX11.$ac_extension"; then
9767 ac_x_libraries=$ac_dir
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 fi # $ac_x_libraries = no
9777 case $ac_x_includes,$ac_x_libraries in #(
9779 # Didn't find X, or a directory has "'" in its name.
9780 ac_cv_have_x="have_x=no";; #(
9782 # Record where we found X for the cache.
9783 ac_cv_have_x="have_x=yes\
9784 ac_x_includes='$ac_x_includes'\
9785 ac_x_libraries='$ac_x_libraries'"
9791 eval "$ac_cv_have_x"
9794 if test "$have_x" != yes; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9796 $as_echo "$have_x" >&6; }
9799 # If each of the values was on the command line, it overrides each guess.
9800 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9801 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9802 # Update the cache value to reflect the command line values.
9803 ac_cv_have_x="have_x=yes\
9804 ac_x_includes='$x_includes'\
9805 ac_x_libraries='$x_libraries'"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9807 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9810 if test "$no_x" = yes; then
9816 ## Workaround for bug in autoconf <= 2.62.
9817 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9818 ## No need to do anything special for these standard directories.
9819 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9821 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9825 LD_SWITCH_X_SITE_AUX=
9826 LD_SWITCH_X_SITE_AUX_RPATH=
9827 if test "${x_libraries}" != NONE; then
9828 if test -n "${x_libraries}"; then
9829 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9830 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9831 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9833 x_default_search_path=""
9834 x_search_path=${x_libraries}
9835 if test -z "${x_search_path}"; then
9836 x_search_path=/usr/lib
9838 for x_library in `echo ${x_search_path}: | \
9839 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9841 ${x_library}/X11/%L/%T/%N%C%S:\
9842 ${x_library}/X11/%l/%T/%N%C%S:\
9843 ${x_library}/X11/%T/%N%C%S:\
9844 ${x_library}/X11/%L/%T/%N%S:\
9845 ${x_library}/X11/%l/%T/%N%S:\
9846 ${x_library}/X11/%T/%N%S"
9847 if test x"${x_default_search_path}" = x; then
9848 x_default_search_path=${x_search_path}
9850 x_default_search_path="${x_search_path}:${x_default_search_path}"
9857 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9858 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9861 if test x"${x_includes}" = x; then
9862 bitmapdir=/usr/include/X11/bitmaps
9864 # accumulate include directories that have X11 bitmap subdirectories
9866 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9867 if test -d "${bmd}/X11/bitmaps"; then
9868 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9870 if test -d "${bmd}/bitmaps"; then
9871 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9874 if test ${bmd_acc} != "dummyval"; then
9875 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9882 tmp_CPPFLAGS="$CPPFLAGS"
9883 tmp_CFLAGS="$CFLAGS"
9884 CPPFLAGS="$CPPFLAGS -x objective-c"
9885 CFLAGS="$CFLAGS -x objective-c"
9886 TEMACS_LDFLAGS2="\${LDFLAGS}"
9888 if test "${with_ns}" != no; then
9889 if test "${opsys}" = darwin; then
9891 ns_appdir=`pwd`/nextstep/Emacs.app
9892 ns_appbindir=${ns_appdir}/Contents/MacOS/
9893 ns_appresdir=${ns_appdir}/Contents/Resources
9894 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9895 elif test -f $GNUSTEP_CONFIG_FILE; then
9897 ns_appdir=`pwd`/nextstep/Emacs.app
9898 ns_appbindir=${ns_appdir}/
9899 ns_appresdir=${ns_appdir}/Resources
9900 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9901 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9902 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9903 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9904 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9905 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9906 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9907 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9908 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9909 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9910 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9911 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9916 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9917 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <GNUstepBase/GSConfig.h>
9926 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9935 if ac_fn_c_try_compile "$LINENO"; then :
9936 emacs_cv_objc_exceptions=yes
9938 emacs_cv_objc_exceptions=no
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9943 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9944 if test $emacs_cv_objc_exceptions = yes; then
9946 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9948 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9952 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9954 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9958 as_fn_error "\`--with-ns' was specified, but the include
9959 files are missing or cannot be compiled." "$LINENO" 5
9963 NS_HAVE_NSINTEGER=yes
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 #include <Foundation/NSObjCRuntime.h>
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 ns_have_nsinteger=yes
9978 ns_have_nsinteger=no
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 if test $ns_have_nsinteger = no; then
9982 NS_HAVE_NSINTEGER=no
9990 if test "${HAVE_NS}" = yes; then
9991 if test "$with_toolkit_scroll_bars" = "no"; then
9992 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9995 window_system=nextstep
9997 # set up packaging dirs
9998 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9999 prefix=${ns_appresdir}
10000 exec_prefix=${ns_appbindir}
10001 libexecdir=${ns_appbindir}/libexec
10003 ns_frag=$srcdir/src/ns.mk
10004 NS_OBJ="fontset.o fringe.o image.o"
10005 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10007 CFLAGS="$tmp_CFLAGS"
10008 CPPFLAGS="$tmp_CPPFLAGS"
10014 case "${window_system}" in
10018 case "${with_x_toolkit}" in
10019 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10020 motif ) USE_X_TOOLKIT=MOTIF ;;
10022 USE_X_TOOLKIT=none ;;
10023 gtk3 ) with_gtk3=yes
10024 USE_X_TOOLKIT=none ;;
10025 no ) USE_X_TOOLKIT=none ;;
10026 * ) USE_X_TOOLKIT=maybe ;;
10036 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10037 # Extract the first word of "X", so it can be a program name with args.
10038 set dummy X; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10044 if test -n "$HAVE_XSERVER"; then
10045 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_prog_HAVE_XSERVER="true"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10065 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10066 if test -n "$HAVE_XSERVER"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10068 $as_echo "$HAVE_XSERVER" >&6; }
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10075 if test "$HAVE_XSERVER" = true ||
10076 test -n "$DISPLAY" ||
10077 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10078 as_fn_error "You seem to be running X, but no X development libraries
10079 were found. You should install the relevant development files for X
10080 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10081 sure you have development files for image handling, i.e.
10082 tiff, gif, jpeg, png and xpm.
10083 If you are sure you want Emacs compiled without X window support, pass
10085 to configure." "$LINENO" 5
10089 ### If we're using X11, we should use the X menu package.
10091 case ${HAVE_X11} in
10092 yes ) HAVE_MENUS=yes ;;
10095 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10096 # Assume not, until told otherwise.
10098 doug_lea_malloc=yes
10099 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10100 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10106 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10107 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10114 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10115 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10116 $as_echo_n "(cached) " >&6
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 extern void (* __after_morecore_hook)();
10124 __after_morecore_hook = 0
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 emacs_cv_var___after_morecore_hook=yes
10132 emacs_cv_var___after_morecore_hook=no
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10138 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10139 if test $emacs_cv_var___after_morecore_hook = no; then
10146 ## darwin ld insists on the use of malloc routines in the System framework.
10147 darwin|sol2-10) system_malloc=yes ;;
10150 if test "${system_malloc}" = "yes"; then
10152 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10155 GNU_MALLOC_reason="
10156 (The GNU allocators don't work with this system configuration.)"
10160 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10161 VMLIMIT_OBJ=vm-limit.o
10166 if test "$doug_lea_malloc" = "yes" ; then
10167 if test "$GNU_MALLOC" = yes ; then
10168 GNU_MALLOC_reason="
10169 (Using Doug Lea's new malloc from the GNU C Library.)"
10172 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10175 ## Use mmap directly for allocating larger buffers.
10176 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10177 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10178 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10180 gnu*) REL_ALLOC=no ;;
10184 if test x"${REL_ALLOC}" = x; then
10185 REL_ALLOC=${GNU_MALLOC}
10188 use_mmap_for_buffers=no
10190 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10196 for ac_header in $ac_header_list
10198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10199 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10201 eval as_val=\$$as_ac_Header
10202 if test "x$as_val" = x""yes; then :
10203 cat >>confdefs.h <<_ACEOF
10204 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10218 for ac_func in getpagesize
10220 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10221 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_GETPAGESIZE 1
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10230 $as_echo_n "checking for working mmap... " >&6; }
10231 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10234 if test "$cross_compiling" = yes; then :
10235 ac_cv_func_mmap_fixed_mapped=no
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 /* malloc might have been renamed as rpl_malloc. */
10243 /* Thanks to Mike Haertel and Jim Avera for this test.
10244 Here is a matrix of mmap possibilities:
10245 mmap private not fixed
10246 mmap private fixed at somewhere currently unmapped
10247 mmap private fixed at somewhere already mapped
10248 mmap shared not fixed
10249 mmap shared fixed at somewhere currently unmapped
10250 mmap shared fixed at somewhere already mapped
10251 For private mappings, we should verify that changes cannot be read()
10252 back from the file, nor mmap's back from the file at a different
10253 address. (There have been systems where private was not correctly
10254 implemented like the infamous i386 svr4.0, and systems where the
10255 VM page cache was not coherent with the file system buffer cache
10256 like early versions of FreeBSD and possibly contemporary NetBSD.)
10257 For shared mappings, we should conversely verify that changes get
10258 propagated back to all the places they're supposed to be.
10260 Grep wants private fixed already mapped.
10261 The main things grep needs to know about mmap are:
10262 * does it exist and is it safe to write into the mmap'd area
10263 * how to use it (BSD variants) */
10266 #include <sys/mman.h>
10268 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10272 /* This mess was copied from the GNU getpagesize.h. */
10273 #ifndef HAVE_GETPAGESIZE
10274 # ifdef _SC_PAGESIZE
10275 # define getpagesize() sysconf(_SC_PAGESIZE)
10276 # else /* no _SC_PAGESIZE */
10277 # ifdef HAVE_SYS_PARAM_H
10278 # include <sys/param.h>
10279 # ifdef EXEC_PAGESIZE
10280 # define getpagesize() EXEC_PAGESIZE
10281 # else /* no EXEC_PAGESIZE */
10283 # define getpagesize() NBPG * CLSIZE
10286 # endif /* no CLSIZE */
10287 # else /* no NBPG */
10289 # define getpagesize() NBPC
10290 # else /* no NBPC */
10292 # define getpagesize() PAGESIZE
10293 # endif /* PAGESIZE */
10294 # endif /* no NBPC */
10295 # endif /* no NBPG */
10296 # endif /* no EXEC_PAGESIZE */
10297 # else /* no HAVE_SYS_PARAM_H */
10298 # define getpagesize() 8192 /* punt totally */
10299 # endif /* no HAVE_SYS_PARAM_H */
10300 # endif /* no _SC_PAGESIZE */
10302 #endif /* no HAVE_GETPAGESIZE */
10307 char *data, *data2, *data3;
10308 const char *cdata2;
10312 pagesize = getpagesize ();
10314 /* First, make a file with some known garbage in it. */
10315 data = (char *) malloc (pagesize);
10318 for (i = 0; i < pagesize; ++i)
10319 *(data + i) = rand ();
10321 fd = creat ("conftest.mmap", 0600);
10324 if (write (fd, data, pagesize) != pagesize)
10328 /* Next, check that the tail of a page is zero-filled. File must have
10329 non-zero length, otherwise we risk SIGBUS for entire page. */
10330 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10334 if (write (fd2, cdata2, 1) != 1)
10336 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10337 if (data2 == MAP_FAILED)
10339 for (i = 0; i < pagesize; ++i)
10343 if (munmap (data2, pagesize))
10346 /* Next, try to mmap the file at a fixed address which already has
10347 something else allocated at it. If we can, also make sure that
10348 we see the same garbage. */
10349 fd = open ("conftest.mmap", O_RDWR);
10352 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10353 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10355 for (i = 0; i < pagesize; ++i)
10356 if (*(data + i) != *(data2 + i))
10359 /* Finally, make sure that changes to the mapped area do not
10360 percolate back to the file as seen by read(). (This is a bug on
10361 some variants of i386 svr4.0.) */
10362 for (i = 0; i < pagesize; ++i)
10363 *(data2 + i) = *(data2 + i) + 1;
10364 data3 = (char *) malloc (pagesize);
10367 if (read (fd, data3, pagesize) != pagesize)
10369 for (i = 0; i < pagesize; ++i)
10370 if (*(data + i) != *(data3 + i))
10376 if ac_fn_c_try_run "$LINENO"; then :
10377 ac_cv_func_mmap_fixed_mapped=yes
10379 ac_cv_func_mmap_fixed_mapped=no
10381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10382 conftest.$ac_objext conftest.beam conftest.$ac_ext
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10387 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10388 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10390 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10393 rm -f conftest.mmap conftest.txt
10395 if test $use_mmap_for_buffers = yes; then
10397 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10402 LIBS="$LIBS_SYSTEM $LIBS"
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10405 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10406 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10407 $as_echo_n "(cached) " >&6
10409 ac_check_lib_save_LIBS=$LIBS
10410 LIBS="-ldnet $LIBS"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10424 return dnet_ntoa ();
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_dnet_dnet_ntoa=yes
10432 ac_cv_lib_dnet_dnet_ntoa=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10439 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10440 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10441 cat >>confdefs.h <<_ACEOF
10442 #define HAVE_LIBDNET 1
10445 LIBS="-ldnet $LIBS"
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10451 $as_echo_n "checking for main in -lXbsd... " >&6; }
10452 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10455 ac_check_lib_save_LIBS=$LIBS
10456 LIBS="-lXbsd $LIBS"
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 ac_cv_lib_Xbsd_main=yes
10472 ac_cv_lib_Xbsd_main=no
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10479 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10480 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10481 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10486 for ac_header in pthread.h
10488 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10489 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10490 cat >>confdefs.h <<_ACEOF
10491 #define HAVE_PTHREAD_H 1
10498 if test "$ac_cv_header_pthread_h"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10500 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10501 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-lpthread $LIBS"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10515 char pthread_self ();
10519 return pthread_self ();
10524 if ac_fn_c_try_link "$LINENO"; then :
10525 ac_cv_lib_pthread_pthread_self=yes
10527 ac_cv_lib_pthread_pthread_self=no
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10534 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10535 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10540 if test "$HAVE_PTHREAD" = yes; then
10541 case "${canonical}" in
10543 *) LIB_PTHREAD="-lpthread"
10544 LIBS="$LIB_PTHREAD $LIBS" ;;
10547 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10553 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10554 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lpthreads $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10572 return cma_open ();
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_pthreads_cma_open=yes
10580 ac_cv_lib_pthreads_cma_open=no
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10587 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10588 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10589 cat >>confdefs.h <<_ACEOF
10590 #define HAVE_LIBPTHREADS 1
10593 LIBS="-lpthreads $LIBS"
10598 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10599 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10600 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10601 ## added to LIBS in configure would never contain the pthreads part,
10602 ## but the value used in Makefiles might. FIXME?
10604 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10605 ## be harmless on older versions of X where it happens to exist.
10606 test "$opsys" = "aix4-2" && \
10607 test $ac_cv_lib_pthreads_cma_open = yes && \
10608 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10614 $as_echo_n "checking for -bbigtoc option... " >&6; }
10615 if test "${gdb_cv_bigtoc+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10620 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10621 *) gdb_cv_bigtoc=-bbigtoc ;;
10624 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10636 if ac_fn_c_try_link "$LINENO"; then :
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10646 $as_echo "$gdb_cv_bigtoc" >&6; }
10650 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10651 # used for the tests that follow. We set them back to REAL_CFLAGS and
10652 # REAL_CPPFLAGS later on.
10654 REAL_CFLAGS="$CFLAGS"
10655 REAL_CPPFLAGS="$CPPFLAGS"
10657 if test "${HAVE_X11}" = "yes"; then
10658 DEFS="$C_SWITCH_X_SITE $DEFS"
10659 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10661 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10662 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10664 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10665 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10666 # but it's more convenient here to set LD_RUN_PATH
10667 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10668 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10669 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10673 if test "${opsys}" = "gnu-linux"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10675 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10682 XOpenDisplay ("foo");
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 xgnu_linux_first_failure=no
10690 xgnu_linux_first_failure=yes
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 if test "${xgnu_linux_first_failure}" = "yes"; then
10695 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10696 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10697 OLD_CPPFLAGS="$CPPFLAGS"
10699 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10700 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10701 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10702 LIBS="$LIBS -b i486-linuxaout"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10709 XOpenDisplay ("foo");
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 xgnu_linux_second_failure=no
10717 xgnu_linux_second_failure=yes
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 if test "${xgnu_linux_second_failure}" = "yes"; then
10722 # If we get the same failure with -b, there is no use adding -b.
10723 # So take it out. This plays safe.
10724 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10725 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10726 CPPFLAGS="$OLD_CPPFLAGS"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732 $as_echo "yes" >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10740 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10741 # header files included from there.
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10743 $as_echo_n "checking for Xkb... " >&6; }
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10747 #include <X11/XKBlib.h>
10751 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10756 if ac_fn_c_try_link "$LINENO"; then :
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10764 $as_echo "$emacs_xkb" >&6; }
10765 if test $emacs_xkb = yes; then
10767 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10771 for ac_func in XrmSetDatabase XScreenResourceString \
10772 XScreenNumberOfScreen XSetWMProtocols
10774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10776 eval as_val=\$$as_ac_var
10777 if test "x$as_val" = x""yes; then :
10778 cat >>confdefs.h <<_ACEOF
10779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787 if test "${window_system}" = "x11"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10789 $as_echo_n "checking X11 version 6... " >&6; }
10790 if test "${emacs_cv_x11_version_6+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <X11/Xlib.h>
10799 #if XlibSpecificationRelease < 6
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 emacs_cv_x11_version_6=yes
10810 emacs_cv_x11_version_6=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10816 if test $emacs_cv_x11_version_6 = yes; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10818 $as_echo "6 or newer" >&6; }
10820 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10823 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10825 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10830 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10836 $as_echo "before 6" >&6; }
10841 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10843 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10844 if test "${with_rsvg}" != "no"; then
10845 RSVG_REQUIRED=2.11.0
10846 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10851 # Extract the first word of "pkg-config", so it can be a program name with args.
10852 set dummy pkg-config; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10858 case $PKG_CONFIG in
10860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10883 if test -n "$PKG_CONFIG"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10885 $as_echo "$PKG_CONFIG" >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10893 if test "$PKG_CONFIG" = "no" ; then
10896 PKG_CONFIG_MIN_VERSION=0.9.0
10897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10899 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10901 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903 $as_echo "yes" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10907 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10908 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10910 $as_echo "$RSVG_CFLAGS" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10913 $as_echo_n "checking RSVG_LIBS... " >&6; }
10914 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10916 $as_echo "$RSVG_LIBS" >&6; }
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10922 ## If we have a custom action on failure, don't print errors, but
10923 ## do set a variable so people can do so.
10924 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10931 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10932 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10936 if test $succeeded = yes; then
10945 if test $HAVE_RSVG = yes; then
10947 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10949 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10950 LIBS="$RSVG_LIBS $LIBS"
10955 HAVE_IMAGEMAGICK=no
10956 if test "${HAVE_X11}" = "yes"; then
10957 if test "${with_imagemagick}" != "no"; then
10958 ## 6.2.8 is the earliest version known to work, but earlier versions
10959 ## might work - let us know if you find one.
10960 ## 6.0.7 does not work. See bug#7955.
10961 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10965 # Extract the first word of "pkg-config", so it can be a program name with args.
10966 set dummy pkg-config; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10972 case $PKG_CONFIG in
10974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10997 if test -n "$PKG_CONFIG"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10999 $as_echo "$PKG_CONFIG" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11007 if test "$PKG_CONFIG" = "no" ; then
11010 PKG_CONFIG_MIN_VERSION=0.9.0
11011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11013 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11015 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11021 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11022 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11024 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11027 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11028 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11030 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 IMAGEMAGICK_CFLAGS=""
11035 IMAGEMAGICK_LIBS=""
11036 ## If we have a custom action on failure, don't print errors, but
11037 ## do set a variable so people can do so.
11038 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11045 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11046 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11050 if test $succeeded = yes; then
11051 HAVE_IMAGEMAGICK=yes
11059 if test $HAVE_IMAGEMAGICK = yes; then
11061 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11063 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11064 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11065 for ac_func in MagickExportImagePixels
11067 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11068 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11083 if test "${with_gtk3}" = "yes"; then
11086 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11091 # Extract the first word of "pkg-config", so it can be a program name with args.
11092 set dummy pkg-config; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 case $PKG_CONFIG in
11100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11123 if test -n "$PKG_CONFIG"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11125 $as_echo "$PKG_CONFIG" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test "$PKG_CONFIG" = "no" ; then
11136 PKG_CONFIG_MIN_VERSION=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11139 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11141 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11147 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11148 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11150 $as_echo "$GTK_CFLAGS" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11153 $as_echo_n "checking GTK_LIBS... " >&6; }
11154 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11156 $as_echo "$GTK_LIBS" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11162 ## If we have a custom action on failure, don't print errors, but
11163 ## do set a variable so people can do so.
11164 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11176 if test $succeeded = yes; then
11182 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11183 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11186 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11188 GTK_OBJ=emacsgtkfixed.o
11191 if test "$pkg_check_gtk" != "yes"; then
11193 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11196 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11201 # Extract the first word of "pkg-config", so it can be a program name with args.
11202 set dummy pkg-config; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11208 case $PKG_CONFIG in
11210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11233 if test -n "$PKG_CONFIG"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11235 $as_echo "$PKG_CONFIG" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11243 if test "$PKG_CONFIG" = "no" ; then
11246 PKG_CONFIG_MIN_VERSION=0.9.0
11247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11249 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11251 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253 $as_echo "yes" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11257 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11258 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11260 $as_echo "$GTK_CFLAGS" >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11263 $as_echo_n "checking GTK_LIBS... " >&6; }
11264 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11266 $as_echo "$GTK_LIBS" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11272 ## If we have a custom action on failure, don't print errors, but
11273 ## do set a variable so people can do so.
11274 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11286 if test $succeeded = yes; then
11292 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11293 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11298 if test x"$pkg_check_gtk" = xyes; then
11302 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11303 CFLAGS="$CFLAGS $GTK_CFLAGS"
11304 LIBS="$GTK_LIBS $LIBS"
11306 for ac_func in gtk_main
11308 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11309 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GTK_MAIN 1
11317 if test "${GTK_COMPILES}" != "yes"; then
11318 if test "$USE_X_TOOLKIT" != "maybe"; then
11319 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11324 $as_echo "#define USE_GTK 1" >>confdefs.h
11326 GTK_OBJ="gtkutil.o $GTK_OBJ"
11328 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11332 closing open displays. This is no problem if you just use
11333 one display, but if you use more than one and close one of them
11334 Emacs may crash." >&5
11335 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11336 closing open displays. This is no problem if you just use
11337 one display, but if you use more than one and close one of them
11338 Emacs may crash." >&2;}
11347 if test "${HAVE_GTK}" = "yes"; then
11349 if test "$with_toolkit_scroll_bars" != no; then
11350 with_toolkit_scroll_bars=yes
11353 HAVE_GTK_FILE_SELECTION=no
11354 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11355 #include <gtk/gtk.h>
11357 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11358 HAVE_GTK_FILE_SELECTION=yes
11360 HAVE_GTK_FILE_SELECTION=no
11363 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11364 for ac_func in gtk_file_selection_new
11366 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11367 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_GTK_FILE_SELECTION_NEW 1
11378 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11379 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11380 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11381 gtk_orientable_set_orientation \
11382 gtk_window_set_has_resize_grip
11384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11386 eval as_val=\$$as_ac_var
11387 if test "x$as_val" = x""yes; then :
11388 cat >>confdefs.h <<_ACEOF
11389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11399 if test "${with_dbus}" = "yes"; then
11403 # Extract the first word of "pkg-config", so it can be a program name with args.
11404 set dummy pkg-config; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11410 case $PKG_CONFIG in
11412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11435 if test -n "$PKG_CONFIG"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11437 $as_echo "$PKG_CONFIG" >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11445 if test "$PKG_CONFIG" = "no" ; then
11448 PKG_CONFIG_MIN_VERSION=0.9.0
11449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11451 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11453 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11459 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11460 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11462 $as_echo "$DBUS_CFLAGS" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11465 $as_echo_n "checking DBUS_LIBS... " >&6; }
11466 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11468 $as_echo "$DBUS_LIBS" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11474 ## If we have a custom action on failure, don't print errors, but
11475 ## do set a variable so people can do so.
11476 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11488 if test $succeeded = yes; then
11494 if test "$HAVE_DBUS" = yes; then
11495 LIBS="$LIBS $DBUS_LIBS"
11497 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11499 for ac_func in dbus_watch_get_unix_fd
11501 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11502 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11503 cat >>confdefs.h <<_ACEOF
11504 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11510 DBUS_OBJ=dbusbind.o
11518 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11522 # Extract the first word of "pkg-config", so it can be a program name with args.
11523 set dummy pkg-config; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11529 case $PKG_CONFIG in
11531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11554 if test -n "$PKG_CONFIG"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11556 $as_echo "$PKG_CONFIG" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11564 if test "$PKG_CONFIG" = "no" ; then
11567 PKG_CONFIG_MIN_VERSION=0.9.0
11568 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11570 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11572 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11574 $as_echo "yes" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11578 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11579 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11581 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11584 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11585 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11587 $as_echo "$GSETTINGS_LIBS" >&6; }
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11591 GSETTINGS_CFLAGS=""
11593 ## If we have a custom action on failure, don't print errors, but
11594 ## do set a variable so people can do so.
11595 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11602 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11603 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11607 if test $succeeded = yes; then
11613 if test "$HAVE_GSETTINGS" = "yes"; then
11615 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11617 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11618 SETTINGS_LIBS="$GSETTINGS_LIBS"
11622 >>>>>>> MERGE-SOURCE
11624 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11628 # Extract the first word of "pkg-config", so it can be a program name with args.
11629 set dummy pkg-config; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11635 case $PKG_CONFIG in
11637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11660 if test -n "$PKG_CONFIG"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11662 $as_echo "$PKG_CONFIG" >&6; }
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11670 if test "$PKG_CONFIG" = "no" ; then
11673 PKG_CONFIG_MIN_VERSION=0.9.0
11674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11676 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11678 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680 $as_echo "yes" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11684 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11685 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11687 $as_echo "$GCONF_CFLAGS" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11690 $as_echo_n "checking GCONF_LIBS... " >&6; }
11691 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11693 $as_echo "$GCONF_LIBS" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11699 ## If we have a custom action on failure, don't print errors, but
11700 ## do set a variable so people can do so.
11701 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11713 if test $succeeded = yes; then
11719 if test "$HAVE_GCONF" = yes; then
11721 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11723 for ac_func in g_type_init
11725 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11726 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11727 cat >>confdefs.h <<_ACEOF
11728 #define HAVE_G_TYPE_INIT 1
11739 if test "${with_selinux}" = "yes"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11741 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11742 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lselinux $LIBS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11756 char lgetfilecon ();
11760 return lgetfilecon ();
11765 if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_selinux_lgetfilecon=yes
11768 ac_cv_lib_selinux_lgetfilecon=no
11770 rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11775 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11776 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11777 HAVE_LIBSELINUX=yes
11782 if test "$HAVE_LIBSELINUX" = yes; then
11784 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11786 LIBSELINUX_LIBS=-lselinux
11792 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11793 if test "${with_gnutls}" = "yes" ; then
11797 # Extract the first word of "pkg-config", so it can be a program name with args.
11798 set dummy pkg-config; ac_word=$2
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800 $as_echo_n "checking for $ac_word... " >&6; }
11801 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
11804 case $PKG_CONFIG in
11806 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11829 if test -n "$PKG_CONFIG"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11831 $as_echo "$PKG_CONFIG" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11839 if test "$PKG_CONFIG" = "no" ; then
11842 PKG_CONFIG_MIN_VERSION=0.9.0
11843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11845 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11847 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11853 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11854 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11856 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11859 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11860 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11862 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 LIBGNUTLS_CFLAGS=""
11868 ## If we have a custom action on failure, don't print errors, but
11869 ## do set a variable so people can do so.
11870 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11882 if test $succeeded = yes; then
11888 if test "${HAVE_GNUTLS}" = "yes"; then
11890 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11894 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11895 LIBS="$LIBGNUTLS_LIBS $LIBS"
11896 for ac_func in gnutls_certificate_set_verify_function
11898 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11899 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11903 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11908 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11910 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11920 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11921 if test "$with_xaw3d" != no; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11923 $as_echo_n "checking for xaw3d... " >&6; }
11924 if test "${emacs_cv_xaw3d+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11930 #include <X11/Intrinsic.h>
11931 #include <X11/Xaw3d/Simple.h>
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11942 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11943 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-lXaw3d $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11957 char XawScrollbarSetThumb ();
11961 return XawScrollbarSetThumb ();
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11969 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11976 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11977 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11993 if test $emacs_cv_xaw3d = yes; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11995 $as_echo "yes; using Lucid toolkit" >&6; }
11996 USE_X_TOOLKIT=LUCID
12000 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12006 $as_echo_n "checking for libXaw... " >&6; }
12007 if test "${emacs_cv_xaw+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 #include <X11/Intrinsic.h>
12014 #include <X11/Xaw/Simple.h>
12023 if ac_fn_c_try_link "$LINENO"; then :
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12032 if test $emacs_cv_xaw = yes; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12034 $as_echo "yes; using Lucid toolkit" >&6; }
12035 USE_X_TOOLKIT=LUCID
12037 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12038 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12040 as_fn_error "No X toolkit could be found.
12041 If you are sure you want Emacs compiled without an X toolkit, pass
12042 --with-x-toolkit=no
12043 to configure. Otherwise, install the development libraries for the toolkit
12044 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12049 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12052 if test "${USE_X_TOOLKIT}" != "none"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12054 $as_echo_n "checking X11 toolkit version... " >&6; }
12055 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060 #include <X11/Intrinsic.h>
12064 #if XtSpecificationRelease < 6
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 emacs_cv_x11_toolkit_version_6=yes
12075 emacs_cv_x11_toolkit_version_6=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12081 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12082 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12084 $as_echo "6 or newer" >&6; }
12086 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12088 LIBXTR6="-lSM -lICE"
12090 ## Use libw.a along with X11R6 Xt.
12091 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12095 $as_echo "before 6" >&6; }
12099 if test x$HAVE_X11XTR6 = xyes; then
12100 LIBS="-lXt -lSM -lICE $LIBS"
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12105 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12106 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12109 ac_check_lib_save_LIBS=$LIBS
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12120 char XmuConvertStandardSelection ();
12124 return XmuConvertStandardSelection ();
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12132 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12139 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12140 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12141 cat >>confdefs.h <<_ACEOF
12142 #define HAVE_LIBXMU 1
12149 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12155 ## These systems don't supply Xmu.
12157 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12166 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12167 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-lXext $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12181 char XShapeQueryExtension ();
12185 return XShapeQueryExtension ();
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_Xext_XShapeQueryExtension=yes
12193 ac_cv_lib_Xext_XShapeQueryExtension=no
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12200 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12201 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_LIBXEXT 1
12206 LIBS="-lXext $LIBS"
12214 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12216 $as_echo_n "checking for Motif version 2.1... " >&6; }
12217 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12218 $as_echo_n "(cached) " >&6
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12226 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12229 Motif version prior to 2.1.
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 emacs_cv_motif_version_2_1=yes
12238 emacs_cv_motif_version_2_1=no
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12243 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12244 if test $emacs_cv_motif_version_2_1 = yes; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12246 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12247 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12250 ac_check_lib_save_LIBS=$LIBS
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12255 /* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12261 char XpCreateContext ();
12265 return XpCreateContext ();
12270 if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_Xp_XpCreateContext=yes
12273 ac_cv_lib_Xp_XpCreateContext=no
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12280 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12281 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12287 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12288 if test "${emacs_cv_lesstif+set}" = set; then :
12289 $as_echo_n "(cached) " >&6
12291 # We put this in CFLAGS temporarily to precede other -I options
12292 # that might be in CFLAGS temporarily.
12293 # We put this in CPPFLAGS where it precedes the other -I options.
12294 OLD_CPPFLAGS=$CPPFLAGS
12296 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12297 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 emacs_cv_lesstif=yes
12312 emacs_cv_lesstif=no
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12317 $as_echo "$emacs_cv_lesstif" >&6; }
12318 if test $emacs_cv_lesstif = yes; then
12319 # Make sure this -I option remains in CPPFLAGS after it is set
12320 # back to REAL_CPPFLAGS.
12321 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12322 # have those other -I options anyway. Ultimately, having this
12323 # directory ultimately in CPPFLAGS will be enough.
12324 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12325 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12328 CPPFLAGS=$OLD_CPPFLAGS
12331 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12332 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12335 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12342 USE_TOOLKIT_SCROLL_BARS=no
12343 if test "${with_toolkit_scroll_bars}" != "no"; then
12344 if test "${USE_X_TOOLKIT}" != "none"; then
12345 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12346 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12349 USE_TOOLKIT_SCROLL_BARS=yes
12350 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12351 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12353 USE_TOOLKIT_SCROLL_BARS=yes
12355 elif test "${HAVE_GTK}" = "yes"; then
12356 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12358 USE_TOOLKIT_SCROLL_BARS=yes
12359 elif test "${HAVE_NS}" = "yes"; then
12360 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12362 USE_TOOLKIT_SCROLL_BARS=yes
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 #include <X11/Xlib.h>
12370 #include <X11/Xresource.h>
12379 if ac_fn_c_try_compile "$LINENO"; then :
12382 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 if test "${with_xim}" != "no"; then
12392 $as_echo "#define USE_XIM 1" >>confdefs.h
12397 if test "${HAVE_XIM}" != "no"; then
12398 late_CFLAGS=$CFLAGS
12399 if test "$GCC" = yes; then
12400 CFLAGS="$CFLAGS --pedantic-errors"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 #include <X11/Xlib.h>
12406 #include <X11/Xresource.h>
12415 XPointer *client_data;
12417 /* If we're not using GCC, it's probably not XFree86, and this is
12418 probably right, but we can't use something like --pedantic-errors. */
12419 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12420 char*, XIMProc, XPointer*);
12422 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 emacs_cv_arg6_star=yes
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12436 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12439 CFLAGS=$late_CFLAGS
12442 ### Start of font-backend (under any platform) section.
12443 # (nothing here yet -- this is a placeholder)
12444 ### End of font-backend (under any platform) section.
12446 ### Start of font-backend (under X11) section.
12447 if test "${HAVE_X11}" = "yes"; then
12451 # Extract the first word of "pkg-config", so it can be a program name with args.
12452 set dummy pkg-config; ac_word=$2
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12458 case $PKG_CONFIG in
12460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12483 if test -n "$PKG_CONFIG"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12485 $as_echo "$PKG_CONFIG" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test "$PKG_CONFIG" = "no" ; then
12496 PKG_CONFIG_MIN_VERSION=0.9.0
12497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12499 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12501 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503 $as_echo "yes" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12507 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12508 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12510 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12513 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12514 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12516 $as_echo "$FONTCONFIG_LIBS" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 FONTCONFIG_CFLAGS=""
12522 ## If we have a custom action on failure, don't print errors, but
12523 ## do set a variable so people can do so.
12524 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12536 if test $succeeded = yes; then
12543 ## Use -lXft if available, unless `--with-xft=no'.
12545 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12548 if test "x${with_xft}" != "xno"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12558 $as_echo_n "(cached) " >&6
12560 case $PKG_CONFIG in
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12587 $as_echo "$PKG_CONFIG" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12595 if test "$PKG_CONFIG" = "no" ; then
12598 PKG_CONFIG_MIN_VERSION=0.9.0
12599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12601 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12603 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605 $as_echo "yes" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12609 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12610 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12612 $as_echo "$XFT_CFLAGS" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12615 $as_echo_n "checking XFT_LIBS... " >&6; }
12616 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12618 $as_echo "$XFT_LIBS" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12624 ## If we have a custom action on failure, don't print errors, but
12625 ## do set a variable so people can do so.
12626 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12638 if test $succeeded = yes; then
12644 ## Because xftfont.c uses XRenderQueryExtension, we also
12645 ## need to link to -lXrender.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12648 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12649 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12652 ac_check_lib_save_LIBS=$LIBS
12653 LIBS="-lXrender $LIBS"
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12663 char XRenderQueryExtension ();
12667 return XRenderQueryExtension ();
12672 if ac_fn_c_try_link "$LINENO"; then :
12673 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12675 ac_cv_lib_Xrender_XRenderQueryExtension=no
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12682 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12683 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12687 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12688 OLD_CPPFLAGS="$CPPFLAGS"
12689 OLD_CFLAGS="$CFLAGS"
12691 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12692 CFLAGS="$CFLAGS $XFT_CFLAGS"
12693 XFT_LIBS="-lXrender $XFT_LIBS"
12694 LIBS="$XFT_LIBS $LIBS"
12695 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12696 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12698 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12699 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12702 ac_check_lib_save_LIBS=$LIBS
12703 LIBS="-lXft $XFT_LIBS $LIBS"
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12713 char XftFontOpen ();
12717 return XftFontOpen ();
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_lib_Xft_XftFontOpen=yes
12725 ac_cv_lib_Xft_XftFontOpen=no
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12732 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12733 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12741 if test "${HAVE_XFT}" = "yes"; then
12743 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12746 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12748 CPPFLAGS="$OLD_CPPFLAGS"
12749 CFLAGS="$OLD_CFLAGS"
12751 fi # "${HAVE_XFT}" = "yes"
12752 fi # "$HAVE_XFT" != no
12753 fi # "x${with_xft}" != "xno"
12755 ## We used to allow building with FreeType and without Xft.
12756 ## However, the ftx font backend driver is not in good shape.
12757 if test "$HAVE_XFT" != "yes"; then
12764 # Extract the first word of "pkg-config", so it can be a program name with args.
12765 set dummy pkg-config; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12771 case $PKG_CONFIG in
12773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12796 if test -n "$PKG_CONFIG"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12798 $as_echo "$PKG_CONFIG" >&6; }
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12806 if test "$PKG_CONFIG" = "no" ; then
12809 PKG_CONFIG_MIN_VERSION=0.9.0
12810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12812 $as_echo_n "checking for freetype2... " >&6; }
12814 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12816 $as_echo "yes" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12820 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12821 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12823 $as_echo "$FREETYPE_CFLAGS" >&6; }
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12826 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12827 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12829 $as_echo "$FREETYPE_LIBS" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12835 ## If we have a custom action on failure, don't print errors, but
12836 ## do set a variable so people can do so.
12837 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12849 if test $succeeded = yes; then
12856 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12860 if test "${HAVE_FREETYPE}" = "yes"; then
12862 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12864 if test "${with_libotf}" != "no"; then
12868 # Extract the first word of "pkg-config", so it can be a program name with args.
12869 set dummy pkg-config; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12875 case $PKG_CONFIG in
12877 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12899 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12900 if test -n "$PKG_CONFIG"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12902 $as_echo "$PKG_CONFIG" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12910 if test "$PKG_CONFIG" = "no" ; then
12913 PKG_CONFIG_MIN_VERSION=0.9.0
12914 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12916 $as_echo_n "checking for libotf... " >&6; }
12918 if $PKG_CONFIG --exists "libotf" 2>&5; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12924 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12925 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12927 $as_echo "$LIBOTF_CFLAGS" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12930 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12931 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12933 $as_echo "$LIBOTF_LIBS" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12939 ## If we have a custom action on failure, don't print errors, but
12940 ## do set a variable so people can do so.
12941 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12953 if test $succeeded = yes; then
12959 if test "$HAVE_LIBOTF" = "yes"; then
12961 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12964 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12965 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12968 ac_check_lib_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12979 char OTF_get_variation_glyphs ();
12983 return OTF_get_variation_glyphs ();
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12991 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12993 rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995 LIBS=$ac_check_lib_save_LIBS
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12998 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12999 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13000 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13002 HAVE_OTF_GET_VARIATION_GLYPHS=no
13005 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13007 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13015 if test "${HAVE_LIBOTF}" = yes; then
13016 if test "${with_m17n_flt}" != "no"; then
13020 # Extract the first word of "pkg-config", so it can be a program name with args.
13021 set dummy pkg-config; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13027 case $PKG_CONFIG in
13029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13052 if test -n "$PKG_CONFIG"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13054 $as_echo "$PKG_CONFIG" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13062 if test "$PKG_CONFIG" = "no" ; then
13065 PKG_CONFIG_MIN_VERSION=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13068 $as_echo_n "checking for m17n-flt... " >&6; }
13070 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13072 $as_echo "yes" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13076 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13077 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13079 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13082 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13083 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13085 $as_echo "$M17N_FLT_LIBS" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13091 ## If we have a custom action on failure, don't print errors, but
13092 ## do set a variable so people can do so.
13093 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13105 if test $succeeded = yes; then
13111 if test "$HAVE_M17N_FLT" = "yes"; then
13113 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13125 ### End of font-backend (under X11) section.
13136 ### Use -lXpm if available, unless `--with-xpm=no'.
13139 if test "${HAVE_X11}" = "yes"; then
13140 if test "${with_xpm}" != "no"; then
13141 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13142 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13144 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13145 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13148 ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lXpm -lX11 $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13159 char XpmReadFileToPixmap ();
13163 return XpmReadFileToPixmap ();
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13171 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13178 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13179 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13186 if test "${HAVE_XPM}" = "yes"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13188 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 #include "X11/xpm.h"
13192 #ifndef XpmReturnAllocPixels
13193 no_return_alloc_pixels
13197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13206 if test "${HAVE_XPM}" = "yes"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13208 $as_echo "yes" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13216 if test "${HAVE_XPM}" = "yes"; then
13218 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13225 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13228 if test "${HAVE_X11}" = "yes"; then
13229 if test "${with_jpeg}" != "no"; then
13230 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13231 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13233 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13234 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13235 $as_echo_n "(cached) " >&6
13237 ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-ljpeg $LIBS"
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13248 char jpeg_destroy_compress ();
13252 return jpeg_destroy_compress ();
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13260 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 LIBS=$ac_check_lib_save_LIBS
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13267 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13268 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13277 if test "${HAVE_JPEG}" = "yes"; then
13278 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282 #include <jpeglib.h>
13283 version=JPEG_LIB_VERSION
13286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13287 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13288 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13292 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13298 if test "${HAVE_JPEG}" = "yes"; then
13304 ### Use -lpng if available, unless `--with-png=no'.
13307 if test "${HAVE_X11}" = "yes"; then
13308 if test "${with_png}" != "no"; then
13309 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13310 # in /usr/include/libpng.
13311 for ac_header in png.h libpng/png.h
13313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13315 eval as_val=\$$as_ac_Header
13316 if test "x$as_val" = x""yes; then :
13317 cat >>confdefs.h <<_ACEOF
13318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13325 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13327 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13328 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13331 ac_check_lib_save_LIBS=$LIBS
13332 LIBS="-lpng -lz -lm $LIBS"
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13342 char png_get_channels ();
13346 return png_get_channels ();
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 ac_cv_lib_png_png_get_channels=yes
13354 ac_cv_lib_png_png_get_channels=no
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LIBS=$ac_check_lib_save_LIBS
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13361 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13362 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13369 if test "${HAVE_PNG}" = "yes"; then
13371 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13373 LIBPNG="-lpng -lz -lm"
13378 ### Use -ltiff if available, unless `--with-tiff=no'.
13381 if test "${HAVE_X11}" = "yes"; then
13382 if test "${with_tiff}" != "no"; then
13383 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13384 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13386 # At least one tiff package requires the jpeg library.
13387 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13389 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13390 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-ltiff $tifflibs $LIBS"
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13404 char TIFFGetVersion ();
13408 return TIFFGetVersion ();
13413 if ac_fn_c_try_link "$LINENO"; then :
13414 ac_cv_lib_tiff_TIFFGetVersion=yes
13416 ac_cv_lib_tiff_TIFFGetVersion=no
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13423 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13424 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13433 if test "${HAVE_TIFF}" = "yes"; then
13435 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13442 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13445 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13446 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13447 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13449 # Earlier versions can crash Emacs.
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13451 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13453 $as_echo_n "(cached) " >&6
13455 ac_check_lib_save_LIBS=$LIBS
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13460 /* Override any GCC internal prototype to avoid an error.
13461 Use char because int might match the return type of a GCC
13462 builtin and then its argument prototype would still apply. */
13466 char EGifPutExtensionLast ();
13470 return EGifPutExtensionLast ();
13475 if ac_fn_c_try_link "$LINENO"; then :
13476 ac_cv_lib_gif_EGifPutExtensionLast=yes
13478 ac_cv_lib_gif_EGifPutExtensionLast=no
13480 rm -f core conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13485 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13486 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13496 if test "$HAVE_GIF" = yes; then
13498 elif test "$HAVE_GIF" = maybe; then
13499 # If gif_lib.h but no libgif, try libungif.
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13501 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13502 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13505 ac_check_lib_save_LIBS=$LIBS
13506 LIBS="-lungif $LIBS"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13516 char EGifPutExtensionLast ();
13520 return EGifPutExtensionLast ();
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13528 ac_cv_lib_ungif_EGifPutExtensionLast=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13535 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13536 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13542 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13545 if test "${HAVE_GIF}" = "yes"; then
13547 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13553 if test "${HAVE_X11}" = "yes"; then
13556 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13557 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13558 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13559 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13560 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13561 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13562 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13563 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13564 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13565 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13567 if test "X${MISSING}" != X; then
13568 as_fn_error "The following required libraries were not found:
13570 Maybe some development libraries/packages are missing?
13571 If you don't want to link with them give
13573 as options to configure" "$LINENO" 5
13577 ### Use -lgpm if available, unless `--with-gpm=no'.
13580 if test "${with_gpm}" != "no"; then
13581 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13582 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13584 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13585 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
13588 ac_check_lib_save_LIBS=$LIBS
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13593 /* Override any GCC internal prototype to avoid an error.
13594 Use char because int might match the return type of a GCC
13595 builtin and then its argument prototype would still apply. */
13603 return Gpm_Open ();
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 ac_cv_lib_gpm_Gpm_Open=yes
13611 ac_cv_lib_gpm_Gpm_Open=no
13613 rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13618 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13619 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13627 if test "${HAVE_GPM}" = "yes"; then
13629 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13636 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13637 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13639 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13646 ### Use NeXTstep API to implement GUI.
13647 if test "${HAVE_NS}" = "yes"; then
13649 $as_echo "#define HAVE_NS 1" >>confdefs.h
13651 if test "${NS_IMPL_COCOA}" = "yes"; then
13653 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13656 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13658 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13660 # See also .m.o rule in Makefile.in */
13661 # FIXME: are all these flags really needed? Document here why. */
13662 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13663 ## Extra CFLAGS applied to src/*.m files.
13664 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"
13666 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13668 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13671 # We also have mouse menus.
13677 ### Use session management (-lSM -lICE) if available
13680 if test "${HAVE_X11}" = "yes"; then
13681 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13682 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13684 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13685 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lSM -lICE $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13699 char SmcOpenConnection ();
13703 return SmcOpenConnection ();
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 ac_cv_lib_SM_SmcOpenConnection=yes
13711 ac_cv_lib_SM_SmcOpenConnection=no
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13718 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13719 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13727 if test "${HAVE_X_SM}" = "yes"; then
13729 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13731 LIBXSM="-lSM -lICE"
13734 *) LIBS="$LIBXSM $LIBS" ;;
13740 ### Use libxml (-lxml2) if available
13741 if test "${with_xml2}" != "no"; then
13742 ### I'm not sure what the version number should be, so I just guessed.
13746 # Extract the first word of "pkg-config", so it can be a program name with args.
13747 set dummy pkg-config; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13753 case $PKG_CONFIG in
13755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13777 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13778 if test -n "$PKG_CONFIG"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13780 $as_echo "$PKG_CONFIG" >&6; }
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13788 if test "$PKG_CONFIG" = "no" ; then
13791 PKG_CONFIG_MIN_VERSION=0.9.0
13792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13794 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13796 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 $as_echo "yes" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13802 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13803 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13805 $as_echo "$LIBXML2_CFLAGS" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13808 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13809 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13811 $as_echo "$LIBXML2_LIBS" >&6; }
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814 $as_echo "no" >&6; }
13817 ## If we have a custom action on failure, don't print errors, but
13818 ## do set a variable so people can do so.
13819 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13831 if test $succeeded = yes; then
13837 if test "${HAVE_LIBXML2}" = "yes"; then
13838 LIBS="$LIBXML2_LIBS $LIBS"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13840 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13841 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lxml2 $LIBS"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13855 char htmlReadMemory ();
13859 return htmlReadMemory ();
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 ac_cv_lib_xml2_htmlReadMemory=yes
13867 ac_cv_lib_xml2_htmlReadMemory=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13874 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13875 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13881 if test "${HAVE_LIBXML2}" = "yes"; then
13883 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13894 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13896 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13897 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 emacs_cv_netdb_declares_h_errno=yes
13914 emacs_cv_netdb_declares_h_errno=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13920 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13921 if test $emacs_cv_netdb_declares_h_errno = yes; then
13923 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13927 # fmod, logb, and frexp are found in -lm on most systems.
13928 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13930 $as_echo_n "checking for sqrt in -lm... " >&6; }
13931 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13934 ac_check_lib_save_LIBS=$LIBS
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 ac_cv_lib_m_sqrt=yes
13957 ac_cv_lib_m_sqrt=no
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13964 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13965 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_LIBM 1
13975 # Check for mail-locking functions in a "mail" library. Probably this should
13976 # have the same check as for liblockfile below.
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13978 $as_echo_n "checking for maillock in -lmail... " >&6; }
13979 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13980 $as_echo_n "(cached) " >&6
13982 ac_check_lib_save_LIBS=$LIBS
13983 LIBS="-lmail $LIBS"
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13987 /* Override any GCC internal prototype to avoid an error.
13988 Use char because int might match the return type of a GCC
13989 builtin and then its argument prototype would still apply. */
13997 return maillock ();
14002 if ac_fn_c_try_link "$LINENO"; then :
14003 ac_cv_lib_mail_maillock=yes
14005 ac_cv_lib_mail_maillock=no
14007 rm -f core conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14012 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14013 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14019 if test $have_mail = yes; then
14021 LIBS="$LIBS_MAIL $LIBS"
14023 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14029 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14030 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-llockfile $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14048 return maillock ();
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_lockfile_maillock=yes
14056 ac_cv_lib_lockfile_maillock=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14063 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14064 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14070 if test $have_lockfile = yes; then
14071 LIBS_MAIL=-llockfile
14072 LIBS="$LIBS_MAIL $LIBS"
14074 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14077 # If we have the shared liblockfile, assume we must use it for mail
14078 # locking (e.g. Debian). If we couldn't link against liblockfile
14079 # (no liblockfile.a installed), ensure that we don't need to.
14080 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14081 set dummy liblockfile.so; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14083 $as_echo_n "checking for $ac_word... " >&6; }
14084 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14087 if test -n "$liblockfile"; then
14088 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14092 for as_dir in $as_dummy
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_liblockfile="yes"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14106 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14109 liblockfile=$ac_cv_prog_liblockfile
14110 if test -n "$liblockfile"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14112 $as_echo "$liblockfile" >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14119 if test $ac_cv_prog_liblockfile = yes; then
14120 as_fn_error "Shared liblockfile found but can't link against it.
14121 This probably means that movemail could lose mail.
14122 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14125 for ac_func in touchlock
14127 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14128 if test "x$ac_cv_func_touchlock" = x""yes; then :
14129 cat >>confdefs.h <<_ACEOF
14130 #define HAVE_TOUCHLOCK 1
14136 for ac_header in maillock.h
14138 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14139 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14140 cat >>confdefs.h <<_ACEOF
14141 #define HAVE_MAILLOCK_H 1
14150 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14151 ## interlock access to the mail spool. The alternative is a lock file named
14152 ## /usr/spool/mail/$USER.lock.
14155 aix4-2) mail_lock="lockf" ;;
14157 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14159 ## On GNU/Linux systems, both methods are used by various mail programs.
14160 ## I assume most people are using newer mailers that have heard of flock.
14161 ## Change this if you need to.
14162 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14163 ## configure gets the right answers, and that means *NOT* using flock.
14164 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14165 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14166 ## Debian maintainer hasn't provided a clean fix for Emacs.
14167 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14168 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14169 ## correct logic. -- fx
14170 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14171 ## liblockfile is a Free Software replacement for libmail, used on
14172 ## Debian systems and elsewhere. -rfr.
14175 if test $have_mail = yes || test $have_lockfile = yes; then
14176 test $ac_cv_header_maillock_h = yes && mail_lock=no
14182 case "$mail_lock" in
14184 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14188 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14191 *) BLESSMAIL_TARGET="need-blessmail" ;;
14196 for ac_func in gethostname getdomainname \
14197 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14198 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14199 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14200 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14201 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14202 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14203 gai_strerror mkstemp getline getdelim mremap fsync sync \
14204 difftime mempcpy mblen mbrlen posix_memalign \
14205 cfmakeraw cfsetspeed copysign __executable_start
14207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14209 eval as_val=\$$as_ac_var
14210 if test "x$as_val" = x""yes; then :
14211 cat >>confdefs.h <<_ACEOF
14212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14220 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14221 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14230 __builtin_unwind_init ();
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 emacs_cv_func___builtin_unwind_init=yes
14238 emacs_cv_func___builtin_unwind_init=no
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14244 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14245 if test $emacs_cv_func___builtin_unwind_init = yes; then
14247 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14251 for ac_header in sys/un.h
14253 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14254 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_SYS_UN_H 1
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14265 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14266 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 #include <sys/types.h> /* for off_t */
14277 int (*fp) (FILE *, off_t, int) = fseeko;
14278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 ac_cv_sys_largefile_source=no; break
14286 rm -f core conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 #define _LARGEFILE_SOURCE 1
14291 #include <sys/types.h> /* for off_t */
14296 int (*fp) (FILE *, off_t, int) = fseeko;
14297 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14302 if ac_fn_c_try_link "$LINENO"; then :
14303 ac_cv_sys_largefile_source=1; break
14305 rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307 ac_cv_sys_largefile_source=unknown
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14312 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14313 case $ac_cv_sys_largefile_source in #(
14316 cat >>confdefs.h <<_ACEOF
14317 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14323 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14324 # in glibc 2.1.3, but that breaks too many other things.
14325 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14326 if test $ac_cv_sys_largefile_source != unknown; then
14328 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14334 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14335 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14338 # Use it with a single arg.
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 $ac_includes_default
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 ac_cv_func_getpgrp_void=no
14353 ac_cv_func_getpgrp_void=yes
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14359 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14360 if test $ac_cv_func_getpgrp_void = yes; then
14362 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14368 # Configure gnulib.
14371 for ac_func in grantpt
14373 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14374 if test "x$ac_cv_func_grantpt" = x""yes; then :
14375 cat >>confdefs.h <<_ACEOF
14376 #define HAVE_GRANTPT 1
14383 # PTY-related GNU extensions.
14384 for ac_func in getpt
14386 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14387 if test "x$ac_cv_func_getpt" = x""yes; then :
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_GETPT 1
14396 # Check this now, so that we will NOT find the above functions in ncurses.
14397 # That is because we have not set up to link ncurses in lib-src.
14398 # It's better to believe a function is not available
14399 # than to expect to find it in ncurses.
14400 # Also we need tputs and friends to be able to build at all.
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14402 $as_echo_n "checking for library containing tputs... " >&6; }
14403 # Run a test program that contains a call to tputs, a call that is
14404 # never executed. This tests whether a pre-'main' dynamic linker
14405 # works with the library. It's too much trouble to actually call
14406 # tputs in the test program, due to portability hassles. When
14407 # cross-compiling, assume the test program will run if it links.
14409 # Maybe curses should be tried earlier?
14410 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14411 for tputs_library in '' ncurses terminfo termcap curses; do
14413 if test -z "$tputs_library"; then
14415 msg='none required'
14417 LIBS_TERMCAP=-l$tputs_library
14419 LIBS="$LIBS_TERMCAP $LIBS"
14421 if test "$cross_compiling" = yes; then :
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14425 extern void tputs (const char *, int, int (*)(int));
14426 int main (int argc, char **argv)
14429 tputs (argv[0], 0, 0);
14434 if ac_fn_c_try_link "$LINENO"; then :
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14445 extern void tputs (const char *, int, int (*)(int));
14446 int main (int argc, char **argv)
14449 tputs (argv[0], 0, 0);
14454 if ac_fn_c_try_run "$LINENO"; then :
14459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14460 conftest.$ac_objext conftest.beam conftest.$ac_ext
14464 if test "X$msg" != Xno; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14469 $as_echo "$msg" >&6; }
14470 if test "X$msg" = Xno; then
14471 as_fn_error "The required function \`tputs' was not found in any library.
14472 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14473 Please try installing whichever of these libraries is most appropriate
14474 for your system, together with its header files.
14475 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14477 # Must define this when any termcap library is found.
14479 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14481 ## FIXME This was the cpp logic, but I am not sure it is right.
14482 ## The above test has not necessarily found libncurses.
14483 HAVE_LIBNCURSES=yes
14485 ## Use terminfo instead of termcap?
14486 ## Note only system files NOT using terminfo are:
14487 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14488 ## darwin|gnu without ncurses.
14491 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14492 ## hpux10-20: Use the system provided termcap(3) library.
14493 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14494 ## is necessary. Otherwise Emacs dumps core when run -nw.
14495 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14497 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14498 ## The ncurses library has been moved out of the System framework in
14499 ## Mac OS X 10.2. So if configure detects it, set the command-line
14500 ## option to use it.
14502 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14503 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14505 LIBS_TERMCAP="-lncurses"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14511 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14512 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <osreldate.h>
14521 #if __FreeBSD_version < 400000
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 emacs_cv_freebsd_terminfo=yes
14532 emacs_cv_freebsd_terminfo=no
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14540 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14542 if test $emacs_cv_freebsd_terminfo = yes; then
14544 LIBS_TERMCAP="-lncurses"
14546 LIBS_TERMCAP="-ltermcap"
14551 if test $ac_cv_search_tputs = -lterminfo; then
14553 LIBS_TERMCAP="-lterminfo"
14555 LIBS_TERMCAP="-ltermcap"
14562 ## hpux: Make sure we get select from libc rather than from libcurses
14563 ## because libcurses on HPUX 10.10 has a broken version of select.
14564 ## We used to use -lc -lcurses, but this may be cleaner.
14565 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14567 openbsd) LIBS_TERMCAP="-lncurses" ;;
14569 ## Must use system termcap, if we use any termcap. It does special things.
14570 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14573 TERMCAP_OBJ=tparam.o
14574 if test $TERMINFO = yes; then
14576 $as_echo "#define TERMINFO 1" >>confdefs.h
14578 TERMCAP_OBJ=terminfo.o
14584 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #include <netinet/in.h>
14589 #include <arpa/nameser.h>
14590 #include <resolv.h>
14599 if ac_fn_c_try_link "$LINENO"; then :
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606 if test "$have_res_init" = no; then
14608 LIBS="$LIBS -lresolv"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14610 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <netinet/in.h>
14614 #include <arpa/nameser.h>
14615 #include <resolv.h>
14624 if ac_fn_c_try_link "$LINENO"; then :
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14632 $as_echo "$have_res_init" >&6; }
14633 if test "$have_res_init" = yes ; then
14639 if test "$have_res_init" = yes; then
14641 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14645 # Do we need the Hesiod library to provide the support routines?
14647 if test "$with_hesiod" != no ; then
14648 # Don't set $LIBS here -- see comments above. FIXME which comments?
14649 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14650 if test "x$ac_cv_func_res_send" = x""yes; then :
14653 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14654 if test "x$ac_cv_func___res_send" = x""yes; then :
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14658 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14659 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14662 ac_check_lib_save_LIBS=$LIBS
14663 LIBS="-lresolv $LIBS"
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14667 /* Override any GCC internal prototype to avoid an error.
14668 Use char because int might match the return type of a GCC
14669 builtin and then its argument prototype would still apply. */
14677 return res_send ();
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_lib_resolv_res_send=yes
14685 ac_cv_lib_resolv_res_send=no
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14692 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14693 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14697 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14698 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14699 $as_echo_n "(cached) " >&6
14701 ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-lresolv $LIBS"
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14706 /* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
14712 char __res_send ();
14716 return __res_send ();
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_lib_resolv___res_send=yes
14724 ac_cv_lib_resolv___res_send=no
14726 rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14731 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14732 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14742 if test "$resolv" = yes ; then
14747 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14748 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14752 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14753 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14756 ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-lhesiod $RESOLVLIB $LIBS"
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14761 /* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14767 char hes_getmailhost ();
14771 return hes_getmailhost ();
14776 if ac_fn_c_try_link "$LINENO"; then :
14777 ac_cv_lib_hesiod_hes_getmailhost=yes
14779 ac_cv_lib_hesiod_hes_getmailhost=no
14781 rm -f core conftest.err conftest.$ac_objext \
14782 conftest$ac_exeext conftest.$ac_ext
14783 LIBS=$ac_check_lib_save_LIBS
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14786 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14787 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14796 if test x"$hesiod" = xyes; then
14798 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14805 # Do we need libresolv (due to res_init or Hesiod)?
14806 if test "$resolv" = yes ; then
14808 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14816 # These tell us which Kerberos-related libraries to use.
14823 if test "${with_kerberos}" != no; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14825 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14826 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lcom_err $LIBS"
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14849 if ac_fn_c_try_link "$LINENO"; then :
14850 ac_cv_lib_com_err_com_err=yes
14852 ac_cv_lib_com_err_com_err=no
14854 rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14856 LIBS=$ac_check_lib_save_LIBS
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14859 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14860 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14866 if test $have_com_err = yes; then
14867 COM_ERRLIB=-lcom_err
14868 LIBS="$COM_ERRLIB $LIBS"
14870 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14874 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14875 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lcrypto $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14889 char mit_des_cbc_encrypt ();
14893 return mit_des_cbc_encrypt ();
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14901 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14908 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14909 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14915 if test $have_crypto = yes; then
14917 LIBS="$CRYPTOLIB $LIBS"
14919 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14923 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14924 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14925 $as_echo_n "(cached) " >&6
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lk5crypto $LIBS"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14932 /* Override any GCC internal prototype to avoid an error.
14933 Use char because int might match the return type of a GCC
14934 builtin and then its argument prototype would still apply. */
14938 char mit_des_cbc_encrypt ();
14942 return mit_des_cbc_encrypt ();
14947 if ac_fn_c_try_link "$LINENO"; then :
14948 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14950 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14954 LIBS=$ac_check_lib_save_LIBS
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14957 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14958 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14964 if test $have_k5crypto = yes; then
14965 CRYPTOLIB=-lk5crypto
14966 LIBS="$CRYPTOLIB $LIBS"
14968 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14972 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14973 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lkrb5 $LIBS"
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14987 char krb5_init_context ();
14991 return krb5_init_context ();
14996 if ac_fn_c_try_link "$LINENO"; then :
14997 ac_cv_lib_krb5_krb5_init_context=yes
14999 ac_cv_lib_krb5_krb5_init_context=no
15001 rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
15003 LIBS=$ac_check_lib_save_LIBS
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15006 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15007 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15013 if test $have_krb5=yes; then
15015 LIBS="$KRB5LIB $LIBS"
15017 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15020 if test "${with_kerberos5}" = no; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15022 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15023 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15024 $as_echo_n "(cached) " >&6
15026 ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-ldes425 $LIBS"
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15037 char des_cbc_encrypt ();
15041 return des_cbc_encrypt ();
15046 if ac_fn_c_try_link "$LINENO"; then :
15047 ac_cv_lib_des425_des_cbc_encrypt=yes
15049 ac_cv_lib_des425_des_cbc_encrypt=no
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15056 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15057 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15063 if test $have_des425 = yes; then
15065 LIBS="$DESLIB $LIBS"
15067 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15071 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15072 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15073 $as_echo_n "(cached) " >&6
15075 ac_check_lib_save_LIBS=$LIBS
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15086 char des_cbc_encrypt ();
15090 return des_cbc_encrypt ();
15095 if ac_fn_c_try_link "$LINENO"; then :
15096 ac_cv_lib_des_des_cbc_encrypt=yes
15098 ac_cv_lib_des_des_cbc_encrypt=no
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15105 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15106 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15112 if test $have_des = yes; then
15114 LIBS="$DESLIB $LIBS"
15116 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15121 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15122 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15125 ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lkrb4 $LIBS"
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15136 char krb_get_cred ();
15140 return krb_get_cred ();
15145 if ac_fn_c_try_link "$LINENO"; then :
15146 ac_cv_lib_krb4_krb_get_cred=yes
15148 ac_cv_lib_krb4_krb_get_cred=no
15150 rm -f core conftest.err conftest.$ac_objext \
15151 conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15155 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15156 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15162 if test $have_krb4 = yes; then
15164 LIBS="$KRB4LIB $LIBS"
15166 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15170 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15171 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15172 $as_echo_n "(cached) " >&6
15174 ac_check_lib_save_LIBS=$LIBS
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15185 char krb_get_cred ();
15189 return krb_get_cred ();
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_lib_krb_krb_get_cred=yes
15197 ac_cv_lib_krb_krb_get_cred=no
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15204 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15205 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15211 if test $have_krb = yes; then
15213 LIBS="$KRB4LIB $LIBS"
15215 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15221 if test "${with_kerberos5}" != no; then
15222 for ac_header in krb5.h
15224 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15225 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_KRB5_H 1
15229 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15231 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15233 cat >>confdefs.h <<_ACEOF
15234 #define HAVE_KRB5_ERROR_TEXT 1
15239 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15241 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_KRB5_ERROR_E_TEXT 1
15255 for ac_header in des.h
15257 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15258 if test "x$ac_cv_header_des_h" = x""yes; then :
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_DES_H 1
15264 for ac_header in kerberosIV/des.h
15266 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15267 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15268 cat >>confdefs.h <<_ACEOF
15269 #define HAVE_KERBEROSIV_DES_H 1
15273 for ac_header in kerberos/des.h
15275 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15276 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_KERBEROS_DES_H 1
15293 for ac_header in krb.h
15295 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15296 if test "x$ac_cv_header_krb_h" = x""yes; then :
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_KRB_H 1
15302 for ac_header in kerberosIV/krb.h
15304 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15306 cat >>confdefs.h <<_ACEOF
15307 #define HAVE_KERBEROSIV_KRB_H 1
15311 for ac_header in kerberos/krb.h
15313 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15314 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15315 cat >>confdefs.h <<_ACEOF
15316 #define HAVE_KERBEROS_KRB_H 1
15332 for ac_header in com_err.h
15334 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15335 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_COM_ERR_H 1
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15353 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15354 if test "${emacs_cv_localtime_cache+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15357 if test x$ac_cv_func_tzset = xyes; then
15358 if test "$cross_compiling" = yes; then :
15359 # If we have tzset, assume the worst when cross-compiling.
15360 emacs_cv_localtime_cache=yes
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15365 char TZ_GMT0[] = "TZ=GMT0";
15366 char TZ_PST8[] = "TZ=PST8";
15369 time_t now = time ((time_t *) 0);
15370 int hour_GMT0, hour_unset;
15371 if (putenv (TZ_GMT0) != 0)
15373 hour_GMT0 = localtime (&now)->tm_hour;
15375 hour_unset = localtime (&now)->tm_hour;
15376 if (putenv (TZ_PST8) != 0)
15378 if (localtime (&now)->tm_hour == hour_GMT0)
15381 if (localtime (&now)->tm_hour != hour_unset)
15386 if ac_fn_c_try_run "$LINENO"; then :
15387 emacs_cv_localtime_cache=no
15389 emacs_cv_localtime_cache=yes
15391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15392 conftest.$ac_objext conftest.beam conftest.$ac_ext
15396 # If we lack tzset, report that localtime does not cache TZ,
15397 # since we can't invalidate the cache if we don't have tzset.
15398 emacs_cv_localtime_cache=no
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15402 $as_echo "$emacs_cv_localtime_cache" >&6; }
15403 if test $emacs_cv_localtime_cache = yes; then
15405 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15409 if test "x$HAVE_TIMEVAL" = xyes; then
15410 for ac_func in gettimeofday
15412 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15413 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15414 cat >>confdefs.h <<_ACEOF
15415 #define HAVE_GETTIMEOFDAY 1
15421 if test $ac_cv_func_gettimeofday = yes; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15423 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15424 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15425 $as_echo_n "(cached) " >&6
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15430 #ifdef TIME_WITH_SYS_TIME
15431 #include <sys/time.h>
15434 #ifdef HAVE_SYS_TIME_H
15435 #include <sys/time.h>
15443 struct timeval time;
15444 gettimeofday (&time, 0);
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450 emacs_cv_gettimeofday_two_arguments=yes
15452 emacs_cv_gettimeofday_two_arguments=no
15454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15457 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15458 if test $emacs_cv_gettimeofday_two_arguments = no; then
15460 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15467 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15468 if test "x$ac_cv_func_socket" = x""yes; then :
15474 if test $ok_so_far = yes; then
15475 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15476 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15484 if test $ok_so_far = yes; then
15485 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15486 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15494 if test $ok_so_far = yes; then
15496 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15500 if test -f /usr/lpp/X11/bin/smt.exp; then
15502 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15507 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15508 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15510 $as_echo "yes" >&6; }
15512 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15519 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15520 if test "x$ac_cv_type_pid_t" = x""yes; then :
15524 cat >>confdefs.h <<_ACEOF
15530 for ac_header in vfork.h
15532 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15534 cat >>confdefs.h <<_ACEOF
15535 #define HAVE_VFORK_H 1
15542 for ac_func in fork vfork
15544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15546 eval as_val=\$$as_ac_var
15547 if test "x$as_val" = x""yes; then :
15548 cat >>confdefs.h <<_ACEOF
15549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15555 if test "x$ac_cv_func_fork" = xyes; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15557 $as_echo_n "checking for working fork... " >&6; }
15558 if test "${ac_cv_func_fork_works+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15561 if test "$cross_compiling" = yes; then :
15562 ac_cv_func_fork_works=cross
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 $ac_includes_default
15571 /* By Ruediger Kuhlmann. */
15572 return fork () < 0;
15578 if ac_fn_c_try_run "$LINENO"; then :
15579 ac_cv_func_fork_works=yes
15581 ac_cv_func_fork_works=no
15583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15584 conftest.$ac_objext conftest.beam conftest.$ac_ext
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15589 $as_echo "$ac_cv_func_fork_works" >&6; }
15592 ac_cv_func_fork_works=$ac_cv_func_fork
15594 if test "x$ac_cv_func_fork_works" = xcross; then
15596 *-*-amigaos* | *-*-msdosdjgpp*)
15597 # Override, as these systems have only a dummy fork() stub
15598 ac_cv_func_fork_works=no
15601 ac_cv_func_fork_works=yes
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15605 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15607 ac_cv_func_vfork_works=$ac_cv_func_vfork
15608 if test "x$ac_cv_func_vfork" = xyes; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15610 $as_echo_n "checking for working vfork... " >&6; }
15611 if test "${ac_cv_func_vfork_works+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15614 if test "$cross_compiling" = yes; then :
15615 ac_cv_func_vfork_works=cross
15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618 /* end confdefs.h. */
15619 /* Thanks to Paul Eggert for this test. */
15620 $ac_includes_default
15621 #include <sys/wait.h>
15622 #ifdef HAVE_VFORK_H
15623 # include <vfork.h>
15625 /* On some sparc systems, changes by the child to local and incoming
15626 argument registers are propagated back to the parent. The compiler
15627 is told about this with #include <vfork.h>, but some compilers
15628 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15629 static variable whose address is put into a register that is
15630 clobbered by the vfork. */
15633 sparc_address_test (int arg)
15635 sparc_address_test (arg) int arg;
15638 static pid_t child;
15656 pid_t parent = getpid ();
15659 sparc_address_test (0);
15664 /* Here is another test for sparc vfork register problems. This
15665 test uses lots of local variables, at least as many local
15666 variables as main has allocated so far including compiler
15667 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15668 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15669 reuse the register of parent for one of the local variables,
15670 since it will think that parent can't possibly be used any more
15671 in this routine. Assigning to the local variable will thus
15672 munge parent in the parent process. */
15674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15676 /* Convince the compiler that p..p7 are live; otherwise, it might
15677 use the same hardware register for all 8 local variables. */
15678 if (p != p1 || p != p2 || p != p3 || p != p4
15679 || p != p5 || p != p6 || p != p7)
15682 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15683 from child file descriptors. If the child closes a descriptor
15684 before it execs or exits, this munges the parent's descriptor
15685 as well. Test for this by closing stdout in the child. */
15686 _exit(close(fileno(stdout)) != 0);
15691 while (wait(&status) != child)
15694 /* Was there some problem with vforking? */
15697 /* Did the child fail? (This shouldn't happen.) */
15700 /* Did the vfork/compiler bug occur? */
15701 || parent != getpid()
15703 /* Did the file descriptor bug occur? */
15704 || fstat(fileno(stdout), &st) != 0
15709 if ac_fn_c_try_run "$LINENO"; then :
15710 ac_cv_func_vfork_works=yes
15712 ac_cv_func_vfork_works=no
15714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15715 conftest.$ac_objext conftest.beam conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15720 $as_echo "$ac_cv_func_vfork_works" >&6; }
15723 if test "x$ac_cv_func_fork_works" = xcross; then
15724 ac_cv_func_vfork_works=$ac_cv_func_vfork
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15726 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15729 if test "x$ac_cv_func_vfork_works" = xyes; then
15731 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15735 $as_echo "#define vfork fork" >>confdefs.h
15738 if test "x$ac_cv_func_fork_works" = xyes; then
15740 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15745 for ac_func in snprintf
15747 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15748 if test "x$ac_cv_func_snprintf" = x""yes; then :
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_SNPRINTF 1
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15758 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15759 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15760 $as_echo_n "(cached) " >&6
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 #include <langinfo.h>
15768 char* cs = nl_langinfo(CODESET);
15773 if ac_fn_c_try_link "$LINENO"; then :
15774 emacs_cv_langinfo_codeset=yes
15776 emacs_cv_langinfo_codeset=no
15778 rm -f core conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15783 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15784 if test $emacs_cv_langinfo_codeset = yes; then
15786 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15791 $as_echo_n "checking for mbstate_t... " >&6; }
15792 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 $ac_includes_default
15798 # include <wchar.h>
15802 mbstate_t x; return sizeof x;
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 ac_cv_type_mbstate_t=yes
15810 ac_cv_type_mbstate_t=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15815 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15816 if test $ac_cv_type_mbstate_t = yes; then
15818 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15822 $as_echo "#define mbstate_t int" >>confdefs.h
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15827 $as_echo_n "checking for C restricted array declarations... " >&6; }
15828 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 void fred (int x[__restrict]);
15842 if ac_fn_c_try_compile "$LINENO"; then :
15843 emacs_cv_c_restrict_arr=yes
15845 emacs_cv_c_restrict_arr=no
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15850 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15851 if test "$emacs_cv_c_restrict_arr" = yes; then
15853 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15858 # Set up the CFLAGS for real compilation, so we can substitute it.
15859 CFLAGS="$REAL_CFLAGS"
15860 CPPFLAGS="$REAL_CPPFLAGS"
15862 ## Hack to detect a buggy GCC version.
15863 if test "x$GCC" = xyes \
15864 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15865 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15866 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15867 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15870 version=$PACKAGE_VERSION
15872 ### Specify what sort of things we'll be editing into Makefile and config.h.
15873 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15897 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15898 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15899 ## end of LIBX_BASE, but nothing ever set it.
15904 ## Used in lwlib/Makefile.in.
15906 if test -n "${machfile}"; then
15907 M_FILE="\$(srcdir)/${machfile}"
15911 S_FILE="\$(srcdir)/${opsysfile}"
15922 cat >>confdefs.h <<_ACEOF
15923 #define EMACS_CONFIGURATION "${canonical}"
15927 cat >>confdefs.h <<_ACEOF
15928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15931 if test -n "$machfile"; then
15933 cat >>confdefs.h <<_ACEOF
15934 #define config_machfile "${machfile}"
15939 cat >>confdefs.h <<_ACEOF
15940 #define config_opsysfile "${opsysfile}"
15947 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15949 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15952 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15954 if test "$HAVE_XFT" = "yes"; then
15955 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15956 elif test "$HAVE_FREETYPE" = "yes"; then
15957 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15967 if test "${USE_X_TOOLKIT}" != "none" ; then
15968 WIDGET_OBJ=widget.o
15970 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15972 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15974 $as_echo "#define USE_LUCID 1" >>confdefs.h
15976 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15978 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15983 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15984 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15988 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15989 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15990 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15994 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15995 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15998 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16004 case "$USE_X_TOOLKIT" in
16005 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16006 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16007 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16011 if test "$USE_X_TOOLKIT" = "none"; then
16012 LIBXT_OTHER="\$(LIBXSM)"
16013 OLDXMENU_TARGET="really-oldXMenu"
16015 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16016 OLDXMENU_TARGET="really-lwlib"
16020 ## The X Menu stuff is present in the X10 distribution, but missing
16021 ## from X11. If we have X10, just use the installed library;
16022 ## otherwise, use our own copy.
16023 if test "${HAVE_X11}" = "yes" ; then
16025 $as_echo "#define HAVE_X11 1" >>confdefs.h
16028 if test "$USE_X_TOOLKIT" = "none"; then
16029 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16031 OLDXMENU="\${lwlibdir}/liblw.a"
16033 LIBXMENU="\$(OLDXMENU)"
16034 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16035 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16037 ## For a syntactically valid Makefile; not actually used for anything.
16038 ## See comments in src/Makefile.in.
16040 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16041 if test "${HAVE_X_WINDOWS}" = "yes"; then
16050 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16063 if test "${HAVE_MENUS}" = "yes" ; then
16065 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16069 if test "${GNU_MALLOC}" = "yes" ; then
16071 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16076 if test "${REL_ALLOC}" = "yes" ; then
16078 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16081 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16085 if test "$opsys" = "cygwin"; then
16086 CYGWIN_OBJ="sheap.o"
16087 ## Cygwin differs because of its unexec().
16089 POST_ALLOC_OBJ=lastfile.o
16092 PRE_ALLOC_OBJ=lastfile.o
16099 # Configure gnulib here, now that we know LIBS.
16100 >>>>>>> MERGE-SOURCE
16112 LIBC_FATAL_STDERR_=1
16113 export LIBC_FATAL_STDERR_
16115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16116 # for constant arguments. Useless!
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16118 $as_echo_n "checking for working alloca.h... " >&6; }
16119 if test "${ac_cv_working_alloca_h+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 #include <alloca.h>
16128 char *p = (char *) alloca (2 * sizeof (int));
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 ac_cv_working_alloca_h=yes
16137 ac_cv_working_alloca_h=no
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16143 $as_echo "$ac_cv_working_alloca_h" >&6; }
16144 if test $ac_cv_working_alloca_h = yes; then
16146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16151 $as_echo_n "checking for alloca... " >&6; }
16152 if test "${ac_cv_func_alloca_works+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16158 # define alloca __builtin_alloca
16161 # include <malloc.h>
16162 # define alloca _alloca
16164 # ifdef HAVE_ALLOCA_H
16165 # include <alloca.h>
16170 # ifndef alloca /* predefined by HP cc +Olibcalls */
16181 char *p = (char *) alloca (1);
16187 if ac_fn_c_try_link "$LINENO"; then :
16188 ac_cv_func_alloca_works=yes
16190 ac_cv_func_alloca_works=no
16192 rm -f core conftest.err conftest.$ac_objext \
16193 conftest$ac_exeext conftest.$ac_ext
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16196 $as_echo "$ac_cv_func_alloca_works" >&6; }
16198 if test $ac_cv_func_alloca_works = yes; then
16200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16204 # that cause trouble. Some versions do not even contain alloca or
16205 # contain a buggy version. If you still want to use their alloca,
16206 # use ar to extract alloca.o from them instead of compiling alloca.c.
16212 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16214 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16218 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16219 if test "${ac_cv_os_cray+set}" = set; then :
16220 $as_echo_n "(cached) " >&6
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #if defined CRAY && ! defined CRAY2
16231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16232 $EGREP "webecray" >/dev/null 2>&1; then :
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16241 $as_echo "$ac_cv_os_cray" >&6; }
16242 if test $ac_cv_os_cray = yes; then
16243 for ac_func in _getb67 GETB67 getb67; do
16244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16246 eval as_val=\$$as_ac_var
16247 if test "x$as_val" = x""yes; then :
16249 cat >>confdefs.h <<_ACEOF
16250 #define CRAY_STACKSEG_END $ac_func
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16260 $as_echo_n "checking stack direction for C alloca... " >&6; }
16261 if test "${ac_cv_c_stack_direction+set}" = set; then :
16262 $as_echo_n "(cached) " >&6
16264 if test "$cross_compiling" = yes; then :
16265 ac_cv_c_stack_direction=0
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 $ac_includes_default
16271 find_stack_direction (int *addr, int depth)
16273 int dir, dummy = 0;
16276 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16277 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16278 return dir + dummy;
16282 main (int argc, char **argv)
16284 return find_stack_direction (0, argc + !argv + 20) < 0;
16287 if ac_fn_c_try_run "$LINENO"; then :
16288 ac_cv_c_stack_direction=1
16290 ac_cv_c_stack_direction=-1
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16293 conftest.$ac_objext conftest.beam conftest.$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16298 $as_echo "$ac_cv_c_stack_direction" >&6; }
16299 cat >>confdefs.h <<_ACEOF
16300 #define STACK_DIRECTION $ac_cv_c_stack_direction
16309 for ac_func in $ac_func_list
16311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16312 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16313 eval as_val=\$$as_ac_var
16314 if test "x$as_val" = x""yes; then :
16315 cat >>confdefs.h <<_ACEOF
16316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16326 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16327 if test "${ac_cv_c_bigendian+set}" = set; then :
16328 $as_echo_n "(cached) " >&6
16330 ac_cv_c_bigendian=unknown
16331 # See if we're dealing with a universal compiler.
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #ifndef __APPLE_CC__
16335 not a universal capable compiler
16340 if ac_fn_c_try_compile "$LINENO"; then :
16342 # Check for potential -arch flags. It is not universal unless
16343 # there are at least two -arch flags with different values.
16346 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16347 if test -n "$ac_prev"; then
16349 i?86 | x86_64 | ppc | ppc64)
16350 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16353 ac_cv_c_bigendian=universal
16359 elif test "x$ac_word" = "x-arch"; then
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 if test $ac_cv_c_bigendian = unknown; then
16366 # See if sys/param.h defines the BYTE_ORDER macro.
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 #include <sys/types.h>
16370 #include <sys/param.h>
16375 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16376 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16378 bogus endian macros
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386 # It does; now see whether it defined to BIG_ENDIAN or not.
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 #include <sys/types.h>
16390 #include <sys/param.h>
16395 #if BYTE_ORDER != BIG_ENDIAN
16403 if ac_fn_c_try_compile "$LINENO"; then :
16404 ac_cv_c_bigendian=yes
16406 ac_cv_c_bigendian=no
16408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 if test $ac_cv_c_bigendian = unknown; then
16413 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 #include <limits.h>
16421 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16422 bogus endian macros
16429 if ac_fn_c_try_compile "$LINENO"; then :
16430 # It does; now see whether it defined to _BIG_ENDIAN or not.
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <limits.h>
16438 #ifndef _BIG_ENDIAN
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 ac_cv_c_bigendian=yes
16449 ac_cv_c_bigendian=no
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455 if test $ac_cv_c_bigendian = unknown; then
16456 # Compile a test program.
16457 if test "$cross_compiling" = yes; then :
16458 # Try to guess by grepping values from an object file.
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 short int ascii_mm[] =
16462 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16463 short int ascii_ii[] =
16464 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16465 int use_ascii (int i) {
16466 return ascii_mm[i] + ascii_ii[i];
16468 short int ebcdic_ii[] =
16469 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16470 short int ebcdic_mm[] =
16471 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16472 int use_ebcdic (int i) {
16473 return ebcdic_mm[i] + ebcdic_ii[i];
16480 return use_ascii (foo) == use_ebcdic (foo);
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16487 ac_cv_c_bigendian=yes
16489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16490 if test "$ac_cv_c_bigendian" = unknown; then
16491 ac_cv_c_bigendian=no
16493 # finding both strings is unlikely to happen, but who knows?
16494 ac_cv_c_bigendian=unknown
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 $ac_includes_default
16507 /* Are we little or big endian? From Harbison&Steele. */
16511 char c[sizeof (long int)];
16514 return u.c[sizeof (long int) - 1] == 1;
16520 if ac_fn_c_try_run "$LINENO"; then :
16521 ac_cv_c_bigendian=no
16523 ac_cv_c_bigendian=yes
16525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16526 conftest.$ac_objext conftest.beam conftest.$ac_ext
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16532 $as_echo "$ac_cv_c_bigendian" >&6; }
16533 case $ac_cv_c_bigendian in #(
16535 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16541 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16545 as_fn_error "unknown endianness
16546 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16551 $as_echo_n "checking for inline... " >&6; }
16552 if test "${ac_cv_c_inline+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16556 for ac_kw in inline __inline__ __inline; do
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 #ifndef __cplusplus
16561 static $ac_kw foo_t static_foo () {return 0; }
16562 $ac_kw foo_t foo () {return 0; }
16566 if ac_fn_c_try_compile "$LINENO"; then :
16567 ac_cv_c_inline=$ac_kw
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 test "$ac_cv_c_inline" != no && break
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16575 $as_echo "$ac_cv_c_inline" >&6; }
16577 case $ac_cv_c_inline in
16580 case $ac_cv_c_inline in
16582 *) ac_val=$ac_cv_c_inline;;
16584 cat >>confdefs.h <<_ACEOF
16585 #ifndef __cplusplus
16586 #define inline $ac_val
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16594 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16595 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16596 $as_echo_n "(cached) " >&6
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 /* On HP-UX before 11.23, strtold returns a struct instead of
16601 long double. Reject implementations like that, by requiring
16602 compatibility with the C99 prototype. */
16603 #include <stdlib.h>
16604 static long double (*p) (char const *, char **) = strtold;
16606 test (char const *nptr, char **endptr)
16609 r = strtold (nptr, endptr);
16615 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16620 if ac_fn_c_try_link "$LINENO"; then :
16621 gl_cv_func_c99_strtold=yes
16623 gl_cv_func_c99_strtold=no
16625 rm -f core conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16629 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16630 if test $gl_cv_func_c99_strtold = yes; then
16632 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16642 GNULIB_EUIDACCESS=0;
16643 GNULIB_FACCESSAT=0;
16647 GNULIB_FTRUNCATE=0;
16649 GNULIB_GETDOMAINNAME=0;
16650 GNULIB_GETDTABLESIZE=0;
16651 GNULIB_GETGROUPS=0;
16652 GNULIB_GETHOSTNAME=0;
16654 GNULIB_GETLOGIN_R=0;
16655 GNULIB_GETPAGESIZE=0;
16656 GNULIB_GETUSERSHELL=0;
16657 GNULIB_GROUP_MEMBER=0;
16668 GNULIB_READLINKAT=0;
16672 GNULIB_SYMLINKAT=0;
16673 GNULIB_TTYNAME_R=0;
16674 GNULIB_UNISTD_H_GETOPT=0;
16675 GNULIB_UNISTD_H_NONBLOCKING=0;
16676 GNULIB_UNISTD_H_SIGPIPE=0;
16690 HAVE_GETDTABLESIZE=1;
16692 HAVE_GETHOSTNAME=1;
16694 HAVE_GETPAGESIZE=1;
16695 HAVE_GROUP_MEMBER=1;
16710 HAVE_DECL_ENVIRON=1;
16711 HAVE_DECL_FCHDIR=1;
16712 HAVE_DECL_GETDOMAINNAME=1;
16713 HAVE_DECL_GETLOGIN_R=1;
16714 HAVE_DECL_GETPAGESIZE=1;
16715 HAVE_DECL_GETUSERSHELL=1;
16716 HAVE_DECL_TTYNAME_R=1;
16718 HAVE_SYS_PARAM_H=0;
16723 REPLACE_FCHOWNAT=0;
16725 REPLACE_GETDOMAINNAME=0;
16726 REPLACE_GETLOGIN_R=0;
16727 REPLACE_GETGROUPS=0;
16728 REPLACE_GETPAGESIZE=0;
16736 REPLACE_READLINK=0;
16740 REPLACE_TTYNAME_R=0;
16742 REPLACE_UNLINKAT=0;
16745 UNISTD_H_HAVE_WINSOCK2_H=0;
16746 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16750 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16751 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16752 $as_echo_n "(cached) " >&6
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 #include <sys/types.h>
16758 #include <sys/stat.h>
16762 struct stat s; s.st_dm_mode;
16767 if ac_fn_c_try_compile "$LINENO"; then :
16768 ac_cv_struct_st_dm_mode=yes
16770 ac_cv_struct_st_dm_mode=no
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16775 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16777 if test $ac_cv_struct_st_dm_mode = yes; then
16779 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16784 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16785 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_DECL_STRMODE $ac_have_decl
16798 GNULIB_CALLOC_POSIX=0;
16799 GNULIB_CANONICALIZE_FILE_NAME=0;
16800 GNULIB_GETLOADAVG=0;
16801 GNULIB_GETSUBOPT=0;
16803 GNULIB_MALLOC_POSIX=0;
16807 GNULIB_MKOSTEMPS=0;
16813 GNULIB_REALLOC_POSIX=0;
16820 GNULIB_SYSTEM_POSIX=0;
16826 HAVE_CANONICALIZE_FILE_NAME=1;
16827 HAVE_DECL_GETLOADAVG=1;
16841 HAVE_DECL_SETENV=1;
16845 HAVE_STRUCT_RANDOM_DATA=1;
16846 HAVE_SYS_LOADAVG_H=0;
16848 HAVE_DECL_UNSETENV=1;
16850 REPLACE_CANONICALIZE_FILE_NAME=0;
16856 REPLACE_REALPATH=0;
16859 REPLACE_UNSETENV=0;
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16865 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16866 if test "${gl_cv_have_include_next+set}" = set; then :
16867 $as_echo_n "(cached) " >&6
16869 rm -rf conftestd1a conftestd1b conftestd2
16870 mkdir conftestd1a conftestd1b conftestd2
16871 cat <<EOF > conftestd1a/conftest.h
16872 #define DEFINED_IN_CONFTESTD1
16873 #include_next <conftest.h>
16874 #ifdef DEFINED_IN_CONFTESTD2
16877 #error "include_next doesn't work"
16880 cat <<EOF > conftestd1b/conftest.h
16881 #define DEFINED_IN_CONFTESTD1
16883 #include_next <conftest.h>
16884 #ifdef DEFINED_IN_CONFTESTD2
16887 #error "include_next doesn't work"
16890 cat <<EOF > conftestd2/conftest.h
16891 #ifndef DEFINED_IN_CONFTESTD1
16892 #error "include_next test doesn't work"
16894 #define DEFINED_IN_CONFTESTD2
16896 gl_save_CPPFLAGS="$CPPFLAGS"
16897 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900 #include <conftest.h>
16902 if ac_fn_c_try_compile "$LINENO"; then :
16903 gl_cv_have_include_next=yes
16905 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 #include <conftest.h>
16910 if ac_fn_c_try_compile "$LINENO"; then :
16911 gl_cv_have_include_next=buggy
16913 gl_cv_have_include_next=no
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 CPPFLAGS="$gl_save_CPPFLAGS"
16920 rm -rf conftestd1a conftestd1b conftestd2
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16924 $as_echo "$gl_cv_have_include_next" >&6; }
16925 PRAGMA_SYSTEM_HEADER=
16926 if test $gl_cv_have_include_next = yes; then
16927 INCLUDE_NEXT=include_next
16928 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16929 if test -n "$GCC"; then
16930 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16933 if test $gl_cv_have_include_next = buggy; then
16934 INCLUDE_NEXT=include
16935 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16937 INCLUDE_NEXT=include
16938 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16945 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16946 if test "${gl_cv_pragma_columns+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16958 $EGREP "choke me" >/dev/null 2>&1; then :
16959 gl_cv_pragma_columns=yes
16961 gl_cv_pragma_columns=no
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16968 $as_echo "$gl_cv_pragma_columns" >&6; }
16969 if test $gl_cv_pragma_columns = yes; then
16970 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16991 if test $gl_cv_have_include_next = yes; then
16992 gl_cv_next_getopt_h='<'getopt.h'>'
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16995 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16996 if test "${gl_cv_next_getopt_h+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
17000 if test $ac_cv_header_getopt_h = yes; then
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 #include <getopt.h>
17009 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17010 *) gl_absname_cpp="$ac_cpp" ;;
17015 gl_dirsep_regex='[/\\]'
17018 gl_dirsep_regex='/'
17022 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
17023 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
17028 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17029 sed -n "$gl_absolute_header_sed"`'"'
17031 gl_cv_next_getopt_h='<'getopt.h'>'
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17037 $as_echo "$gl_cv_next_getopt_h" >&6; }
17039 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17041 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17042 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17043 gl_next_as_first_directive='<'getopt.h'>'
17045 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17046 gl_next_as_first_directive=$gl_cv_next_getopt_h
17048 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17053 if test $ac_cv_header_getopt_h = yes; then
17062 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17063 for ac_header in getopt.h
17065 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17066 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17067 cat >>confdefs.h <<_ACEOF
17068 #define HAVE_GETOPT_H 1
17072 gl_replace_getopt=yes
17079 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17080 for ac_func in getopt_long_only
17082 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17083 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17084 cat >>confdefs.h <<_ACEOF
17085 #define HAVE_GETOPT_LONG_ONLY 1
17089 gl_replace_getopt=yes
17095 if test -z "$gl_replace_getopt"; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17097 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17098 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17099 $as_echo_n "(cached) " >&6
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104 #include <unistd.h>
17108 int *p = &optreset; return optreset;
17113 if ac_fn_c_try_compile "$LINENO"; then :
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118 #include <getopt.h>
17122 return !getopt_clip;
17127 if ac_fn_c_try_compile "$LINENO"; then :
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136 gl_save_CPPFLAGS=$CPPFLAGS
17137 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17138 if test "$cross_compiling" = yes; then :
17140 mingw*) gl_cv_func_getopt_posix="guessing no";;
17141 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17142 *) gl_cv_func_getopt_posix="guessing yes";;
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17149 #include <unistd.h>
17150 #include <stdlib.h>
17151 #include <string.h>
17161 argv[argc++] = "program";
17162 argv[argc++] = "-a";
17163 argv[argc++] = "foo";
17164 argv[argc++] = "bar";
17166 optind = OPTIND_MIN;
17169 c = getopt (argc, argv, "ab");
17172 c = getopt (argc, argv, "ab");
17175 if (!(optind == 2))
17178 /* Some internal state exists at this point. */
17184 argv[argc++] = "program";
17185 argv[argc++] = "donald";
17186 argv[argc++] = "-p";
17187 argv[argc++] = "billy";
17188 argv[argc++] = "duck";
17189 argv[argc++] = "-a";
17190 argv[argc++] = "bar";
17192 optind = OPTIND_MIN;
17195 c = getopt (argc, argv, "+abp:q:");
17198 if (!(strcmp (argv[0], "program") == 0))
17200 if (!(strcmp (argv[1], "donald") == 0))
17202 if (!(strcmp (argv[2], "-p") == 0))
17204 if (!(strcmp (argv[3], "billy") == 0))
17206 if (!(strcmp (argv[4], "duck") == 0))
17208 if (!(strcmp (argv[5], "-a") == 0))
17210 if (!(strcmp (argv[6], "bar") == 0))
17212 if (!(optind == 1))
17215 /* Detect MacOS 10.5, AIX 7.1 bug. */
17217 char *argv[3] = { "program", "-ab", NULL };
17218 optind = OPTIND_MIN;
17220 if (getopt (2, argv, "ab:") != 'a')
17222 if (getopt (2, argv, "ab:") != '?')
17234 if ac_fn_c_try_run "$LINENO"; then :
17235 gl_cv_func_getopt_posix=yes
17237 gl_cv_func_getopt_posix=no
17239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17240 conftest.$ac_objext conftest.beam conftest.$ac_ext
17243 CPPFLAGS=$gl_save_CPPFLAGS
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17247 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17248 case "$gl_cv_func_getopt_posix" in
17249 *no) gl_replace_getopt=yes ;;
17253 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17255 $as_echo_n "checking for working GNU getopt function... " >&6; }
17256 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17257 $as_echo_n "(cached) " >&6
17259 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17260 # optstring is necessary for programs like m4 that have POSIX-mandated
17261 # semantics for supporting options interspersed with files.
17262 # Also, since getopt_long is a GNU extension, we require optind=0.
17263 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17264 # so take care to revert to the correct (non-)export state.
17265 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17266 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17267 xx) gl_had_POSIXLY_CORRECT=exported ;;
17268 x) gl_had_POSIXLY_CORRECT=yes ;;
17269 *) gl_had_POSIXLY_CORRECT= ;;
17272 export POSIXLY_CORRECT
17273 if test "$cross_compiling" = yes; then :
17274 case $host_os:$ac_cv_have_decl_optreset in
17275 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17276 *:yes) gl_cv_func_getopt_gnu=no;;
17277 *) gl_cv_func_getopt_gnu=yes;;
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 #include <getopt.h>
17284 #include <stddef.h>
17285 #include <string.h>
17287 #include <stdlib.h>
17288 #if defined __MACH__ && defined __APPLE__
17289 /* Avoid a crash on MacOS X. */
17290 #include <mach/mach.h>
17291 #include <mach/mach_error.h>
17292 #include <mach/thread_status.h>
17293 #include <mach/exception.h>
17294 #include <mach/task.h>
17295 #include <pthread.h>
17296 /* The exception port on which our thread listens. */
17297 static mach_port_t our_exception_port;
17298 /* The main function of the thread listening for exceptions of type
17301 mach_exception_thread (void *arg)
17303 /* Buffer for a message to be received. */
17305 mach_msg_header_t head;
17306 mach_msg_body_t msgh_body;
17309 mach_msg_return_t retval;
17310 /* Wait for a message on the exception port. */
17311 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17312 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17313 if (retval != MACH_MSG_SUCCESS)
17318 nocrash_init (void)
17320 mach_port_t self = mach_task_self ();
17321 /* Allocate a port on which the thread shall listen for exceptions. */
17322 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17324 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17325 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17326 MACH_MSG_TYPE_MAKE_SEND)
17328 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17330 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17331 /* Create the thread listening on the exception port. */
17332 pthread_attr_t attr;
17334 if (pthread_attr_init (&attr) == 0
17335 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17336 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17337 pthread_attr_destroy (&attr);
17338 /* Replace the exception port info for these exceptions with our own.
17339 Note that we replace the exception port for the entire task, not only
17340 for a particular thread. This has the effect that when our exception
17341 port gets the message, the thread specific exception port has already
17342 been asked, and we don't need to bother about it.
17343 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17344 task_set_exception_ports (self, mask, our_exception_port,
17345 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17350 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17351 /* Avoid a crash on native Windows. */
17352 #define WIN32_LEAN_AND_MEAN
17353 #include <windows.h>
17354 #include <winerror.h>
17356 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17358 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17360 case EXCEPTION_ACCESS_VIOLATION:
17361 case EXCEPTION_IN_PAGE_ERROR:
17362 case EXCEPTION_STACK_OVERFLOW:
17363 case EXCEPTION_GUARD_PAGE:
17364 case EXCEPTION_PRIV_INSTRUCTION:
17365 case EXCEPTION_ILLEGAL_INSTRUCTION:
17366 case EXCEPTION_DATATYPE_MISALIGNMENT:
17367 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17368 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17371 return EXCEPTION_CONTINUE_SEARCH;
17374 nocrash_init (void)
17376 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17379 /* Avoid a crash on POSIX systems. */
17380 #include <signal.h>
17381 /* A POSIX signal handler. */
17383 exception_handler (int sig)
17388 nocrash_init (void)
17391 signal (SIGSEGV, exception_handler);
17394 signal (SIGBUS, exception_handler);
17408 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17409 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17410 OSF/1 5.1, Solaris 10. */
17413 myargv[0] = "conftest";
17417 if (getopt (2, myargv, "+a") != '?')
17420 /* This code succeeds on glibc 2.8, mingw,
17421 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17422 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17424 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17427 if (getopt (4, argv, "p::") != 'p')
17429 else if (optarg != NULL)
17431 else if (getopt (4, argv, "p::") != -1)
17433 else if (optind != 2)
17436 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17438 char *argv[] = { "program", "foo", "-p", NULL };
17440 if (getopt (3, argv, "-p") != 1)
17442 else if (getopt (3, argv, "-p") != 'p')
17445 /* This code fails on glibc 2.11. */
17447 char *argv[] = { "program", "-b", "-a", NULL };
17448 optind = opterr = 0;
17449 if (getopt (3, argv, "+:a:b") != 'b')
17451 else if (getopt (3, argv, "+:a:b") != ':')
17460 if ac_fn_c_try_run "$LINENO"; then :
17461 gl_cv_func_getopt_gnu=yes
17463 gl_cv_func_getopt_gnu=no
17465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17466 conftest.$ac_objext conftest.beam conftest.$ac_ext
17469 case $gl_had_POSIXLY_CORRECT in
17471 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17472 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17477 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17478 if test "$gl_cv_func_getopt_gnu" = "no"; then
17479 gl_replace_getopt=yes
17490 if test -n "$gl_replace_getopt"; then :
17497 if test $REPLACE_GETOPT = 1; then
17501 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17505 GNULIB_UNISTD_H_GETOPT=1
17508 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17509 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17515 cat >>confdefs.h <<_ACEOF
17516 #define HAVE_DECL_GETENV $ac_have_decl
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17521 $as_echo_n "checking for unsigned long long int... " >&6; }
17522 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17523 $as_echo_n "(cached) " >&6
17525 ac_cv_type_unsigned_long_long_int=yes
17526 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17530 /* For now, do not test the preprocessor; as of 2007 there are too many
17531 implementations with broken preprocessors. Perhaps this can
17532 be revisited in 2012. In the meantime, code should not expect
17533 #if to work with literals wider than 32 bits. */
17534 /* Test literals. */
17535 long long int ll = 9223372036854775807ll;
17536 long long int nll = -9223372036854775807LL;
17537 unsigned long long int ull = 18446744073709551615ULL;
17538 /* Test constant expressions. */
17539 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17541 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17547 /* Test availability of runtime routines for shift and division. */
17548 long long int llmax = 9223372036854775807ll;
17549 unsigned long long int ullmax = 18446744073709551615ull;
17550 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17551 | (llmax / ll) | (llmax % ll)
17552 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17553 | (ullmax / ull) | (ullmax % ull));
17559 if ac_fn_c_try_link "$LINENO"; then :
17562 ac_cv_type_unsigned_long_long_int=no
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17569 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17570 if test $ac_cv_type_unsigned_long_long_int = yes; then
17572 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17579 $as_echo_n "checking for long long int... " >&6; }
17580 if test "${ac_cv_type_long_long_int+set}" = set; then :
17581 $as_echo_n "(cached) " >&6
17583 ac_cv_type_long_long_int=yes
17584 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17585 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17586 if test $ac_cv_type_long_long_int = yes; then
17587 if test "$cross_compiling" = yes; then :
17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591 /* end confdefs.h. */
17592 #include <limits.h>
17595 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17596 # define LLONG_MAX (HALF - 1 + HALF)
17601 long long int n = 1;
17605 long long int m = n << i;
17608 if (LLONG_MAX / 2 < m)
17616 if ac_fn_c_try_run "$LINENO"; then :
17619 ac_cv_type_long_long_int=no
17621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17622 conftest.$ac_objext conftest.beam conftest.$ac_ext
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17629 $as_echo "$ac_cv_type_long_long_int" >&6; }
17630 if test $ac_cv_type_long_long_int = yes; then
17632 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17641 gl_cv_c_multiarch=no
17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643 /* end confdefs.h. */
17644 #ifndef __APPLE_CC__
17645 not a universal capable compiler
17650 if ac_fn_c_try_compile "$LINENO"; then :
17654 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17655 if test -n "$prev"; then
17657 i?86 | x86_64 | ppc | ppc64)
17658 if test -z "$arch" || test "$arch" = "$word"; then
17661 gl_cv_c_multiarch=yes
17667 if test "x$word" = "x-arch"; then
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 if test $gl_cv_c_multiarch = yes; then
17676 APPLE_UNIVERSAL_BUILD=1
17678 APPLE_UNIVERSAL_BUILD=0
17685 if test $ac_cv_type_long_long_int = yes; then
17686 HAVE_LONG_LONG_INT=1
17688 HAVE_LONG_LONG_INT=0
17692 if test $ac_cv_type_unsigned_long_long_int = yes; then
17693 HAVE_UNSIGNED_LONG_LONG_INT=1
17695 HAVE_UNSIGNED_LONG_LONG_INT=0
17700 if test $ac_cv_header_wchar_h = yes; then
17707 if test $ac_cv_header_inttypes_h = yes; then
17714 if test $ac_cv_header_sys_types_h = yes; then
17730 if test $gl_cv_have_include_next = yes; then
17731 gl_cv_next_stdint_h='<'stdint.h'>'
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17734 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17735 if test "${gl_cv_next_stdint_h+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17739 if test $ac_cv_header_stdint_h = yes; then
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 #include <stdint.h>
17748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17749 *) gl_absname_cpp="$ac_cpp" ;;
17754 gl_dirsep_regex='[/\\]'
17757 gl_dirsep_regex='/'
17761 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
17762 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17767 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17768 sed -n "$gl_absolute_header_sed"`'"'
17770 gl_cv_next_stdint_h='<'stdint.h'>'
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17776 $as_echo "$gl_cv_next_stdint_h" >&6; }
17778 NEXT_STDINT_H=$gl_cv_next_stdint_h
17780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17782 gl_next_as_first_directive='<'stdint.h'>'
17784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17785 gl_next_as_first_directive=$gl_cv_next_stdint_h
17787 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17792 if test $ac_cv_header_stdint_h = yes; then
17799 if test $ac_cv_header_stdint_h = yes; then
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17801 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17802 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17805 gl_cv_header_working_stdint_h=no
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17810 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17811 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17812 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17813 #include <stdint.h>
17814 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17815 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17816 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17820 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17821 included before <wchar.h>. */
17822 #include <stddef.h>
17823 #include <signal.h>
17825 # include <stdio.h>
17827 # include <wchar.h>
17832 int8_t a1 = INT8_MAX;
17833 int8_t a1min = INT8_MIN;
17836 int16_t a2 = INT16_MAX;
17837 int16_t a2min = INT16_MIN;
17840 int32_t a3 = INT32_MAX;
17841 int32_t a3min = INT32_MIN;
17844 int64_t a4 = INT64_MAX;
17845 int64_t a4min = INT64_MIN;
17848 uint8_t b1 = UINT8_MAX;
17850 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17853 uint16_t b2 = UINT16_MAX;
17856 uint32_t b3 = UINT32_MAX;
17859 uint64_t b4 = UINT64_MAX;
17861 int_least8_t c1 = INT8_C (0x7f);
17862 int_least8_t c1max = INT_LEAST8_MAX;
17863 int_least8_t c1min = INT_LEAST8_MIN;
17864 int_least16_t c2 = INT16_C (0x7fff);
17865 int_least16_t c2max = INT_LEAST16_MAX;
17866 int_least16_t c2min = INT_LEAST16_MIN;
17867 int_least32_t c3 = INT32_C (0x7fffffff);
17868 int_least32_t c3max = INT_LEAST32_MAX;
17869 int_least32_t c3min = INT_LEAST32_MIN;
17870 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17871 int_least64_t c4max = INT_LEAST64_MAX;
17872 int_least64_t c4min = INT_LEAST64_MIN;
17873 uint_least8_t d1 = UINT8_C (0xff);
17874 uint_least8_t d1max = UINT_LEAST8_MAX;
17875 uint_least16_t d2 = UINT16_C (0xffff);
17876 uint_least16_t d2max = UINT_LEAST16_MAX;
17877 uint_least32_t d3 = UINT32_C (0xffffffff);
17878 uint_least32_t d3max = UINT_LEAST32_MAX;
17879 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17880 uint_least64_t d4max = UINT_LEAST64_MAX;
17881 int_fast8_t e1 = INT_FAST8_MAX;
17882 int_fast8_t e1min = INT_FAST8_MIN;
17883 int_fast16_t e2 = INT_FAST16_MAX;
17884 int_fast16_t e2min = INT_FAST16_MIN;
17885 int_fast32_t e3 = INT_FAST32_MAX;
17886 int_fast32_t e3min = INT_FAST32_MIN;
17887 int_fast64_t e4 = INT_FAST64_MAX;
17888 int_fast64_t e4min = INT_FAST64_MIN;
17889 uint_fast8_t f1 = UINT_FAST8_MAX;
17890 uint_fast16_t f2 = UINT_FAST16_MAX;
17891 uint_fast32_t f3 = UINT_FAST32_MAX;
17892 uint_fast64_t f4 = UINT_FAST64_MAX;
17894 intptr_t g = INTPTR_MAX;
17895 intptr_t gmin = INTPTR_MIN;
17898 uintptr_t h = UINTPTR_MAX;
17900 intmax_t i = INTMAX_MAX;
17901 uintmax_t j = UINTMAX_MAX;
17903 #include <limits.h> /* for CHAR_BIT */
17904 #define TYPE_MINIMUM(t) \
17905 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17906 #define TYPE_MAXIMUM(t) \
17907 ((t) ((t) 0 < (t) -1 \
17909 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17912 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17913 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17915 /* Detect bug in FreeBSD 6.0 / ia64. */
17916 int check_SIG_ATOMIC:
17917 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17918 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17920 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17922 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17923 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17925 /* Detect bug in mingw. */
17927 WINT_MIN == TYPE_MINIMUM (wint_t)
17928 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17931 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17933 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17934 int check_UINT16_C:
17935 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17937 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17939 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17942 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17945 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17948 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17950 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17951 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17952 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17953 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17954 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17955 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17956 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17957 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17958 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17959 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17960 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17971 if ac_fn_c_try_compile "$LINENO"; then :
17972 if test "$cross_compiling" = yes; then :
17973 gl_cv_header_working_stdint_h=yes
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17980 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17981 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17982 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17983 #include <stdint.h>
17986 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17987 included before <wchar.h>. */
17988 #include <stddef.h>
17989 #include <signal.h>
17991 # include <stdio.h>
17993 # include <wchar.h>
17998 #include <string.h>
17999 #define MVAL(macro) MVAL1(macro)
18000 #define MVAL1(expression) #expression
18001 static const char *macro_values[] =
18035 for (mv = macro_values; *mv != NULL; mv++)
18037 const char *value = *mv;
18038 /* Test whether it looks like a cast expression. */
18039 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18040 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18041 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18042 || strncmp (value, "((int)"/*)*/, 6) == 0
18043 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18044 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18045 return mv - macro_values + 1;
18053 if ac_fn_c_try_run "$LINENO"; then :
18054 gl_cv_header_working_stdint_h=yes
18056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18057 conftest.$ac_objext conftest.beam conftest.$ac_ext
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18066 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18068 if test "$gl_cv_header_working_stdint_h" = yes; then
18071 for ac_header in sys/inttypes.h sys/bitypes.h
18073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18074 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18075 eval as_val=\$$as_ac_Header
18076 if test "x$as_val" = x""yes; then :
18077 cat >>confdefs.h <<_ACEOF
18078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18085 if test $ac_cv_header_sys_inttypes_h = yes; then
18086 HAVE_SYS_INTTYPES_H=1
18088 HAVE_SYS_INTTYPES_H=0
18091 if test $ac_cv_header_sys_bitypes_h = yes; then
18092 HAVE_SYS_BITYPES_H=1
18094 HAVE_SYS_BITYPES_H=0
18100 if test $APPLE_UNIVERSAL_BUILD = 0; then
18103 for gltype in ptrdiff_t size_t ; do
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18105 $as_echo_n "checking for bit size of $gltype... " >&6; }
18106 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18107 $as_echo_n "(cached) " >&6
18109 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18111 included before <wchar.h>. */
18112 #include <stddef.h>
18113 #include <signal.h>
18115 # include <stdio.h>
18117 # include <wchar.h>
18120 #include <limits.h>"; then :
18126 eval gl_cv_bitsizeof_${gltype}=\$result
18129 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18131 $as_echo "$ac_res" >&6; }
18132 eval result=\$gl_cv_bitsizeof_${gltype}
18133 if test $result = unknown; then
18136 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18137 cat >>confdefs.h <<_ACEOF
18138 #define BITSIZEOF_${GLTYPE} $result
18141 eval BITSIZEOF_${GLTYPE}=\$result
18148 for gltype in sig_atomic_t wchar_t wint_t ; do
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18150 $as_echo_n "checking for bit size of $gltype... " >&6; }
18151 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18152 $as_echo_n "(cached) " >&6
18154 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18155 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18156 included before <wchar.h>. */
18157 #include <stddef.h>
18158 #include <signal.h>
18160 # include <stdio.h>
18162 # include <wchar.h>
18165 #include <limits.h>"; then :
18171 eval gl_cv_bitsizeof_${gltype}=\$result
18174 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18176 $as_echo "$ac_res" >&6; }
18177 eval result=\$gl_cv_bitsizeof_${gltype}
18178 if test $result = unknown; then
18181 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18182 cat >>confdefs.h <<_ACEOF
18183 #define BITSIZEOF_${GLTYPE} $result
18186 eval BITSIZEOF_${GLTYPE}=\$result
18192 for gltype in sig_atomic_t wchar_t wint_t ; do
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18194 $as_echo_n "checking whether $gltype is signed... " >&6; }
18195 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18196 $as_echo_n "(cached) " >&6
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18202 included before <wchar.h>. */
18203 #include <stddef.h>
18204 #include <signal.h>
18206 # include <stdio.h>
18208 # include <wchar.h>
18211 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18220 if ac_fn_c_try_compile "$LINENO"; then :
18225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18226 eval gl_cv_type_${gltype}_signed=\$result
18229 eval ac_res=\$gl_cv_type_${gltype}_signed
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18231 $as_echo "$ac_res" >&6; }
18232 eval result=\$gl_cv_type_${gltype}_signed
18233 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18234 if test "$result" = yes; then
18235 cat >>confdefs.h <<_ACEOF
18236 #define HAVE_SIGNED_${GLTYPE} 1
18239 eval HAVE_SIGNED_${GLTYPE}=1
18241 eval HAVE_SIGNED_${GLTYPE}=0
18246 gl_cv_type_ptrdiff_t_signed=yes
18247 gl_cv_type_size_t_signed=no
18248 if test $APPLE_UNIVERSAL_BUILD = 0; then
18251 for gltype in ptrdiff_t size_t ; do
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18253 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18254 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18255 $as_echo_n "(cached) " >&6
18257 eval gl_cv_type_${gltype}_suffix=no
18258 eval result=\$gl_cv_type_${gltype}_signed
18259 if test "$result" = yes; then
18264 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18266 '') gltype1='int';;
18267 l) gltype1='long int';;
18268 ll) gltype1='long long int';;
18269 i64) gltype1='__int64';;
18270 u) gltype1='unsigned int';;
18271 ul) gltype1='unsigned long int';;
18272 ull) gltype1='unsigned long long int';;
18273 ui64)gltype1='unsigned __int64';;
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18279 included before <wchar.h>. */
18280 #include <stddef.h>
18281 #include <signal.h>
18283 # include <stdio.h>
18285 # include <wchar.h>
18288 extern $gltype foo;
18289 extern $gltype1 foo;
18298 if ac_fn_c_try_compile "$LINENO"; then :
18299 eval gl_cv_type_${gltype}_suffix=\$glsuf
18301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 eval result=\$gl_cv_type_${gltype}_suffix
18303 test "$result" != no && break
18306 eval ac_res=\$gl_cv_type_${gltype}_suffix
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18308 $as_echo "$ac_res" >&6; }
18309 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18310 eval result=\$gl_cv_type_${gltype}_suffix
18311 test "$result" = no && result=
18312 eval ${GLTYPE}_SUFFIX=\$result
18313 cat >>confdefs.h <<_ACEOF
18314 #define ${GLTYPE}_SUFFIX $result
18323 for gltype in sig_atomic_t wchar_t wint_t ; do
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18325 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18326 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18327 $as_echo_n "(cached) " >&6
18329 eval gl_cv_type_${gltype}_suffix=no
18330 eval result=\$gl_cv_type_${gltype}_signed
18331 if test "$result" = yes; then
18336 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18338 '') gltype1='int';;
18339 l) gltype1='long int';;
18340 ll) gltype1='long long int';;
18341 i64) gltype1='__int64';;
18342 u) gltype1='unsigned int';;
18343 ul) gltype1='unsigned long int';;
18344 ull) gltype1='unsigned long long int';;
18345 ui64)gltype1='unsigned __int64';;
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18350 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18351 included before <wchar.h>. */
18352 #include <stddef.h>
18353 #include <signal.h>
18355 # include <stdio.h>
18357 # include <wchar.h>
18360 extern $gltype foo;
18361 extern $gltype1 foo;
18370 if ac_fn_c_try_compile "$LINENO"; then :
18371 eval gl_cv_type_${gltype}_suffix=\$glsuf
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 eval result=\$gl_cv_type_${gltype}_suffix
18375 test "$result" != no && break
18378 eval ac_res=\$gl_cv_type_${gltype}_suffix
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18380 $as_echo "$ac_res" >&6; }
18381 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18382 eval result=\$gl_cv_type_${gltype}_suffix
18383 test "$result" = no && result=
18384 eval ${GLTYPE}_SUFFIX=\$result
18385 cat >>confdefs.h <<_ACEOF
18386 #define ${GLTYPE}_SUFFIX $result
18396 if test -n "$STDINT_H"; then
18397 GL_GENERATE_STDINT_H_TRUE=
18398 GL_GENERATE_STDINT_H_FALSE='#'
18400 GL_GENERATE_STDINT_H_TRUE='#'
18401 GL_GENERATE_STDINT_H_FALSE=
18410 GNULIB_STRTOIMAX=0;
18411 GNULIB_STRTOUMAX=0;
18412 HAVE_DECL_IMAXABS=1;
18413 HAVE_DECL_IMAXDIV=1;
18414 HAVE_DECL_STRTOIMAX=1;
18415 HAVE_DECL_STRTOUMAX=1;
18416 INT32_MAX_LT_INTMAX_MAX=1;
18417 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18418 PRI_MACROS_BROKEN=0;
18419 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18420 UINT32_MAX_LT_UINTMAX_MAX=1;
18421 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18437 if test $gl_cv_have_include_next = yes; then
18438 gl_cv_next_inttypes_h='<'inttypes.h'>'
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18441 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18442 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18443 $as_echo_n "(cached) " >&6
18446 if test $ac_cv_header_inttypes_h = yes; then
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 #include <inttypes.h>
18455 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18456 *) gl_absname_cpp="$ac_cpp" ;;
18461 gl_dirsep_regex='[/\\]'
18464 gl_dirsep_regex='/'
18468 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
18469 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18474 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18475 sed -n "$gl_absolute_header_sed"`'"'
18477 gl_cv_next_inttypes_h='<'inttypes.h'>'
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18483 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18485 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18487 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18489 gl_next_as_first_directive='<'inttypes.h'>'
18491 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18492 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18494 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18503 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18521 GNULIB_UTIMENSAT=0;
18535 REPLACE_FUTIMENS=0;
18541 REPLACE_UTIMENSAT=0;
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18547 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18548 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18549 $as_echo_n "(cached) " >&6
18551 rm -f conftest.sym conftest.file
18552 echo >conftest.file
18553 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18554 if test "$cross_compiling" = yes; then :
18555 # When cross-compiling, be pessimistic so we will end up using the
18556 # replacement version of lstat that checks for trailing slashes and
18557 # calls lstat a second time when necessary.
18558 gl_cv_func_lstat_dereferences_slashed_symlink=no
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 $ac_includes_default
18568 /* Linux will dereference the symlink and fail, as required by
18569 POSIX. That is better in the sense that it means we will not
18570 have to compile and use the lstat wrapper. */
18571 return lstat ("conftest.sym/", &sbuf) == 0;
18577 if ac_fn_c_try_run "$LINENO"; then :
18578 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18580 gl_cv_func_lstat_dereferences_slashed_symlink=no
18582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18583 conftest.$ac_objext conftest.beam conftest.$ac_ext
18587 # If the 'ln -s' command failed, then we probably don't even
18588 # have an lstat function.
18589 gl_cv_func_lstat_dereferences_slashed_symlink=no
18591 rm -f conftest.sym conftest.file
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18595 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18596 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18598 cat >>confdefs.h <<_ACEOF
18599 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18605 GNULIB_NANOSLEEP=0;
18609 HAVE_DECL_LOCALTIME_R=1;
18613 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18614 REPLACE_MKTIME=GNULIB_PORTCHECK;
18615 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18616 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18625 GNULIB_PTHREAD_SIGMASK=0;
18626 GNULIB_SIGNAL_H_SIGPIPE=0;
18627 GNULIB_SIGPROCMASK=0;
18628 GNULIB_SIGACTION=0;
18629 HAVE_POSIX_SIGNALBLOCKING=1;
18630 HAVE_PTHREAD_SIGMASK=1;
18634 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18636 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18638 HAVE_SIGHANDLER_T=1;
18639 REPLACE_PTHREAD_SIGMASK=0;
18644 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18645 #include <signal.h>
18646 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18647 #include <sys/types.h>
18650 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_SIGSET_T 1
18656 gl_cv_type_sigset_t=yes
18658 gl_cv_type_sigset_t=no
18661 if test $gl_cv_type_sigset_t != yes; then
18667 >>>>>>> MERGE-SOURCE
18670 if test $ac_cv_header_sys_socket_h = no; then
18671 for ac_header in ws2tcpip.h
18673 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18674 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18675 cat >>confdefs.h <<_ACEOF
18676 #define HAVE_WS2TCPIP_H 1
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18686 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18687 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18693 #include <stdbool.h>
18695 "error: bool is not defined"
18698 "error: false is not defined"
18701 "error: false is not 0"
18704 "error: true is not defined"
18707 "error: true is not 1"
18709 #ifndef __bool_true_false_are_defined
18710 "error: __bool_true_false_are_defined is not defined"
18713 struct s { _Bool s: 1; _Bool t; } s;
18715 char a[true == 1 ? 1 : -1];
18716 char b[false == 0 ? 1 : -1];
18717 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18718 char d[(bool) 0.5 == true ? 1 : -1];
18719 /* See body of main program for 'e'. */
18720 char f[(_Bool) 0.0 == false ? 1 : -1];
18722 char h[sizeof (_Bool)];
18723 char i[sizeof s.t];
18724 enum { j = false, k = true, l = false * true, m = true * 256 };
18725 /* The following fails for
18726 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18728 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18729 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18730 /* Catch a bug in an HP-UX C compiler. See
18731 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18732 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18744 /* Refer to every declared value, to avoid compiler optimizations. */
18745 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18746 + !m + !n + !o + !p + !q + !pq);
18752 if ac_fn_c_try_compile "$LINENO"; then :
18753 ac_cv_header_stdbool_h=yes
18755 ac_cv_header_stdbool_h=no
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18760 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18761 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18762 if test "x$ac_cv_type__Bool" = x""yes; then :
18764 cat >>confdefs.h <<_ACEOF
18765 #define HAVE__BOOL 1
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18778 $as_echo_n "checking for wchar_t... " >&6; }
18779 if test "${gt_cv_c_wchar_t+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <stddef.h>
18785 wchar_t foo = (wchar_t)'\0';
18794 if ac_fn_c_try_compile "$LINENO"; then :
18795 gt_cv_c_wchar_t=yes
18799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18802 $as_echo "$gt_cv_c_wchar_t" >&6; }
18803 if test $gt_cv_c_wchar_t = yes; then
18805 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18817 GNULIB_FPRINTF_POSIX=0;
18834 GNULIB_OBSTACK_PRINTF=0;
18835 GNULIB_OBSTACK_PRINTF_POSIX=0;
18839 GNULIB_PRINTF_POSIX=0;
18848 GNULIB_SPRINTF_POSIX=0;
18849 GNULIB_STDIO_H_NONBLOCKING=0;
18850 GNULIB_STDIO_H_SIGPIPE=0;
18852 GNULIB_VASPRINTF=0;
18857 GNULIB_VFPRINTF_POSIX=0;
18859 GNULIB_VPRINTF_POSIX=0;
18860 GNULIB_VSNPRINTF=0;
18861 GNULIB_VSPRINTF_POSIX=0;
18862 HAVE_DECL_FPURGE=1;
18863 HAVE_DECL_FSEEKO=1;
18864 HAVE_DECL_FTELLO=1;
18865 HAVE_DECL_GETDELIM=1;
18866 HAVE_DECL_GETLINE=1;
18867 HAVE_DECL_OBSTACK_PRINTF=1;
18868 HAVE_DECL_SNPRINTF=1;
18869 HAVE_DECL_VSNPRINTF=1;
18887 REPLACE_GETDELIM=0;
18889 REPLACE_OBSTACK_PRINTF=0;
18895 REPLACE_RENAMEAT=0;
18896 REPLACE_SNPRINTF=0;
18898 REPLACE_STDIO_READ_FUNCS=0;
18899 REPLACE_STDIO_WRITE_FUNCS=0;
18901 REPLACE_VASPRINTF=0;
18902 REPLACE_VDPRINTF=0;
18903 REPLACE_VFPRINTF=0;
18905 REPLACE_VSNPRINTF=0;
18906 REPLACE_VSPRINTF=0;
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18909 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18910 if test "${ac_cv_struct_tm+set}" = set; then :
18911 $as_echo_n "(cached) " >&6
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18915 #include <sys/types.h>
18922 int *p = &tm.tm_sec;
18928 if ac_fn_c_try_compile "$LINENO"; then :
18929 ac_cv_struct_tm=time.h
18931 ac_cv_struct_tm=sys/time.h
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18936 $as_echo "$ac_cv_struct_tm" >&6; }
18937 if test $ac_cv_struct_tm = sys/time.h; then
18939 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18943 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18944 #include <$ac_cv_struct_tm>
18947 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_STRUCT_TM_TM_ZONE 1
18956 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18958 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18961 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18963 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18969 cat >>confdefs.h <<_ACEOF
18970 #define HAVE_DECL_TZNAME $ac_have_decl
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18974 $as_echo_n "checking for tzname... " >&6; }
18975 if test "${ac_cv_var_tzname+set}" = set; then :
18976 $as_echo_n "(cached) " >&6
18978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18981 #if !HAVE_DECL_TZNAME
18982 extern char *tzname[];
18988 return tzname[0][0];
18993 if ac_fn_c_try_link "$LINENO"; then :
18994 ac_cv_var_tzname=yes
18996 ac_cv_var_tzname=no
18998 rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19002 $as_echo "$ac_cv_var_tzname" >&6; }
19003 if test $ac_cv_var_tzname = yes; then
19005 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19011 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19013 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19015 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19026 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19027 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19033 cat >>confdefs.h <<_ACEOF
19034 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19039 >>>>>>> MERGE-SOURCE
19040 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19041 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19054 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19055 if test "${ac_cv_header_stat_broken+set}" = set; then :
19056 $as_echo_n "(cached) " >&6
19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h. */
19060 #include <sys/types.h>
19061 #include <sys/stat.h>
19063 #if defined S_ISBLK && defined S_IFDIR
19064 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19067 #if defined S_ISBLK && defined S_IFCHR
19068 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19071 #if defined S_ISLNK && defined S_IFREG
19072 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19075 #if defined S_ISSOCK && defined S_IFREG
19076 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19080 if ac_fn_c_try_compile "$LINENO"; then :
19081 ac_cv_header_stat_broken=no
19083 ac_cv_header_stat_broken=yes
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19088 $as_echo "$ac_cv_header_stat_broken" >&6; }
19089 if test $ac_cv_header_stat_broken = yes; then
19091 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19098 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19099 if test "${ac_cv_c_restrict+set}" = set; then :
19100 $as_echo_n "(cached) " >&6
19102 ac_cv_c_restrict=no
19103 # The order here caters to the fact that C++ does not require restrict.
19104 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 typedef int * int_ptr;
19108 int foo (int_ptr $ac_kw ip) {
19115 int * $ac_kw t = s;
19122 if ac_fn_c_try_compile "$LINENO"; then :
19123 ac_cv_c_restrict=$ac_kw
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 test "$ac_cv_c_restrict" != no && break
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19131 $as_echo "$ac_cv_c_restrict" >&6; }
19133 case $ac_cv_c_restrict in
19135 no) $as_echo "#define restrict /**/" >>confdefs.h
19137 *) cat >>confdefs.h <<_ACEOF
19138 #define restrict $ac_cv_c_restrict
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19148 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19149 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h. */
19159 static struct timespec x; x.tv_sec = x.tv_nsec;
19164 if ac_fn_c_try_compile "$LINENO"; then :
19165 gl_cv_sys_struct_timespec_in_time_h=yes
19167 gl_cv_sys_struct_timespec_in_time_h=no
19169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19172 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19174 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19175 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19176 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19177 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19178 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19181 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19182 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19183 $as_echo_n "(cached) " >&6
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187 #include <sys/time.h>
19192 static struct timespec x; x.tv_sec = x.tv_nsec;
19197 if ac_fn_c_try_compile "$LINENO"; then :
19198 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19200 gl_cv_sys_struct_timespec_in_sys_time_h=no
19202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19205 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19206 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19207 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19210 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19211 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19212 $as_echo_n "(cached) " >&6
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 #include <pthread.h>
19221 static struct timespec x; x.tv_sec = x.tv_nsec;
19226 if ac_fn_c_try_compile "$LINENO"; then :
19227 gl_cv_sys_struct_timespec_in_pthread_h=yes
19229 gl_cv_sys_struct_timespec_in_pthread_h=no
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19234 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19235 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19236 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19255 if test $gl_cv_have_include_next = yes; then
19256 gl_cv_next_time_h='<'time.h'>'
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19259 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19260 if test "${gl_cv_next_time_h+set}" = set; then :
19261 $as_echo_n "(cached) " >&6
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19270 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19271 *) gl_absname_cpp="$ac_cpp" ;;
19276 gl_dirsep_regex='[/\\]'
19279 gl_dirsep_regex='/'
19283 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
19284 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19289 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19290 sed -n "$gl_absolute_header_sed"`'"'
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19295 $as_echo "$gl_cv_next_time_h" >&6; }
19297 NEXT_TIME_H=$gl_cv_next_time_h
19299 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19301 gl_next_as_first_directive='<'time.h'>'
19303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19304 gl_next_as_first_directive=$gl_cv_next_time_h
19306 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19315 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19316 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19330 GL_COND_LIBTOOL_TRUE=
19331 GL_COND_LIBTOOL_FALSE='#'
19333 GL_COND_LIBTOOL_TRUE='#'
19334 GL_COND_LIBTOOL_FALSE=
19337 gl_cond_libtool=false
19350 gl_source_base='lib'
19353 if test $ac_cv_func_alloca_works = no; then
19357 # Define an additional variable used in the Makefile substitution.
19358 if test $ac_cv_working_alloca_h = yes; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19360 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19361 if test "${gl_cv_rpl_alloca+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19368 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19375 gl_cv_rpl_alloca=yes
19377 gl_cv_rpl_alloca=no
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19384 $as_echo "$gl_cv_rpl_alloca" >&6; }
19385 if test $gl_cv_rpl_alloca = yes; then
19387 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19397 if test -n "$ALLOCA_H"; then
19398 GL_GENERATE_ALLOCA_H_TRUE=
19399 GL_GENERATE_ALLOCA_H_FALSE='#'
19401 GL_GENERATE_ALLOCA_H_TRUE='#'
19402 GL_GENERATE_ALLOCA_H_FALSE=
19431 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19434 if test $HAVE_DUP2 = 1; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19436 $as_echo_n "checking whether dup2 works... " >&6; }
19437 if test "${gl_cv_func_dup2_works+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19440 if test "$cross_compiling" = yes; then :
19442 mingw*) # on this platform, dup2 always returns 0 for success
19443 gl_cv_func_dup2_works=no;;
19444 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19445 gl_cv_func_dup2_works=no;;
19446 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19447 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19448 gl_cv_func_dup2_works=no;;
19449 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19450 gl_cv_func_dup2_works=no;;
19451 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19452 gl_cv_func_dup2_works=no;;
19453 *) gl_cv_func_dup2_works=yes;;
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 #include <unistd.h>
19467 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19470 if (dup2 (1, 1) == 0)
19473 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19477 if (dup2 (0, 0) != -1)
19479 /* Many gnulib modules require POSIX conformance of EBADF. */
19480 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19489 if ac_fn_c_try_run "$LINENO"; then :
19490 gl_cv_func_dup2_works=yes
19492 gl_cv_func_dup2_works=no
19494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19495 conftest.$ac_objext conftest.beam conftest.$ac_ext
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19501 $as_echo "$gl_cv_func_dup2_works" >&6; }
19502 if test "$gl_cv_func_dup2_works" = no; then
19508 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19517 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19537 # Persuade glibc <stdlib.h> to declare getloadavg().
19542 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19543 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19545 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19546 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19549 gl_func_getloadavg_done=no
19551 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19552 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19553 # to get the right answer into the cache.
19554 # For kstat on solaris, we need to test for libelf and libkvm to force the
19555 # definition of SVR4 below.
19556 if test $gl_func_getloadavg_done = no; then
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19558 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19559 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19562 ac_check_lib_save_LIBS=$LIBS
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19577 return elf_begin ();
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_lib_elf_elf_begin=yes
19585 ac_cv_lib_elf_elf_begin=no
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19592 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19593 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19598 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19599 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19602 ac_check_lib_save_LIBS=$LIBS
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19617 return kvm_open ();
19622 if ac_fn_c_try_link "$LINENO"; then :
19623 ac_cv_lib_kvm_kvm_open=yes
19625 ac_cv_lib_kvm_kvm_open=no
19627 rm -f core conftest.err conftest.$ac_objext \
19628 conftest$ac_exeext conftest.$ac_ext
19629 LIBS=$ac_check_lib_save_LIBS
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19632 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19633 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19637 # Check for the 4.4BSD definition of getloadavg.
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19639 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19640 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19641 $as_echo_n "(cached) " >&6
19643 ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lutil $LIBS"
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19648 /* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19654 char getloadavg ();
19658 return getloadavg ();
19663 if ac_fn_c_try_link "$LINENO"; then :
19664 ac_cv_lib_util_getloadavg=yes
19666 ac_cv_lib_util_getloadavg=no
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19673 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19674 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19675 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19680 if test $gl_func_getloadavg_done = no; then
19681 # There is a commonly available library for RS/6000 AIX.
19682 # Since it is not a standard part of AIX, it might be installed locally.
19683 gl_getloadavg_LIBS=$LIBS
19684 LIBS="-L/usr/local/lib $LIBS"
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19686 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19687 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19688 $as_echo_n "(cached) " >&6
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lgetloadavg $LIBS"
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19701 char getloadavg ();
19705 return getloadavg ();
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 ac_cv_lib_getloadavg_getloadavg=yes
19713 ac_cv_lib_getloadavg_getloadavg=no
19715 rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717 LIBS=$ac_check_lib_save_LIBS
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19720 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19721 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19722 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19724 LIBS=$gl_getloadavg_LIBS
19729 # Set up the replacement function if necessary.
19730 if test $gl_func_getloadavg_done = no; then
19733 # Solaris has libkstat which does not require root.
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19735 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19736 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
19739 ac_check_lib_save_LIBS=$LIBS
19740 LIBS="-lkstat $LIBS"
19741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742 /* end confdefs.h. */
19744 /* Override any GCC internal prototype to avoid an error.
19745 Use char because int might match the return type of a GCC
19746 builtin and then its argument prototype would still apply. */
19750 char kstat_open ();
19754 return kstat_open ();
19759 if ac_fn_c_try_link "$LINENO"; then :
19760 ac_cv_lib_kstat_kstat_open=yes
19762 ac_cv_lib_kstat_kstat_open=no
19764 rm -f core conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19769 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19770 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBKSTAT 1
19775 LIBS="-lkstat $LIBS"
19779 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19781 # AIX has libperfstat which does not require root
19782 if test $gl_func_getloadavg_done = no; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19784 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19785 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19786 $as_echo_n "(cached) " >&6
19788 ac_check_lib_save_LIBS=$LIBS
19789 LIBS="-lperfstat $LIBS"
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791 /* end confdefs.h. */
19793 /* Override any GCC internal prototype to avoid an error.
19794 Use char because int might match the return type of a GCC
19795 builtin and then its argument prototype would still apply. */
19799 char perfstat_cpu_total ();
19803 return perfstat_cpu_total ();
19808 if ac_fn_c_try_link "$LINENO"; then :
19809 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19811 ac_cv_lib_perfstat_perfstat_cpu_total=no
19813 rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19818 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19819 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19820 cat >>confdefs.h <<_ACEOF
19821 #define HAVE_LIBPERFSTAT 1
19824 LIBS="-lperfstat $LIBS"
19828 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19831 if test $gl_func_getloadavg_done = no; then
19832 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19833 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19834 gl_func_getloadavg_done=yes
19836 $as_echo "#define DGUX 1" >>confdefs.h
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19839 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19840 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19841 $as_echo_n "(cached) " >&6
19843 ac_check_lib_save_LIBS=$LIBS
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19848 /* Override any GCC internal prototype to avoid an error.
19849 Use char because int might match the return type of a GCC
19850 builtin and then its argument prototype would still apply. */
19854 char dg_sys_info ();
19858 return dg_sys_info ();
19863 if ac_fn_c_try_link "$LINENO"; then :
19864 ac_cv_lib_dgc_dg_sys_info=yes
19866 ac_cv_lib_dgc_dg_sys_info=no
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19873 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19874 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBDGC 1
19891 if test "x$gl_save_LIBS" = x; then
19892 GETLOADAVG_LIBS=$LIBS
19894 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19899 # Test whether the system declares getloadavg. Solaris has the function
19900 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19901 for ac_header in sys/loadavg.h
19903 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19904 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_SYS_LOADAVG_H 1
19913 if test $ac_cv_header_sys_loadavg_h = yes; then
19914 HAVE_SYS_LOADAVG_H=1
19916 HAVE_SYS_LOADAVG_H=0
19918 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19919 # include <sys/loadavg.h>
19921 #include <stdlib.h>
19923 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19926 HAVE_DECL_GETLOADAVG=0
19930 if test $HAVE_GETLOADAVG = 0; then
19939 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19942 # Figure out what our getloadavg.c needs.
19944 # On HPUX9, an unprivileged user can get load averages this way.
19945 if test $gl_func_getloadavg_done = no; then
19946 for ac_func in pstat_getdynamic
19948 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19949 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_PSTAT_GETDYNAMIC 1
19953 gl_func_getloadavg_done=yes
19959 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19960 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19961 # Irix 4.0.5F has the header but not the library.
19962 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19963 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19964 gl_func_getloadavg_done=yes
19966 $as_echo "#define SVR4 1" >>confdefs.h
19970 if test $gl_func_getloadavg_done = no; then
19971 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19972 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19973 gl_func_getloadavg_done=yes
19975 $as_echo "#define UMAX 1" >>confdefs.h
19978 $as_echo "#define UMAX4_3 1" >>confdefs.h
19985 if test $gl_func_getloadavg_done = no; then
19986 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19987 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19988 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19995 if test $gl_func_getloadavg_done = no; then
19996 for ac_header in mach/mach.h
19998 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19999 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_MACH_MACH_H 1
20010 for ac_header in nlist.h
20012 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20013 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_NLIST_H 1
20017 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20019 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20035 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20036 x.n_un.n_name = "";
20044 if ac_fn_c_try_link "$LINENO"; then :
20046 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20062 GNULIB_GETLOADAVG=1
20073 if test $REPLACE_GETOPT = 1; then
20082 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20092 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20106 if test -n "$gl_replace_getopt"; then :
20113 if test $REPLACE_GETOPT = 1; then
20117 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20121 GNULIB_UNISTD_H_GETOPT=1
20124 if test $REPLACE_GETOPT = 1; then
20133 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20143 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20154 if test $ac_cv_func_lstat = yes; then
20156 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20163 if test $REPLACE_LSTAT = 1; then
20172 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20196 if test $APPLE_UNIVERSAL_BUILD = 1; then
20197 # A universal build on Apple MacOS X platforms.
20198 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20199 # But we need a configuration result that is valid in both modes.
20200 gl_cv_func_working_mktime=no
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20203 $as_echo_n "checking for working mktime... " >&6; }
20204 if test "${gl_cv_func_working_mktime+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20207 if test "$cross_compiling" = yes; then :
20208 gl_cv_func_working_mktime=no
20210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h. */
20212 /* Test program from Paul Eggert and Tony Leneis. */
20213 #include <limits.h>
20214 #include <stdlib.h>
20217 #ifdef HAVE_UNISTD_H
20218 # include <unistd.h>
20222 # define alarm(X) /* empty */
20225 /* Work around redefinition to rpl_putenv by other config tests. */
20228 static time_t time_t_max;
20229 static time_t time_t_min;
20231 /* Values we'll use to set the TZ environment variable. */
20232 static char *tz_strings[] = {
20233 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20234 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20236 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20238 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20239 Based on a problem report from Andreas Jaeger. */
20241 spring_forward_gap ()
20243 /* glibc (up to about 1998-10-07) failed this test. */
20246 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20247 instead of "TZ=America/Vancouver" in order to detect the bug even
20248 on systems that don't support the Olson extension, or don't have the
20249 full zoneinfo tables installed. */
20250 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20259 return mktime (&tm) != (time_t) -1;
20263 mktime_test1 (time_t now)
20266 return ! (lt = localtime (&now)) || mktime (lt) == now;
20270 mktime_test (time_t now)
20272 return (mktime_test1 (now)
20273 && mktime_test1 ((time_t) (time_t_max - now))
20274 && mktime_test1 ((time_t) (time_t_min + now)));
20280 /* Based on code from Ariel Faigon. */
20290 return tm.tm_mon == 2 && tm.tm_mday == 31;
20294 bigtime_test (int j)
20298 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20299 now = mktime (&tm);
20300 if (now != (time_t) -1)
20302 struct tm *lt = localtime (&now);
20304 && lt->tm_year == tm.tm_year
20305 && lt->tm_mon == tm.tm_mon
20306 && lt->tm_mday == tm.tm_mday
20307 && lt->tm_hour == tm.tm_hour
20308 && lt->tm_min == tm.tm_min
20309 && lt->tm_sec == tm.tm_sec
20310 && lt->tm_yday == tm.tm_yday
20311 && lt->tm_wday == tm.tm_wday
20312 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20313 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20322 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20323 ignoring leap seconds. */
20324 unsigned long int answer = 2527315200UL;
20328 tm.tm_year = 2050 - 1900;
20331 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20334 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20335 instead of "TZ=America/Vancouver" in order to detect the bug even
20336 on systems that don't support the Olson extension, or don't have the
20337 full zoneinfo tables installed. */
20338 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20342 /* Check that the result is either a failure, or close enough
20343 to the correct answer that we can assume the discrepancy is
20344 due to leap seconds. */
20345 return (t == (time_t) -1
20346 || (0 < t && answer - 120 <= t && t <= answer + 120));
20355 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20356 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20358 /* This test makes some buggy mktime implementations loop.
20359 Give up after 60 seconds; a mktime slower than that
20360 isn't worth using anyway. */
20363 time_t_max = (! time_t_signed
20365 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20367 time_t_min = (! time_t_signed
20369 : time_t_signed_magnitude
20373 delta = time_t_max / 997; /* a suitable prime number */
20374 for (i = 0; i < N_STRINGS; i++)
20377 putenv (tz_strings[i]);
20379 for (t = 0; t <= time_t_max - delta; t += delta)
20380 if (! mktime_test (t))
20382 if (! (mktime_test ((time_t) 1)
20383 && mktime_test ((time_t) (60 * 60))
20384 && mktime_test ((time_t) (60 * 60 * 24))))
20387 for (j = 1; ; j <<= 1)
20388 if (! bigtime_test (j))
20390 else if (INT_MAX / 2 < j)
20392 if (! bigtime_test (INT_MAX))
20395 if (! irix_6_4_bug ())
20397 if (! spring_forward_gap ())
20399 if (! year_2050_test ())
20404 if ac_fn_c_try_run "$LINENO"; then :
20405 gl_cv_func_working_mktime=yes
20407 gl_cv_func_working_mktime=no
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20410 conftest.$ac_objext conftest.beam conftest.$ac_ext
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20416 $as_echo "$gl_cv_func_working_mktime" >&6; }
20418 if test $gl_cv_func_working_mktime = no; then
20424 if test $REPLACE_MKTIME = 1; then
20433 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20455 LIB_PTHREAD_SIGMASK=
20458 if test $ac_cv_func_pthread_sigmask = yes; then
20461 HAVE_PTHREAD_SIGMASK=0
20462 REPLACE_PTHREAD_SIGMASK=1
20468 if test $HAVE_PTHREAD_SIGMASK = 1; then
20471 if test -z "$LIB_PTHREAD_SIGMASK"; then
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20473 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20474 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20478 if test "$cross_compiling" = yes; then :
20481 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20482 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20484 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20491 #include <pthread.h>
20492 #include <signal.h>
20493 #include <stddef.h>
20497 sigemptyset (&set);
20498 return pthread_sigmask (1729, &set, NULL) != 0;
20501 if ac_fn_c_try_run "$LINENO"; then :
20502 gl_cv_func_pthread_sigmask_in_libc_works=no
20504 gl_cv_func_pthread_sigmask_in_libc_works=yes
20506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20507 conftest.$ac_objext conftest.beam conftest.$ac_ext
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20513 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20514 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20516 REPLACE_PTHREAD_SIGMASK=1
20518 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20525 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20526 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20530 gl_save_LIBS="$LIBS"
20531 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20532 if test "$cross_compiling" = yes; then :
20535 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20537 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20544 #include <pthread.h>
20545 #include <signal.h>
20546 #include <stddef.h>
20550 sigemptyset (&set);
20551 if (pthread_sigmask (1729, &set, NULL) == -1)
20556 if ac_fn_c_try_run "$LINENO"; then :
20557 gl_cv_func_pthread_sigmask_return_works=yes
20559 gl_cv_func_pthread_sigmask_return_works=no
20561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20562 conftest.$ac_objext conftest.beam conftest.$ac_ext
20565 LIBS="$gl_save_LIBS"
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20569 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20570 case "$gl_cv_func_pthread_sigmask_return_works" in
20572 REPLACE_PTHREAD_SIGMASK=1
20574 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20580 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20581 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20582 $as_echo_n "(cached) " >&6
20587 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20589 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20591 gl_save_LIBS="$LIBS"
20592 LIBS="$LIBS $LIBMULTITHREAD"
20593 if test "$cross_compiling" = yes; then :
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20599 #include <pthread.h>
20600 #include <signal.h>
20602 #include <stdlib.h>
20603 #include <unistd.h>
20604 static volatile int sigint_occurred;
20606 sigint_handler (int sig)
20613 int pid = getpid ();
20615 signal (SIGINT, sigint_handler);
20616 sigemptyset (&set);
20617 sigaddset (&set, SIGINT);
20618 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20620 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20621 if (!(system (command) == 0))
20624 if (!(sigint_occurred == 0))
20626 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20628 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20633 if ac_fn_c_try_run "$LINENO"; then :
20636 gl_cv_func_pthread_sigmask_unblock_works=no
20638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20639 conftest.$ac_objext conftest.beam conftest.$ac_ext
20642 LIBS="$gl_save_LIBS"
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20646 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20647 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20649 REPLACE_PTHREAD_SIGMASK=1
20651 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20657 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20666 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20669 if test $HAVE_PTHREAD_SIGMASK = 1; then
20671 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20681 GNULIB_PTHREAD_SIGMASK=1
20689 >>>>>>> MERGE-SOURCE
20691 if test $ac_cv_func_readlink = no; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20695 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20696 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20697 $as_echo_n "(cached) " >&6
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 #include <unistd.h>
20702 /* Cause compilation failure if original declaration has wrong type. */
20703 ssize_t readlink (const char *, char *, size_t);
20712 if ac_fn_c_try_compile "$LINENO"; then :
20713 gl_cv_decl_readlink_works=yes
20715 gl_cv_decl_readlink_works=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20720 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20722 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20723 if test "${gl_cv_func_readlink_works+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20726 # We have readlink, so assume ln -s works.
20727 ln -s conftest.no-such conftest.link
20728 ln -s conftest.link conftest.lnk2
20729 if test "$cross_compiling" = yes; then :
20730 gl_cv_func_readlink_works="guessing no"
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20734 #include <unistd.h>
20740 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20745 if ac_fn_c_try_run "$LINENO"; then :
20746 gl_cv_func_readlink_works=yes
20748 gl_cv_func_readlink_works=no
20750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20751 conftest.$ac_objext conftest.beam conftest.$ac_ext
20754 rm -f conftest.link conftest.lnk2
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20757 $as_echo "$gl_cv_func_readlink_works" >&6; }
20758 if test "$gl_cv_func_readlink_works" != yes; then
20760 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20763 elif test "$gl_cv_decl_readlink_works" != yes; then
20768 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20777 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20807 if test $gl_cv_have_include_next = yes; then
20808 gl_cv_next_signal_h='<'signal.h'>'
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20811 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20812 if test "${gl_cv_next_signal_h+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20818 #include <signal.h>
20822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20823 *) gl_absname_cpp="$ac_cpp" ;;
20828 gl_dirsep_regex='[/\\]'
20831 gl_dirsep_regex='/'
20835 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
20836 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20841 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20842 sed -n "$gl_absolute_header_sed"`'"'
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20847 $as_echo "$gl_cv_next_signal_h" >&6; }
20849 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20851 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20853 gl_next_as_first_directive='<'signal.h'>'
20855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20856 gl_next_as_first_directive=$gl_cv_next_signal_h
20858 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20864 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20865 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20866 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20867 #include <signal.h>
20870 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20873 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20882 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20883 #include <signal.h>
20886 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20889 HAVE_SIGHANDLER_T=0
20895 >>>>>>> MERGE-SOURCE
20896 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20897 /* <sys/types.h> is not needed according to POSIX, but the
20898 <sys/socket.h> in i386-unknown-freebsd4.10 and
20899 powerpc-apple-darwin5.5 required it. */
20900 #include <sys/types.h>
20901 #if HAVE_SYS_SOCKET_H
20902 # include <sys/socket.h>
20903 #elif HAVE_WS2TCPIP_H
20904 # include <ws2tcpip.h>
20908 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20912 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20913 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20914 $as_echo_n "(cached) " >&6
20916 # Systems have either "struct sockaddr *" or
20917 # "void *" as the second argument to getpeername
20918 gl_cv_socklen_t_equiv=
20919 for arg2 in "struct sockaddr" void; do
20920 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h. */
20923 #include <sys/types.h>
20924 #include <sys/socket.h>
20926 int getpeername (int, $arg2 *, $t *);
20931 getpeername (0, 0, &len);
20936 if ac_fn_c_try_compile "$LINENO"; then :
20937 gl_cv_socklen_t_equiv="$t"
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 test "$gl_cv_socklen_t_equiv" != "" && break
20942 test "$gl_cv_socklen_t_equiv" != "" && break
20947 if test "$gl_cv_socklen_t_equiv" = ""; then
20948 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20951 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20953 cat >>confdefs.h <<_ACEOF
20954 #define socklen_t $gl_cv_socklen_t_equiv
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20961 $as_echo_n "checking for ssize_t... " >&6; }
20962 if test "${gt_cv_ssize_t+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967 #include <sys/types.h>
20971 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20977 if ac_fn_c_try_compile "$LINENO"; then :
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20985 $as_echo "$gt_cv_ssize_t" >&6; }
20986 if test $gt_cv_ssize_t = no; then
20988 $as_echo "#define ssize_t int" >>confdefs.h
20994 NEXT_STDARG_H='<stdarg.h>'
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20996 $as_echo_n "checking for va_copy... " >&6; }
20997 if test "${gl_cv_func_va_copy+set}" = set; then :
20998 $as_echo_n "(cached) " >&6
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003 #include <stdarg.h>
21009 void (*func) (va_list, va_list) = va_copy;
21016 if ac_fn_c_try_compile "$LINENO"; then :
21017 gl_cv_func_va_copy=yes
21019 gl_cv_func_va_copy=no
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21025 $as_echo "$gl_cv_func_va_copy" >&6; }
21026 if test $gl_cv_func_va_copy = no; then
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21029 #if defined _AIX && !defined __GNUC__
21034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21035 $EGREP "vaccine" >/dev/null 2>&1; then :
21042 if test $gl_aixcc = yes; then
21052 if test $gl_cv_have_include_next = yes; then
21053 gl_cv_next_stdarg_h='<'stdarg.h'>'
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21056 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21057 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21058 $as_echo_n "(cached) " >&6
21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h. */
21063 #include <stdarg.h>
21067 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21068 *) gl_absname_cpp="$ac_cpp" ;;
21073 gl_dirsep_regex='[/\\]'
21076 gl_dirsep_regex='/'
21080 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
21081 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
21086 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21087 sed -n "$gl_absolute_header_sed"`'"'
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21092 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21094 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21098 gl_next_as_first_directive='<'stdarg.h'>'
21100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21101 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21103 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21108 if test "$gl_cv_next_stdarg_h" = '""'; then
21109 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21110 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21114 saved_as_echo_n="$as_echo_n"
21116 if test "${gl_cv_func___va_copy+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #include <stdarg.h>
21135 if ac_fn_c_try_compile "$LINENO"; then :
21136 gl_cv_func___va_copy=yes
21138 gl_cv_func___va_copy=no
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21143 as_echo_n="$saved_as_echo_n"
21145 if test $gl_cv_func___va_copy = yes; then
21147 $as_echo "#define va_copy __va_copy" >>confdefs.h
21152 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21158 if test -n "$STDARG_H"; then
21159 GL_GENERATE_STDARG_H_TRUE=
21160 GL_GENERATE_STDARG_H_FALSE='#'
21162 GL_GENERATE_STDARG_H_TRUE='#'
21163 GL_GENERATE_STDARG_H_FALSE=
21171 # Define two additional variables used in the Makefile substitution.
21173 if test "$ac_cv_header_stdbool_h" = yes; then
21176 STDBOOL_H='stdbool.h'
21179 if test -n "$STDBOOL_H"; then
21180 GL_GENERATE_STDBOOL_H_TRUE=
21181 GL_GENERATE_STDBOOL_H_FALSE='#'
21183 GL_GENERATE_STDBOOL_H_TRUE='#'
21184 GL_GENERATE_STDBOOL_H_FALSE=
21188 if test "$ac_cv_type__Bool" = yes; then
21199 if test $gt_cv_c_wchar_t = no; then
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21204 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21205 if test "${gl_cv_decl_null_works+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21210 #include <stddef.h>
21211 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21221 if ac_fn_c_try_compile "$LINENO"; then :
21222 gl_cv_decl_null_works=yes
21224 gl_cv_decl_null_works=no
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21229 $as_echo "$gl_cv_decl_null_works" >&6; }
21230 if test $gl_cv_decl_null_works = no; then
21235 if test -n "$STDDEF_H"; then
21236 GL_GENERATE_STDDEF_H_TRUE=
21237 GL_GENERATE_STDDEF_H_FALSE='#'
21239 GL_GENERATE_STDDEF_H_TRUE='#'
21240 GL_GENERATE_STDDEF_H_FALSE=
21243 if test -n "$STDDEF_H"; then
21252 if test $gl_cv_have_include_next = yes; then
21253 gl_cv_next_stddef_h='<'stddef.h'>'
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21256 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21257 if test "${gl_cv_next_stddef_h+set}" = set; then :
21258 $as_echo_n "(cached) " >&6
21261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21262 /* end confdefs.h. */
21263 #include <stddef.h>
21267 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21268 *) gl_absname_cpp="$ac_cpp" ;;
21273 gl_dirsep_regex='[/\\]'
21276 gl_dirsep_regex='/'
21280 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
21281 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21286 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21287 sed -n "$gl_absolute_header_sed"`'"'
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21292 $as_echo "$gl_cv_next_stddef_h" >&6; }
21294 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21296 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21298 gl_next_as_first_directive='<'stddef.h'>'
21300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21301 gl_next_as_first_directive=$gl_cv_next_stddef_h
21303 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21322 if test $gl_cv_have_include_next = yes; then
21323 gl_cv_next_stdio_h='<'stdio.h'>'
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21326 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21327 if test "${gl_cv_next_stdio_h+set}" = set; then :
21328 $as_echo_n "(cached) " >&6
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21338 *) gl_absname_cpp="$ac_cpp" ;;
21343 gl_dirsep_regex='[/\\]'
21346 gl_dirsep_regex='/'
21350 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
21351 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21356 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21357 sed -n "$gl_absolute_header_sed"`'"'
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21362 $as_echo "$gl_cv_next_stdio_h" >&6; }
21364 NEXT_STDIO_H=$gl_cv_next_stdio_h
21366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21368 gl_next_as_first_directive='<'stdio.h'>'
21370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21371 gl_next_as_first_directive=$gl_cv_next_stdio_h
21373 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21414 if test $gl_cv_have_include_next = yes; then
21415 gl_cv_next_stdlib_h='<'stdlib.h'>'
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21418 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21419 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21425 #include <stdlib.h>
21429 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21430 *) gl_absname_cpp="$ac_cpp" ;;
21435 gl_dirsep_regex='[/\\]'
21438 gl_dirsep_regex='/'
21442 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
21443 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21448 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21449 sed -n "$gl_absolute_header_sed"`'"'
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21454 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21456 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21458 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21460 gl_next_as_first_directive='<'stdlib.h'>'
21462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21463 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21465 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21475 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21483 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21494 if test "$ac_cv_have_decl_strtoimax" != yes; then
21495 HAVE_DECL_STRTOIMAX=0
21498 if test $ac_cv_func_strtoimax = no; then
21507 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21510 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21511 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_DECL_STRTOLL $ac_have_decl
21539 >>>>>>> MERGE-SOURCE
21540 if test "$ac_cv_have_decl_strtoumax" != yes; then
21541 HAVE_DECL_STRTOUMAX=0
21544 if test $ac_cv_func_strtoumax = no; then
21553 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21556 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21557 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_DECL_STRTOULL $ac_have_decl
21583 if test $ac_cv_func_symlink = no; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21587 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21588 if test "${gl_cv_func_symlink_works+set}" = set; then :
21589 $as_echo_n "(cached) " >&6
21591 if test "$cross_compiling" = yes; then :
21592 gl_cv_func_symlink_works="guessing no"
21594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21595 /* end confdefs.h. */
21596 #include <unistd.h>
21602 if (!symlink ("a", "conftest.link/"))
21604 if (symlink ("conftest.f", "conftest.lnk2"))
21606 else if (!symlink ("a", "conftest.lnk2/"))
21614 if ac_fn_c_try_run "$LINENO"; then :
21615 gl_cv_func_symlink_works=yes
21617 gl_cv_func_symlink_works=no
21619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21620 conftest.$ac_objext conftest.beam conftest.$ac_ext
21623 rm -f conftest.f conftest.link conftest.lnk2
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21626 $as_echo "$gl_cv_func_symlink_works" >&6; }
21627 if test "$gl_cv_func_symlink_works" != yes; then
21632 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21641 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21671 if test $gl_cv_have_include_next = yes; then
21672 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21675 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21676 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21677 $as_echo_n "(cached) " >&6
21680 if test $ac_cv_header_sys_stat_h = yes; then
21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h. */
21685 #include <sys/stat.h>
21689 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21690 *) gl_absname_cpp="$ac_cpp" ;;
21695 gl_dirsep_regex='[/\\]'
21698 gl_dirsep_regex='/'
21702 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21703 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21708 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21709 sed -n "$gl_absolute_header_sed"`'"'
21711 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21717 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21719 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21721 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21723 gl_next_as_first_directive='<'sys/stat.h'>'
21725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21726 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21728 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21734 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21735 #include <sys/stat.h>
21737 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21741 $as_echo "#define nlink_t int" >>confdefs.h
21759 if test $ac_cv_have_decl_localtime_r = no; then
21760 HAVE_DECL_LOCALTIME_R=0
21764 if test $ac_cv_func_localtime_r = yes; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21767 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21768 if test "${gl_cv_time_r_posix+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21772 /* end confdefs.h. */
21777 /* We don't need to append 'restrict's to the argument types,
21778 even though the POSIX signature has the 'restrict's,
21779 since C99 says they can't affect type compatibility. */
21780 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21782 /* Check the return type is a pointer.
21783 On HP-UX 10 it is 'int'. */
21784 *localtime_r (0, 0);
21790 if ac_fn_c_try_compile "$LINENO"; then :
21791 gl_cv_time_r_posix=yes
21793 gl_cv_time_r_posix=no
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21799 $as_echo "$gl_cv_time_r_posix" >&6; }
21800 if test $gl_cv_time_r_posix = yes; then
21801 REPLACE_LOCALTIME_R=0
21803 REPLACE_LOCALTIME_R=1
21809 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21818 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21849 if test $gl_cv_have_include_next = yes; then
21850 gl_cv_next_unistd_h='<'unistd.h'>'
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21853 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21854 if test "${gl_cv_next_unistd_h+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21858 if test $ac_cv_header_unistd_h = yes; then
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863 #include <unistd.h>
21867 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21868 *) gl_absname_cpp="$ac_cpp" ;;
21873 gl_dirsep_regex='[/\\]'
21876 gl_dirsep_regex='/'
21880 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21881 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21886 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21887 sed -n "$gl_absolute_header_sed"`'"'
21889 gl_cv_next_unistd_h='<'unistd.h'>'
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21895 $as_echo "$gl_cv_next_unistd_h" >&6; }
21897 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21901 gl_next_as_first_directive='<'unistd.h'>'
21903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21904 gl_next_as_first_directive=$gl_cv_next_unistd_h
21906 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21911 if test $ac_cv_header_unistd_h = yes; then
21922 gl_gnulib_enabled_dosname=false
21923 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21926 gl_gnulib_enabled_pathmax=false
21927 gl_gnulib_enabled_sigprocmask=false
21928 >>>>>>> MERGE-SOURCE
21929 gl_gnulib_enabled_stat=false
21930 gl_gnulib_enabled_strtoull=false
21931 gl_gnulib_enabled_verify=false
21932 func_gl_gnulib_m4code_dosname ()
21934 if ! $gl_gnulib_enabled_dosname; then
21935 gl_gnulib_enabled_dosname=true
21938 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21940 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21943 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21950 func_gl_gnulib_m4code_pathmax ()
21952 if ! $gl_gnulib_enabled_pathmax; then
21956 gl_gnulib_enabled_pathmax=true
21959 >>>>>>> MERGE-SOURCE
21960 func_gl_gnulib_m4code_sigprocmask ()
21962 if ! $gl_gnulib_enabled_sigprocmask; then
21966 if test $gl_cv_type_sigset_t = yes; then
21967 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21968 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21969 gl_cv_func_sigprocmask=1
21973 if test -z "$gl_cv_func_sigprocmask"; then
21974 HAVE_POSIX_SIGNALBLOCKING=0
21977 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21986 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21995 GNULIB_SIGPROCMASK=1
22001 gl_gnulib_enabled_sigprocmask=true
22004 >>>>>>> MERGE-SOURCE
22005 func_gl_gnulib_m4code_stat ()
22007 if ! $gl_gnulib_enabled_stat; then
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22012 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22013 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22016 if test "$cross_compiling" = yes; then :
22018 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22019 *) gl_cv_func_stat_dir_slash="guessing yes";;
22022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024 #include <sys/stat.h>
22029 struct stat st; return stat (".", &st) != stat ("./", &st);
22034 if ac_fn_c_try_run "$LINENO"; then :
22035 gl_cv_func_stat_dir_slash=yes
22037 gl_cv_func_stat_dir_slash=no
22039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22040 conftest.$ac_objext conftest.beam conftest.$ac_ext
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22045 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22047 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22048 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22052 # Assume that if we have lstat, we can also check symlinks.
22053 if test $ac_cv_func_lstat = yes; then
22054 ln -s conftest.tmp conftest.lnk
22056 if test "$cross_compiling" = yes; then :
22057 gl_cv_func_stat_file_slash="guessing no"
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h. */
22061 #include <sys/stat.h>
22068 if (!stat ("conftest.tmp/", &st))
22071 if (!stat ("conftest.lnk/", &st))
22080 if ac_fn_c_try_run "$LINENO"; then :
22081 gl_cv_func_stat_file_slash=yes
22083 gl_cv_func_stat_file_slash=no
22085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22086 conftest.$ac_objext conftest.beam conftest.$ac_ext
22089 rm -f conftest.tmp conftest.lnk
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22092 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22093 case $gl_cv_func_stat_dir_slash in
22094 *no) REPLACE_STAT=1
22096 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22099 case $gl_cv_func_stat_file_slash in
22100 *no) REPLACE_STAT=1
22102 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22106 if test $REPLACE_STAT = 1; then
22115 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22133 gl_gnulib_enabled_stat=true
22134 if test $REPLACE_STAT = 1; then
22135 func_gl_gnulib_m4code_dosname
22138 if $condition; then
22140 if test $REPLACE_STAT = 1; then
22142 >>>>>>> MERGE-SOURCE
22144 func_gl_gnulib_m4code_pathmax
22146 if test $REPLACE_STAT = 1; then
22147 >>>>>>> MERGE-SOURCE
22148 func_gl_gnulib_m4code_verify
22154 func_gl_gnulib_m4code_strtoll ()
22156 if ! $gl_gnulib_enabled_strtoll; then
22160 if test "$ac_cv_type_long_long_int" = yes; then
22161 for ac_func in strtoll
22163 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22164 if test "x$ac_cv_func_strtoll" = x""yes; then :
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_STRTOLL 1
22172 if test $ac_cv_func_strtoll = no; then
22177 if test $HAVE_STRTOLL = 0; then
22186 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22203 gl_gnulib_enabled_strtoll=true
22206 >>>>>>> MERGE-SOURCE
22207 func_gl_gnulib_m4code_strtoull ()
22209 if ! $gl_gnulib_enabled_strtoull; then
22213 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22214 for ac_func in strtoull
22216 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22217 if test "x$ac_cv_func_strtoull" = x""yes; then :
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_STRTOULL 1
22225 if test $ac_cv_func_strtoull = no; then
22230 if test $HAVE_STRTOULL = 0; then
22239 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22256 gl_gnulib_enabled_strtoull=true
22259 func_gl_gnulib_m4code_verify ()
22261 if ! $gl_gnulib_enabled_verify; then
22262 gl_gnulib_enabled_verify=true
22265 if test $REPLACE_GETOPT = 1; then
22266 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22268 if test $REPLACE_LSTAT = 1; then
22269 func_gl_gnulib_m4code_dosname
22271 if test $REPLACE_LSTAT = 1; then
22272 func_gl_gnulib_m4code_stat
22274 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22275 func_gl_gnulib_m4code_stat
22278 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22280 if test $ac_cv_func_strtoimax = no; then
22281 func_gl_gnulib_m4code_verify
22283 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22284 func_gl_gnulib_m4code_strtoll
22286 if test $ac_cv_func_strtoumax = no; then
22287 >>>>>>> MERGE-SOURCE
22288 func_gl_gnulib_m4code_verify
22290 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22291 func_gl_gnulib_m4code_strtoull
22294 if $gl_gnulib_enabled_dosname; then
22295 gl_GNULIB_ENABLED_dosname_TRUE=
22296 gl_GNULIB_ENABLED_dosname_FALSE='#'
22298 gl_GNULIB_ENABLED_dosname_TRUE='#'
22299 gl_GNULIB_ENABLED_dosname_FALSE=
22302 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22303 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22304 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22306 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22307 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22312 if $gl_gnulib_enabled_pathmax; then
22313 gl_GNULIB_ENABLED_pathmax_TRUE=
22314 gl_GNULIB_ENABLED_pathmax_FALSE='#'
22316 gl_GNULIB_ENABLED_pathmax_TRUE='#'
22317 gl_GNULIB_ENABLED_pathmax_FALSE=
22320 if $gl_gnulib_enabled_sigprocmask; then
22321 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22322 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22324 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22325 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22328 >>>>>>> MERGE-SOURCE
22329 if $gl_gnulib_enabled_stat; then
22330 gl_GNULIB_ENABLED_stat_TRUE=
22331 gl_GNULIB_ENABLED_stat_FALSE='#'
22333 gl_GNULIB_ENABLED_stat_TRUE='#'
22334 gl_GNULIB_ENABLED_stat_FALSE=
22337 if $gl_gnulib_enabled_strtoull; then
22338 gl_GNULIB_ENABLED_strtoull_TRUE=
22339 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22341 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22342 gl_GNULIB_ENABLED_strtoull_FALSE=
22345 if $gl_gnulib_enabled_verify; then
22346 gl_GNULIB_ENABLED_verify_TRUE=
22347 gl_GNULIB_ENABLED_verify_FALSE='#'
22349 gl_GNULIB_ENABLED_verify_TRUE='#'
22350 gl_GNULIB_ENABLED_verify_FALSE=
22353 # End of code from modules
22374 gl_source_base='tests'
22375 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
22377 gl_module_indicator_condition=$gltests_WITNESS
22388 LIBGNU_LIBDEPS="$gl_libdeps"
22390 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22395 for ac_func in grantpt
22397 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22398 if test "x$ac_cv_func_grantpt" = x""yes; then :
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_GRANTPT 1
22407 # PTY-related GNU extensions.
22408 for ac_func in getpt
22410 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22411 if test "x$ac_cv_func_getpt" = x""yes; then :
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_GETPT 1
22420 # Check this now, so that we will NOT find the above functions in ncurses.
22421 # That is because we have not set up to link ncurses in lib-src.
22422 # It's better to believe a function is not available
22423 # than to expect to find it in ncurses.
22424 # Also we need tputs and friends to be able to build at all.
22425 have_tputs_et_al=true
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22427 $as_echo_n "checking for library containing tputs... " >&6; }
22428 if test "${ac_cv_search_tputs+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22431 ac_func_search_save_LIBS=$LIBS
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22435 /* Override any GCC internal prototype to avoid an error.
22436 Use char because int might match the return type of a GCC
22437 builtin and then its argument prototype would still apply. */
22450 for ac_lib in '' ncurses terminfo termcap; do
22451 if test -z "$ac_lib"; then
22452 ac_res="none required"
22455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22457 if ac_fn_c_try_link "$LINENO"; then :
22458 ac_cv_search_tputs=$ac_res
22460 rm -f core conftest.err conftest.$ac_objext \
22462 if test "${ac_cv_search_tputs+set}" = set; then :
22466 if test "${ac_cv_search_tputs+set}" = set; then :
22469 ac_cv_search_tputs=no
22471 rm conftest.$ac_ext
22472 LIBS=$ac_func_search_save_LIBS
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22475 $as_echo "$ac_cv_search_tputs" >&6; }
22476 ac_res=$ac_cv_search_tputs
22477 if test "$ac_res" != no; then :
22478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22481 have_tputs_et_al=false
22484 if test "$have_tputs_et_al" != true; then
22485 as_fn_error "I couldn't find termcap functions (tputs and friends).
22486 Maybe some development libraries/packages are missing? Try installing
22487 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22489 # Must define this when any termcap library is found.
22491 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22493 ## FIXME This was the cpp logic, but I am not sure it is right.
22494 ## The above test has not necessarily found libncurses.
22495 HAVE_LIBNCURSES=yes
22497 ## Use terminfo instead of termcap?
22498 ## Note only system files NOT using terminfo are:
22499 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22500 ## darwin|gnu without ncurses.
22504 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22505 ## hpux10-20: Use the system provided termcap(3) library.
22506 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22507 ## is necessary. Otherwise Emacs dumps core when run -nw.
22508 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22510 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22511 ## The ncurses library has been moved out of the System framework in
22512 ## Mac OS X 10.2. So if configure detects it, set the command-line
22513 ## option to use it.
22515 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22516 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22518 LIBS_TERMCAP="-lncurses"
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22524 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22525 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22529 /* end confdefs.h. */
22530 #include <osreldate.h>
22534 #if __FreeBSD_version < 400000
22542 if ac_fn_c_try_link "$LINENO"; then :
22543 emacs_cv_freebsd_terminfo=yes
22545 emacs_cv_freebsd_terminfo=no
22547 rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22553 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22555 if test $emacs_cv_freebsd_terminfo = yes; then
22557 LIBS_TERMCAP="-lncurses"
22559 LIBS_TERMCAP="-ltermcap"
22564 if test $ac_cv_search_tputs = -lterminfo; then
22566 LIBS_TERMCAP="-lterminfo"
22568 LIBS_TERMCAP="-ltermcap"
22575 ## hpux: Make sure we get select from libc rather than from libcurses
22576 ## because libcurses on HPUX 10.10 has a broken version of select.
22577 ## We used to use -lc -lcurses, but this may be cleaner.
22578 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22580 openbsd) LIBS_TERMCAP="-lncurses" ;;
22582 ## Must use system termcap, if we use any termcap. It does special things.
22583 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22586 TERMCAP_OBJ=tparam.o
22587 if test $TERMINFO = yes; then
22589 $as_echo "#define TERMINFO 1" >>confdefs.h
22592 ## Default used to be -ltermcap. Add a case above if need something else.
22593 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22595 TERMCAP_OBJ=terminfo.o
22601 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22605 #include <netinet/in.h>
22606 #include <arpa/nameser.h>
22607 #include <resolv.h>
22616 if ac_fn_c_try_link "$LINENO"; then :
22621 rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623 if test "$have_res_init" = no; then
22625 LIBS="$LIBS -lresolv"
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22627 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22630 #include <netinet/in.h>
22631 #include <arpa/nameser.h>
22632 #include <resolv.h>
22641 if ac_fn_c_try_link "$LINENO"; then :
22646 rm -f core conftest.err conftest.$ac_objext \
22647 conftest$ac_exeext conftest.$ac_ext
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22649 $as_echo "$have_res_init" >&6; }
22650 if test "$have_res_init" = yes ; then
22656 if test "$have_res_init" = yes; then
22658 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22662 # Do we need the Hesiod library to provide the support routines?
22664 if test "$with_hesiod" != no ; then
22665 # Don't set $LIBS here -- see comments above. FIXME which comments?
22666 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22667 if test "x$ac_cv_func_res_send" = x""yes; then :
22670 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22671 if test "x$ac_cv_func___res_send" = x""yes; then :
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22675 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22676 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22679 ac_check_lib_save_LIBS=$LIBS
22680 LIBS="-lresolv $LIBS"
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22684 /* Override any GCC internal prototype to avoid an error.
22685 Use char because int might match the return type of a GCC
22686 builtin and then its argument prototype would still apply. */
22694 return res_send ();
22699 if ac_fn_c_try_link "$LINENO"; then :
22700 ac_cv_lib_resolv_res_send=yes
22702 ac_cv_lib_resolv_res_send=no
22704 rm -f core conftest.err conftest.$ac_objext \
22705 conftest$ac_exeext conftest.$ac_ext
22706 LIBS=$ac_check_lib_save_LIBS
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22709 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22710 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22714 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22715 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22716 $as_echo_n "(cached) " >&6
22718 ac_check_lib_save_LIBS=$LIBS
22719 LIBS="-lresolv $LIBS"
22720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721 /* end confdefs.h. */
22723 /* Override any GCC internal prototype to avoid an error.
22724 Use char because int might match the return type of a GCC
22725 builtin and then its argument prototype would still apply. */
22729 char __res_send ();
22733 return __res_send ();
22738 if ac_fn_c_try_link "$LINENO"; then :
22739 ac_cv_lib_resolv___res_send=yes
22741 ac_cv_lib_resolv___res_send=no
22743 rm -f core conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
22745 LIBS=$ac_check_lib_save_LIBS
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22748 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22749 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22759 if test "$resolv" = yes ; then
22764 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22765 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22769 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22770 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-lhesiod $RESOLVLIB $LIBS"
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h. */
22778 /* Override any GCC internal prototype to avoid an error.
22779 Use char because int might match the return type of a GCC
22780 builtin and then its argument prototype would still apply. */
22784 char hes_getmailhost ();
22788 return hes_getmailhost ();
22793 if ac_fn_c_try_link "$LINENO"; then :
22794 ac_cv_lib_hesiod_hes_getmailhost=yes
22796 ac_cv_lib_hesiod_hes_getmailhost=no
22798 rm -f core conftest.err conftest.$ac_objext \
22799 conftest$ac_exeext conftest.$ac_ext
22800 LIBS=$ac_check_lib_save_LIBS
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22803 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22804 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22813 if test x"$hesiod" = xyes; then
22815 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22822 # Do we need libresolv (due to res_init or Hesiod)?
22823 if test "$resolv" = yes ; then
22825 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22833 # These tell us which Kerberos-related libraries to use.
22840 if test "${with_kerberos}" != no; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22842 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22843 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lcom_err $LIBS"
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22851 /* Override any GCC internal prototype to avoid an error.
22852 Use char because int might match the return type of a GCC
22853 builtin and then its argument prototype would still apply. */
22866 if ac_fn_c_try_link "$LINENO"; then :
22867 ac_cv_lib_com_err_com_err=yes
22869 ac_cv_lib_com_err_com_err=no
22871 rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22876 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22877 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22883 if test $have_com_err = yes; then
22884 COM_ERRLIB=-lcom_err
22885 LIBS="$COM_ERRLIB $LIBS"
22887 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22891 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22892 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22895 ac_check_lib_save_LIBS=$LIBS
22896 LIBS="-lcrypto $LIBS"
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h. */
22900 /* Override any GCC internal prototype to avoid an error.
22901 Use char because int might match the return type of a GCC
22902 builtin and then its argument prototype would still apply. */
22906 char mit_des_cbc_encrypt ();
22910 return mit_des_cbc_encrypt ();
22915 if ac_fn_c_try_link "$LINENO"; then :
22916 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22918 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext conftest.$ac_ext
22922 LIBS=$ac_check_lib_save_LIBS
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22925 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22926 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22932 if test $have_crypto = yes; then
22934 LIBS="$CRYPTOLIB $LIBS"
22936 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22940 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22941 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22944 ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lk5crypto $LIBS"
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h. */
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22955 char mit_des_cbc_encrypt ();
22959 return mit_des_cbc_encrypt ();
22964 if ac_fn_c_try_link "$LINENO"; then :
22965 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22967 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22969 rm -f core conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22974 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22975 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22981 if test $have_k5crypto = yes; then
22982 CRYPTOLIB=-lk5crypto
22983 LIBS="$CRYPTOLIB $LIBS"
22985 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22989 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22990 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22993 ac_check_lib_save_LIBS=$LIBS
22994 LIBS="-lkrb5 $LIBS"
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22998 /* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23004 char krb5_init_context ();
23008 return krb5_init_context ();
23013 if ac_fn_c_try_link "$LINENO"; then :
23014 ac_cv_lib_krb5_krb5_init_context=yes
23016 ac_cv_lib_krb5_krb5_init_context=no
23018 rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020 LIBS=$ac_check_lib_save_LIBS
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
23023 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
23024 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
23030 if test $have_krb5=yes; then
23032 LIBS="$KRB5LIB $LIBS"
23034 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
23037 if test "${with_kerberos5}" = no; then
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
23039 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
23040 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
23041 $as_echo_n "(cached) " >&6
23043 ac_check_lib_save_LIBS=$LIBS
23044 LIBS="-ldes425 $LIBS"
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23048 /* Override any GCC internal prototype to avoid an error.
23049 Use char because int might match the return type of a GCC
23050 builtin and then its argument prototype would still apply. */
23054 char des_cbc_encrypt ();
23058 return des_cbc_encrypt ();
23063 if ac_fn_c_try_link "$LINENO"; then :
23064 ac_cv_lib_des425_des_cbc_encrypt=yes
23066 ac_cv_lib_des425_des_cbc_encrypt=no
23068 rm -f core conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 LIBS=$ac_check_lib_save_LIBS
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
23073 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
23074 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
23080 if test $have_des425 = yes; then
23082 LIBS="$DESLIB $LIBS"
23084 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
23088 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
23089 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23092 ac_check_lib_save_LIBS=$LIBS
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23097 /* Override any GCC internal prototype to avoid an error.
23098 Use char because int might match the return type of a GCC
23099 builtin and then its argument prototype would still apply. */
23103 char des_cbc_encrypt ();
23107 return des_cbc_encrypt ();
23112 if ac_fn_c_try_link "$LINENO"; then :
23113 ac_cv_lib_des_des_cbc_encrypt=yes
23115 ac_cv_lib_des_des_cbc_encrypt=no
23117 rm -f core conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
23119 LIBS=$ac_check_lib_save_LIBS
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
23122 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23123 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
23129 if test $have_des = yes; then
23131 LIBS="$DESLIB $LIBS"
23133 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
23138 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23139 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23142 ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lkrb4 $LIBS"
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 /* Override any GCC internal prototype to avoid an error.
23148 Use char because int might match the return type of a GCC
23149 builtin and then its argument prototype would still apply. */
23153 char krb_get_cred ();
23157 return krb_get_cred ();
23162 if ac_fn_c_try_link "$LINENO"; then :
23163 ac_cv_lib_krb4_krb_get_cred=yes
23165 ac_cv_lib_krb4_krb_get_cred=no
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23169 LIBS=$ac_check_lib_save_LIBS
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23172 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23173 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
23179 if test $have_krb4 = yes; then
23181 LIBS="$KRB4LIB $LIBS"
23183 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
23187 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23188 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23191 ac_check_lib_save_LIBS=$LIBS
23193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23194 /* end confdefs.h. */
23196 /* Override any GCC internal prototype to avoid an error.
23197 Use char because int might match the return type of a GCC
23198 builtin and then its argument prototype would still apply. */
23202 char krb_get_cred ();
23206 return krb_get_cred ();
23211 if ac_fn_c_try_link "$LINENO"; then :
23212 ac_cv_lib_krb_krb_get_cred=yes
23214 ac_cv_lib_krb_krb_get_cred=no
23216 rm -f core conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23218 LIBS=$ac_check_lib_save_LIBS
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23221 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23222 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23228 if test $have_krb = yes; then
23230 LIBS="$KRB4LIB $LIBS"
23232 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23238 if test "${with_kerberos5}" != no; then
23239 for ac_header in krb5.h
23241 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23242 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23243 cat >>confdefs.h <<_ACEOF
23244 #define HAVE_KRB5_H 1
23246 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23248 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_KRB5_ERROR_TEXT 1
23256 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23258 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_KRB5_ERROR_E_TEXT 1
23272 for ac_header in des.h
23274 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23275 if test "x$ac_cv_header_des_h" = x""yes; then :
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_DES_H 1
23281 for ac_header in kerberosIV/des.h
23283 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23284 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23285 cat >>confdefs.h <<_ACEOF
23286 #define HAVE_KERBEROSIV_DES_H 1
23290 for ac_header in kerberos/des.h
23292 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23293 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_KERBEROS_DES_H 1
23310 for ac_header in krb.h
23312 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23313 if test "x$ac_cv_header_krb_h" = x""yes; then :
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_KRB_H 1
23319 for ac_header in kerberosIV/krb.h
23321 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23322 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23323 cat >>confdefs.h <<_ACEOF
23324 #define HAVE_KERBEROSIV_KRB_H 1
23328 for ac_header in kerberos/krb.h
23330 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23331 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23332 cat >>confdefs.h <<_ACEOF
23333 #define HAVE_KERBEROS_KRB_H 1
23349 for ac_header in com_err.h
23351 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23352 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23353 cat >>confdefs.h <<_ACEOF
23354 #define HAVE_COM_ERR_H 1
23369 # Solaris requires -lintl if you want strerror (which calls dgettext)
23370 # to return localized messages.
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23372 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23373 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23374 $as_echo_n "(cached) " >&6
23376 ac_check_lib_save_LIBS=$LIBS
23377 LIBS="-lintl $LIBS"
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h. */
23381 /* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23391 return dgettext ();
23396 if ac_fn_c_try_link "$LINENO"; then :
23397 ac_cv_lib_intl_dgettext=yes
23399 ac_cv_lib_intl_dgettext=no
23401 rm -f core conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23406 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23407 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_LIBINTL 1
23412 LIBS="-lintl $LIBS"
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23418 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23419 if test "${emacs_cv_localtime_cache+set}" = set; then :
23420 $as_echo_n "(cached) " >&6
23422 if test x$ac_cv_func_tzset = xyes; then
23423 if test "$cross_compiling" = yes; then :
23424 # If we have tzset, assume the worst when cross-compiling.
23425 emacs_cv_localtime_cache=yes
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23430 char TZ_GMT0[] = "TZ=GMT0";
23431 char TZ_PST8[] = "TZ=PST8";
23434 time_t now = time ((time_t *) 0);
23435 int hour_GMT0, hour_unset;
23436 if (putenv (TZ_GMT0) != 0)
23438 hour_GMT0 = localtime (&now)->tm_hour;
23440 hour_unset = localtime (&now)->tm_hour;
23441 if (putenv (TZ_PST8) != 0)
23443 if (localtime (&now)->tm_hour == hour_GMT0)
23446 if (localtime (&now)->tm_hour != hour_unset)
23451 if ac_fn_c_try_run "$LINENO"; then :
23452 emacs_cv_localtime_cache=no
23454 emacs_cv_localtime_cache=yes
23456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23457 conftest.$ac_objext conftest.beam conftest.$ac_ext
23461 # If we lack tzset, report that localtime does not cache TZ,
23462 # since we can't invalidate the cache if we don't have tzset.
23463 emacs_cv_localtime_cache=no
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23467 $as_echo "$emacs_cv_localtime_cache" >&6; }
23468 if test $emacs_cv_localtime_cache = yes; then
23470 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23474 if test "x$HAVE_TIMEVAL" = xyes; then
23475 for ac_func in gettimeofday
23477 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23478 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23479 cat >>confdefs.h <<_ACEOF
23480 #define HAVE_GETTIMEOFDAY 1
23486 if test $ac_cv_func_gettimeofday = yes; then
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23488 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23489 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23495 #ifdef TIME_WITH_SYS_TIME
23496 #include <sys/time.h>
23499 #ifdef HAVE_SYS_TIME_H
23500 #include <sys/time.h>
23508 struct timeval time;
23509 gettimeofday (&time, 0);
23514 if ac_fn_c_try_compile "$LINENO"; then :
23515 emacs_cv_gettimeofday_two_arguments=yes
23517 emacs_cv_gettimeofday_two_arguments=no
23519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23522 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23523 if test $emacs_cv_gettimeofday_two_arguments = no; then
23525 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23532 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23533 if test "x$ac_cv_func_socket" = x""yes; then :
23539 if test $ok_so_far = yes; then
23540 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23541 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23549 if test $ok_so_far = yes; then
23550 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23551 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23559 if test $ok_so_far = yes; then
23561 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23565 if test -f /usr/lpp/X11/bin/smt.exp; then
23567 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23572 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23573 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575 $as_echo "yes" >&6; }
23577 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23581 $as_echo "no" >&6; }
23584 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23585 if test "x$ac_cv_type_pid_t" = x""yes; then :
23589 cat >>confdefs.h <<_ACEOF
23595 for ac_header in vfork.h
23597 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23598 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_VFORK_H 1
23607 for ac_func in fork vfork
23609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23611 eval as_val=\$$as_ac_var
23612 if test "x$as_val" = x""yes; then :
23613 cat >>confdefs.h <<_ACEOF
23614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23620 if test "x$ac_cv_func_fork" = xyes; then
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23622 $as_echo_n "checking for working fork... " >&6; }
23623 if test "${ac_cv_func_fork_works+set}" = set; then :
23624 $as_echo_n "(cached) " >&6
23626 if test "$cross_compiling" = yes; then :
23627 ac_cv_func_fork_works=cross
23629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23631 $ac_includes_default
23636 /* By Ruediger Kuhlmann. */
23637 return fork () < 0;
23643 if ac_fn_c_try_run "$LINENO"; then :
23644 ac_cv_func_fork_works=yes
23646 ac_cv_func_fork_works=no
23648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23649 conftest.$ac_objext conftest.beam conftest.$ac_ext
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23654 $as_echo "$ac_cv_func_fork_works" >&6; }
23657 ac_cv_func_fork_works=$ac_cv_func_fork
23659 if test "x$ac_cv_func_fork_works" = xcross; then
23661 *-*-amigaos* | *-*-msdosdjgpp*)
23662 # Override, as these systems have only a dummy fork() stub
23663 ac_cv_func_fork_works=no
23666 ac_cv_func_fork_works=yes
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23670 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23672 ac_cv_func_vfork_works=$ac_cv_func_vfork
23673 if test "x$ac_cv_func_vfork" = xyes; then
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23675 $as_echo_n "checking for working vfork... " >&6; }
23676 if test "${ac_cv_func_vfork_works+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23679 if test "$cross_compiling" = yes; then :
23680 ac_cv_func_vfork_works=cross
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23684 /* Thanks to Paul Eggert for this test. */
23685 $ac_includes_default
23686 #include <sys/wait.h>
23687 #ifdef HAVE_VFORK_H
23688 # include <vfork.h>
23690 /* On some sparc systems, changes by the child to local and incoming
23691 argument registers are propagated back to the parent. The compiler
23692 is told about this with #include <vfork.h>, but some compilers
23693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23694 static variable whose address is put into a register that is
23695 clobbered by the vfork. */
23698 sparc_address_test (int arg)
23700 sparc_address_test (arg) int arg;
23703 static pid_t child;
23721 pid_t parent = getpid ();
23724 sparc_address_test (0);
23729 /* Here is another test for sparc vfork register problems. This
23730 test uses lots of local variables, at least as many local
23731 variables as main has allocated so far including compiler
23732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23734 reuse the register of parent for one of the local variables,
23735 since it will think that parent can't possibly be used any more
23736 in this routine. Assigning to the local variable will thus
23737 munge parent in the parent process. */
23739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23741 /* Convince the compiler that p..p7 are live; otherwise, it might
23742 use the same hardware register for all 8 local variables. */
23743 if (p != p1 || p != p2 || p != p3 || p != p4
23744 || p != p5 || p != p6 || p != p7)
23747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23748 from child file descriptors. If the child closes a descriptor
23749 before it execs or exits, this munges the parent's descriptor
23750 as well. Test for this by closing stdout in the child. */
23751 _exit(close(fileno(stdout)) != 0);
23756 while (wait(&status) != child)
23759 /* Was there some problem with vforking? */
23762 /* Did the child fail? (This shouldn't happen.) */
23765 /* Did the vfork/compiler bug occur? */
23766 || parent != getpid()
23768 /* Did the file descriptor bug occur? */
23769 || fstat(fileno(stdout), &st) != 0
23774 if ac_fn_c_try_run "$LINENO"; then :
23775 ac_cv_func_vfork_works=yes
23777 ac_cv_func_vfork_works=no
23779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23780 conftest.$ac_objext conftest.beam conftest.$ac_ext
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23785 $as_echo "$ac_cv_func_vfork_works" >&6; }
23788 if test "x$ac_cv_func_fork_works" = xcross; then
23789 ac_cv_func_vfork_works=$ac_cv_func_vfork
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23791 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23794 if test "x$ac_cv_func_vfork_works" = xyes; then
23796 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23800 $as_echo "#define vfork fork" >>confdefs.h
23803 if test "x$ac_cv_func_fork_works" = xyes; then
23805 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23812 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23816 /* end confdefs.h. */
23817 #include <langinfo.h>
23821 char* cs = nl_langinfo(CODESET);
23826 if ac_fn_c_try_link "$LINENO"; then :
23827 emacs_cv_langinfo_codeset=yes
23829 emacs_cv_langinfo_codeset=no
23831 rm -f core conftest.err conftest.$ac_objext \
23832 conftest$ac_exeext conftest.$ac_ext
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23836 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23837 if test $emacs_cv_langinfo_codeset = yes; then
23839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23844 $as_echo_n "checking for mbstate_t... " >&6; }
23845 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23846 $as_echo_n "(cached) " >&6
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 # include <wchar.h>
23855 mbstate_t x; return sizeof x;
23860 if ac_fn_c_try_compile "$LINENO"; then :
23861 ac_cv_type_mbstate_t=yes
23863 ac_cv_type_mbstate_t=no
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23868 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23869 if test $ac_cv_type_mbstate_t = yes; then
23871 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23875 $as_echo "#define mbstate_t int" >>confdefs.h
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23880 $as_echo_n "checking for C restricted array declarations... " >&6; }
23881 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885 /* end confdefs.h. */
23886 void fred (int x[__restrict]);
23895 if ac_fn_c_try_compile "$LINENO"; then :
23896 emacs_cv_c_restrict_arr=yes
23898 emacs_cv_c_restrict_arr=no
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23903 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23904 if test "$emacs_cv_c_restrict_arr" = yes; then
23906 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23912 # Set up the CFLAGS for real compilation, so we can substitute it.
23913 CFLAGS="$REAL_CFLAGS"
23914 CPPFLAGS="$REAL_CPPFLAGS"
23916 ## Hack to detect a buggy GCC version.
23917 if test "x$GCC" = xyes \
23918 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23919 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23920 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23921 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23924 version=$PACKAGE_VERSION
23926 ### Specify what sort of things we'll be editing into Makefile and config.h.
23927 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23951 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23952 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23953 ## end of LIBX_BASE, but nothing ever set it.
23958 ## Used in lwlib/Makefile.in.
23960 if test -n "${machfile}"; then
23961 M_FILE="\$(srcdir)/${machfile}"
23965 S_FILE="\$(srcdir)/${opsysfile}"
23976 cat >>confdefs.h <<_ACEOF
23977 #define EMACS_CONFIGURATION "${canonical}"
23981 cat >>confdefs.h <<_ACEOF
23982 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23985 if test -n "$machfile"; then
23987 cat >>confdefs.h <<_ACEOF
23988 #define config_machfile "${machfile}"
23993 cat >>confdefs.h <<_ACEOF
23994 #define config_opsysfile "${opsysfile}"
24001 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24003 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
24006 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
24008 if test "$HAVE_XFT" = "yes"; then
24009 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
24010 elif test "$HAVE_FREETYPE" = "yes"; then
24011 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
24021 if test "${USE_X_TOOLKIT}" != "none" ; then
24022 WIDGET_OBJ=widget.o
24024 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
24026 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24028 $as_echo "#define USE_LUCID 1" >>confdefs.h
24030 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24032 $as_echo "#define USE_MOTIF 1" >>confdefs.h
24037 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
24038 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
24042 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
24043 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
24044 MOTIF_LIBW="MOTIF_LIBW -lXimp"
24048 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
24049 MOTIF_LIBW="$MOTIF_LIBW -li18n"
24052 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
24058 case "$USE_X_TOOLKIT" in
24059 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
24060 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
24061 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
24065 if test "$USE_X_TOOLKIT" = "none"; then
24066 LIBXT_OTHER="\$(LIBXSM)"
24067 OLDXMENU_TARGET="really-oldXMenu"
24069 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
24070 OLDXMENU_TARGET="really-lwlib"
24074 ## The X Menu stuff is present in the X10 distribution, but missing
24075 ## from X11. If we have X10, just use the installed library;
24076 ## otherwise, use our own copy.
24077 if test "${HAVE_X11}" = "yes" ; then
24079 $as_echo "#define HAVE_X11 1" >>confdefs.h
24082 if test "$USE_X_TOOLKIT" = "none"; then
24083 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
24085 OLDXMENU="\${lwlibdir}/liblw.a"
24087 LIBXMENU="\$(OLDXMENU)"
24088 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
24089 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
24091 ## For a syntactically valid Makefile; not actually used for anything.
24092 ## See comments in src/Makefile.in.
24094 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
24095 if test "${HAVE_X_WINDOWS}" = "yes"; then
24104 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
24117 if test "${HAVE_MENUS}" = "yes" ; then
24119 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
24123 if test "${GNU_MALLOC}" = "yes" ; then
24125 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
24130 if test "${REL_ALLOC}" = "yes" ; then
24132 $as_echo "#define REL_ALLOC 1" >>confdefs.h
24135 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
24139 if test "$opsys" = "cygwin"; then
24140 CYGWIN_OBJ="sheap.o"
24141 ## Cygwin differs because of its unexec().
24143 POST_ALLOC_OBJ=lastfile.o
24146 PRE_ALLOC_OBJ=lastfile.o
24155 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24158 ## The -headerpad option tells ld (see man page) to leave room at the
24159 ## end of the header for adding load commands. Needed for dumping.
24160 ## 0x690 is the total size of 30 segment load commands (at 56
24161 ## each); under Cocoa 31 commands are required.
24162 if test "$HAVE_NS" = "yes"; then
24163 libs_nsgui="-framework AppKit"
24164 headerpad_extra=6C8
24167 headerpad_extra=690
24169 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24171 ## This is here because src/Makefile.in did some extra fiddling around
24172 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24173 ## #ifndef LD_SWITCH_SYSTEM
24174 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24175 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24176 ## not using gcc, darwin system not on an alpha (ie darwin, since
24177 ## darwin + alpha does not occur).
24178 ## Because this was done in src/Makefile.in, the resulting part of
24179 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24180 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24181 ## rather than LD_SWITCH_SYSTEM.
24182 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24183 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24186 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
24187 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
24188 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
24189 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24190 ## had different values in configure (in ac_link) and src/Makefile.in.
24191 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24192 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
24194 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24197 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24198 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24207 ## gnu: GNU needs its own crt0.
24208 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24210 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24211 ## library search parth, i.e. it won't search /usr/lib for libc and
24212 ## friends. Using -nostartfiles instead avoids this problem, and
24213 ## will also work on earlier NetBSD releases.
24214 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24216 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24217 ## MkLinux/LinuxPPC needs this.
24218 ## ibms390x only supports opsys = gnu-linux so it can be added here.
24221 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24227 if test "x$ORDINARY_LINK" = "xyes"; then
24231 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24234 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24235 ## freebsd, gnu-* not on macppc|ibms390x.
24236 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24238 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24239 ## places that are difficult to figure out at make time. Fortunately,
24240 ## these same versions allow you to pass arbitrary flags on to the
24241 ## linker, so there is no reason not to use it as a linker.
24243 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24244 ## searching for libraries in its internal directories, so we have to
24245 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24246 LD_FIRSTFLAG="-nostdlib"
24249 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24250 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24255 ## FIXME? The logic here is not precisely the same as that above.
24256 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24257 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24259 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24262 freebsd|netbsd|openbsd) LIB_GCC= ;;
24265 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24266 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24272 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24273 ## immediately undefine it again and redefine it to empty.
24274 ## Was the C_SWITCH_X_SITE part really necessary?
24275 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24281 ## Ask GCC where to find libgcc.a.
24282 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24287 ## If we're using X11/GNUstep, define some consequences.
24288 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24290 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24293 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24300 #### Report on what we decided to do.
24301 #### Report GTK as a toolkit, even if it doesn't use Xt.
24302 #### It makes printing result more understandable as using GTK sets
24303 #### toolkit_scroll_bars to yes by default.
24304 if test "${HAVE_GTK}" = "yes"; then
24309 if test -n "$machfile"; then
24310 and_machfile=" and \`${machfile}'"
24314 Configured for \`${canonical}'.
24316 Where should the build process find the source code? ${srcdir}
24317 What operating system and machine description files should Emacs use?
24318 \`${opsysfile}'${and_machfile}
24319 What compiler should emacs be built with? ${CC} ${CFLAGS}
24320 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24321 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24322 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24323 What window system should Emacs use? ${window_system}
24324 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24326 if test -n "${x_includes}"; then
24327 echo " Where do we find X Windows header files? ${x_includes}"
24329 echo " Where do we find X Windows header files? Standard dirs"
24331 if test -n "${x_libraries}"; then
24332 echo " Where do we find X Windows libraries? ${x_libraries}"
24334 echo " Where do we find X Windows libraries? Standard dirs"
24337 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24338 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24339 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24340 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24341 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24342 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24343 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24344 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24346 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24347 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24348 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24349 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24350 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24351 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24353 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24354 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24355 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24356 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24358 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24361 if test -n "${EMACSDATA}"; then
24362 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24364 if test -n "${EMACSDOC}"; then
24365 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24368 if test $USE_XASSERTS = yes; then
24369 echo " Compiling with asserts turned on."
24370 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24375 if test "$HAVE_NS" = "yes"; then
24377 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24378 The installed application will go to nextstep/Emacs.app and can be
24379 run or moved from there."
24380 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24381 echo "The application will be fully self-contained."
24383 echo "The lisp resources for the application will be installed under ${prefix}.
24384 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24385 to run if these resources are not installed."
24391 # Remove any trailing slashes in these variables.
24392 test "${prefix}" != NONE &&
24393 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24394 test "${exec_prefix}" != NONE &&
24395 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24397 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"
24399 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"
24402 opt_makefile=test/automated/Makefile
24404 if test -f $srcdir/${opt_makefile}.in; then
24405 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24406 ac_config_files="$ac_config_files test/automated/Makefile"
24410 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24414 ac_config_commands="$ac_config_commands mkdirs"
24417 ac_config_commands="$ac_config_commands epaths"
24420 ac_config_commands="$ac_config_commands gdbinit"
24423 cat >confcache <<\_ACEOF
24424 # This file is a shell script that caches the results of configure
24425 # tests run on this system so they can be shared between configure
24426 # scripts and configure runs, see configure's option --config-cache.
24427 # It is not useful on other systems. If it contains results you don't
24428 # want to keep, you may remove or edit it.
24430 # config.status only pays attention to the cache file if you give it
24431 # the --recheck option to rerun configure.
24433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24435 # following values.
24439 # The following way of writing the cache mishandles newlines in values,
24440 # but we know of no workaround that is simple, portable, and efficient.
24441 # So, we kill variables containing newlines.
24442 # Ultrix sh set writes to stderr and can't be redirected directly,
24443 # and sets the high bit in the cache file unless we assign to the vars.
24445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24446 eval ac_val=\$$ac_var
24450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24454 _ | IFS | as_nl) ;; #(
24455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24456 *) { eval $ac_var=; unset $ac_var;} ;;
24462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24463 *${as_nl}ac_space=\ *)
24464 # `set' does not quote correctly, so add quotes: double-quote
24465 # substitution turns \\\\ into \\, and sed turns \\ into \.
24468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24471 # `set' quotes correctly as required by POSIX, so do not add quotes.
24472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24486 if test -w "$cache_file"; then
24487 test "x$cache_file" != "x/dev/null" &&
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24489 $as_echo "$as_me: updating cache $cache_file" >&6;}
24490 cat confcache >$cache_file
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24493 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24499 # Let make expand exec_prefix.
24500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24502 DEFS=-DHAVE_CONFIG_H
24506 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24507 # 1. Remove the extension, and $U if already installed.
24508 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24509 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24511 # will be set to the directory where LIBOBJS objects are built.
24512 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24513 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24515 LIBOBJS=$ac_libobjs
24517 LTLIBOBJS=$ac_ltlibobjs
24520 if test -n "$EXEEXT"; then
24522 am__EXEEXT_FALSE='#'
24524 am__EXEEXT_TRUE='#'
24528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24529 as_fn_error "conditional \"AMDEP\" was never defined.
24530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24532 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24533 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24537 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24538 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24541 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24542 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24546 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24547 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24550 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24551 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24554 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24555 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24558 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24559 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24562 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24563 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24566 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24567 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24574 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24575 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24578 >>>>>>> MERGE-SOURCE
24579 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24580 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24583 >>>>>>> MERGE-SOURCE
24584 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24585 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24590 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24591 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24594 >>>>>>> MERGE-SOURCE
24595 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24596 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24600 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24606 if test -n "$gl_LIBOBJS"; then
24607 # Remove the extension.
24608 sed_drop_objext='s/\.o$//;s/\.obj$//'
24609 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24610 gl_libobjs="$gl_libobjs $i.$ac_objext"
24611 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24614 gl_LIBOBJS=$gl_libobjs
24616 gl_LTLIBOBJS=$gl_ltlibobjs
24622 if test -n "$gltests_LIBOBJS"; then
24623 # Remove the extension.
24624 sed_drop_objext='s/\.o$//;s/\.obj$//'
24625 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24626 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24627 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24630 gltests_LIBOBJS=$gltests_libobjs
24632 gltests_LTLIBOBJS=$gltests_ltlibobjs
24636 : ${CONFIG_STATUS=./config.status}
24638 ac_clean_files_save=$ac_clean_files
24639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24641 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24643 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24645 # Generated by $as_me.
24646 # Run this file to recreate the current configuration.
24647 # Compiler output produced by configure, useful for debugging
24648 # configure, is in config.log if it exists.
24651 ac_cs_recheck=false
24654 SHELL=\${CONFIG_SHELL-$SHELL}
24657 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24658 ## -------------------- ##
24659 ## M4sh Initialization. ##
24660 ## -------------------- ##
24662 # Be more Bourne compatible
24663 DUALCASE=1; export DUALCASE # for MKS sh
24664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24668 # is contrary to our usage. Disable this feature.
24669 alias -g '${1+"$@"}'='"$@"'
24670 setopt NO_GLOB_SUBST
24672 case `(set -o) 2>/dev/null` in #(
24684 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24685 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24688 # Prefer a ksh shell builtin over an external printf program on Solaris,
24689 # but without wasting forks for bash or zsh.
24690 if test -z "$BASH_VERSION$ZSH_VERSION" \
24691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24692 as_echo='print -r --'
24693 as_echo_n='print -rn --'
24694 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24695 as_echo='printf %s\n'
24696 as_echo_n='printf %s'
24698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24700 as_echo_n='/usr/ucb/echo -n'
24702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24703 as_echo_n_body='eval
24707 expr "X$arg" : "X\\(.*\\)$as_nl";
24708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24712 export as_echo_n_body
24713 as_echo_n='sh -c $as_echo_n_body as_echo'
24715 export as_echo_body
24716 as_echo='sh -c $as_echo_body as_echo'
24719 # The user is always right.
24720 if test "${PATH_SEPARATOR+set}" != set; then
24722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24730 # We need space, tab and new line, in precisely that order. Quoting is
24731 # there to prevent editors from complaining about space-tab.
24732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24733 # splitting by setting IFS to empty value.)
24736 # Find who we are. Look in the path if we contain no directory separator.
24738 *[\\/]* ) as_myself=$0 ;;
24739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24740 for as_dir in $PATH
24743 test -z "$as_dir" && as_dir=.
24744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24750 # We did not find ourselves, most probably we were run as `sh COMMAND'
24751 # in which case we are not to be found in the path.
24752 if test "x$as_myself" = x; then
24755 if test ! -f "$as_myself"; then
24756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24760 # Unset variables that we do not need and which cause bugs (e.g. in
24761 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24762 # suppresses any "Segmentation fault" message there. '((' could
24763 # trigger a bug in pdksh 5.2.14.
24764 for as_var in BASH_ENV ENV MAIL MAILPATH
24765 do eval test x\${$as_var+set} = xset \
24766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24782 # as_fn_error ERROR [LINENO LOG_FD]
24783 # ---------------------------------
24784 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24785 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24786 # script with status $?, using 1 if that was 0.
24789 as_status=$?; test $as_status -eq 0 && as_status=1
24791 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24794 $as_echo "$as_me: error: $1" >&2
24795 as_fn_exit $as_status
24799 # as_fn_set_status STATUS
24800 # -----------------------
24801 # Set $? to STATUS, without forking.
24802 as_fn_set_status ()
24805 } # as_fn_set_status
24807 # as_fn_exit STATUS
24808 # -----------------
24809 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24813 as_fn_set_status $1
24819 # Portably unset VAR.
24822 { eval $1=; unset $1;}
24824 as_unset=as_fn_unset
24825 # as_fn_append VAR VALUE
24826 # ----------------------
24827 # Append the text in VALUE to the end of the definition contained in VAR. Take
24828 # advantage of any shell optimizations that allow amortized linear growth over
24829 # repeated appends, instead of the typical quadratic growth present in naive
24831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24832 eval 'as_fn_append ()
24843 # as_fn_arith ARG...
24844 # ------------------
24845 # Perform arithmetic evaluation on the ARGs, and store the result in the
24846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24847 # must be portable across $(()) and expr.
24848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24849 eval 'as_fn_arith ()
24856 as_val=`expr "$@" || test $? -eq 1`
24861 if expr a : '\(a\)' >/dev/null 2>&1 &&
24862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24868 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24869 as_basename=basename
24874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24880 as_me=`$as_basename -- "$0" ||
24881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24882 X"$0" : 'X\(//\)$' \| \
24883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24885 sed '/^.*\/\([^/][^/]*\)\/*$/{
24899 # Avoid depending upon Character Ranges.
24900 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24901 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24902 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24903 as_cr_digits='0123456789'
24904 as_cr_alnum=$as_cr_Letters$as_cr_digits
24906 ECHO_C= ECHO_N= ECHO_T=
24907 case `echo -n x` in #(((((
24909 case `echo 'xy\c'` in
24910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24919 rm -f conf$$ conf$$.exe conf$$.file
24920 if test -d conf$$.dir; then
24921 rm -f conf$$.dir/conf$$.file
24924 mkdir conf$$.dir 2>/dev/null
24926 if (echo >conf$$.file) 2>/dev/null; then
24927 if ln -s conf$$.file conf$$ 2>/dev/null; then
24929 # ... but there are two gotchas:
24930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24932 # In both cases, we have to default to `cp -p'.
24933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24935 elif ln conf$$.file conf$$ 2>/dev/null; then
24943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24944 rmdir conf$$.dir 2>/dev/null
24949 # Create "$as_dir" as a directory, including parents if necessary.
24954 -*) as_dir=./$as_dir;;
24956 test -d "$as_dir" || eval $as_mkdir_p || {
24960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24961 *) as_qdir=$as_dir;;
24963 as_dirs="'$as_qdir' $as_dirs"
24964 as_dir=`$as_dirname -- "$as_dir" ||
24965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24966 X"$as_dir" : 'X\(//\)[^/]' \| \
24967 X"$as_dir" : 'X\(//\)$' \| \
24968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24969 $as_echo X"$as_dir" |
24970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24974 /^X\(\/\/\)[^/].*/{
24987 test -d "$as_dir" && break
24989 test -z "$as_dirs" || eval "mkdir $as_dirs"
24990 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24994 if mkdir -p . 2>/dev/null; then
24995 as_mkdir_p='mkdir -p "$as_dir"'
24997 test -d ./-p && rmdir ./-p
25001 if test -x / >/dev/null 2>&1; then
25002 as_test_x='test -x'
25004 if ls -dL / >/dev/null 2>&1; then
25011 if test -d "$1"; then
25017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25018 ???[sx]*):;;*)false;;esac;fi
25022 as_executable_p=$as_test_x
25024 # Sed expression to map a string onto a valid CPP name.
25025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25027 # Sed expression to map a string onto a valid variable name.
25028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25032 ## ----------------------------------- ##
25033 ## Main body of $CONFIG_STATUS script. ##
25034 ## ----------------------------------- ##
25036 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25039 # Save the log message, to keep $0 and so on meaningful, and to
25040 # report actual input values of CONFIG_FILES etc. instead of their
25041 # values after options handling.
25043 This file was extended by emacs $as_me 24.0.94, which was
25044 generated by GNU Autoconf 2.65. Invocation command line was
25046 CONFIG_FILES = $CONFIG_FILES
25047 CONFIG_HEADERS = $CONFIG_HEADERS
25048 CONFIG_LINKS = $CONFIG_LINKS
25049 CONFIG_COMMANDS = $CONFIG_COMMANDS
25052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25057 case $ac_config_files in *"
25058 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25061 case $ac_config_headers in *"
25062 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25067 # Files that config.status was made for.
25068 config_files="$ac_config_files"
25069 config_headers="$ac_config_headers"
25070 config_commands="$ac_config_commands"
25074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25076 \`$as_me' instantiates files and other configuration actions
25077 from templates according to the current configuration. Unless the files
25078 and actions are specified as TAGs, all are instantiated by default.
25080 Usage: $0 [OPTION]... [TAG]...
25082 -h, --help print this help, then exit
25083 -V, --version print version number and configuration settings, then exit
25084 --config print configuration, then exit
25085 -q, --quiet, --silent
25086 do not print progress messages
25087 -d, --debug don't remove temporary files
25088 --recheck update $as_me by reconfiguring in the same conditions
25089 --file=FILE[:TEMPLATE]
25090 instantiate the configuration file FILE
25091 --header=FILE[:TEMPLATE]
25092 instantiate the configuration header FILE
25094 Configuration files:
25097 Configuration headers:
25100 Configuration commands:
25103 Report bugs to the package provider."
25106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25109 emacs config.status 24.0.94
25110 configured by $0, generated by GNU Autoconf 2.65,
25111 with options \\"\$ac_cs_config\\"
25113 Copyright (C) 2009 Free Software Foundation, Inc.
25114 This config.status script is free software; the Free Software Foundation
25115 gives unlimited permission to copy, distribute and modify it."
25122 test -n "\$AWK" || AWK=awk
25125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25126 # The default lists apply if the user does not specify any file.
25132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25144 # Handling of the options.
25145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25148 $as_echo "$ac_cs_version"; exit ;;
25149 --config | --confi | --conf | --con | --co | --c )
25150 $as_echo "$ac_cs_config"; exit ;;
25151 --debug | --debu | --deb | --de | --d | -d )
25153 --file | --fil | --fi | --f )
25156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25158 as_fn_append CONFIG_FILES " '$ac_optarg'"
25159 ac_need_defaults=false;;
25160 --header | --heade | --head | --hea )
25163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25165 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25166 ac_need_defaults=false;;
25168 # Conflict between --help and --header
25169 as_fn_error "ambiguous option: \`$1'
25170 Try \`$0 --help' for more information.";;
25171 --help | --hel | -h )
25172 $as_echo "$ac_cs_usage"; exit ;;
25173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25174 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25177 # This is an error.
25178 -*) as_fn_error "unrecognized option: \`$1'
25179 Try \`$0 --help' for more information." ;;
25181 *) as_fn_append ac_config_targets " $1"
25182 ac_need_defaults=false ;;
25188 ac_configure_extra_args=
25190 if $ac_cs_silent; then
25192 ac_configure_extra_args="$ac_configure_extra_args --silent"
25196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25197 if \$ac_cs_recheck; then
25198 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25200 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25201 CONFIG_SHELL='$SHELL'
25202 export CONFIG_SHELL
25207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25212 ## Running $as_me. ##
25218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25222 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25223 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
25227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25229 # Handling of arguments.
25230 for ac_config_target in $ac_config_targets
25232 case $ac_config_target in
25233 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25234 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25235 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25236 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25237 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25238 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25239 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25240 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25241 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25242 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25243 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25244 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25245 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25246 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25247 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25248 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25249 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25250 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25252 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25257 # If the user did not use the arguments to specify the items to instantiate,
25258 # then the envvar interface is used. Set only those that are not.
25259 # We use the long form for the default assignment because of an extremely
25260 # bizarre bug on SunOS 4.1.3.
25261 if $ac_need_defaults; then
25262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25267 # Have a temporary directory for convenience. Make it in the build tree
25268 # simply because there is no reason against having it here, and in addition,
25269 # creating and moving files from /tmp can sometimes cause problems.
25270 # Hook for its removal unless debugging.
25271 # Note that there is a small window in which the directory will not be cleaned:
25272 # after its creation but before its name has been assigned to `$tmp'.
25276 trap 'exit_status=$?
25277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25279 trap 'as_fn_exit 1' 1 2 13 15
25281 # Create a (secure) tmp directory for tmp files.
25284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25285 test -n "$tmp" && test -d "$tmp"
25288 tmp=./conf$$-$RANDOM
25289 (umask 077 && mkdir "$tmp")
25290 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25292 # Set up the scripts for CONFIG_FILES section.
25293 # No need to generate them if there are no CONFIG_FILES.
25294 # This happens for instance with `./config.status config.h'.
25295 if test -n "$CONFIG_FILES"; then
25297 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25298 ac_cs_awk_getline=:
25299 ac_cs_awk_pipe_init=
25300 ac_cs_awk_read_file='
25301 while ((getline aline < (F[key])) > 0)
25304 ac_cs_awk_pipe_fini=
25306 ac_cs_awk_getline=false
25307 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25308 ac_cs_awk_read_file='
25310 print "cat " F[key] " &&"
25311 '$ac_cs_awk_pipe_init
25312 # The final `:' finishes the AND list.
25313 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25315 ac_cr=`echo X | tr X '\015'`
25316 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25317 # But we know of no other shell where ac_cr would be empty at this
25318 # point, so we can use a bashism as a fallback.
25319 if test "x$ac_cr" = x; then
25320 eval ac_cr=\$\'\\r\'
25322 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25323 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25326 ac_cs_awk_cr=$ac_cr
25329 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25332 # Create commands to substitute file output variables.
25334 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25335 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25336 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25339 } >conf$$files.sh &&
25340 . ./conf$$files.sh ||
25341 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25342 rm -f conf$$files.sh
25345 echo "cat >conf$$subs.awk <<_ACEOF" &&
25346 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25348 } >conf$$subs.sh ||
25349 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25350 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25352 for ac_last_try in false false false false false :; do
25353 . ./conf$$subs.sh ||
25354 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25356 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25357 if test $ac_delim_n = $ac_delim_num; then
25359 elif $ac_last_try; then
25360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25365 rm -f conf$$subs.sh
25367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25368 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25372 s/^/S["/; s/!.*/"]=/
25382 s/\(.\{148\}\)..*/\1/
25384 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25389 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25396 s/\(.\{148\}\)..*/\1/
25398 s/["\\]/\\&/g; s/^/"/; s/$/"/
25402 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25407 ' <conf$$subs.awk | sed '
25412 ' >>$CONFIG_STATUS || ac_write_fail=1
25413 rm -f conf$$subs.awk
25414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25416 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25417 for (key in S) S_is_set[key] = 1
25419 \$ac_cs_awk_pipe_init
25423 nfields = split(line, field, "@")
25425 len = length(field[1])
25426 for (i = 2; i < nfields; i++) {
25428 keylen = length(key)
25429 if (S_is_set[key]) {
25431 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25432 len += length(value) + length(field[++i])
25437 if (nfields == 3 && !substed) {
25439 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25440 \$ac_cs_awk_read_file
25446 \$ac_cs_awk_pipe_fini
25449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25450 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25451 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25454 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25455 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25458 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25459 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25460 # trailing colons and then remove the whole line if VPATH becomes empty
25461 # (actually we leave an empty line to preserve line numbers).
25462 if test "x$srcdir" = x.; then
25463 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25464 s/:*\$(srcdir):*/:/
25465 s/:*\${srcdir}:*/:/
25467 s/^\([^=]*=[ ]*\):*/\1/
25473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25474 fi # test -n "$CONFIG_FILES"
25476 # Set up the scripts for CONFIG_HEADERS section.
25477 # No need to generate them if there are no CONFIG_HEADERS.
25478 # This happens for instance with `./config.status Makefile'.
25479 if test -n "$CONFIG_HEADERS"; then
25480 cat >"$tmp/defines.awk" <<\_ACAWK ||
25484 # Transform confdefs.h into an awk script `defines.awk', embedded as
25485 # here-document in config.status, that substitutes the proper values into
25486 # config.h.in to produce config.h.
25488 # Create a delimiter string that does not exist in confdefs.h, to ease
25489 # handling of long lines.
25491 for ac_last_try in false false :; do
25492 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25493 if test -z "$ac_t"; then
25495 elif $ac_last_try; then
25496 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25502 # For the awk script, D is an array of macro values keyed by name,
25503 # likewise P contains macro parameters if any. Preserve backslash
25504 # newline sequences.
25506 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25508 s/.\{148\}/&'"$ac_delim"'/g
25511 s/^[ ]*#[ ]*define[ ][ ]*/ /
25518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25525 D["\1"]=" \3\\\\\\n"\\/p
25527 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25532 s/.\{148\}/&'"$ac_delim"'/g
25537 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25540 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25542 ' <confdefs.h | sed '
25543 s/'"$ac_delim"'/"\\\
25544 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25547 for (key in D) D_is_set[key] = 1
25550 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25552 split(line, arg, " ")
25553 if (arg[1] == "#") {
25557 defundef = substr(arg[1], 2)
25560 split(mac1, mac2, "(") #)
25562 prefix = substr(line, 1, index(line, defundef) - 1)
25563 if (D_is_set[macro]) {
25564 # Preserve the white space surrounding the "#".
25565 print prefix "define", macro P[macro] D[macro]
25568 # Replace #undef with comments. This is necessary, for example,
25569 # in the case of _POSIX_SOURCE, which is predefined and required
25570 # on some systems where configure will not decide to define it.
25571 if (defundef == "undef") {
25572 print "/*", prefix defundef, macro, "*/"
25580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25581 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25582 fi # test -n "$CONFIG_HEADERS"
25585 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25590 :[FHLC]) ac_mode=$ac_tag; continue;;
25592 case $ac_mode$ac_tag in
25594 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25595 :[FH]-) ac_tag=-:-;;
25596 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25613 -) ac_f="$tmp/stdin";;
25614 *) # Look for the file first in the build tree, then in the source tree
25615 # (if the path is not absolute). The absolute path cannot be DOS-style,
25616 # because $ac_f cannot contain `:'.
25620 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25622 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25624 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25625 as_fn_append ac_file_inputs " '$ac_f'"
25628 # Let's still pretend it is `configure' which instantiates (i.e., don't
25629 # use $as_me), people would be surprised to read:
25630 # /* config.h. Generated by config.status. */
25631 configure_input='Generated from '`
25632 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25634 if test x"$ac_file" != x-; then
25635 configure_input="$ac_file. $configure_input"
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25637 $as_echo "$as_me: creating $ac_file" >&6;}
25639 # Neutralize special characters interpreted by sed in replacement strings.
25640 case $configure_input in #(
25641 *\&* | *\|* | *\\* )
25642 ac_sed_conf_input=`$as_echo "$configure_input" |
25643 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25644 *) ac_sed_conf_input=$configure_input;;
25648 *:-:* | *:-) cat >"$tmp/stdin" \
25649 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25654 ac_dir=`$as_dirname -- "$ac_file" ||
25655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25656 X"$ac_file" : 'X\(//\)[^/]' \| \
25657 X"$ac_file" : 'X\(//\)$' \| \
25658 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25659 $as_echo X"$ac_file" |
25660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25664 /^X\(\/\/\)[^/].*/{
25677 as_dir="$ac_dir"; as_fn_mkdir_p
25681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25684 # A ".." for each directory in $ac_dir_suffix.
25685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25686 case $ac_top_builddir_sub in
25687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25691 ac_abs_top_builddir=$ac_pwd
25692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25693 # for backward compatibility:
25694 ac_top_builddir=$ac_top_build_prefix
25697 .) # We are building in place.
25699 ac_top_srcdir=$ac_top_builddir_sub
25700 ac_abs_top_srcdir=$ac_pwd ;;
25701 [\\/]* | ?:[\\/]* ) # Absolute name.
25702 ac_srcdir=$srcdir$ac_dir_suffix;
25703 ac_top_srcdir=$srcdir
25704 ac_abs_top_srcdir=$srcdir ;;
25705 *) # Relative name.
25706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25707 ac_top_srcdir=$ac_top_build_prefix$srcdir
25708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25723 ac_MKDIR_P=$MKDIR_P
25725 [\\/$]* | ?:[\\/]* ) ;;
25726 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25731 # If the template does not know about datarootdir, expand it.
25732 # FIXME: This hack should be removed a few years after 2.60.
25733 ac_datarootdir_hack=; ac_datarootdir_seen=
25744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25745 *datarootdir*) ac_datarootdir_seen=yes;;
25746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25748 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25751 ac_datarootdir_hack='
25752 s&@datadir@&$datadir&g
25753 s&@docdir@&$docdir&g
25754 s&@infodir@&$infodir&g
25755 s&@localedir@&$localedir&g
25756 s&@mandir@&$mandir&g
25757 s&\\\${datarootdir}&$datarootdir&g' ;;
25761 # Neutralize VPATH when `$srcdir' = `.'.
25762 # Shell code in configure.ac might set extrasub.
25763 # FIXME: do we really want to maintain this feature?
25764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25765 ac_sed_extra="$ac_vpsub
25768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25771 s|@configure_input@|$ac_sed_conf_input|;t t
25772 s&@top_builddir@&$ac_top_builddir_sub&;t t
25773 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25774 s&@srcdir@&$ac_srcdir&;t t
25775 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25776 s&@top_srcdir@&$ac_top_srcdir&;t t
25777 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25778 s&@builddir@&$ac_builddir&;t t
25779 s&@abs_builddir@&$ac_abs_builddir&;t t
25780 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25781 s&@INSTALL@&$ac_INSTALL&;t t
25782 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25783 $ac_datarootdir_hack
25785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25786 if $ac_cs_awk_getline; then
25787 $AWK -f "$tmp/subs.awk"
25789 $AWK -f "$tmp/subs.awk" | $SHELL
25791 || as_fn_error "could not create $ac_file" "$LINENO" 5
25793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25794 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25797 which seems to be undefined. Please make sure it is defined." >&5
25798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25799 which seems to be undefined. Please make sure it is defined." >&2;}
25803 -) cat "$tmp/out" && rm -f "$tmp/out";;
25804 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25806 || as_fn_error "could not create $ac_file" "$LINENO" 5
25812 if test x"$ac_file" != x-; then
25814 $as_echo "/* $configure_input */" \
25815 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25816 } >"$tmp/config.h" \
25817 || as_fn_error "could not create $ac_file" "$LINENO" 5
25818 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25820 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25823 mv "$tmp/config.h" "$ac_file" \
25824 || as_fn_error "could not create $ac_file" "$LINENO" 5
25827 $as_echo "/* $configure_input */" \
25828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25829 || as_fn_error "could not create -" "$LINENO" 5
25831 # Compute "$ac_file"'s index in $config_headers.
25834 for _am_header in $config_headers :; do
25835 case $_am_header in
25836 $_am_arg | $_am_arg:* )
25839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25844 X"$_am_arg" : 'X\(//\)[^/]' \| \
25845 X"$_am_arg" : 'X\(//\)$' \| \
25846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25847 $as_echo X"$_am_arg" |
25848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25852 /^X\(\/\/\)[^/].*/{
25864 s/.*/./; q'`/stamp-h$_am_stamp_count
25867 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25868 $as_echo "$as_me: executing $ac_file commands" >&6;}
25873 case $ac_file$ac_mode in
25874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25875 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25876 # are listed without --file. Let's play safe and only enable the eval
25877 # if we detect the quoting.
25878 case $CONFIG_FILES in
25879 *\'*) eval set x "$CONFIG_FILES" ;;
25880 *) set x $CONFIG_FILES ;;
25885 # Strip MF so we end up with the name of the file.
25886 mf=`echo "$mf" | sed -e 's/:.*$//'`
25887 # Check whether this is an Automake generated Makefile or not.
25888 # We used to match only the files named `Makefile.in', but
25889 # some people rename them; so instead we look at the file content.
25890 # Grep'ing the first line is not enough: some people post-process
25891 # each Makefile.in and add a new line on top of each file to say so.
25892 # Grep'ing the whole file is not good either: AIX grep has a line
25893 # limit of 2048, but all sed's we know have understand at least 4000.
25894 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25895 dirpart=`$as_dirname -- "$mf" ||
25896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25897 X"$mf" : 'X\(//\)[^/]' \| \
25898 X"$mf" : 'X\(//\)$' \| \
25899 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25905 /^X\(\/\/\)[^/].*/{
25921 # Extract the definition of DEPDIR, am__include, and am__quote
25922 # from the Makefile without running `make'.
25923 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25924 test -z "$DEPDIR" && continue
25925 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25926 test -z "am__include" && continue
25927 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25928 # When using ansi2knr, U may be empty or an underscore; expand it
25929 U=`sed -n 's/^U = //p' < "$mf"`
25930 # Find all dependency output files, they are included files with
25931 # $(DEPDIR) in their names. We invoke sed twice because it is the
25932 # simplest approach to changing $(DEPDIR) to its actual value in the
25934 for file in `sed -n "
25935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25937 # Make sure the directory exists.
25938 test -f "$dirpart/$file" && continue
25939 fdir=`$as_dirname -- "$file" ||
25940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25941 X"$file" : 'X\(//\)[^/]' \| \
25942 X"$file" : 'X\(//\)$' \| \
25943 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25944 $as_echo X"$file" |
25945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25949 /^X\(\/\/\)[^/].*/{
25962 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25963 # echo "creating $dirpart/$file"
25964 echo '# dummy' > "$dirpart/$file"
25970 for dir in etc lisp ; do
25971 test -d ${dir} || mkdir ${dir}
25975 echo creating src/epaths.h
25976 ${MAKE-make} epaths-force
25979 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25980 echo creating src/.gdbinit
25981 echo source $srcdir/src/.gdbinit > src/.gdbinit
25991 ac_clean_files=$ac_clean_files_save
25993 test $ac_write_fail = 0 ||
25994 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25997 # configure is writing to config.log, and then calls config.status.
25998 # config.status does its own redirection, appending to config.log.
25999 # Unfortunately, on DOS this fails, as config.log is still kept open
26000 # by configure, so config.status won't be able to write to it; its
26001 # output is simply discarded. So we exec the FD to /dev/null,
26002 # effectively closing config.log, so it can be properly (re)opened and
26003 # appended to by config.status. When coming back to configure, we
26004 # need to make the FD available again.
26005 if test "$no_create" != yes; then
26007 ac_config_status_args=
26008 test "$silent" = yes &&
26009 ac_config_status_args="$ac_config_status_args --quiet"
26011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26014 # would make configure fail if this is the last instruction.
26015 $ac_cs_success || as_fn_exit $?
26017 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26019 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}