2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
604 gl_getopt_required
=POSIX
605 gl_getopt_required
=POSIX
606 ac_subst_vars
='gltests_LTLIBOBJS
617 LD_SWITCH_SYSTEM_TEMACS
621 gl_GNULIB_ENABLED_verify_FALSE
622 gl_GNULIB_ENABLED_verify_TRUE
623 gl_GNULIB_ENABLED_strtoull_FALSE
624 gl_GNULIB_ENABLED_strtoull_TRUE
625 gl_GNULIB_ENABLED_strtoll_FALSE
626 gl_GNULIB_ENABLED_strtoll_TRUE
627 gl_GNULIB_ENABLED_stat_FALSE
628 gl_GNULIB_ENABLED_stat_TRUE
629 gl_GNULIB_ENABLED_sigprocmask_FALSE
630 gl_GNULIB_ENABLED_sigprocmask_TRUE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
633 gl_GNULIB_ENABLED_dosname_FALSE
634 gl_GNULIB_ENABLED_dosname_TRUE
638 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
640 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
641 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
642 TIME_H_DEFINES_STRUCT_TIMESPEC
643 NEXT_AS_FIRST_DIRECTIVE_TIME_H
645 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
647 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
649 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
658 REPLACE_STDIO_WRITE_FUNCS
659 REPLACE_STDIO_READ_FUNCS
668 REPLACE_OBSTACK_PRINTF
690 HAVE_DECL_OBSTACK_PRINTF
696 GNULIB_VSPRINTF_POSIX
700 GNULIB_VFPRINTF_POSIX
707 GNULIB_STDIO_H_SIGPIPE
708 GNULIB_STDIO_H_NONBLOCKING
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
766 REPLACE_PTHREAD_SIGMASK
768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
769 HAVE_STRUCT_SIGACTION_SA_SIGACTION
774 HAVE_POSIX_SIGNALBLOCKING
777 GNULIB_SIGNAL_H_SIGPIPE
778 GNULIB_PTHREAD_SIGMASK
787 HAVE_DECL_LOCALTIME_R
825 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
827 UINT64_MAX_EQ_ULONG_MAX
828 UINT32_MAX_LT_UINTMAX_MAX
831 INT64_MAX_EQ_LONG_MAX
832 INT32_MAX_LT_INTMAX_MAX
841 GL_GENERATE_STDINT_H_FALSE
842 GL_GENERATE_STDINT_H_TRUE
851 HAVE_SIGNED_SIG_ATOMIC_T
854 BITSIZEOF_SIG_ATOMIC_T
857 APPLE_UNIVERSAL_BUILD
861 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
866 HAVE_UNSIGNED_LONG_LONG_INT
870 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
874 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
887 REPLACE_CANONICALIZE_FILE_NAME
892 HAVE_STRUCT_RANDOM_DATA
911 HAVE_CANONICALIZE_FILE_NAME
938 GNULIB_CANONICALIZE_FILE_NAME
942 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
943 UNISTD_H_HAVE_WINSOCK2_H
963 REPLACE_GETDOMAINNAME
973 HAVE_DECL_GETUSERSHELL
974 HAVE_DECL_GETPAGESIZE
976 HAVE_DECL_GETDOMAINNAME
1012 GNULIB_UNISTD_H_SIGPIPE
1013 GNULIB_UNISTD_H_NONBLOCKING
1014 GNULIB_UNISTD_H_GETOPT
1038 GNULIB_GETDTABLESIZE
1039 GNULIB_GETDOMAINNAME
1052 GL_GENERATE_ALLOCA_H_FALSE
1053 GL_GENERATE_ALLOCA_H_TRUE
1056 GL_COND_LIBTOOL_FALSE
1057 GL_COND_LIBTOOL_TRUE
1090 x_default_search_path
1158 LD_SWITCH_X_SITE_AUX_RPATH
1159 LD_SWITCH_X_SITE_AUX
1222 INSTALL_STRIP_PROGRAM
1264 program_transform_name
1275 ac_subst_files
='deps_frag
1279 enable_option_checking
1302 with_toolkit_scroll_bars
1314 with_pkg_config_prog
1318 enable_ns_self_contained
1320 enable_maintainer_mode
1321 enable_locallisppath
1323 enable_use_lisp_union_type
1326 enable_dependency_tracking
1330 ac_precious_vars
='build_alias
1342 # Initialize some variables set by options.
1344 ac_init_version
=false
1345 ac_unrecognized_opts
=
1346 ac_unrecognized_sep
=
1347 # The variables have the same names as the options, with
1348 # dashes changed to underlines.
1349 cache_file
=/dev
/null
1356 program_transform_name
=s
,x
,x
,
1364 # Installation directory options.
1365 # These are left unexpanded so users can "make install exec_prefix=/foo"
1366 # and all the variables that are supposed to be based on exec_prefix
1367 # by default will actually change.
1368 # Use braces instead of parens because sh, perl, etc. also accept them.
1369 # (The list follows the same order as the GNU Coding Standards.)
1370 bindir
='${exec_prefix}/bin'
1371 sbindir
='${exec_prefix}/sbin'
1372 libexecdir
='${exec_prefix}/libexec'
1373 datarootdir
='${prefix}/share'
1374 datadir
='${datarootdir}'
1375 sysconfdir
='${prefix}/etc'
1376 sharedstatedir
='${prefix}/com'
1377 localstatedir
='${prefix}/var'
1378 includedir
='${prefix}/include'
1379 oldincludedir
='/usr/include'
1380 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1381 infodir
='${datarootdir}/info'
1386 libdir
='${exec_prefix}/lib'
1387 localedir
='${datarootdir}/locale'
1388 mandir
='${datarootdir}/man'
1394 # If the previous option needs an argument, assign it.
1395 if test -n "$ac_prev"; then
1396 eval $ac_prev=\
$ac_option
1402 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1407 # Accept the important Cygnus configure options, so we can diagnose typos.
1409 case $ac_dashdash$ac_option in
1413 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1415 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1416 bindir
=$ac_optarg ;;
1418 -build |
--build |
--buil |
--bui |
--bu)
1419 ac_prev
=build_alias
;;
1420 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1421 build_alias
=$ac_optarg ;;
1423 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1424 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1425 ac_prev
=cache_file
;;
1426 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1427 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1428 cache_file
=$ac_optarg ;;
1430 --config-cache |
-C)
1431 cache_file
=config.cache
;;
1433 -datadir |
--datadir |
--datadi |
--datad)
1435 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1436 datadir
=$ac_optarg ;;
1438 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1439 |
--dataroo |
--dataro |
--datar)
1440 ac_prev
=datarootdir
;;
1441 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1442 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1443 datarootdir
=$ac_optarg ;;
1445 -disable-* |
--disable-*)
1446 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1447 # Reject names that are not valid shell variable names.
1448 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1449 as_fn_error $?
"invalid feature name: $ac_useropt"
1450 ac_useropt_orig
=$ac_useropt
1451 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1452 case $ac_user_opts in
1454 "enable_
$ac_useropt"
1456 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1457 ac_unrecognized_sep
=', ';;
1459 eval enable_
$ac_useropt=no
;;
1461 -docdir |
--docdir |
--docdi |
--doc |
--do)
1463 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1464 docdir
=$ac_optarg ;;
1466 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1468 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1469 dvidir
=$ac_optarg ;;
1471 -enable-* |
--enable-*)
1472 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1473 # Reject names that are not valid shell variable names.
1474 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1475 as_fn_error $?
"invalid feature name: $ac_useropt"
1476 ac_useropt_orig
=$ac_useropt
1477 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1478 case $ac_user_opts in
1480 "enable_
$ac_useropt"
1482 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1483 ac_unrecognized_sep
=', ';;
1485 eval enable_
$ac_useropt=\
$ac_optarg ;;
1487 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1488 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1489 |
--exec |
--exe |
--ex)
1490 ac_prev
=exec_prefix
;;
1491 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1492 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1493 |
--exec=* |
--exe=* |
--ex=*)
1494 exec_prefix
=$ac_optarg ;;
1496 -gas |
--gas |
--ga |
--g)
1497 # Obsolete; use --with-gas.
1500 -help |
--help |
--hel |
--he |
-h)
1501 ac_init_help
=long
;;
1502 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1503 ac_init_help
=recursive
;;
1504 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1505 ac_init_help
=short
;;
1507 -host |
--host |
--hos |
--ho)
1508 ac_prev
=host_alias
;;
1509 -host=* |
--host=* |
--hos=* |
--ho=*)
1510 host_alias
=$ac_optarg ;;
1512 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1514 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1516 htmldir
=$ac_optarg ;;
1518 -includedir |
--includedir |
--includedi |
--included |
--include \
1519 |
--includ |
--inclu |
--incl |
--inc)
1520 ac_prev
=includedir
;;
1521 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1522 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1523 includedir
=$ac_optarg ;;
1525 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1527 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1528 infodir
=$ac_optarg ;;
1530 -libdir |
--libdir |
--libdi |
--libd)
1532 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1533 libdir
=$ac_optarg ;;
1535 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1536 |
--libexe |
--libex |
--libe)
1537 ac_prev
=libexecdir
;;
1538 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1539 |
--libexe=* |
--libex=* |
--libe=*)
1540 libexecdir
=$ac_optarg ;;
1542 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1543 ac_prev
=localedir
;;
1544 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1545 localedir
=$ac_optarg ;;
1547 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1548 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1549 ac_prev
=localstatedir
;;
1550 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1551 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1552 localstatedir
=$ac_optarg ;;
1554 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1556 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1557 mandir
=$ac_optarg ;;
1559 -nfp |
--nfp |
--nf)
1560 # Obsolete; use --without-fp.
1563 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1564 |
--no-cr |
--no-c |
-n)
1567 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1568 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1571 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1572 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1573 |
--oldin |
--oldi |
--old |
--ol |
--o)
1574 ac_prev
=oldincludedir
;;
1575 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1576 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1577 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1578 oldincludedir
=$ac_optarg ;;
1580 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1582 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1583 prefix
=$ac_optarg ;;
1585 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1586 |
--program-pre |
--program-pr |
--program-p)
1587 ac_prev
=program_prefix
;;
1588 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1589 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1590 program_prefix
=$ac_optarg ;;
1592 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1593 |
--program-suf |
--program-su |
--program-s)
1594 ac_prev
=program_suffix
;;
1595 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1596 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1597 program_suffix
=$ac_optarg ;;
1599 -program-transform-name |
--program-transform-name \
1600 |
--program-transform-nam |
--program-transform-na \
1601 |
--program-transform-n |
--program-transform- \
1602 |
--program-transform |
--program-transfor \
1603 |
--program-transfo |
--program-transf \
1604 |
--program-trans |
--program-tran \
1605 |
--progr-tra |
--program-tr |
--program-t)
1606 ac_prev
=program_transform_name
;;
1607 -program-transform-name=* |
--program-transform-name=* \
1608 |
--program-transform-nam=* |
--program-transform-na=* \
1609 |
--program-transform-n=* |
--program-transform-=* \
1610 |
--program-transform=* |
--program-transfor=* \
1611 |
--program-transfo=* |
--program-transf=* \
1612 |
--program-trans=* |
--program-tran=* \
1613 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1614 program_transform_name
=$ac_optarg ;;
1616 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1618 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1619 pdfdir
=$ac_optarg ;;
1621 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1623 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1626 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1627 |
-silent |
--silent |
--silen |
--sile |
--sil)
1630 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1632 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1634 sbindir
=$ac_optarg ;;
1636 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1637 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1638 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1640 ac_prev
=sharedstatedir
;;
1641 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1642 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1643 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1645 sharedstatedir
=$ac_optarg ;;
1647 -site |
--site |
--sit)
1649 -site=* |
--site=* |
--sit=*)
1652 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1654 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1655 srcdir
=$ac_optarg ;;
1657 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1658 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1659 ac_prev
=sysconfdir
;;
1660 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1661 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1662 sysconfdir
=$ac_optarg ;;
1664 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1665 ac_prev
=target_alias
;;
1666 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1667 target_alias
=$ac_optarg ;;
1669 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1672 -version |
--version |
--versio |
--versi |
--vers |
-V)
1673 ac_init_version
=: ;;
1676 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1677 # Reject names that are not valid shell variable names.
1678 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1679 as_fn_error $?
"invalid package name: $ac_useropt"
1680 ac_useropt_orig
=$ac_useropt
1681 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1686 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1687 ac_unrecognized_sep
=', ';;
1689 eval with_
$ac_useropt=\
$ac_optarg ;;
1691 -without-* |
--without-*)
1692 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1693 # Reject names that are not valid shell variable names.
1694 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1695 as_fn_error $?
"invalid package name: $ac_useropt"
1696 ac_useropt_orig
=$ac_useropt
1697 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1698 case $ac_user_opts in
1702 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1703 ac_unrecognized_sep
=', ';;
1705 eval with_
$ac_useropt=no
;;
1708 # Obsolete; use --with-x.
1711 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1712 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1713 ac_prev
=x_includes
;;
1714 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1715 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1716 x_includes
=$ac_optarg ;;
1718 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1719 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1720 ac_prev
=x_libraries
;;
1721 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1722 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1723 x_libraries
=$ac_optarg ;;
1725 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1726 Try \`$0 --help' for more information"
1730 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1731 # Reject names that are not valid shell variable names.
1732 case $ac_envvar in #(
1733 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1734 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1736 eval $ac_envvar=\
$ac_optarg
1737 export $ac_envvar ;;
1740 # FIXME: should be removed in autoconf 3.0.
1741 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1742 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1743 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1744 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1750 if test -n "$ac_prev"; then
1751 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1752 as_fn_error $?
"missing argument to $ac_option"
1755 if test -n "$ac_unrecognized_opts"; then
1756 case $enable_option_checking in
1758 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1759 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1763 # Check all directory arguments for consistency.
1764 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1765 datadir sysconfdir sharedstatedir localstatedir includedir \
1766 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1767 libdir localedir mandir
1769 eval ac_val
=\$
$ac_var
1770 # Remove trailing slashes.
1773 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1774 eval $ac_var=\
$ac_val;;
1776 # Be sure to have absolute directory names.
1778 [\\/$
]* | ?
:[\\/]* ) continue;;
1779 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1781 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1784 # There might be people who depend on the old broken behavior: `$host'
1785 # used to hold the argument of --host etc.
1786 # FIXME: To remove some day.
1789 target
=$target_alias
1791 # FIXME: To remove some day.
1792 if test "x$host_alias" != x
; then
1793 if test "x$build_alias" = x
; then
1794 cross_compiling
=maybe
1795 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1796 If a cross compiler is detected then cross compile mode will be used" >&2
1797 elif test "x$build_alias" != "x$host_alias"; then
1803 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1805 test "$silent" = yes && exec 6>/dev
/null
1808 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1809 ac_ls_di
=`ls -di .` &&
1810 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1811 as_fn_error $?
"working directory cannot be determined"
1812 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1813 as_fn_error $?
"pwd does not report name of working directory"
1816 # Find the source files, if location was not specified.
1817 if test -z "$srcdir"; then
1818 ac_srcdir_defaulted
=yes
1819 # Try the directory containing this script, then the parent directory.
1820 ac_confdir
=`$as_dirname -- "$as_myself" ||
1821 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1822 X"$as_myself" : 'X\(//\)[^/]' \| \
1823 X"$as_myself" : 'X\(//\)$' \| \
1824 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1825 $as_echo X"$as_myself" |
1826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1844 if test ! -r "$srcdir/$ac_unique_file"; then
1848 ac_srcdir_defaulted
=no
1850 if test ! -r "$srcdir/$ac_unique_file"; then
1851 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1852 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1854 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1856 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1858 # When building in place, set srcdir=.
1859 if test "$ac_abs_confdir" = "$ac_pwd"; then
1862 # Remove unnecessary trailing slashes from srcdir.
1863 # Double slashes in file names in object file debugging info
1864 # mess up M-x gdb in Emacs.
1866 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1868 for ac_var
in $ac_precious_vars; do
1869 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1870 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1871 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1872 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1876 # Report the --help message.
1878 if test "$ac_init_help" = "long"; then
1879 # Omit some internal or obsolete options to make the list less imposing.
1880 # This message is too long to be a string in the A/UX 3.1 sh.
1882 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1884 Usage: $0 [OPTION]... [VAR=VALUE]...
1886 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1887 VAR=VALUE. See below for descriptions of some of the useful variables.
1889 Defaults for the options are specified in brackets.
1892 -h, --help display this help and exit
1893 --help=short display options specific to this package
1894 --help=recursive display the short help of all the included packages
1895 -V, --version display version information and exit
1896 -q, --quiet, --silent do not print \`checking ...' messages
1897 --cache-file=FILE cache test results in FILE [disabled]
1898 -C, --config-cache alias for \`--cache-file=config.cache'
1899 -n, --no-create do not create output files
1900 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1902 Installation directories:
1903 --prefix=PREFIX install architecture-independent files in PREFIX
1904 [$ac_default_prefix]
1905 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1908 By default, \`make install' will install all the files in
1909 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1910 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1911 for instance \`--prefix=\$HOME'.
1913 For better control, use the options below.
1915 Fine tuning of the installation directories:
1916 --bindir=DIR user executables [EPREFIX/bin]
1917 --sbindir=DIR system admin executables [EPREFIX/sbin]
1918 --libexecdir=DIR program executables [EPREFIX/libexec]
1919 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1920 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1921 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1922 --libdir=DIR object code libraries [EPREFIX/lib]
1923 --includedir=DIR C header files [PREFIX/include]
1924 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1925 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1926 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1927 --infodir=DIR info documentation [DATAROOTDIR/info]
1928 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1929 --mandir=DIR man documentation [DATAROOTDIR/man]
1930 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1931 --htmldir=DIR html documentation [DOCDIR]
1932 --dvidir=DIR dvi documentation [DOCDIR]
1933 --pdfdir=DIR pdf documentation [DOCDIR]
1934 --psdir=DIR ps documentation [DOCDIR]
1940 --program-prefix=PREFIX prepend PREFIX to installed program names
1941 --program-suffix=SUFFIX append SUFFIX to installed program names
1942 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1945 --x-includes=DIR X include files are
in DIR
1946 --x-libraries=DIR X library files are
in DIR
1949 --build=BUILD configure
for building on BUILD
[guessed
]
1950 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1954 if test -n "$ac_init_help"; then
1955 case $ac_init_help in
1956 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1961 --disable-option-checking ignore unrecognized
--enable/--with options
1962 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1963 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1964 --disable-ns-self-contained
1965 disable self contained build under NeXTstep
1966 --enable-asserts compile code with asserts enabled
1967 --disable-maintainer-mode
1968 disable
make rules and dependencies not useful
(and
1969 sometimes confusing
) to the casual installer
1970 --enable-locallisppath=PATH
1971 directories Emacs should search
for lisp files
1972 specific to this site
1973 --enable-checking[=LIST
]
1974 enable expensive run-time checks. With LIST
, enable
1975 only specific categories of checks. Categories are
:
1976 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1977 stringfreelist
, xmallocoverrun
, conslist
1978 --enable-use-lisp-union-type
1979 use a union
for the Lisp_Object data
type. This is
1980 only useful
for development
for catching certain
1982 --enable-profiling build emacs with profiling support. This might not
1983 work on all platforms
1984 --enable-autodepend automatically generate dependencies to .h-files.
1985 Requires GNU Make and Gcc. Enabled
if GNU Make and
1987 --disable-dependency-tracking speeds up one-time build
1988 --enable-dependency-tracking do not reject slow dependency extractors
1989 --disable-largefile omit support
for large files
1992 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1993 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1994 --without-pop don
't support POP mail retrieval with movemail
1995 --with-kerberos support Kerberos-authenticated POP
1996 --with-kerberos5 support Kerberos version 5 authenticated POP
1997 --with-hesiod support Hesiod to get the POP server host
1998 --with-mmdf support MMDF mailboxes
1999 --with-mail-unlink unlink, rather than empty, mail spool after reading
2000 --with-mailhost=HOSTNAME
2001 string giving default POP mail host
2002 --without-sound don't compile with sound support
2003 --without-sync-input process async input synchronously
2004 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2005 lucid or athena
, motif
, no
)
2006 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2007 --without-xpm don
't compile with XPM image support
2008 --without-jpeg don't compile with JPEG image support
2009 --without-tiff don
't compile with TIFF image support
2010 --without-gif don't compile with GIF image support
2011 --without-png don
't compile with PNG image support
2012 --without-rsvg don't compile with SVG image support
2013 --without-xml2 don
't compile with XML parsing support
2014 --without-imagemagick don't compile with ImageMagick image support
2015 --without-xft don
't use XFT for anti aliased fonts
2016 --without-libotf don't use libotf
for OpenType font support
2017 --without-m17n-flt don
't use m17n-flt for text shaping
2018 --without-toolkit-scroll-bars
2019 don't use Motif or Xaw3d scroll bars
2020 --without-xaw3d don
't use Xaw3d
2021 --without-xim don't use X11 XIM
2022 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2023 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2025 --without-dbus don't compile with D-Bus support
2026 --without-gconf don
't compile with GConf support
2027 --without-gsettings don't compile with GSettings support
2028 --without-selinux don
't compile with SELinux support
2029 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2030 --without-makeinfo don
't require makeinfo for building manuals
2031 --without-compress-info don't
compress the installed Info pages
2032 --with-pkg-config-prog=PATH
2033 path to pkg-config
for finding GTK and librsvg
2034 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2035 /usr
/lib
, or
/usr
/lib64 on some platforms.
2036 --with-gameuser=USER user
for shared game score files
2037 --with-gnustep-conf=PATH
2038 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2039 or
/etc
/GNUstep
/GNUstep.conf
2040 --with-x use the X Window System
2042 Some influential environment variables
:
2043 CC C compiler
command
2044 CFLAGS C compiler flags
2045 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2046 nonstandard directory
<lib dir
>
2047 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2048 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2049 you have headers
in a nonstandard directory
<include dir
>
2051 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2053 Use these variables to override the choices made by
`configure' or to help
2054 it to find libraries and programs with nonstandard names/locations.
2056 Report bugs to the package provider.
2061 if test "$ac_init_help" = "recursive"; then
2062 # If there are subdirs, report their specific --help.
2063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2064 test -d "$ac_dir" ||
2065 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2073 # A ".." for each directory in $ac_dir_suffix.
2074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2075 case $ac_top_builddir_sub in
2076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2080 ac_abs_top_builddir=$ac_pwd
2081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2082 # for backward compatibility:
2083 ac_top_builddir=$ac_top_build_prefix
2086 .) # We are building in place.
2088 ac_top_srcdir=$ac_top_builddir_sub
2089 ac_abs_top_srcdir=$ac_pwd ;;
2090 [\\/]* | ?:[\\/]* ) # Absolute name.
2091 ac_srcdir=$srcdir$ac_dir_suffix;
2092 ac_top_srcdir=$srcdir
2093 ac_abs_top_srcdir=$srcdir ;;
2095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2096 ac_top_srcdir=$ac_top_build_prefix$srcdir
2097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2101 cd "$ac_dir" || { ac_status=$?; continue; }
2102 # Check for guested configure.
2103 if test -f "$ac_srcdir/configure.gnu"; then
2105 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2106 elif test -f "$ac_srcdir/configure"; then
2108 $SHELL "$ac_srcdir/configure" --help=recursive
2110 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2112 cd "$ac_pwd" || { ac_status=$?; break; }
2116 test -n "$ac_init_help" && exit $ac_status
2117 if $ac_init_version; then
2119 emacs configure 24.0.50
2120 generated by GNU Autoconf 2.68
2122 Copyright (C) 2010 Free Software Foundation, Inc.
2123 This configure script is free software; the Free Software Foundation
2124 gives unlimited permission to copy, distribute and modify it.
2129 ## ------------------------ ##
2130 ## Autoconf initialization. ##
2131 ## ------------------------ ##
2133 # ac_fn_c_try_compile LINENO
2134 # --------------------------
2135 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_compile ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext
2140 if { { ac_try="$ac_compile"
2142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2143 *) ac_try_echo
=$ac_try;;
2145 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_compile") 2>conftest.err
2149 if test -s conftest.err
; then
2150 grep -v '^ *+' conftest.err
>conftest.er1
2151 cat conftest.er1
>&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest.
$ac_objext; then :
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.
$ac_ext >&5
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status
$ac_retval
2169 } # ac_fn_c_try_compile
2171 # ac_fn_c_try_cpp LINENO
2172 # ----------------------
2173 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2176 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2177 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } > conftest.i && {
2193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2194 test ! -s conftest.err
2198 $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2208 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2209 # -------------------------------------------------------
2210 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211 # the include files in INCLUDES and setting the cache variable VAR
2213 ac_fn_c_check_header_mongrel ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2226 # Is the header compilable?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228 $as_echo_n "checking $2 usability... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2237 ac_header_compiler=no
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241 $as_echo "$ac_header_compiler" >&6; }
2243 # Is the header present?
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245 $as_echo_n "checking $2 presence... " >&6; }
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 if ac_fn_c_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2253 ac_header_preproc=no
2255 rm -f conftest.err conftest.i conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257 $as_echo "$ac_header_preproc" >&6; }
2259 # So? What about this header?
2260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2285 eval "$3=\$ac_header_compiler"
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_header_mongrel
2295 # ac_fn_c_try_run LINENO
2296 # ----------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2298 # that executables *can* be run.
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 if { { ac_try="$ac_link"
2304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2305 *) ac_try_echo
=$ac_try;;
2307 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>&5
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2313 { { case "(($ac_try" in
2314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_try") 2>&5
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; }; }; then :
2325 $as_echo "$as_me: program exited with status $ac_status" >&5
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2329 ac_retval=$ac_status
2331 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2337 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338 # -------------------------------------------------------
2339 # Tests whether HEADER exists and can be compiled using the include files in
2340 # INCLUDES, setting the cache variable VAR accordingly.
2341 ac_fn_c_check_header_compile ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2354 if ac_fn_c_try_compile "$LINENO"; then :
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_c_check_header_compile
2368 # ac_fn_c_try_link LINENO
2369 # -----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext conftest$ac_exeext
2375 if { { ac_try="$ac_link"
2377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2378 *) ac_try_echo
=$ac_try;;
2380 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>conftest.err
2384 if test -s conftest.err
; then
2385 grep -v '^ *+' conftest.err
>conftest.er1
2386 cat conftest.er1
>&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest
$ac_exeext && {
2394 test "$cross_compiling" = yes ||
2395 $as_test_x conftest
$ac_exeext
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.
$ac_ext >&5
2404 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406 # interfere with the next link command; also delete a directory that is
2407 # left behind by Apple's compiler. We do this before executing the actions.
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status
$ac_retval
2412 } # ac_fn_c_try_link
2414 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2415 # ---------------------------------------------
2416 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2418 ac_fn_c_check_decl
()
2420 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2421 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2422 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2424 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2425 if eval \
${$3+:} false
; then :
2426 $as_echo_n "(cached) " >&6
2428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 #ifndef $as_decl_name
2436 (void) $as_decl_use;
2438 (void) $as_decl_name;
2446 if ac_fn_c_try_compile
"$LINENO"; then :
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 } # ac_fn_c_check_decl
2460 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2461 # ----------------------------------------------
2462 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2463 ac_fn_c_check_header_preproc
()
2465 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \
${$3+:} false
; then :
2469 $as_echo_n "(cached) " >&6
2471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2475 if ac_fn_c_try_cpp
"$LINENO"; then :
2480 rm -f conftest.err conftest.i conftest.
$ac_ext
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 } # ac_fn_c_check_header_preproc
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func
()
2494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if eval \
${$3+:} false
; then :
2498 $as_echo_n "(cached) " >&6
2500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2504 #define $2 innocuous_$2
2506 /* System header to define __stub macros and hopefully few prototypes,
2507 which can conflict with char $2 (); below.
2508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 <limits.h> exists even on freestanding compilers. */
2512 # include <limits.h>
2514 # include <assert.h>
2519 /* Override any GCC internal prototype to avoid an error.
2520 Use char because int might match the return type of a GCC
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined __stub_$2 || defined __stub___$2
2541 if ac_fn_c_try_link
"$LINENO"; then :
2546 rm -f core conftest.err conftest.
$ac_objext \
2547 conftest
$ac_exeext conftest.
$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554 } # ac_fn_c_check_func
2556 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2557 # ----------------------------------------------------
2558 # Tries to find if the field MEMBER exists in type AGGR, after including
2559 # INCLUDES, setting cache variable VAR accordingly.
2560 ac_fn_c_check_member
()
2562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2564 $as_echo_n "checking for $2.$3... " >&6; }
2565 if eval \
${$4+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2581 if ac_fn_c_try_compile
"$LINENO"; then :
2584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2591 if (sizeof ac_aggr.$3)
2597 if ac_fn_c_try_compile
"$LINENO"; then :
2602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 } # ac_fn_c_check_member
2613 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2614 # -------------------------------------------
2615 # Tests whether TYPE exists after having included INCLUDES, setting cache
2616 # variable VAR accordingly.
2617 ac_fn_c_check_type
()
2619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621 $as_echo_n "checking for $2... " >&6; }
2622 if eval \
${$3+:} false
; then :
2623 $as_echo_n "(cached) " >&6
2626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2638 if ac_fn_c_try_compile
"$LINENO"; then :
2639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2651 if ac_fn_c_try_compile
"$LINENO"; then :
2656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665 } # ac_fn_c_check_type
2667 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2668 # --------------------------------------------
2669 # Tries to find the compile-time value of EXPR in a program that includes
2670 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2672 ac_fn_c_compute_int
()
2674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2675 if test "$cross_compiling" = yes; then
2676 # Depending upon the size, compute the lo and hi bounds.
2677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2683 static int test_array [1 - 2 * !(($2) >= 0)];
2690 if ac_fn_c_try_compile
"$LINENO"; then :
2693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2706 if ac_fn_c_try_compile
"$LINENO"; then :
2707 ac_hi
=$ac_mid; break
2709 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2710 if test $ac_lo -le $ac_mid; then
2714 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 static int test_array [1 - 2 * !(($2) < 0)];
2732 if ac_fn_c_try_compile
"$LINENO"; then :
2735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2741 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2748 if ac_fn_c_try_compile
"$LINENO"; then :
2749 ac_lo
=$ac_mid; break
2751 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2752 if test $ac_mid -le $ac_hi; then
2756 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2766 # Binary search between lo and hi bounds.
2767 while test "x$ac_lo" != "x$ac_hi"; do
2768 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2775 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2782 if ac_fn_c_try_compile
"$LINENO"; then :
2785 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2790 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2797 static long int longval () { return $2; }
2798 static unsigned long int ulongval () { return $2; }
2805 FILE *f = fopen ("conftest.val", "w");
2810 long int i = longval ();
2813 fprintf (f, "%ld", i);
2817 unsigned long int i = ulongval ();
2820 fprintf (f, "%lu", i);
2822 /* Do not output a trailing newline, as this causes \r\n confusion
2823 on some platforms. */
2824 return ferror (f) || fclose (f) != 0;
2830 if ac_fn_c_try_run
"$LINENO"; then :
2831 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 as_fn_set_status
$ac_retval
2843 } # ac_fn_c_compute_int
2844 cat >config.log
<<_ACEOF
2845 This file contains any messages produced by compilers while
2846 running configure, to aid debugging if configure makes a mistake.
2848 It was created by emacs $as_me 24.0.50, which was
2849 generated by GNU Autoconf 2.68. Invocation command line was
2861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir
=.
2885 $as_echo "PATH: $as_dir"
2901 # Keep a trace of the command line.
2902 # Strip out --no-create and --no-recursion so they do not pile up.
2903 # Strip out --silent because we don't want to record it for future runs.
2904 # Also quote any args containing shell meta-characters.
2905 # Make two passes to allow for proper duplicate-argument suppression.
2909 ac_must_keep_next
=false
2915 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2916 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2917 |
-silent |
--silent |
--silen |
--sile |
--sil)
2920 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2925 as_fn_append ac_configure_args1
" '$ac_arg'"
2926 if test $ac_must_keep_next = true
; then
2927 ac_must_keep_next
=false
# Got value, back to normal.
2930 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2931 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2932 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2933 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2934 case "$ac_configure_args0 " in
2935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2938 -* ) ac_must_keep_next
=true
;;
2941 as_fn_append ac_configure_args
" '$ac_arg'"
2946 { ac_configure_args0
=; unset ac_configure_args0
;}
2947 { ac_configure_args1
=; unset ac_configure_args1
;}
2949 # When interrupted or exit'd, cleanup temporary files, and complete
2950 # config.log. We remove comments because anyway the quotes in there
2951 # would cause problems or look ugly.
2952 # WARNING: Use '\'' to represent an apostrophe within the trap.
2953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2954 trap 'exit_status=$?
2955 # Save into config.log some information that might help in debugging.
2959 $as_echo "## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##"
2963 # The following way of writing the cache mishandles newlines in values,
2965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2966 eval ac_val=\$$ac_var
2970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2974 _ | IFS | as_nl) ;; #(
2975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2976 *) { eval $ac_var=; unset $ac_var;} ;;
2981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2982 *${as_nl}ac_space=\ *)
2984 "s/'\''/'\''\\\\'\'''\''/g;
2985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2995 $as_echo "## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##"
2999 for ac_var in $ac_subst_vars
3001 eval ac_val=\$$ac_var
3003 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3005 $as_echo "$ac_var='\''$ac_val'\''"
3009 if test -n "$ac_subst_files"; then
3010 $as_echo "## ------------------- ##
3011 ## File substitutions. ##
3012 ## ------------------- ##"
3014 for ac_var
in $ac_subst_files
3016 eval ac_val
=\$
$ac_var
3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020 $as_echo "$ac_var='\''$ac_val'\''"
3025 if test -s confdefs.h; then
3026 $as_echo "## ----------- ##
3033 test "$ac_signal" != 0 &&
3034 $as_echo "$as_me: caught signal $ac_signal"
3035 $as_echo "$as_me: exit $exit_status"
3037 rm -f core *.core core.conftest.* &&
3038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3041 for ac_signal
in 1 2 13 15; do
3042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3047 rm -f -r conftest
* confdefs.h
3049 $as_echo "/* confdefs.h */" > confdefs.h
3051 # Predefined preprocessor variables.
3053 cat >>confdefs.h
<<_ACEOF
3054 #define PACKAGE_NAME "$PACKAGE_NAME"
3057 cat >>confdefs.h
<<_ACEOF
3058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3061 cat >>confdefs.h
<<_ACEOF
3062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3065 cat >>confdefs.h
<<_ACEOF
3066 #define PACKAGE_STRING "$PACKAGE_STRING"
3069 cat >>confdefs.h
<<_ACEOF
3070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3073 cat >>confdefs.h
<<_ACEOF
3074 #define PACKAGE_URL "$PACKAGE_URL"
3078 # Let the site file select an alternate cache file if it wants to.
3079 # Prefer an explicitly selected file to automatically selected ones.
3082 if test -n "$CONFIG_SITE"; then
3083 # We do not want a PATH search for config.site.
3084 case $CONFIG_SITE in #((
3085 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3086 */*) ac_site_file1
=$CONFIG_SITE;;
3087 *) ac_site_file1
=.
/$CONFIG_SITE;;
3089 elif test "x$prefix" != xNONE
; then
3090 ac_site_file1
=$prefix/share
/config.site
3091 ac_site_file2
=$prefix/etc
/config.site
3093 ac_site_file1
=$ac_default_prefix/share
/config.site
3094 ac_site_file2
=$ac_default_prefix/etc
/config.site
3096 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3098 test "x$ac_site_file" = xNONE
&& continue
3099 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102 sed 's/^/| /' "$ac_site_file" >&5
3104 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $?
"failed to load site script $ac_site_file
3107 See \`config.log' for more details" "$LINENO" 5; }
3111 if test -r "$cache_file"; then
3112 # Some versions of bash will fail to source /dev/null (special files
3113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3114 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3116 $as_echo "$as_me: loading cache $cache_file" >&6;}
3118 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3119 *) .
"./$cache_file";;
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3124 $as_echo "$as_me: creating cache $cache_file" >&6;}
3128 as_fn_append ac_header_list
" stdlib.h"
3129 as_fn_append ac_header_list
" unistd.h"
3130 as_fn_append ac_header_list
" sys/param.h"
3131 as_fn_append ac_func_list
" readlinkat"
3132 gl_getopt_required
=GNU
3133 as_fn_append ac_header_list
" getopt.h"
3134 as_fn_append ac_header_list
" wchar.h"
3135 as_fn_append ac_header_list
" stdint.h"
3136 as_fn_append ac_header_list
" inttypes.h"
3137 as_fn_append ac_func_list
" lstat"
3138 as_fn_append ac_func_list
" alarm"
3139 as_fn_append ac_func_list
" pthread_sigmask"
3140 as_fn_append ac_func_list
" readlink"
3141 as_fn_append ac_header_list
" sys/socket.h"
3142 as_fn_append ac_func_list
" tzset"
3143 as_fn_append ac_func_list
" strtoimax"
3144 as_fn_append ac_func_list
" strtoumax"
3145 as_fn_append ac_func_list
" symlink"
3146 as_fn_append ac_header_list
" sys/stat.h"
3147 as_fn_append ac_header_list
" sys/time.h"
3148 as_fn_append ac_func_list
" localtime_r"
3149 # Check that the precious variables saved in the cache have kept the same
3151 ac_cache_corrupted
=false
3152 for ac_var
in $ac_precious_vars; do
3153 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3154 eval ac_new_set
=\
$ac_env_${ac_var}_set
3155 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3156 eval ac_new_val
=\
$ac_env_${ac_var}_value
3157 case $ac_old_set,$ac_new_set in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3161 ac_cache_corrupted
=: ;;
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3165 ac_cache_corrupted
=: ;;
3168 if test "x$ac_old_val" != "x$ac_new_val"; then
3169 # differences in whitespace do not lead to failure.
3170 ac_old_val_w
=`echo x $ac_old_val`
3171 ac_new_val_w
=`echo x $ac_new_val`
3172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3175 ac_cache_corrupted
=:
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3179 eval $ac_var=\
$ac_old_val
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3187 # Pass precious variables to config.status.
3188 if test "$ac_new_set" = set; then
3190 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 *) ac_arg
=$ac_var=$ac_new_val ;;
3193 case " $ac_configure_args " in
3194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3195 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3199 if $ac_cache_corrupted; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3204 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3206 ## -------------------- ##
3207 ## Main body of script. ##
3208 ## -------------------- ##
3211 ac_cpp
='$CPP $CPPFLAGS'
3212 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3217 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3221 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3222 if test -f "$ac_dir/install-sh"; then
3224 ac_install_sh
="$ac_aux_dir/install-sh -c"
3226 elif test -f "$ac_dir/install.sh"; then
3228 ac_install_sh
="$ac_aux_dir/install.sh -c"
3230 elif test -f "$ac_dir/shtool"; then
3232 ac_install_sh
="$ac_aux_dir/shtool install -c"
3236 if test -z "$ac_aux_dir"; then
3237 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3240 # These three variables are undocumented and unsupported,
3241 # and are intended to be withdrawn in a future Autoconf release.
3242 # They can cause serious problems if a builder's source tree is in a directory
3243 # whose full name contains unusual characters.
3244 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3245 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3246 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3249 am__api_version
='1.11'
3251 # Find a good install program. We prefer a C program (faster),
3252 # so one script is as good as another. But avoid the broken or
3253 # incompatible versions:
3254 # SysV /etc/install, /usr/sbin/install
3255 # SunOS /usr/etc/install
3256 # IRIX /sbin/install
3258 # AmigaOS /C/install, which installs bootblocks on floppy discs
3259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3262 # OS/2's system install, which has a completely different semantic
3263 # ./install, which can be erroneously created by make from ./install.sh.
3264 # Reject install programs that cannot install multiple files.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3267 if test -z "$INSTALL"; then
3268 if ${ac_cv_path_install+:} false
; then :
3269 $as_echo_n "(cached) " >&6
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 # Account for people who put trailing slashes in PATH elements.
3277 case $as_dir/ in #((
3278 .
/ | .
// |
/[cC
]/* | \
3279 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3280 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3283 # OSF1 and SCO ODT 3.0 have their own names for install.
3284 # Don't use installbsd from OSF since it installs stuff as root
3286 for ac_prog
in ginstall scoinst
install; do
3287 for ac_exec_ext
in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3289 if test $ac_prog = install &&
3290 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3291 # AIX install. It has an incompatible calling convention.
3293 elif test $ac_prog = install &&
3294 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3295 # program-specific install script used by HP pwplus--don't use.
3298 rm -rf conftest.one conftest.two conftest.dir
3299 echo one
> conftest.one
3300 echo two
> conftest.two
3302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3303 test -s conftest.one
&& test -s conftest.two
&&
3304 test -s conftest.dir
/conftest.one
&&
3305 test -s conftest.dir
/conftest.two
3307 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3320 rm -rf conftest.one conftest.two conftest.dir
3323 if test "${ac_cv_path_install+set}" = set; then
3324 INSTALL
=$ac_cv_path_install
3326 # As a last resort, use the slow shell script. Don't cache a
3327 # value for INSTALL within a source directory, because that will
3328 # break other packages using the cache if that directory is
3329 # removed, or if the value is a relative name.
3330 INSTALL
=$ac_install_sh
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3334 $as_echo "$INSTALL" >&6; }
3336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3337 # It thinks the first close brace ends the variable substitution.
3338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3342 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3345 $as_echo_n "checking whether build environment is sane... " >&6; }
3348 echo timestamp
> conftest.
file
3349 # Reject unsafe characters in $srcdir or the absolute working directory
3350 # name. Accept space and tab only in the latter.
3354 *[\\\"\
#\$\&\'\`$am_lf]*)
3355 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3358 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3359 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3362 # Do `set' in a subshell so we don't clobber the current shell's
3363 # arguments. Must try -L first in case configure is actually a
3364 # symlink; some systems play weird games with the mod time of symlinks
3365 # (eg FreeBSD returns the mod time of the symlink's containing
3368 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3369 if test "$*" = "X"; then
3371 set X
`ls -t "$srcdir/configure" conftest.file`
3374 if test "$*" != "X $srcdir/configure conftest.file" \
3375 && test "$*" != "X conftest.file $srcdir/configure"; then
3377 # If neither matched, then we have a broken ls. This can happen
3378 # if, for instance, CONFIG_SHELL is bash and it inherits a
3379 # broken ls alias from the environment. This has actually
3380 # happened. Such a system could not be considered "sane".
3381 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3382 alias in your environment" "$LINENO" 5
3385 test "$2" = conftest.
file
3391 as_fn_error $?
"newly created file is older than distributed files!
3392 Check your system clock" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396 test "$program_prefix" != NONE
&&
3397 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE
&&
3400 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3406 # expand $ac_aux_dir to an absolute path
3407 am_aux_dir
=`cd $ac_aux_dir && pwd`
3409 if test x
"${MISSING+set}" != xset
; then
3412 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3414 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3417 # Use eval to expand $SHELL
3418 if eval "$MISSING --run true"; then
3419 am_missing_run
="$MISSING --run "
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3426 if test x
"${install_sh}" != xset
; then
3429 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3431 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3435 # Installed binaries are usually stripped using `strip' when the user
3436 # run `make install-strip'. However `strip' might not be the right
3437 # tool to use in cross-compilation environments, therefore Automake
3438 # will honor the `STRIP' environment variable to overrule this program.
3439 if test "$cross_compiling" != no
; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3442 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_STRIP+:} false
; then :
3446 $as_echo_n "(cached) " >&6
3448 if test -n "$STRIP"; then
3449 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 STRIP
=$ac_cv_prog_STRIP
3469 if test -n "$STRIP"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3471 $as_echo "$STRIP" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3479 if test -z "$ac_cv_prog_STRIP"; then
3481 # Extract the first word of "strip", so it can be a program name with args.
3482 set dummy strip
; ac_word
=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3486 $as_echo_n "(cached) " >&6
3488 if test -n "$ac_ct_STRIP"; then
3489 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir
=.
3496 for ac_exec_ext
in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_STRIP
="strip"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3509 if test -n "$ac_ct_STRIP"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3511 $as_echo "$ac_ct_STRIP" >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3517 if test "x$ac_ct_STRIP" = x
; then
3520 case $cross_compiling:$ac_tool_warned in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned
=yes ;;
3529 STRIP
="$ac_cv_prog_STRIP"
3533 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3537 if test -z "$MKDIR_P"; then
3538 if ${ac_cv_path_mkdir+:} false
; then :
3539 $as_echo_n "(cached) " >&6
3541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3545 test -z "$as_dir" && as_dir
=.
3546 for ac_prog
in mkdir gmkdir
; do
3547 for ac_exec_ext
in '' $ac_executable_extensions; do
3548 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3550 'mkdir (GNU coreutils) '* | \
3551 'mkdir (coreutils) '* | \
3552 'mkdir (fileutils) '4.1*)
3553 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3563 test -d .
/--version && rmdir .
/--version
3564 if test "${ac_cv_path_mkdir+set}" = set; then
3565 MKDIR_P
="$ac_cv_path_mkdir -p"
3567 # As a last resort, use the slow shell script. Don't cache a
3568 # value for MKDIR_P within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the value is a relative name.
3571 MKDIR_P
="$ac_install_sh -d"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3575 $as_echo "$MKDIR_P" >&6; }
3580 [\\/$
]* | ?
:[\\/]*) ;;
3581 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3584 for ac_prog
in gawk mawk nawk
awk
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy
$ac_prog; ac_word
=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_AWK+:} false
; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$AWK"; then
3594 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir
=.
3601 for ac_exec_ext
in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_AWK
="$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$AWK"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3616 $as_echo "$AWK" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3623 test -n "$AWK" && break
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3629 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3631 $as_echo_n "(cached) " >&6
3633 cat >conftest.
make <<\_ACEOF
3636 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3641 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3643 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3647 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 SET_MAKE
="MAKE=${MAKE-make}"
3657 rm -rf .tst
2>/dev
/null
3658 mkdir .tst
2>/dev
/null
3659 if test -d .tst
; then
3664 rmdir .tst
2>/dev
/null
3666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3667 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3668 # is not polluted with repeated "-I."
3669 am__isrc
=' -I$(srcdir)'
3670 # test to see if srcdir already configured
3671 if test -f $srcdir/config.status
; then
3672 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3676 # test whether we have cygpath
3677 if test -z "$CYGPATH_W"; then
3678 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3679 CYGPATH_W
='cygpath -w'
3686 # Define the identity of the package.
3691 cat >>confdefs.h
<<_ACEOF
3692 #define PACKAGE "$PACKAGE"
3696 cat >>confdefs.h
<<_ACEOF
3697 #define VERSION "$VERSION"
3700 # Some tools Automake needs.
3702 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3705 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3708 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3711 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3714 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3716 # We need awk for the "check" target. The system "awk" is bad on
3718 # Always define AMTAR for backward compatibility.
3720 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3722 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3731 lispdir
='${datadir}/emacs/${version}/lisp'
3732 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3733 '${datadir}/emacs/site-lisp'
3734 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3735 etcdir
='${datadir}/emacs/${version}/etc'
3736 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3737 docdir
='${datadir}/emacs/${version}/etc'
3738 gamedir
='${localstatedir}/games/emacs'
3743 # Check whether --with-pop was given.
3744 if test "${with_pop+set}" = set; then :
3750 if test "$with_pop" = yes; then
3751 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3756 # Check whether --with-kerberos was given.
3757 if test "${with_kerberos+set}" = set; then :
3758 withval
=$with_kerberos;
3763 if test "$with_kerberos" != no
; then
3764 $as_echo "#define KERBEROS 1" >>confdefs.h
3769 # Check whether --with-kerberos5 was given.
3770 if test "${with_kerberos5+set}" = set; then :
3771 withval
=$with_kerberos5;
3776 if test "${with_kerberos5}" != no
; then
3777 if test "${with_kerberos}" = no
; then
3779 $as_echo "#define KERBEROS 1" >>confdefs.h
3783 $as_echo "#define KERBEROS5 1" >>confdefs.h
3788 # Check whether --with-hesiod was given.
3789 if test "${with_hesiod+set}" = set; then :
3790 withval
=$with_hesiod;
3795 if test "$with_hesiod" != no
; then
3797 $as_echo "#define HESIOD 1" >>confdefs.h
3802 # Check whether --with-mmdf was given.
3803 if test "${with_mmdf+set}" = set; then :
3809 if test "$with_mmdf" != no
; then
3811 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3816 # Check whether --with-mail-unlink was given.
3817 if test "${with_mail_unlink+set}" = set; then :
3818 withval
=$with_mail_unlink;
3823 if test "$with_mail_unlink" != no
; then
3825 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3830 # Check whether --with-mailhost was given.
3831 if test "${with_mailhost+set}" = set; then :
3832 withval
=$with_mailhost;
3833 cat >>confdefs.h
<<_ACEOF
3834 #define MAILHOST "$withval"
3841 # Check whether --with-sound was given.
3842 if test "${with_sound+set}" = set; then :
3843 withval
=$with_sound;
3850 # Check whether --with-sync-input was given.
3851 if test "${with_sync_input+set}" = set; then :
3852 withval
=$with_sync_input;
3857 if test "$with_sync_input" = yes; then
3859 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3864 # Check whether --with-x-toolkit was given.
3865 if test "${with_x_toolkit+set}" = set; then :
3866 withval
=$with_x_toolkit; case "${withval}" in
3867 y | ye |
yes ) val
=gtk
;;
3869 l | lu | luc | luci | lucid
) val
=lucid
;;
3870 a |
at | ath | athe | athen | athena
) val
=athena
;;
3871 m | mo | mot | moti | motif
) val
=motif
;;
3872 g | gt | gtk
) val
=gtk
;;
3875 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3876 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3877 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3886 # Check whether --with-wide-int was given.
3887 if test "${with_wide_int+set}" = set; then :
3888 withval
=$with_wide_int;
3893 if test "$with_wide_int" = yes; then
3895 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3900 # Check whether --with-xpm was given.
3901 if test "${with_xpm+set}" = set; then :
3908 # Check whether --with-jpeg was given.
3909 if test "${with_jpeg+set}" = set; then :
3916 # Check whether --with-tiff was given.
3917 if test "${with_tiff+set}" = set; then :
3924 # Check whether --with-gif was given.
3925 if test "${with_gif+set}" = set; then :
3932 # Check whether --with-png was given.
3933 if test "${with_png+set}" = set; then :
3940 # Check whether --with-rsvg was given.
3941 if test "${with_rsvg+set}" = set; then :
3948 # Check whether --with-xml2 was given.
3949 if test "${with_xml2+set}" = set; then :
3956 # Check whether --with-imagemagick was given.
3957 if test "${with_imagemagick+set}" = set; then :
3958 withval
=$with_imagemagick;
3960 with_imagemagick
=yes
3965 # Check whether --with-xft was given.
3966 if test "${with_xft+set}" = set; then :
3973 # Check whether --with-libotf was given.
3974 if test "${with_libotf+set}" = set; then :
3975 withval
=$with_libotf;
3981 # Check whether --with-m17n-flt was given.
3982 if test "${with_m17n_flt+set}" = set; then :
3983 withval
=$with_m17n_flt;
3990 # Check whether --with-toolkit-scroll-bars was given.
3991 if test "${with_toolkit_scroll_bars+set}" = set; then :
3992 withval
=$with_toolkit_scroll_bars;
3994 with_toolkit_scroll_bars
=yes
3998 # Check whether --with-xaw3d was given.
3999 if test "${with_xaw3d+set}" = set; then :
4000 withval
=$with_xaw3d;
4006 # Check whether --with-xim was given.
4007 if test "${with_xim+set}" = set; then :
4014 # Check whether --with-ns was given.
4015 if test "${with_ns+set}" = set; then :
4023 # Check whether --with-gpm was given.
4024 if test "${with_gpm+set}" = set; then :
4031 # Check whether --with-dbus was given.
4032 if test "${with_dbus+set}" = set; then :
4039 # Check whether --with-gconf was given.
4040 if test "${with_gconf+set}" = set; then :
4041 withval
=$with_gconf;
4047 # Check whether --with-gsettings was given.
4048 if test "${with_gsettings+set}" = set; then :
4049 withval
=$with_gsettings;
4055 # Check whether --with-selinux was given.
4056 if test "${with_selinux+set}" = set; then :
4057 withval
=$with_selinux;
4063 # Check whether --with-gnutls was given.
4064 if test "${with_gnutls+set}" = set; then :
4065 withval
=$with_gnutls;
4071 ## For the times when you want to build Emacs but don't have
4072 ## a suitable makeinfo, and can live without the manuals.
4074 # Check whether --with-makeinfo was given.
4075 if test "${with_makeinfo+set}" = set; then :
4076 withval
=$with_makeinfo;
4082 ## This is an option because I do not know if all info/man support
4083 ## compressed files, nor how to test if they do so.
4085 # Check whether --with-compress-info was given.
4086 if test "${with_compress_info+set}" = set; then :
4087 withval
=$with_compress_info;
4089 with_compress_info
=yes
4092 if test $with_compress_info = yes; then
4100 # Check whether --with-pkg-config-prog was given.
4101 if test "${with_pkg_config_prog+set}" = set; then :
4102 withval
=$with_pkg_config_prog;
4105 if test "X${with_pkg_config_prog}" != X
; then
4106 if test "${with_pkg_config_prog}" != yes; then
4107 PKG_CONFIG
="${with_pkg_config_prog}"
4113 # Check whether --with-crt-dir was given.
4114 if test "${with_crt_dir+set}" = set; then :
4115 withval
=$with_crt_dir;
4118 CRT_DIR
="${with_crt_dir}"
4121 # Check whether --with-gameuser was given.
4122 if test "${with_gameuser+set}" = set; then :
4123 withval
=$with_gameuser;
4126 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4127 && gameuser
="${with_gameuser}"
4128 test "X$gameuser" = X
&& gameuser
=games
4131 # Check whether --with-gnustep-conf was given.
4132 if test "${with_gnustep_conf+set}" = set; then :
4133 withval
=$with_gnustep_conf;
4136 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4137 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4138 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4139 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4141 # Check whether --enable-ns-self-contained was given.
4142 if test "${enable_ns_self_contained+set}" = set; then :
4143 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4145 EN_NS_SELF_CONTAINED
=yes
4149 # Check whether --enable-asserts was given.
4150 if test "${enable_asserts+set}" = set; then :
4151 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4157 # Check whether --enable-maintainer-mode was given.
4158 if test "${enable_maintainer_mode+set}" = set; then :
4159 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4161 USE_MAINTAINER_MODE
=yes
4164 if test $USE_MAINTAINER_MODE = yes; then
4171 # Check whether --enable-locallisppath was given.
4172 if test "${enable_locallisppath+set}" = set; then :
4173 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4175 elif test "${enableval}" != "yes"; then
4176 locallisppath
=${enableval}
4181 # Check whether --enable-checking was given.
4182 if test "${enable_checking+set}" = set; then :
4183 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4186 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4187 for check
in $ac_checking_flags
4190 # these set all the flags to specific states
4191 yes) ac_enable_checking
=1 ;;
4192 no
) ac_enable_checking
= ;
4193 ac_gc_check_stringbytes
= ;
4194 ac_gc_check_string_overrun
= ;
4195 ac_gc_check_string_free_list
= ;
4196 ac_xmalloc_overrun
= ;
4197 ac_gc_check_cons_list
= ;;
4198 all
) ac_enable_checking
=1 ;
4199 ac_gc_check_stringbytes
=1 ;
4200 ac_gc_check_string_overrun
=1 ;
4201 ac_gc_check_string_free_list
=1 ;
4202 ac_xmalloc_overrun
=1 ;
4203 ac_gc_check_cons_list
=1 ;;
4204 # these enable particular checks
4205 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4206 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4207 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4208 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4209 conslist
) ac_gc_check_cons_list
=1 ;;
4210 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
4215 if test x
$ac_enable_checking != x
; then
4217 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4220 if test x
$ac_gc_check_stringbytes != x
; then
4222 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4225 if test x
$ac_gc_check_string_overrun != x
; then
4227 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4230 if test x
$ac_gc_check_string_free_list != x
; then
4232 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4235 if test x
$ac_xmalloc_overrun != x
; then
4237 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4240 if test x
$ac_gc_check_cons_list != x
; then
4242 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4246 # Check whether --enable-use-lisp-union-type was given.
4247 if test "${enable_use_lisp_union_type+set}" = set; then :
4248 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4250 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4257 # Check whether --enable-profiling was given.
4258 if test "${enable_profiling+set}" = set; then :
4259 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4262 if test x
$ac_enable_profiling != x
; then
4263 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4269 # Check whether --enable-autodepend was given.
4270 if test "${enable_autodepend+set}" = set; then :
4271 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4273 ac_enable_autodepend
=yes
4277 #### Make srcdir absolute, if it isn't already. It's important to
4278 #### avoid running the path through pwd unnecessarily, since pwd can
4279 #### give you automounter prefixes, which can go away. We do all this
4280 #### so Emacs can find its files when run uninstalled.
4281 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4286 ## We may be able to use the $PWD environment variable to make this
4287 ## absolute. But sometimes PWD is inaccurate.
4288 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4289 ## but that tested only for a well-formed and valid PWD,
4290 ## it did not object when PWD was well-formed and valid but just wrong.
4291 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4295 srcdir
="`(cd ${srcdir}; pwd)`"
4298 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4301 #### Given the configuration name, set machfile and opsysfile to the
4302 #### names of the m/*.h and s/*.h files we should use.
4304 ### Canonicalize the configuration name.
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4308 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if ${ac_cv_build+:} false
; then :
4313 $as_echo_n "(cached) " >&6
4315 ac_build_alias
=$build_alias
4316 test "x$ac_build_alias" = x
&&
4317 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x
&&
4319 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4328 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4331 ac_save_IFS
=$IFS; IFS
='-'
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4341 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if ${ac_cv_host+:} false
; then :
4347 $as_echo_n "(cached) " >&6
4349 if test "x$host_alias" = x
; then
4350 ac_cv_host
=$ac_cv_build
4352 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4361 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4364 ac_save_IFS
=$IFS; IFS
='-'
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4374 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378 configuration
=${host_alias-${build_alias-$host}}
4382 ### If you add support for a new configuration, add code to this
4383 ### switch statement to recognize your configuration name and select
4384 ### the appropriate operating system and machine description files.
4386 ### You would hope that you could choose an m/*.h file pretty much
4387 ### based on the machine portion of the configuration name, and an s/*.h
4388 ### file based on the operating system portion. However, it turns out
4389 ### that each m/*.h file is pretty manufacturer-specific - for
4390 ### example mips.h is MIPS
4391 ### So we basically have to have a special case for each
4392 ### configuration name.
4394 ### As far as handling version numbers on operating systems is
4395 ### concerned, make sure things will fail in a fixable way. If
4396 ### /etc/MACHINES doesn't say anything about version numbers, be
4397 ### prepared to handle anything reasonably. If version numbers
4398 ### matter, be sure /etc/MACHINES says something about it.
4400 machine
='' opsys
='' unported
=no
4401 case "${canonical}" in
4403 ## GNU/Linux and similar ports
4406 case ${canonical} in
4407 alpha
*) machine
=alpha
;;
4408 s390-
*) machine
=ibms390
;;
4409 s390x-
*) machine
=ibms390x
;;
4410 powerpc
*) machine
=macppc
;;
4411 sparc
*) machine
=sparc
;;
4412 ia64
*) machine
=ia64
;;
4413 m68k
*) machine
=m68k
;;
4414 x86_64
*) machine
=amdx86-64
;;
4421 case "${canonical}" in
4422 alpha
*) machine
=alpha
;;
4423 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4424 ia64-
*) machine
=ia64
;;
4425 i
[3456]86-*) machine
=intel386
;;
4426 powerpc-
*) machine
=macppc
;;
4427 sparc-
*) machine
=sparc
;;
4428 sparc64-
*) machine
=sparc
;;
4432 ## FreeBSD kernel + glibc based userland
4435 case "${canonical}" in
4436 alpha
*) machine
=alpha
;;
4437 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4438 ia64-
*) machine
=ia64
;;
4439 i
[3456]86-*) machine
=intel386
;;
4440 powerpc-
*) machine
=macppc
;;
4441 sparc-
*) machine
=sparc
;;
4442 sparc64-
*) machine
=sparc
;;
4449 case "${canonical}" in
4450 alpha
*) machine
=alpha
;;
4451 x86_64-
*) machine
=amdx86-64
;;
4452 i
[3456]86-*) machine
=intel386
;;
4453 m68k-
*) machine
=m68k
;;
4454 powerpc-
*) machine
=macppc
;;
4455 sparc
*-) machine
=sparc
;;
4456 vax-
*) machine
=vax
;;
4463 case "${canonical}" in
4464 alpha
*) machine
=alpha
;;
4465 x86_64-
*) machine
=amdx86-64
;;
4466 i386-
*) machine
=intel386
;;
4467 powerpc-
*) machine
=macppc
;;
4468 sparc
*) machine
=sparc
;;
4469 vax-
*) machine
=vax
;;
4473 ## Apple Darwin / Mac OS X
4475 case "${canonical}" in
4476 i
[3456]86-* ) machine
=intel386
;;
4477 powerpc-
* ) machine
=macppc
;;
4478 x86_64-
* ) machine
=amdx86-64
;;
4482 # Define CPP as follows to make autoconf work correctly.
4483 CPP
="${CC-cc} -E -no-cpp-precomp"
4484 # Use fink packages if available.
4485 if test -d /sw
/include
&& test -d /sw
/lib
; then
4486 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4487 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4488 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa
*-hp-hpux10.2
* )
4496 hppa
*-hp-hpux1[1-9]* )
4498 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4502 rs6000-ibm-aix4.
[23]* )
4503 machine
=ibmrs6000 opsys
=aix4-2
4505 powerpc-ibm-aix4.
[23]* )
4506 machine
=ibmrs6000 opsys
=aix4-2
4508 rs6000-ibm-aix
[56]* )
4509 machine
=ibmrs6000 opsys
=aix4-2
4511 powerpc-ibm-aix
[56]* )
4512 machine
=ibmrs6000 opsys
=aix4-2
4515 ## Silicon Graphics machines
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4523 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4528 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4529 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4530 case "${canonical}" in
4531 i
[3456]86-*-* ) machine
=intel386
;;
4532 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4533 sparc
* ) machine
=sparc
;;
4536 case "${canonical}" in
4537 *-sunos5.6
* |
*-solaris2.6
* )
4539 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4542 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4544 emacs_check_sunpro_c
=yes
4545 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4547 *-sunos5* |
*-solaris* )
4549 emacs_check_sunpro_c
=yes
4550 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* |
*-sunos5* )
4556 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4566 ## Intel 386 machines where we don't care about the manufacturer.
4569 case "${canonical}" in
4570 *-cygwin ) opsys
=cygwin
;;
4571 *-darwin* ) opsys
=darwin
4572 CPP
="${CC-cc} -E -no-cpp-precomp"
4574 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4575 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4576 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4586 ### If the code above didn't choose an operating system, just choose
4587 ### an operating system based on the configuration name. You really
4588 ### only want to use this when you have no idea what the right
4589 ### operating system is; if you know what operating systems a machine
4590 ### runs, it's cleaner to make it explicit in the case statement
4592 if test x
"${opsys}" = x
; then
4593 case "${canonical}" in
4594 *-gnu* ) opsys
=gnu
;;
4603 if test $unported = yes; then
4604 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4605 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4608 if test -n "$machine"; then
4609 machfile
="m/${machine}.h"
4613 opsysfile
="s/${opsys}.h"
4616 #### Choose a compiler.
4617 test -n "$CC" && cc_specified
=yes
4619 # Save the value of CFLAGS that the user specified.
4620 SPECIFIED_CFLAGS
="$CFLAGS"
4623 ac_cpp
='$CPP $CPPFLAGS'
4624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_CC+:} false
; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC
="$CC" # Let the user override the test.
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_exec_ext
in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc
; ac_word
=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_exec_ext
in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC
="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4704 if test "x$ac_ct_CC" = x
; then
4707 case $cross_compiling:$ac_tool_warned in
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned
=yes ;;
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_CC+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC
="$CC" # Let the user override the test.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc
; ac_word
=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false
; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC
="$CC" # Let the user override the test.
4772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir
=.
4777 for ac_exec_ext
in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected
=yes
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy
$ac_cv_prog_CC
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4800 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog
in cl.exe
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_CC+:} false
; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC
="$CC" # Let the user override the test.
4830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir
=.
4835 for ac_exec_ext
in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$CC" && break
4860 if test -z "$CC"; then
4862 for ac_prog
in cl.exe
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy
$ac_prog; ac_word
=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir
=.
4879 for ac_exec_ext
in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_CC
="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_CC" && break
4904 if test "x$ac_ct_CC" = x
; then
4907 case $cross_compiling:$ac_tool_warned in
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned
=yes ;;
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error $?
"no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details" "$LINENO" 5; }
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4929 for ac_option
in --version -v -V -qversion; do
4930 { { ac_try
="$ac_compiler $ac_option >&5"
4932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4939 if test -s conftest.err; then
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4963 # Try to create an executable without -o first, disregard a.out.
4964 # It will help us diagnose broken compilers, and finding out an intuition
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4967 $as_echo_n "checking whether the C compiler works... " >&6; }
4968 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4970 # The possible output files:
4971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4974 for ac_file in $ac_files
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4983 if { { ac_try="$ac_link_default"
4985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4986 *) ac_try_echo
=$ac_try;;
4988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link_default") 2>&5
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4997 # so that the user can short-circuit this test for compilers unknown to
4999 for ac_file
in $ac_files ''
5001 test -f "$ac_file" ||
continue
5003 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5006 # We found the default executable, but exeext='' is most
5010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5012 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5014 # We set ac_cv_exeext here because the later test for it is not
5015 # safe: cross compilers may not add the suffix if given an `-o'
5016 # argument, so we may need to know it at that point already.
5017 # Even if this section looks crufty: it has the advantage of
5024 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5029 if test -z "$ac_file"; then :
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.
$ac_ext >&5
5035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5037 as_fn_error
77 "C compiler cannot create executables
5038 See \`config.log' for more details" "$LINENO" 5; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5044 $as_echo_n "checking for C compiler default output file name... " >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5046 $as_echo "$ac_file" >&6; }
5047 ac_exeext
=$ac_cv_exeext
5049 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5050 ac_clean_files
=$ac_clean_files_save
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5052 $as_echo_n "checking for suffix of executables... " >&6; }
5053 if { { ac_try
="$ac_link"
5055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5059 $as_echo "$ac_try_echo"; } >&5
5060 (eval "$ac_link") 2>&5
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; }; then :
5064 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5065 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5066 # work properly (i.e., refer to `conftest.exe'), while it won't with
5068 for ac_file
in conftest.exe conftest conftest.
*; do
5069 test -f "$ac_file" ||
continue
5071 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5072 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5080 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
5081 See \`config.log' for more details" "$LINENO" 5; }
5083 rm -f conftest conftest
$ac_cv_exeext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5085 $as_echo "$ac_cv_exeext" >&6; }
5087 rm -f conftest.
$ac_ext
5088 EXEEXT
=$ac_cv_exeext
5090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5096 FILE *f = fopen ("conftest.out", "w");
5097 return ferror (f) || fclose (f) != 0;
5103 ac_clean_files
="$ac_clean_files conftest.out"
5104 # Check that the compiler produces executables we can run. If not, either
5105 # the compiler is broken, or we cross compile.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5107 $as_echo_n "checking whether we are cross compiling... " >&6; }
5108 if test "$cross_compiling" != yes; then
5109 { { ac_try
="$ac_link"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_link") 2>&5
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if { ac_try='./conftest$ac_cv_exeext'
5121 { { case "(($ac_try" in
5122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5123 *) ac_try_echo
=$ac_try;;
5125 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5126 $as_echo "$ac_try_echo"; } >&5
5127 (eval "$ac_try") 2>&5
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }; }; then
5133 if test "$cross_compiling" = maybe
; then
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $?
"cannot run C compiled programs.
5139 If you meant to cross compile, use \`--host'.
5140 See \`config.log' for more details" "$LINENO" 5; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5145 $as_echo "$cross_compiling" >&6; }
5147 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5148 ac_clean_files
=$ac_clean_files_save
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5150 $as_echo_n "checking for suffix of object files... " >&6; }
5151 if ${ac_cv_objext+:} false
; then :
5152 $as_echo_n "(cached) " >&6
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5165 rm -f conftest.o conftest.obj
5166 if { { ac_try
="$ac_compile"
5168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_compile") 2>&5
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; then :
5177 for ac_file in conftest.o conftest.obj conftest.*; do
5178 test -f "$ac_file" || continue;
5180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5192 See \
`config.log' for more details" "$LINENO" 5; }
5194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5197 $as_echo "$ac_cv_objext" >&6; }
5198 OBJEXT=$ac_cv_objext
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5202 if ${ac_cv_c_compiler_gnu+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5219 if ac_fn_c_try_compile "$LINENO"; then :
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5230 if test $ac_compiler_gnu = yes; then
5235 ac_test_CFLAGS=${CFLAGS+set}
5236 ac_save_CFLAGS=$CFLAGS
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5239 if ${ac_cv_prog_cc_g+:} false; then :
5240 $as_echo_n "(cached) " >&6
5242 ac_save_c_werror_flag=$ac_c_werror_flag
5243 ac_c_werror_flag=yes
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5257 if ac_fn_c_try_compile "$LINENO"; then :
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5272 if ac_fn_c_try_compile "$LINENO"; then :
5275 ac_c_werror_flag=$ac_save_c_werror_flag
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5288 if ac_fn_c_try_compile "$LINENO"; then :
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5299 $as_echo "$ac_cv_prog_cc_g" >&6; }
5300 if test "$ac_test_CFLAGS" = set; then
5301 CFLAGS=$ac_save_CFLAGS
5302 elif test $ac_cv_prog_cc_g = yes; then
5303 if test "$GCC" = yes; then
5309 if test "$GCC" = yes; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5317 if ${ac_cv_prog_cc_c89+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 ac_cv_prog_cc_c89=no
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5326 #include <sys/types.h>
5327 #include <sys/stat.h>
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5342 s = g (p, va_arg (v,int));
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5348 function prototypes and stuff, but not '\xHH' hex character constants.
5349 These don't provoke an error unfortunately, instead are silently treated
5350 as 'x'. The following induces an error, until -std is added to get
5351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5352 array size at least. It's necessary to write '\x00'==0 to get something
5353 that's true only with -std. */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357 inside strings and character constants. */
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5378 CC="$ac_save_CC $ac_arg"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_c89=$ac_arg
5382 rm -f core conftest.err conftest.$ac_objext
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 rm -f conftest.$ac_ext
5390 case "x$ac_cv_prog_cc_c89" in
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5398 CC="$CC $ac_cv_prog_cc_c89"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 DEPDIR="${am__leading_dot}deps"
5413 ac_config_commands="$ac_config_commands depfiles"
5416 am_make=${MAKE-make}
5417 cat > confinc << 'END'
5419 @echo this is the am__doit target
5422 # If we don't find an include directive, just comment out the code.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5424 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5428 # First try GNU make style include.
5429 echo "include confinc" > confmf
5430 # Ignore all kinds of additional output from `make'.
5431 case `$am_make -s -f confmf 2> /dev/null` in #(
5432 *the\ am__doit\ target*)
5438 # Now try BSD make style include.
5439 if test "$am__include" = "#"; then
5440 echo '.include
"confinc"' > confmf
5441 case `$am_make -s -f confmf 2> /dev/null` in #(
5442 *the\ am__doit\ target*)
5443 am__include=.include
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5452 $as_echo "$_am_result" >&6; }
5453 rm -f confinc confmf
5455 # Check whether --enable-dependency-tracking was given.
5456 if test "${enable_dependency_tracking+set}" = set; then :
5457 enableval=$enable_dependency_tracking;
5460 if test "x$enable_dependency_tracking" != xno; then
5461 am_depcomp="$ac_aux_dir/depcomp"
5464 if test "x$enable_dependency_tracking" != xno
; then
5474 depcc
="$CC" am_compiler_list
=
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477 $as_echo_n "checking dependency style of $depcc... " >&6; }
5478 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5479 $as_echo_n "(cached) " >&6
5481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482 # We make a subdir and do the tests there. Otherwise we can end up
5483 # making bogus files that we don't know about and never remove. For
5484 # instance it was reported that on HP-UX the gcc test will end up
5485 # making a dummy file named `D' -- because `-MD' means `put the output
5488 # Copy depcomp to subdir because otherwise we won't find it if we're
5489 # using a relative directory.
5490 cp "$am_depcomp" conftest.dir
5492 # We will build objects and dependencies in a subdirectory because
5493 # it helps to detect inapplicable dependency modes. For instance
5494 # both Tru64's cc and ICC support -MD to output dependencies as a
5495 # side effect of compilation, but ICC will put the dependencies in
5496 # the current directory while Tru64 will put them in the object
5500 am_cv_CC_dependencies_compiler_type
=none
5501 if test "$am_compiler_list" = ""; then
5502 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 case " $depcc " in #(
5506 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5509 for depmode
in $am_compiler_list; do
5510 # Setup a source with many dependencies, because some compilers
5511 # like to wrap large dependency lists on column 80 (with \), and
5512 # we should not choose a depcomp mode which is confused by this.
5514 # We need to recreate these files for each test, as the compiler may
5515 # overwrite some of them when testing with obscure command lines.
5516 # This happens at least with the AIX C compiler.
5518 for i
in 1 2 3 4 5 6; do
5519 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5520 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5521 # Solaris 8's {/usr,}/bin/sh.
5522 touch sub
/conftst
$i.h
5524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5526 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5527 # mode. It turns out that the SunPro C++ compiler does not properly
5528 # handle `-M -o', and we need to detect this. Also, some Intel
5529 # versions had trouble with output in subdirs
5530 am__obj
=sub
/conftest.
${OBJEXT-o}
5531 am__minus_obj
="-o $am__obj"
5534 # This depmode causes a compiler race in universal mode.
5535 test "$am__universal" = false ||
continue
5538 # after this tag, mechanisms are not by side-effect, so they'll
5539 # only be used when explicitly requested
5540 if test "x$enable_dependency_tracking" = xyes
; then
5546 msvisualcpp | msvcmsys
)
5547 # This compiler won't grok `-c -o', but also, the minuso test has
5548 # not run yet. These depmodes are late enough in the game, and
5549 # so weak that their functioning should not be impacted.
5550 am__obj
=conftest.
${OBJEXT-o}
5555 if depmode
=$depmode \
5556 source=sub
/conftest.c object
=$am__obj \
5557 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5558 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5559 >/dev
/null
2>conftest.err
&&
5560 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5561 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5562 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5563 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5564 # icc doesn't choke on unknown options, it will just issue warnings
5565 # or remarks (even with -Werror). So we grep stderr for any message
5566 # that says an option was ignored or not supported.
5567 # When given -MP, icc 7.0 and 7.1 complain thusly:
5568 # icc: Command line warning: ignoring option '-M'; no argument required
5569 # The diagnosis changed in icc 8.0:
5570 # icc: Command line remark: option '-MP' not supported
5571 if (grep 'ignoring option' conftest.err ||
5572 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5573 am_cv_CC_dependencies_compiler_type
=$depmode
5582 am_cv_CC_dependencies_compiler_type
=none
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5588 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5591 test "x$enable_dependency_tracking" != xno \
5592 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5594 am__fastdepCC_FALSE
='#'
5596 am__fastdepCC_TRUE
='#'
5597 am__fastdepCC_FALSE
=
5601 if test "x$CC" != xcc
; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5603 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5606 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5608 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5609 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5610 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5611 $as_echo_n "(cached) " >&6
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5624 # Make sure it works both with $CC and with simple cc.
5625 # We do the test twice because some compilers refuse to overwrite an
5626 # existing .o file with -o, though they will create one.
5627 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5629 if { { case "(($ac_try" in
5630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5641 *) ac_try_echo
=$ac_try;;
5643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5650 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5651 if test "x$CC" != xcc
; then
5652 # Test first that cc exists at all.
5653 if { ac_try
='cc -c conftest.$ac_ext >&5'
5654 { { case "(($ac_try" in
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }; }; then
5664 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 if { { case "(($ac_try" in
5667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5668 *) ac_try_echo
=$ac_try;;
5670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_try") 2>&5
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; } &&
5676 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; };
5690 # cc exists but doesn't like -o.
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5698 rm -f core conftest*
5701 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703 $as_echo "yes" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5708 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5712 # FIXME: we rely on the cache variable name because
5713 # there is no other way.
5715 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5716 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5717 if test "$am_t" != yes; then
5718 # Losing compiler, so override with the script.
5719 # FIXME: It is wrong to rewrite CC.
5720 # But if we don't then we get into trouble of one sort or another.
5721 # A longer-term fix would be to have automake use am__CC in this case,
5722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5723 CC="$am_aux_dir/compile $CC"
5728 # Initialize gnulib right after verifying that the C compiler works.
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5736 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5737 # On Suns, sometimes $CPP names a directory.
5738 if test -n "$CPP" && test -d "$CPP"; then
5741 if test -z "$CPP"; then
5742 if ${ac_cv_prog_CPP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 # Double quotes because CPP needs to be expanded
5746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 for ac_c_preproc_warn_flag in '' yes
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 # include <limits.h>
5762 # include <assert.h>
5766 if ac_fn_c_try_cpp "$LINENO"; then :
5769 # Broken: fails on valid input.
5772 rm -f conftest.err conftest.i conftest.$ac_ext
5774 # OK, works on sane cases. Now check whether nonexistent headers
5775 # can be detected and how.
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5780 if ac_fn_c_try_cpp "$LINENO"; then :
5781 # Broken: success on invalid input.
5784 # Passes both tests.
5788 rm -f conftest.err conftest.i conftest.$ac_ext
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.i conftest.err conftest.
$ac_ext
5793 if $ac_preproc_ok; then :
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5806 $as_echo "$CPP" >&6; }
5808 for ac_c_preproc_warn_flag
in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5819 # include <limits.h>
5821 # include <assert.h>
5825 if ac_fn_c_try_cpp
"$LINENO"; then :
5828 # Broken: fails on valid input.
5831 rm -f conftest.err conftest.i conftest.
$ac_ext
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5839 if ac_fn_c_try_cpp
"$LINENO"; then :
5840 # Broken: success on invalid input.
5843 # Passes both tests.
5847 rm -f conftest.err conftest.i conftest.
$ac_ext
5850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.i conftest.err conftest.
$ac_ext
5852 if $ac_preproc_ok; then :
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5858 See \`config.log' for more details" "$LINENO" 5; }
5862 ac_cpp
='$CPP $CPPFLAGS'
5863 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5869 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5870 if ${ac_cv_path_GREP+:} false
; then :
5871 $as_echo_n "(cached) " >&6
5873 if test -z "$GREP"; then
5874 ac_path_GREP_found
=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5877 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5880 test -z "$as_dir" && as_dir
=.
5881 for ac_prog
in grep ggrep
; do
5882 for ac_exec_ext
in '' $ac_executable_extensions; do
5883 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5885 # Check for GNU ac_path_GREP and select it if it is found.
5886 # Check for GNU $ac_path_GREP
5887 case `"$ac_path_GREP" --version 2>&1` in
5889 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5892 $as_echo_n 0123456789 >"conftest.in"
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo 'GREP' >> "conftest.nl"
5899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5900 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5901 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_GREP
="$ac_path_GREP"
5905 ac_path_GREP_max
=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5910 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5913 $ac_path_GREP_found && break 3
5918 if test -z "$ac_cv_path_GREP"; then
5919 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 ac_cv_path_GREP
=$GREP
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5927 $as_echo "$ac_cv_path_GREP" >&6; }
5928 GREP
="$ac_cv_path_GREP"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5932 $as_echo_n "checking for egrep... " >&6; }
5933 if ${ac_cv_path_EGREP+:} false
; then :
5934 $as_echo_n "(cached) " >&6
5936 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5937 then ac_cv_path_EGREP
="$GREP -E"
5939 if test -z "$EGREP"; then
5940 ac_path_EGREP_found
=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5943 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5946 test -z "$as_dir" && as_dir
=.
5947 for ac_prog
in egrep; do
5948 for ac_exec_ext
in '' $ac_executable_extensions; do
5949 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5951 # Check for GNU ac_path_EGREP and select it if it is found.
5952 # Check for GNU $ac_path_EGREP
5953 case `"$ac_path_EGREP" --version 2>&1` in
5955 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5958 $as_echo_n 0123456789 >"conftest.in"
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'EGREP' >> "conftest.nl"
5965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5966 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5967 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_EGREP
="$ac_path_EGREP"
5971 ac_path_EGREP_max
=$ac_count
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5976 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5979 $ac_path_EGREP_found && break 3
5984 if test -z "$ac_cv_path_EGREP"; then
5985 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 ac_cv_path_EGREP
=$EGREP
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5994 $as_echo "$ac_cv_path_EGREP" >&6; }
5995 EGREP
="$ac_cv_path_EGREP"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6001 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6002 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6016 gl_cv_c_amsterdam_compiler
=yes
6018 gl_cv_c_amsterdam_compiler
=no
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6025 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6026 if test -z "$AR"; then
6027 if test $gl_cv_c_amsterdam_compiler = yes; then
6029 if test -z "$ARFLAGS"; then
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6035 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_AR+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$AR"; then
6042 ac_cv_prog_AR
="$AR" # Let the user override the test.
6044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir
=.
6049 for ac_exec_ext
in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 if test -n "$AR"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6064 $as_echo "$AR" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6072 if test -z "$ac_cv_prog_AR"; then
6074 # Extract the first word of "ar", so it can be a program name with args.
6075 set dummy
ar; ac_word
=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$ac_ct_AR"; then
6082 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir
=.
6089 for ac_exec_ext
in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_ac_ct_AR
="ar"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6102 if test -n "$ac_ct_AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6104 $as_echo "$ac_ct_AR" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6110 if test "x$ac_ct_AR" = x
; then
6113 case $cross_compiling:$ac_tool_warned in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned
=yes ;;
6125 if test -z "$ARFLAGS"; then
6130 if test -z "$ARFLAGS"; then
6136 if test -z "$RANLIB"; then
6137 if test $gl_cv_c_amsterdam_compiler = yes; then
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_RANLIB+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$RANLIB"; then
6149 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir
=.
6156 for ac_exec_ext
in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 RANLIB
=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180 ac_ct_RANLIB
=$RANLIB
6181 # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib
; ac_word
=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir
=.
6196 for ac_exec_ext
in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_RANLIB" = x
; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned
=yes ;;
6226 RANLIB
=$ac_ct_RANLIB
6229 RANLIB
="$ac_cv_prog_RANLIB"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6237 $as_echo_n "checking for ANSI C header files... " >&6; }
6238 if ${ac_cv_header_stdc+:} false
; then :
6239 $as_echo_n "(cached) " >&6
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6256 if ac_fn_c_try_compile
"$LINENO"; then :
6257 ac_cv_header_stdc
=yes
6259 ac_cv_header_stdc
=no
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6263 if test $ac_cv_header_stdc = yes; then
6264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "memchr" >/dev
/null
2>&1; then :
6274 ac_cv_header_stdc
=no
6280 if test $ac_cv_header_stdc = yes; then
6281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "free" >/dev
/null
2>&1; then :
6291 ac_cv_header_stdc
=no
6297 if test $ac_cv_header_stdc = yes; then
6298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6299 if test "$cross_compiling" = yes; then :
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6329 if ac_fn_c_try_run
"$LINENO"; then :
6332 ac_cv_header_stdc
=no
6334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6341 $as_echo "$ac_cv_header_stdc" >&6; }
6342 if test $ac_cv_header_stdc = yes; then
6344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6350 inttypes.h stdint.h unistd.h
6352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6355 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6356 cat >>confdefs.h
<<_ACEOF
6357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6376 if test "$MINIX" = yes; then
6378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6384 $as_echo "#define _MINIX 1" >>confdefs.h
6391 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6399 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6400 $as_echo_n "(cached) " >&6
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6405 # define __EXTENSIONS__ 1
6406 $ac_includes_default
6415 if ac_fn_c_try_compile
"$LINENO"; then :
6416 ac_cv_safe_to_define___extensions__
=yes
6418 ac_cv_safe_to_define___extensions__
=no
6420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6424 test $ac_cv_safe_to_define___extensions__ = yes &&
6425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6435 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6444 # Check whether --enable-largefile was given.
6445 if test "${enable_largefile+set}" = set; then :
6446 enableval
=$enable_largefile;
6449 if test "$enable_largefile" != no
; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6453 if ${ac_cv_sys_largefile_CC+:} false
; then :
6454 $as_echo_n "(cached) " >&6
6456 ac_cv_sys_largefile_CC
=no
6457 if test "$GCC" != yes; then
6460 # IRIX 6.2 and later do not support large files by default,
6461 # so use the C compiler's -n32 option if that helps.
6462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <sys/types.h>
6465 /* Check that off_t can represent 2**63 - 1 correctly.
6466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6467 since some C++ compilers masquerading as C compilers
6468 incorrectly reject 9223372036854775807. */
6469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6471 && LARGE_OFF_T % 2147483647 == 1)
6481 if ac_fn_c_try_compile
"$LINENO"; then :
6484 rm -f core conftest.err conftest.
$ac_objext
6486 if ac_fn_c_try_compile
"$LINENO"; then :
6487 ac_cv_sys_largefile_CC
=' -n32'; break
6489 rm -f core conftest.err conftest.
$ac_objext
6493 rm -f conftest.
$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6498 if test "$ac_cv_sys_largefile_CC" != no
; then
6499 CC
=$CC$ac_cv_sys_largefile_CC
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6504 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6505 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <sys/types.h>
6511 /* Check that off_t can represent 2**63 - 1 correctly.
6512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6513 since some C++ compilers masquerading as C compilers
6514 incorrectly reject 9223372036854775807. */
6515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6517 && LARGE_OFF_T % 2147483647 == 1)
6527 if ac_fn_c_try_compile
"$LINENO"; then :
6528 ac_cv_sys_file_offset_bits
=no
; break
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #define _FILE_OFFSET_BITS 64
6534 #include <sys/types.h>
6535 /* Check that off_t can represent 2**63 - 1 correctly.
6536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6537 since some C++ compilers masquerading as C compilers
6538 incorrectly reject 9223372036854775807. */
6539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6541 && LARGE_OFF_T % 2147483647 == 1)
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 ac_cv_sys_file_offset_bits
=64; break
6554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6555 ac_cv_sys_file_offset_bits
=unknown
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6561 case $ac_cv_sys_file_offset_bits in #(
6564 cat >>confdefs.h
<<_ACEOF
6565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6570 if test $ac_cv_sys_file_offset_bits = unknown
; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6573 if ${ac_cv_sys_large_files+:} false
; then :
6574 $as_echo_n "(cached) " >&6
6577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 /* Check that off_t can represent 2**63 - 1 correctly.
6581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6582 since some C++ compilers masquerading as C compilers
6583 incorrectly reject 9223372036854775807. */
6584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6586 && LARGE_OFF_T % 2147483647 == 1)
6596 if ac_fn_c_try_compile
"$LINENO"; then :
6597 ac_cv_sys_large_files
=no
; break
6599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #define _LARGE_FILES 1
6603 #include <sys/types.h>
6604 /* Check that off_t can represent 2**63 - 1 correctly.
6605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6606 since some C++ compilers masquerading as C compilers
6607 incorrectly reject 9223372036854775807. */
6608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6610 && LARGE_OFF_T % 2147483647 == 1)
6620 if ac_fn_c_try_compile
"$LINENO"; then :
6621 ac_cv_sys_large_files
=1; break
6623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 ac_cv_sys_large_files
=unknown
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6629 $as_echo "$ac_cv_sys_large_files" >&6; }
6630 case $ac_cv_sys_large_files in #(
6633 cat >>confdefs.h
<<_ACEOF
6634 #define _LARGE_FILES $ac_cv_sys_large_files
6644 case $ac_cv_prog_cc_stdc in #(
6646 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6649 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6650 if ${ac_cv_prog_cc_c99+:} false
; then :
6651 $as_echo_n "(cached) " >&6
6653 ac_cv_prog_cc_c99
=no
6655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6658 #include <stdbool.h>
6663 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6664 #define debug(...) fprintf (stderr, __VA_ARGS__)
6665 #define showlist(...) puts (#__VA_ARGS__)
6666 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6668 test_varargs_macros (void)
6673 debug ("X = %d\n", x);
6674 showlist (The first, second, and third items.);
6675 report (x>y, "x is %d but y is %d", x, y);
6678 // Check long long types.
6679 #define BIG64 18446744073709551615ull
6680 #define BIG32 4294967295ul
6681 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6683 your preprocessor is broken;
6687 your preprocessor is broken;
6689 static long long int bignum = -9223372036854775807LL;
6690 static unsigned long long int ubignum = BIG64;
6692 struct incomplete_array
6700 const wchar_t *name;
6704 typedef const char *ccp;
6707 test_restrict (ccp restrict text)
6709 // See if C++-style comments work.
6710 // Iterate through items via the restricted pointer.
6711 // Also check for declarations in for loops.
6712 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6717 // Check varargs and va_copy.
6719 test_varargs (const char *format, ...)
6722 va_start (args, format);
6724 va_copy (args_copy, args);
6735 str = va_arg (args_copy, const char *);
6738 number = va_arg (args_copy, int);
6741 fnumber = va_arg (args_copy, double);
6756 _Bool success = false;
6759 if (test_restrict ("String literal") == 0)
6761 char *restrict newvar = "Another string";
6764 test_varargs ("s, d' f .", "string", 65, 34.234);
6765 test_varargs_macros ();
6767 // Check flexible array members.
6768 struct incomplete_array *ia =
6769 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6771 for (int i = 0; i < ia->datasize; ++i)
6772 ia->data[i] = i * 1.234;
6774 // Check named initializers.
6775 struct named_init ni = {
6777 .name = L"Test wide string",
6778 .average = 543.34343,
6783 int dynamic_array[ni.number];
6784 dynamic_array[ni.number - 1] = 543;
6786 // work around unused variable warnings
6787 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6788 || dynamic_array[ni.number - 1] != 543);
6794 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6796 CC
="$ac_save_CC $ac_arg"
6797 if ac_fn_c_try_compile
"$LINENO"; then :
6798 ac_cv_prog_cc_c99
=$ac_arg
6800 rm -f core conftest.err conftest.
$ac_objext
6801 test "x$ac_cv_prog_cc_c99" != "xno" && break
6803 rm -f conftest.
$ac_ext
6808 case "x$ac_cv_prog_cc_c99" in
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6811 $as_echo "none needed" >&6; } ;;
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6814 $as_echo "unsupported" >&6; } ;;
6816 CC
="$CC $ac_cv_prog_cc_c99"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6818 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6820 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6821 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6825 if ${ac_cv_prog_cc_c89+:} false
; then :
6826 $as_echo_n "(cached) " >&6
6828 ac_cv_prog_cc_c89
=no
6830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6834 #include <sys/types.h>
6835 #include <sys/stat.h>
6836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6837 struct buf { int x; };
6838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6839 static char *e (p, i)
6845 static char *f (char * (*g) (char **, int), char **p, ...)
6850 s = g (p, va_arg (v,int));
6855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6856 function prototypes and stuff, but not '\xHH' hex character constants.
6857 These don't provoke an error unfortunately, instead are silently treated
6858 as 'x'. The following induces an error, until -std is added to get
6859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6860 array size at least. It's necessary to write '\x00'==0 to get something
6861 that's true only with -std. */
6862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6865 inside strings and character constants. */
6867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6869 int test (int i, double x);
6870 struct s1 {int (*f) (int a);};
6871 struct s2 {int (*f) (double a);};
6872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6883 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6886 CC
="$ac_save_CC $ac_arg"
6887 if ac_fn_c_try_compile
"$LINENO"; then :
6888 ac_cv_prog_cc_c89
=$ac_arg
6890 rm -f core conftest.err conftest.
$ac_objext
6891 test "x$ac_cv_prog_cc_c89" != "xno" && break
6893 rm -f conftest.
$ac_ext
6898 case "x$ac_cv_prog_cc_c89" in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;;
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6904 $as_echo "unsupported" >&6; } ;;
6906 CC
="$CC $ac_cv_prog_cc_c89"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6910 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6911 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6913 ac_cv_prog_cc_stdc
=no
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6920 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6921 if ${ac_cv_prog_cc_stdc+:} false
; then :
6922 $as_echo_n "(cached) " >&6
6925 case $ac_cv_prog_cc_stdc in #(
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6928 $as_echo "unsupported" >&6; } ;; #(
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6931 $as_echo "none needed" >&6; } ;; #(
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6934 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6939 # Code from module alloca-opt:
6940 # Code from module allocator:
6941 # Code from module careadlinkat:
6942 # Code from module crypto/md5:
6943 # Code from module crypto/sha1:
6944 # Code from module crypto/sha256:
6945 # Code from module crypto/sha512:
6946 # Code from module dosname:
6947 # Code from module dtoastr:
6948 # Code from module dup2:
6949 # Code from module extensions:
6951 # Code from module filemode:
6952 # Code from module getloadavg:
6953 # Code from module getopt-gnu:
6954 # Code from module getopt-posix:
6955 # Code from module gettext-h:
6956 # Code from module ignore-value:
6957 # Code from module include_next:
6958 # Code from module intprops:
6959 # Code from module inttypes-incomplete:
6960 # Code from module largefile:
6962 # Code from module lstat:
6963 # Code from module mktime:
6964 # Code from module multiarch:
6965 # Code from module nocrash:
6966 # Code from module pthread_sigmask:
6967 # Code from module readlink:
6968 # Code from module signal:
6969 # Code from module sigprocmask:
6970 # Code from module snippet/_Noreturn:
6971 # Code from module snippet/arg-nonnull:
6972 # Code from module snippet/c++defs:
6973 # Code from module snippet/warn-on-use:
6974 # Code from module socklen:
6975 # Code from module ssize_t:
6976 # Code from module stat:
6977 # Code from module stdarg:
6979 # Code from module stdbool:
6980 # Code from module stddef:
6981 # Code from module stdint:
6982 # Code from module stdio:
6983 # Code from module stdlib:
6984 # Code from module strftime:
6985 # Code from module strtoimax:
6986 # Code from module strtoll:
6987 # Code from module strtoull:
6988 # Code from module strtoumax:
6989 # Code from module symlink:
6990 # Code from module sys_stat:
6991 # Code from module time:
6992 # Code from module time_r:
6993 # Code from module u64:
6994 # Code from module unistd:
6995 # Code from module verify:
6998 # On Suns, sometimes $CPP names a directory.
6999 if test -n "$CPP" && test -d "$CPP"; then
7003 ## If not using gcc, and on Solaris, and no CPP specified, see if
7004 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7005 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7006 test x
"$CPP" = x
; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7008 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7009 if ${emacs_cv_sunpro_c+:} false
; then :
7010 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7026 if ac_fn_c_try_link
"$LINENO"; then :
7027 emacs_cv_sunpro_c
=yes
7029 emacs_cv_sunpro_c
=no
7031 rm -f core conftest.err conftest.
$ac_objext \
7032 conftest
$ac_exeext conftest.
$ac_ext
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7036 $as_echo "$emacs_cv_sunpro_c" >&6; }
7038 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7039 NON_GNU_CPP
="$CC -E -Xs"
7043 #### Some systems specify a CPP to use unless we are using GCC.
7044 #### Now that we know whether we are using GCC, we can decide whether
7045 #### to use that one.
7046 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7051 #### Some systems specify a CC to use unless we are using GCC.
7052 #### Now that we know whether we are using GCC, we can decide whether
7053 #### to use that one.
7054 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7055 test x
$cc_specified != xyes
7060 if test x
$GCC = xyes
; then
7061 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7063 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7066 ### Use -Wdeclaration-after-statement if the compiler supports it
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7068 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7069 SAVE_CFLAGS
="$CFLAGS"
7070 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7082 if ac_fn_c_try_compile
"$LINENO"; then :
7087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7088 if test $has_option = yes; then
7089 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7092 $as_echo "$has_option" >&6; }
7093 CFLAGS
="$SAVE_CFLAGS"
7097 ### Use -Wold-style-definition if the compiler supports it
7098 # This can be removed when conversion to standard C is finished.
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7100 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7101 SAVE_CFLAGS
="$CFLAGS"
7102 CFLAGS
="$CFLAGS -Wold-style-definition"
7103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7120 if test $has_option = yes; then
7121 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7124 $as_echo "$has_option" >&6; }
7125 CFLAGS
="$SAVE_CFLAGS"
7129 ### Use -Wimplicit-function-declaration if the compiler supports it
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7131 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7132 SAVE_CFLAGS
="$CFLAGS"
7133 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7145 if ac_fn_c_try_compile
"$LINENO"; then :
7150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 if test $has_option = yes; then
7152 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7155 $as_echo "$has_option" >&6; }
7156 CFLAGS
="$SAVE_CFLAGS"
7163 #### Some other nice autoconf tests.
7166 ac_cpp
='$CPP $CPPFLAGS'
7167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7172 # On Suns, sometimes $CPP names a directory.
7173 if test -n "$CPP" && test -d "$CPP"; then
7176 if test -z "$CPP"; then
7177 if ${ac_cv_prog_CPP+:} false
; then :
7178 $as_echo_n "(cached) " >&6
7180 # Double quotes because CPP needs to be expanded
7181 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7184 for ac_c_preproc_warn_flag
in '' yes
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 # include <limits.h>
7197 # include <assert.h>
7201 if ac_fn_c_try_cpp
"$LINENO"; then :
7204 # Broken: fails on valid input.
7207 rm -f conftest.err conftest.i conftest.
$ac_ext
7209 # OK, works on sane cases. Now check whether nonexistent headers
7210 # can be detected and how.
7211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <ac_nonexistent.h>
7215 if ac_fn_c_try_cpp
"$LINENO"; then :
7216 # Broken: success on invalid input.
7219 # Passes both tests.
7223 rm -f conftest.err conftest.i conftest.
$ac_ext
7226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7227 rm -f conftest.i conftest.err conftest.
$ac_ext
7228 if $ac_preproc_ok; then :
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7241 $as_echo "$CPP" >&6; }
7243 for ac_c_preproc_warn_flag
in '' yes
7245 # Use a header file that comes with gcc, so configuring glibc
7246 # with a fresh cross-compiler works.
7247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 # <limits.h> exists even on freestanding compilers.
7249 # On the NeXT, cc -E runs the code through the compiler's parser,
7250 # not just through cpp. "Syntax error" is here to catch this case.
7251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7254 # include <limits.h>
7256 # include <assert.h>
7260 if ac_fn_c_try_cpp
"$LINENO"; then :
7263 # Broken: fails on valid input.
7266 rm -f conftest.err conftest.i conftest.
$ac_ext
7268 # OK, works on sane cases. Now check whether nonexistent headers
7269 # can be detected and how.
7270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <ac_nonexistent.h>
7274 if ac_fn_c_try_cpp
"$LINENO"; then :
7275 # Broken: success on invalid input.
7278 # Passes both tests.
7282 rm -f conftest.err conftest.i conftest.
$ac_ext
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.i conftest.err conftest.
$ac_ext
7287 if $ac_preproc_ok; then :
7290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details" "$LINENO" 5; }
7297 ac_cpp
='$CPP $CPPFLAGS'
7298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7303 if test "x$RANLIB" = x
; then
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7306 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_RANLIB+:} false
; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$RANLIB"; then
7313 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir
=.
7320 for ac_exec_ext
in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 RANLIB
=$ac_cv_prog_RANLIB
7333 if test -n "$RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7335 $as_echo "$RANLIB" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB
=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib
; ac_word
=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7350 $as_echo_n "(cached) " >&6
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir
=.
7360 for ac_exec_ext
in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7375 $as_echo "$ac_ct_RANLIB" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_RANLIB" = x
; then
7384 case $cross_compiling:$ac_tool_warned in
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned
=yes ;;
7390 RANLIB
=$ac_ct_RANLIB
7393 RANLIB
="$ac_cv_prog_RANLIB"
7398 ## Although we're running on an amd64 kernel, we're actually compiling for
7399 ## the x86 architecture. The user should probably have provided an
7400 ## explicit --build to `configure', but if everything else than the kernel
7401 ## is running in i386 mode, we can help them out.
7402 if test "$machine" = "amdx86-64"; then
7403 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7404 if test "x$ac_cv_have_decl_i386" = xyes
; then :
7408 if test "$ac_cv_have_decl_i386" = "yes"; then
7409 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7411 machfile
="m/${machine}.h"
7415 # Extract the first word of "install-info", so it can be a program name with args.
7416 set dummy install-info
; ac_word
=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
7420 $as_echo_n "(cached) " >&6
7422 case $INSTALL_INFO in
7424 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir
=.
7432 for ac_exec_ext
in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7446 if test -n "$INSTALL_INFO"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7448 $as_echo "$INSTALL_INFO" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7455 # Extract the first word of "install-info", so it can be a program name with args.
7456 set dummy install-info
; ac_word
=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
7460 $as_echo_n "(cached) " >&6
7462 case $INSTALL_INFO in
7464 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7468 for as_dir
in /usr
/sbin
7471 test -z "$as_dir" && as_dir
=.
7472 for ac_exec_ext
in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7486 if test -n "$INSTALL_INFO"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7488 $as_echo "$INSTALL_INFO" >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7495 # Extract the first word of "install-info", so it can be a program name with args.
7496 set dummy install-info
; ac_word
=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
7500 $as_echo_n "(cached) " >&6
7502 case $INSTALL_INFO in
7504 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir
=.
7512 for ac_exec_ext
in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7526 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7527 if test -n "$INSTALL_INFO"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7529 $as_echo "$INSTALL_INFO" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7536 # Extract the first word of "gzip", so it can be a program name with args.
7537 set dummy
gzip; ac_word
=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_path_GZIP_PROG+:} false
; then :
7541 $as_echo_n "(cached) " >&6
7545 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir
=.
7553 for ac_exec_ext
in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7567 if test -n "$GZIP_PROG"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7569 $as_echo "$GZIP_PROG" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7578 ## Need makeinfo >= 4.6 (?) to build the manuals.
7579 # Extract the first word of "makeinfo", so it can be a program name with args.
7580 set dummy makeinfo
; ac_word
=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_path_MAKEINFO+:} false
; then :
7584 $as_echo_n "(cached) " >&6
7588 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir
=.
7596 for ac_exec_ext
in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7610 MAKEINFO
=$ac_cv_path_MAKEINFO
7611 if test -n "$MAKEINFO"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7613 $as_echo "$MAKEINFO" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7620 if test "$MAKEINFO" != "no" && \
7621 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
7625 ## Makeinfo is unusual. For a released Emacs, the manuals are
7626 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7627 ## therefore in the category of "special tools" not normally required, which
7628 ## configure does not have to check for (eg autoconf itself).
7629 ## In a Bazaar checkout on the other hand, the manuals are not included.
7630 ## So makeinfo is a requirement to build from Bazaar, and configure
7631 ## should test for it as it does for any other build requirement.
7632 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7633 ## with pre-built manuals, from a Bazaar checkout.
7636 if test "$MAKEINFO" = "no"; then
7638 if test "x${with_makeinfo}" = "xno"; then
7640 elif test ! -e $srcdir/info
/emacs
; then
7641 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
7642 source tree does not seem to have pre-built manuals in the \`info' directory.
7643 Either install a suitable version of makeinfo, or re-run configure
7644 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7650 if test x
$GCC = xyes
; then
7651 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7652 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7654 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7655 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7659 late_LDFLAGS
=$LDFLAGS
7660 if test x
$GCC = xyes
; then
7661 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7663 LDFLAGS
="$LDFLAGS -znocombreloc"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7667 $as_echo_n "checking for -znocombreloc... " >&6; }
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7679 if ac_fn_c_try_link
"$LINENO"; then :
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7681 $as_echo "yes" >&6; }
7683 LDFLAGS
=$late_LDFLAGS
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7687 rm -f core conftest.err conftest.
$ac_objext \
7688 conftest
$ac_exeext conftest.
$ac_ext
7691 # The value of CPP is a quoted variable reference, so we need to do this
7692 # to get its actual value...
7693 CPP
=`eval "echo $CPP"`
7696 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7698 your-opsys-here
) CANNOT_DUMP
=yes ;;
7701 test "$CANNOT_DUMP" = "yes" && \
7703 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7709 UNEXEC_OBJ
=unexelf.o
7711 # MSDOS uses unexcoff.o
7712 # MSWindows uses unexw32.o
7714 UNEXEC_OBJ
=unexaix.o
7720 UNEXEC_OBJ
=unexmacosx.o
7723 UNEXEC_OBJ
=unexhp9k800.o
7726 # Use the Solaris dldump() function, called from unexsol.c, to dump
7727 # emacs, instead of the generic ELF dump code found in unexelf.c.
7728 # The resulting binary has a complete symbol table, and is better
7729 # for debugging and other observability tools (debuggers, pstack, etc).
7731 # If you encounter a problem using dldump(), please consider sending
7732 # a message to the OpenSolaris tools-linking mailing list:
7733 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7735 # It is likely that dldump() works with older Solaris too, but this has
7736 # not been tested, so for now this change is for Solaris 10 or newer.
7737 UNEXEC_OBJ
=unexsol.o
7744 ## Let `ld' find image libs and similar things in /usr/local/lib.
7745 ## The system compiler, GCC, has apparently been modified to not
7746 ## look there, contrary to what a stock GCC would do.
7747 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7751 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7752 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7756 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7760 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7761 ## otherwise Emacs dumps core on elf systems.
7762 LD_SWITCH_SYSTEM
="-Z"
7767 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7769 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7770 ## which has not been defined yet. When this was handled with cpp,
7771 ## it was expanded to null when configure sourced the s/*.h file.
7772 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7773 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7774 ## (or somesuch), but because it is supposed to go at the _front_
7775 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7776 ## Compare with the gnu-linux case below, which added to the end
7777 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7778 ## LD_SWITCH_SYSTEM_TEMACS.
7781 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7782 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7787 if test "$machine" = "alpha"; then
7788 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7789 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
7793 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7794 ## With ELF, make sure that all common symbols get allocated to in the
7795 ## data section. Otherwise, the dump of temacs may miss variables in
7796 ## the shared library that have been initialized. For example, with
7797 ## GNU libc, __malloc_initialized would normally be resolved to the
7798 ## shared library's .bss section, which is fatal.
7799 if test "x$GCC" = "xyes"; then
7800 C_SWITCH_MACHINE
="-fno-common"
7802 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7805 UNEXEC_OBJ
=unexalpha.o
7813 ## Some programs in src produce warnings saying certain subprograms
7814 ## are too complex and need a MAXMEM value greater than 2000 for
7815 ## additional optimization. --nils@exp-math.uni-essen.de
7816 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7817 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7818 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7819 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7825 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7826 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7828 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7830 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7832 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7834 ## Motif needs -lgen.
7835 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7840 ### Make sure subsequent tests use flags consistent with the build flags.
7842 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7843 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7845 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7848 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7850 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7853 # Check whether --enable-largefile was given.
7854 if test "${enable_largefile+set}" = set; then :
7855 enableval
=$enable_largefile;
7858 if test "$enable_largefile" != no
; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7862 if ${ac_cv_sys_largefile_CC+:} false
; then :
7863 $as_echo_n "(cached) " >&6
7865 ac_cv_sys_largefile_CC
=no
7866 if test "$GCC" != yes; then
7869 # IRIX 6.2 and later do not support large files by default,
7870 # so use the C compiler's -n32 option if that helps.
7871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 /* Check that off_t can represent 2**63 - 1 correctly.
7875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7876 since some C++ compilers masquerading as C compilers
7877 incorrectly reject 9223372036854775807. */
7878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7880 && LARGE_OFF_T % 2147483647 == 1)
7890 if ac_fn_c_try_compile
"$LINENO"; then :
7893 rm -f core conftest.err conftest.
$ac_objext
7895 if ac_fn_c_try_compile
"$LINENO"; then :
7896 ac_cv_sys_largefile_CC
=' -n32'; break
7898 rm -f core conftest.err conftest.
$ac_objext
7902 rm -f conftest.
$ac_ext
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7907 if test "$ac_cv_sys_largefile_CC" != no
; then
7908 CC
=$CC$ac_cv_sys_largefile_CC
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7913 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7914 $as_echo_n "(cached) " >&6
7917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <sys/types.h>
7920 /* Check that off_t can represent 2**63 - 1 correctly.
7921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7922 since some C++ compilers masquerading as C compilers
7923 incorrectly reject 9223372036854775807. */
7924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7926 && LARGE_OFF_T % 2147483647 == 1)
7936 if ac_fn_c_try_compile
"$LINENO"; then :
7937 ac_cv_sys_file_offset_bits
=no
; break
7939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #define _FILE_OFFSET_BITS 64
7943 #include <sys/types.h>
7944 /* Check that off_t can represent 2**63 - 1 correctly.
7945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7946 since some C++ compilers masquerading as C compilers
7947 incorrectly reject 9223372036854775807. */
7948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7950 && LARGE_OFF_T % 2147483647 == 1)
7960 if ac_fn_c_try_compile
"$LINENO"; then :
7961 ac_cv_sys_file_offset_bits
=64; break
7963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7964 ac_cv_sys_file_offset_bits
=unknown
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7970 case $ac_cv_sys_file_offset_bits in #(
7973 cat >>confdefs.h
<<_ACEOF
7974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7979 if test $ac_cv_sys_file_offset_bits = unknown
; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7982 if ${ac_cv_sys_large_files+:} false
; 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_large_files
=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 _LARGE_FILES 1
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_large_files
=1; break
8032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8033 ac_cv_sys_large_files
=unknown
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8038 $as_echo "$ac_cv_sys_large_files" >&6; }
8039 case $ac_cv_sys_large_files in #(
8042 cat >>confdefs.h
<<_ACEOF
8043 #define _LARGE_FILES $ac_cv_sys_large_files
8062 START_FILES
='pre-crt0.o'
8065 ## Adding -lm confuses the dynamic linker, so omit it.
8067 START_FILES
='pre-crt0.o'
8070 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8071 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8073 gnu-linux | gnu-kfreebsd
)
8074 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8075 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8077 hpux10-20 | hpux11
)
8079 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8082 if test -f $CRT_DIR/crti.o
; then
8083 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8084 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8086 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8087 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8097 for file in x
$LIB_STANDARD $START_FILES; do
8099 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8103 if test "x$crt_files" != x
; then
8105 ## If user specified a crt-dir, use that unconditionally.
8108 if test "X$CRT_DIR" = "X"; then
8110 CRT_DIR
=/usr
/lib
# default
8112 case "$canonical" in
8113 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8114 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8115 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8116 ## For anything else (eg /usr/lib32), it is up the user to specify
8117 ## the location (bug#5655).
8118 ## Test for crtn.o, not just the directory, because sometimes the
8119 ## directory exists but does not have the relevant files (bug#1287).
8120 ## FIXME better to test for binary compatibility somehow.
8121 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8124 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8128 hpux10-20
) CRT_DIR
=/lib
;;
8131 test "x${GCC}" = xyes
&& crt_gcc
=yes
8137 for file in $crt_files; do
8139 ## If we're using gcc, try to determine it automatically by asking
8140 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8141 ## system-dependent default from above.]
8142 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8144 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8147 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8176 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8179 test "x$crt_missing" = x || \
8180 as_fn_error $?
"Required file(s) not found:$crt_missing
8181 Try using the --with-crt-dir option." "$LINENO" 5
8183 fi # crt_files != ""
8191 if test "${with_sound}" != "no"; then
8192 # Sound support for GNU/Linux and the free BSDs.
8193 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8195 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8196 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8197 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8198 cat >>confdefs.h
<<_ACEOF
8199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8201 have_sound_header
=yes
8206 # Emulation library used on NetBSD.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8208 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8209 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
8210 $as_echo_n "(cached) " >&6
8212 ac_check_lib_save_LIBS
=$LIBS
8213 LIBS
="-lossaudio $LIBS"
8214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8227 return _oss_ioctl ();
8232 if ac_fn_c_try_link
"$LINENO"; then :
8233 ac_cv_lib_ossaudio__oss_ioctl
=yes
8235 ac_cv_lib_ossaudio__oss_ioctl
=no
8237 rm -f core conftest.err conftest.
$ac_objext \
8238 conftest
$ac_exeext conftest.
$ac_ext
8239 LIBS
=$ac_check_lib_save_LIBS
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8242 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8243 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
8252 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8256 # Extract the first word of "pkg-config", so it can be a program name with args.
8257 set dummy pkg-config
; ac_word
=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8261 $as_echo_n "(cached) " >&6
8265 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir
=.
8273 for ac_exec_ext
in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8287 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8288 if test -n "$PKG_CONFIG"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8290 $as_echo "$PKG_CONFIG" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8298 if test "$PKG_CONFIG" = "no" ; then
8301 PKG_CONFIG_MIN_VERSION
=0.9.0
8302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8304 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8306 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8308 $as_echo "yes" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8312 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8313 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8315 $as_echo "$ALSA_CFLAGS" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8318 $as_echo_n "checking ALSA_LIBS... " >&6; }
8319 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8321 $as_echo "$ALSA_LIBS" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8327 ## If we have a custom action on failure, don't print errors, but
8328 ## do set a variable so people can do so.
8329 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8341 if test $succeeded = yes; then
8347 if test $HAVE_ALSA = yes; then
8348 SAVE_CFLAGS
="$CFLAGS"
8349 SAVE_LDFLAGS
="$LDFLAGS"
8350 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8351 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
8352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <asoundlib.h>
8358 snd_lib_error_set_handler (0);
8363 if ac_fn_c_try_compile
"$LINENO"; then :
8364 emacs_alsa_normal
=yes
8366 emacs_alsa_normal
=no
8368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 if test "$emacs_alsa_normal" != yes; then
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <alsa/asoundlib.h>
8376 snd_lib_error_set_handler (0);
8381 if ac_fn_c_try_compile
"$LINENO"; then :
8382 emacs_alsa_subdir
=yes
8384 emacs_alsa_subdir
=no
8386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8387 if test "$emacs_alsa_subdir" != yes; then
8388 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8390 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8393 CFLAGS
="$SAVE_CFLAGS"
8394 LDFLAGS
="$SAVE_LDFLAGS"
8395 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8396 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8398 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8402 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8404 gnu-linux|freebsd|netbsd
)
8406 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8415 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8416 linux
/version.h sys
/systeminfo.h \
8417 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8418 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8419 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8421 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8423 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8424 cat >>confdefs.h
<<_ACEOF
8425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8434 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/personality.h>
8441 personality (PER_LINUX32)
8446 if ac_fn_c_try_compile
"$LINENO"; then :
8447 emacs_cv_personality_linux32
=yes
8449 emacs_cv_personality_linux32
=no
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8453 $as_echo "$emacs_cv_personality_linux32" >&6; }
8455 if test $emacs_cv_personality_linux32 = yes; then
8457 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8461 for ac_header
in term.h
8463 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8464 if test "x$ac_cv_header_term_h" = xyes
; then :
8465 cat >>confdefs.h
<<_ACEOF
8466 #define HAVE_TERM_H 1
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8474 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8475 if ${ac_cv_header_time+:} false
; then :
8476 $as_echo_n "(cached) " >&6
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <sys/types.h>
8481 #include <sys/time.h>
8487 if ((struct tm *) 0)
8493 if ac_fn_c_try_compile
"$LINENO"; then :
8494 ac_cv_header_time
=yes
8496 ac_cv_header_time
=no
8498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8501 $as_echo "$ac_cv_header_time" >&6; }
8502 if test $ac_cv_header_time = yes; then
8504 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8508 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8509 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
8515 cat >>confdefs.h
<<_ACEOF
8516 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8519 if test $ac_cv_have_decl_sys_siglist != yes; then
8520 # For Tru64, at least:
8521 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8522 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
8528 cat >>confdefs.h
<<_ACEOF
8529 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8532 if test $ac_cv_have_decl___sys_siglist = yes; then
8534 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8539 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8540 if ${ac_cv_header_sys_wait_h+:} false
; then :
8541 $as_echo_n "(cached) " >&6
8543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <sys/types.h>
8546 #include <sys/wait.h>
8548 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8551 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8564 if ac_fn_c_try_compile
"$LINENO"; then :
8565 ac_cv_header_sys_wait_h
=yes
8567 ac_cv_header_sys_wait_h
=no
8569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8572 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8573 if test $ac_cv_header_sys_wait_h = yes; then
8575 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8581 $as_echo_n "checking for struct utimbuf... " >&6; }
8582 if ${emacs_cv_struct_utimbuf+:} false
; then :
8583 $as_echo_n "(cached) " >&6
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #ifdef TIME_WITH_SYS_TIME
8588 #include <sys/time.h>
8591 #ifdef HAVE_SYS_TIME_H
8592 #include <sys/time.h>
8603 static struct utimbuf x; x.actime = x.modtime;
8608 if ac_fn_c_try_compile
"$LINENO"; then :
8609 emacs_cv_struct_utimbuf
=yes
8611 emacs_cv_struct_utimbuf
=no
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8616 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8617 if test $emacs_cv_struct_utimbuf = yes; then
8619 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8624 $as_echo_n "checking for speed_t... " >&6; }
8625 if ${emacs_cv_speed_t+:} false
; then :
8626 $as_echo_n "(cached) " >&6
8628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 #include <termios.h>
8639 if ac_fn_c_try_compile
"$LINENO"; then :
8640 emacs_cv_speed_t
=yes
8644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8647 $as_echo "$emacs_cv_speed_t" >&6; }
8648 if test $emacs_cv_speed_t = yes; then
8650 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8655 $as_echo_n "checking for struct timeval... " >&6; }
8656 if ${emacs_cv_struct_timeval+:} false
; then :
8657 $as_echo_n "(cached) " >&6
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #ifdef TIME_WITH_SYS_TIME
8662 #include <sys/time.h>
8665 #ifdef HAVE_SYS_TIME_H
8666 #include <sys/time.h>
8674 static struct timeval x; x.tv_sec = x.tv_usec;
8679 if ac_fn_c_try_compile
"$LINENO"; then :
8680 emacs_cv_struct_timeval
=yes
8682 emacs_cv_struct_timeval
=no
8684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8687 $as_echo "$emacs_cv_struct_timeval" >&6; }
8688 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8689 if test $emacs_cv_struct_timeval = yes; then
8691 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8696 $as_echo_n "checking for struct exception... " >&6; }
8697 if ${emacs_cv_struct_exception+:} false
; then :
8698 $as_echo_n "(cached) " >&6
8700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8706 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8711 if ac_fn_c_try_compile
"$LINENO"; then :
8712 emacs_cv_struct_exception
=yes
8714 emacs_cv_struct_exception
=no
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8719 $as_echo "$emacs_cv_struct_exception" >&6; }
8720 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8721 if test $emacs_cv_struct_exception != yes; then
8723 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8727 for ac_header
in sys
/socket.h
8729 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8730 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
8731 cat >>confdefs.h
<<_ACEOF
8732 #define HAVE_SYS_SOCKET_H 1
8739 for ac_header
in net
/if.h
8741 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8742 #if HAVE_SYS_SOCKET_H
8743 #include <sys/socket.h>
8746 if test "x$ac_cv_header_net_if_h" = xyes
; then :
8747 cat >>confdefs.h
<<_ACEOF
8748 #define HAVE_NET_IF_H 1
8755 for ac_header
in ifaddrs.h
8757 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8758 #if HAVE_SYS_SOCKET_H
8759 #include <sys/socket.h>
8762 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
8763 cat >>confdefs.h
<<_ACEOF
8764 #define HAVE_IFADDRS_H 1
8771 for ac_header
in net
/if_dl.h
8773 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8778 if test "x$ac_cv_header_net_if_dl_h" = xyes
; then :
8779 cat >>confdefs.h
<<_ACEOF
8780 #define HAVE_NET_IF_DL_H 1
8787 for ac_func
in getifaddrs freeifaddrs
8789 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8790 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8791 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8792 cat >>confdefs.h
<<_ACEOF
8793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8801 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8802 if ${ac_cv_struct_tm+:} false
; then :
8803 $as_echo_n "(cached) " >&6
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <sys/types.h>
8814 int *p = &tm.tm_sec;
8820 if ac_fn_c_try_compile
"$LINENO"; then :
8821 ac_cv_struct_tm
=time.h
8823 ac_cv_struct_tm
=sys
/time.h
8825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8828 $as_echo "$ac_cv_struct_tm" >&6; }
8829 if test $ac_cv_struct_tm = sys
/time.h
; then
8831 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8835 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8836 #include <$ac_cv_struct_tm>
8839 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8841 cat >>confdefs.h
<<_ACEOF
8842 #define HAVE_STRUCT_TM_TM_ZONE 1
8848 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8850 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8853 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8855 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8861 cat >>confdefs.h
<<_ACEOF
8862 #define HAVE_DECL_TZNAME $ac_have_decl
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8866 $as_echo_n "checking for tzname... " >&6; }
8867 if ${ac_cv_var_tzname+:} false
; then :
8868 $as_echo_n "(cached) " >&6
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 #if !HAVE_DECL_TZNAME
8874 extern char *tzname[];
8880 return tzname[0][0];
8885 if ac_fn_c_try_link
"$LINENO"; then :
8886 ac_cv_var_tzname
=yes
8890 rm -f core conftest.err conftest.
$ac_objext \
8891 conftest
$ac_exeext conftest.
$ac_ext
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8894 $as_echo "$ac_cv_var_tzname" >&6; }
8895 if test $ac_cv_var_tzname = yes; then
8897 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8902 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8904 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8906 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8910 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8911 #if HAVE_SYS_SOCKET_H
8912 #include <sys/socket.h>
8918 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8920 cat >>confdefs.h
<<_ACEOF
8921 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8926 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8927 #if HAVE_SYS_SOCKET_H
8928 #include <sys/socket.h>
8934 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8936 cat >>confdefs.h
<<_ACEOF
8937 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8942 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8950 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8958 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8966 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8968 cat >>confdefs.h
<<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8974 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8982 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8984 cat >>confdefs.h
<<_ACEOF
8985 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8990 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8998 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = xyes
; then :
9000 cat >>confdefs.h
<<_ACEOF
9001 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9010 $as_echo_n "checking for function prototypes... " >&6; }
9011 if test "$ac_cv_prog_cc_c89" != no
; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9015 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9018 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9026 $as_echo_n "checking for working volatile... " >&6; }
9027 if ${ac_cv_c_volatile+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9038 int * volatile y = (int *) 0;
9044 if ac_fn_c_try_compile
"$LINENO"; then :
9045 ac_cv_c_volatile
=yes
9049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9052 $as_echo "$ac_cv_c_volatile" >&6; }
9053 if test $ac_cv_c_volatile = no
; then
9055 $as_echo "#define volatile /**/" >>confdefs.h
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9060 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9061 if ${ac_cv_c_const+:} false
; then :
9062 $as_echo_n "(cached) " >&6
9064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9070 /* FIXME: Include the comments suggested by Paul. */
9072 /* Ultrix mips cc rejects this. */
9073 typedef int charset[2];
9075 /* SunOS 4.1.1 cc rejects this. */
9076 char const *const *pcpcc;
9078 /* NEC SVR4.0.2 mips cc rejects this. */
9079 struct point {int x, y;};
9080 static struct point const zero = {0,0};
9081 /* AIX XL C 1.02.0.0 rejects this.
9082 It does not let you subtract one const X* pointer from another in
9083 an arm of an if-expression whose if-part is not a constant
9085 const char *g = "string";
9086 pcpcc = &g + (g ? g-g : 0);
9087 /* HPUX 7.0 cc rejects these. */
9089 ppc = (char**) pcpcc;
9090 pcpcc = (char const *const *) ppc;
9091 { /* SCO 3.2v4 cc rejects this. */
9093 char const *s = 0 ? (char *) 0 : (char const *) 0;
9098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9100 const int *foo = &x[0];
9103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9104 typedef const int *iptr;
9108 { /* AIX XL C 1.02.0.0 rejects this saying
9109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9110 struct s { int j; const int *ap[3]; };
9111 struct s *b; b->j = 5;
9113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9117 return !cs[0] && !zero.x;
9124 if ac_fn_c_try_compile
"$LINENO"; then :
9129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9132 $as_echo "$ac_cv_c_const" >&6; }
9133 if test $ac_cv_c_const = no
; then
9135 $as_echo "#define const /**/" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9140 $as_echo_n "checking for void * support... " >&6; }
9141 if ${emacs_cv_void_star+:} false
; then :
9142 $as_echo_n "(cached) " >&6
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9155 if ac_fn_c_try_compile
"$LINENO"; then :
9156 emacs_cv_void_star
=yes
9158 emacs_cv_void_star
=no
9160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9163 $as_echo "$emacs_cv_void_star" >&6; }
9164 if test $emacs_cv_void_star = yes; then
9165 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9168 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9173 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9174 if ${ac_cv_c_bigendian+:} false
; then :
9175 $as_echo_n "(cached) " >&6
9177 ac_cv_c_bigendian
=unknown
9178 # See if we're dealing with a universal compiler.
9179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 #ifndef __APPLE_CC__
9182 not a universal capable compiler
9187 if ac_fn_c_try_compile
"$LINENO"; then :
9189 # Check for potential -arch flags. It is not universal unless
9190 # there are at least two -arch flags with different values.
9193 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9194 if test -n "$ac_prev"; then
9196 i?
86 | x86_64 | ppc | ppc64
)
9197 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9200 ac_cv_c_bigendian
=universal
9206 elif test "x$ac_word" = "x-arch"; then
9211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9212 if test $ac_cv_c_bigendian = unknown
; then
9213 # See if sys/param.h defines the BYTE_ORDER macro.
9214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <sys/types.h>
9217 #include <sys/param.h>
9222 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9223 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9232 if ac_fn_c_try_compile
"$LINENO"; then :
9233 # It does; now see whether it defined to BIG_ENDIAN or not.
9234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <sys/types.h>
9237 #include <sys/param.h>
9242 #if BYTE_ORDER != BIG_ENDIAN
9250 if ac_fn_c_try_compile
"$LINENO"; then :
9251 ac_cv_c_bigendian
=yes
9253 ac_cv_c_bigendian
=no
9255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9259 if test $ac_cv_c_bigendian = unknown
; then
9260 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9268 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9276 if ac_fn_c_try_compile
"$LINENO"; then :
9277 # It does; now see whether it defined to _BIG_ENDIAN or not.
9278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9293 if ac_fn_c_try_compile
"$LINENO"; then :
9294 ac_cv_c_bigendian
=yes
9296 ac_cv_c_bigendian
=no
9298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9302 if test $ac_cv_c_bigendian = unknown
; then
9303 # Compile a test program.
9304 if test "$cross_compiling" = yes; then :
9305 # Try to guess by grepping values from an object file.
9306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 short int ascii_mm[] =
9309 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9310 short int ascii_ii[] =
9311 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9312 int use_ascii (int i) {
9313 return ascii_mm[i] + ascii_ii[i];
9315 short int ebcdic_ii[] =
9316 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9317 short int ebcdic_mm[] =
9318 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9319 int use_ebcdic (int i) {
9320 return ebcdic_mm[i] + ebcdic_ii[i];
9327 return use_ascii (foo) == use_ebcdic (foo);
9332 if ac_fn_c_try_compile
"$LINENO"; then :
9333 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9334 ac_cv_c_bigendian
=yes
9336 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9337 if test "$ac_cv_c_bigendian" = unknown
; then
9338 ac_cv_c_bigendian
=no
9340 # finding both strings is unlikely to happen, but who knows?
9341 ac_cv_c_bigendian
=unknown
9345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 $ac_includes_default
9354 /* Are we little or big endian? From Harbison&Steele. */
9358 char c[sizeof (long int)];
9361 return u.c[sizeof (long int) - 1] == 1;
9367 if ac_fn_c_try_run
"$LINENO"; then :
9368 ac_cv_c_bigendian
=no
9370 ac_cv_c_bigendian
=yes
9372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9379 $as_echo "$ac_cv_c_bigendian" >&6; }
9380 case $ac_cv_c_bigendian in #(
9382 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9388 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9392 as_fn_error $?
"unknown endianness
9393 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9398 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9399 if ${emacs_cv_attribute_aligned+:} false
; then :
9400 $as_echo_n "(cached) " >&6
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404 char __attribute__ ((__aligned__ (1 << 3))) c;
9413 if ac_fn_c_try_compile
"$LINENO"; then :
9414 emacs_cv_attribute_aligned
=yes
9416 emacs_cv_attribute_aligned
=no
9418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9421 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9422 if test $emacs_cv_attribute_aligned = yes; then
9424 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9429 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9431 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9432 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
9433 $as_echo_n "(cached) " >&6
9435 cat >conftest.
make <<\_ACEOF
9438 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9440 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9441 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9443 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9445 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9449 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 SET_MAKE
="MAKE=${MAKE-make}"
9463 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9465 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9467 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9468 if test "x$testval" != x
; then
9471 ac_enable_autodepend
=no
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9474 $as_echo "$HAVE_GNU_MAKE" >&6; }
9475 if test $HAVE_GNU_MAKE = yes; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9477 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9478 SAVE_CFLAGS
="$CFLAGS"
9479 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9491 if ac_fn_c_try_compile
"$LINENO"; then :
9494 ac_enable_autodepend
=no
9496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9497 CFLAGS
="$SAVE_CFLAGS"
9498 test -f deps.d || ac_enable_autodepend
=no
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9501 $as_echo "$ac_enable_autodepend" >&6; }
9503 if test $ac_enable_autodepend = yes; then
9504 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9505 ## In parallel builds, another make might create depdir between
9506 ## the first test and mkdir, so stick another test on the end.
9507 ## Or use install-sh -d? mkdir -p is not portable.
9508 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9509 deps_frag
=autodeps.mk
9512 deps_frag
=$srcdir/src
/$deps_frag
9518 lisp_frag
=$srcdir/src
/lisp.mk
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9523 $as_echo_n "checking for long file names... " >&6; }
9524 if ${ac_cv_sys_long_file_names+:} false
; then :
9525 $as_echo_n "(cached) " >&6
9527 ac_cv_sys_long_file_names
=yes
9528 # Test for long file names in all the places we know might matter:
9529 # . the current directory, where building will happen
9530 # $prefix/lib where we will be installing things
9531 # $exec_prefix/lib likewise
9532 # $TMPDIR if set, where it might want to write temporary files
9533 # /tmp where it might want to write temporary files
9536 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9537 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9538 # in the usual case where exec_prefix is '${prefix}'.
9540 . |
/* | ?
:[\\/]*) ;; #(
9543 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9544 ac_xdir
=$ac_dir/cf$$
9545 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9546 ac_tf1
=$ac_xdir/conftest9012345
9547 ac_tf2
=$ac_xdir/conftest9012346
9548 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9549 ac_cv_sys_long_file_names
=no
9550 rm -f -r "$ac_xdir" 2>/dev
/null
9551 test $ac_cv_sys_long_file_names = no
&& break
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9555 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9556 if test $ac_cv_sys_long_file_names = yes; then
9558 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9563 #### Choose a window system.
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9566 $as_echo_n "checking for X... " >&6; }
9569 # Check whether --with-x was given.
9570 if test "${with_x+set}" = set; then :
9574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9575 if test "x$with_x" = xno
; then
9576 # The user explicitly disabled X.
9579 case $x_includes,$x_libraries in #(
9580 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
9581 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 # One or both of the vars are not set, and there is no cached value.
9585 ac_x_includes
=no ac_x_libraries
=no
9586 rm -f -r conftest.dir
9587 if mkdir conftest.dir
; then
9589 cat >Imakefile
<<'_ACEOF'
9591 @echo incroot='${INCROOT}'
9593 @echo usrlibdir='${USRLIBDIR}'
9595 @echo libdir='${LIBDIR}'
9597 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9599 for ac_var
in incroot usrlibdir libdir
; do
9600 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9602 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9603 for ac_extension
in a so sl dylib la dll
; do
9604 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9605 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9606 ac_im_usrlibdir
=$ac_im_libdir; break
9609 # Screen out bogus values from the imake configuration. They are
9610 # bogus both because they are the default anyway, and because
9611 # using them would break gcc on systems where it needs fixed includes.
9612 case $ac_im_incroot in
9613 /usr
/include
) ac_x_includes
= ;;
9614 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9616 case $ac_im_usrlibdir in
9617 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9618 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9622 rm -f -r conftest.dir
9625 # Standard set of common directories for X headers.
9626 # Check X11 before X11Rn because it is often a symlink to the current release.
9640 /usr/local/X11/include
9641 /usr/local/X11R7/include
9642 /usr/local/X11R6/include
9643 /usr/local/X11R5/include
9644 /usr/local/X11R4/include
9646 /usr/local/include/X11
9647 /usr/local/include/X11R7
9648 /usr/local/include/X11R6
9649 /usr/local/include/X11R5
9650 /usr/local/include/X11R4
9654 /usr/XFree86/include/X11
9658 /usr/unsupported/include
9660 /usr/local/x11r5/include
9661 /usr/lpp/Xamples/include
9663 /usr/openwin/include
9664 /usr/openwin/share/include'
9666 if test "$ac_x_includes" = no
; then
9667 # Guess where to find include files, by looking for Xlib.h.
9668 # First, try using that file with no special directory specified.
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <X11/Xlib.h>
9673 if ac_fn_c_try_cpp
"$LINENO"; then :
9674 # We can compile using X headers with no special include directory.
9677 for ac_dir
in $ac_x_header_dirs; do
9678 if test -r "$ac_dir/X11/Xlib.h"; then
9679 ac_x_includes
=$ac_dir
9684 rm -f conftest.err conftest.i conftest.
$ac_ext
9685 fi # $ac_x_includes = no
9687 if test "$ac_x_libraries" = no
; then
9688 # Check for the libraries.
9689 # See if we find them without any special options.
9690 # Don't add to $LIBS permanently.
9693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #include <X11/Xlib.h>
9704 if ac_fn_c_try_link
"$LINENO"; then :
9706 # We can link X programs with no special library path.
9710 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9712 # Don't even attempt the hair of trying to link an X program!
9713 for ac_extension
in a so sl dylib la dll
; do
9714 if test -r "$ac_dir/libX11.$ac_extension"; then
9715 ac_x_libraries
=$ac_dir
9721 rm -f core conftest.err conftest.
$ac_objext \
9722 conftest
$ac_exeext conftest.
$ac_ext
9723 fi # $ac_x_libraries = no
9725 case $ac_x_includes,$ac_x_libraries in #(
9727 # Didn't find X, or a directory has "'" in its name.
9728 ac_cv_have_x
="have_x=no";; #(
9730 # Record where we found X for the cache.
9731 ac_cv_have_x
="have_x=yes\
9732 ac_x_includes='$ac_x_includes'\
9733 ac_x_libraries='$ac_x_libraries'"
9739 eval "$ac_cv_have_x"
9742 if test "$have_x" != yes; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9744 $as_echo "$have_x" >&6; }
9747 # If each of the values was on the command line, it overrides each guess.
9748 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9749 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9750 # Update the cache value to reflect the command line values.
9751 ac_cv_have_x
="have_x=yes\
9752 ac_x_includes='$x_includes'\
9753 ac_x_libraries='$x_libraries'"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9755 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9758 if test "$no_x" = yes; then
9764 ## Workaround for bug in autoconf <= 2.62.
9765 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9766 ## No need to do anything special for these standard directories.
9767 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9769 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9773 LD_SWITCH_X_SITE_AUX
=
9774 LD_SWITCH_X_SITE_AUX_RPATH
=
9775 if test "${x_libraries}" != NONE
; then
9776 if test -n "${x_libraries}"; then
9777 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9778 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9779 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9781 x_default_search_path
=""
9782 x_search_path
=${x_libraries}
9783 if test -z "${x_search_path}"; then
9784 x_search_path
=/usr
/lib
9786 for x_library
in `echo ${x_search_path}: | \
9787 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9789 ${x_library}/X11/%L/%T/%N%C%S:\
9790 ${x_library}/X11/%l/%T/%N%C%S:\
9791 ${x_library}/X11/%T/%N%C%S:\
9792 ${x_library}/X11/%L/%T/%N%S:\
9793 ${x_library}/X11/%l/%T/%N%S:\
9794 ${x_library}/X11/%T/%N%S"
9795 if test x
"${x_default_search_path}" = x
; then
9796 x_default_search_path
=${x_search_path}
9798 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9805 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9806 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9809 if test x
"${x_includes}" = x
; then
9810 bitmapdir
=/usr
/include
/X11
/bitmaps
9812 # accumulate include directories that have X11 bitmap subdirectories
9814 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9815 if test -d "${bmd}/X11/bitmaps"; then
9816 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9818 if test -d "${bmd}/bitmaps"; then
9819 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9822 if test ${bmd_acc} != "dummyval"; then
9823 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9830 tmp_CPPFLAGS
="$CPPFLAGS"
9831 tmp_CFLAGS
="$CFLAGS"
9832 CPPFLAGS
="$CPPFLAGS -x objective-c"
9833 CFLAGS
="$CFLAGS -x objective-c"
9834 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9835 if test "${with_ns}" != no
; then
9836 if test "${opsys}" = darwin
; then
9838 ns_appdir
=`pwd`/nextstep
/Emacs.app
9839 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9840 ns_appresdir
=${ns_appdir}/Contents
/Resources
9841 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9842 elif test -f $GNUSTEP_CONFIG_FILE; then
9844 ns_appdir
=`pwd`/nextstep
/Emacs.app
9845 ns_appbindir
=${ns_appdir}/
9846 ns_appresdir
=${ns_appdir}/Resources
9847 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9848 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9849 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9850 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9851 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9852 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9853 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9854 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9855 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9856 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9857 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9858 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9863 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9864 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
9867 as_fn_error $?
"\`--with-ns' was specified, but the include
9868 files are missing or cannot be compiled." "$LINENO" 5
9872 NS_HAVE_NSINTEGER
=yes
9873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 #include <Foundation/NSObjCRuntime.h>
9884 if ac_fn_c_try_compile
"$LINENO"; then :
9885 ns_have_nsinteger
=yes
9887 ns_have_nsinteger
=no
9889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9890 if test $ns_have_nsinteger = no
; then
9891 NS_HAVE_NSINTEGER
=no
9899 if test "${HAVE_NS}" = yes; then
9900 window_system
=nextstep
9902 # set up packaging dirs
9903 exec_prefix
=${ns_appbindir}
9904 libexecdir
=${ns_appbindir}/libexec
9905 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9906 prefix
=${ns_appresdir}
9908 ns_frag
=$srcdir/src
/ns.mk
9909 NS_OBJ
="fontset.o fringe.o image.o"
9910 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9912 CFLAGS
="$tmp_CFLAGS"
9913 CPPFLAGS
="$tmp_CPPFLAGS"
9919 case "${window_system}" in
9923 case "${with_x_toolkit}" in
9924 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9925 motif
) USE_X_TOOLKIT
=MOTIF
;;
9927 USE_X_TOOLKIT
=none
;;
9928 gtk3
) with_gtk3
=yes
9929 USE_X_TOOLKIT
=none
;;
9930 no
) USE_X_TOOLKIT
=none
;;
9931 * ) USE_X_TOOLKIT
=maybe
;;
9941 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9942 # Extract the first word of "X", so it can be a program name with args.
9943 set dummy X
; ac_word
=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9947 $as_echo_n "(cached) " >&6
9949 if test -n "$HAVE_XSERVER"; then
9950 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir
=.
9957 for ac_exec_ext
in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_HAVE_XSERVER
="true"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9970 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9971 if test -n "$HAVE_XSERVER"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9973 $as_echo "$HAVE_XSERVER" >&6; }
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9980 if test "$HAVE_XSERVER" = true ||
9981 test -n "$DISPLAY" ||
9982 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9983 as_fn_error $?
"You seem to be running X, but no X development libraries
9984 were found. You should install the relevant development files for X
9985 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9986 sure you have development files for image handling, i.e.
9987 tiff, gif, jpeg, png and xpm.
9988 If you are sure you want Emacs compiled without X window support, pass
9990 to configure." "$LINENO" 5
9994 ### If we're using X11, we should use the X menu package.
9997 yes ) HAVE_MENUS
=yes ;;
10000 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10001 # Assume not, until told otherwise.
10003 doug_lea_malloc
=yes
10004 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10005 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
10011 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10012 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10019 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10020 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 extern void (* __after_morecore_hook)();
10029 __after_morecore_hook = 0
10034 if ac_fn_c_try_link
"$LINENO"; then :
10035 emacs_cv_var___after_morecore_hook
=yes
10037 emacs_cv_var___after_morecore_hook
=no
10039 rm -f core conftest.err conftest.
$ac_objext \
10040 conftest
$ac_exeext conftest.
$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10043 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10044 if test $emacs_cv_var___after_morecore_hook = no
; then
10051 ## darwin ld insists on the use of malloc routines in the System framework.
10052 darwin|sol2-10
) system_malloc
=yes ;;
10055 if test "${system_malloc}" = "yes"; then
10057 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10060 GNU_MALLOC_reason
="
10061 (The GNU allocators don't work with this system configuration.)"
10065 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10066 VMLIMIT_OBJ
=vm-limit.o
10071 if test "$doug_lea_malloc" = "yes" ; then
10072 if test "$GNU_MALLOC" = yes ; then
10073 GNU_MALLOC_reason
="
10074 (Using Doug Lea's new malloc from the GNU C Library.)"
10077 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10080 ## Use mmap directly for allocating larger buffers.
10081 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10082 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10083 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10085 gnu
*) REL_ALLOC
=no
;;
10089 if test x
"${REL_ALLOC}" = x
; then
10090 REL_ALLOC
=${GNU_MALLOC}
10093 use_mmap_for_buffers
=no
10095 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10101 for ac_header
in $ac_header_list
10103 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10106 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10107 cat >>confdefs.h
<<_ACEOF
10108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10122 for ac_func
in getpagesize
10124 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10125 if test "x$ac_cv_func_getpagesize" = xyes
; then :
10126 cat >>confdefs.h
<<_ACEOF
10127 #define HAVE_GETPAGESIZE 1
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10134 $as_echo_n "checking for working mmap... " >&6; }
10135 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
10136 $as_echo_n "(cached) " >&6
10138 if test "$cross_compiling" = yes; then :
10139 ac_cv_func_mmap_fixed_mapped
=no
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 $ac_includes_default
10144 /* malloc might have been renamed as rpl_malloc. */
10147 /* Thanks to Mike Haertel and Jim Avera for this test.
10148 Here is a matrix of mmap possibilities:
10149 mmap private not fixed
10150 mmap private fixed at somewhere currently unmapped
10151 mmap private fixed at somewhere already mapped
10152 mmap shared not fixed
10153 mmap shared fixed at somewhere currently unmapped
10154 mmap shared fixed at somewhere already mapped
10155 For private mappings, we should verify that changes cannot be read()
10156 back from the file, nor mmap's back from the file at a different
10157 address. (There have been systems where private was not correctly
10158 implemented like the infamous i386 svr4.0, and systems where the
10159 VM page cache was not coherent with the file system buffer cache
10160 like early versions of FreeBSD and possibly contemporary NetBSD.)
10161 For shared mappings, we should conversely verify that changes get
10162 propagated back to all the places they're supposed to be.
10164 Grep wants private fixed already mapped.
10165 The main things grep needs to know about mmap are:
10166 * does it exist and is it safe to write into the mmap'd area
10167 * how to use it (BSD variants) */
10170 #include <sys/mman.h>
10172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10176 /* This mess was copied from the GNU getpagesize.h. */
10177 #ifndef HAVE_GETPAGESIZE
10178 # ifdef _SC_PAGESIZE
10179 # define getpagesize() sysconf(_SC_PAGESIZE)
10180 # else /* no _SC_PAGESIZE */
10181 # ifdef HAVE_SYS_PARAM_H
10182 # include <sys/param.h>
10183 # ifdef EXEC_PAGESIZE
10184 # define getpagesize() EXEC_PAGESIZE
10185 # else /* no EXEC_PAGESIZE */
10187 # define getpagesize() NBPG * CLSIZE
10190 # endif /* no CLSIZE */
10191 # else /* no NBPG */
10193 # define getpagesize() NBPC
10194 # else /* no NBPC */
10196 # define getpagesize() PAGESIZE
10197 # endif /* PAGESIZE */
10198 # endif /* no NBPC */
10199 # endif /* no NBPG */
10200 # endif /* no EXEC_PAGESIZE */
10201 # else /* no HAVE_SYS_PARAM_H */
10202 # define getpagesize() 8192 /* punt totally */
10203 # endif /* no HAVE_SYS_PARAM_H */
10204 # endif /* no _SC_PAGESIZE */
10206 #endif /* no HAVE_GETPAGESIZE */
10211 char *data, *data2, *data3;
10212 const char *cdata2;
10216 pagesize = getpagesize ();
10218 /* First, make a file with some known garbage in it. */
10219 data = (char *) malloc (pagesize);
10222 for (i = 0; i < pagesize; ++i)
10223 *(data + i) = rand ();
10225 fd = creat ("conftest.mmap", 0600);
10228 if (write (fd, data, pagesize) != pagesize)
10232 /* Next, check that the tail of a page is zero-filled. File must have
10233 non-zero length, otherwise we risk SIGBUS for entire page. */
10234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10238 if (write (fd2, cdata2, 1) != 1)
10240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10241 if (data2 == MAP_FAILED)
10243 for (i = 0; i < pagesize; ++i)
10247 if (munmap (data2, pagesize))
10250 /* Next, try to mmap the file at a fixed address which already has
10251 something else allocated at it. If we can, also make sure that
10252 we see the same garbage. */
10253 fd = open ("conftest.mmap", O_RDWR);
10256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10259 for (i = 0; i < pagesize; ++i)
10260 if (*(data + i) != *(data2 + i))
10263 /* Finally, make sure that changes to the mapped area do not
10264 percolate back to the file as seen by read(). (This is a bug on
10265 some variants of i386 svr4.0.) */
10266 for (i = 0; i < pagesize; ++i)
10267 *(data2 + i) = *(data2 + i) + 1;
10268 data3 = (char *) malloc (pagesize);
10271 if (read (fd, data3, pagesize) != pagesize)
10273 for (i = 0; i < pagesize; ++i)
10274 if (*(data + i) != *(data3 + i))
10280 if ac_fn_c_try_run
"$LINENO"; then :
10281 ac_cv_func_mmap_fixed_mapped
=yes
10283 ac_cv_func_mmap_fixed_mapped
=no
10285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10291 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10292 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10294 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10297 rm -f conftest.mmap conftest.txt
10299 if test $use_mmap_for_buffers = yes; then
10301 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10306 LIBS
="$LIBS_SYSTEM $LIBS"
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10309 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10310 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
10311 $as_echo_n "(cached) " >&6
10313 ac_check_lib_save_LIBS
=$LIBS
10314 LIBS
="-ldnet $LIBS"
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10328 return dnet_ntoa ();
10333 if ac_fn_c_try_link
"$LINENO"; then :
10334 ac_cv_lib_dnet_dnet_ntoa
=yes
10336 ac_cv_lib_dnet_dnet_ntoa
=no
10338 rm -f core conftest.err conftest.
$ac_objext \
10339 conftest
$ac_exeext conftest.
$ac_ext
10340 LIBS
=$ac_check_lib_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10343 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10344 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
10345 cat >>confdefs.h
<<_ACEOF
10346 #define HAVE_LIBDNET 1
10349 LIBS
="-ldnet $LIBS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10355 $as_echo_n "checking for main in -lXbsd... " >&6; }
10356 if ${ac_cv_lib_Xbsd_main+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 ac_check_lib_save_LIBS
=$LIBS
10360 LIBS
="-lXbsd $LIBS"
10361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10373 if ac_fn_c_try_link
"$LINENO"; then :
10374 ac_cv_lib_Xbsd_main
=yes
10376 ac_cv_lib_Xbsd_main
=no
10378 rm -f core conftest.err conftest.
$ac_objext \
10379 conftest
$ac_exeext conftest.
$ac_ext
10380 LIBS
=$ac_check_lib_save_LIBS
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10383 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10384 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
10385 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10390 for ac_header
in pthread.h
10392 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10393 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10394 cat >>confdefs.h
<<_ACEOF
10395 #define HAVE_PTHREAD_H 1
10402 if test "$ac_cv_header_pthread_h"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10404 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10405 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_check_lib_save_LIBS
=$LIBS
10409 LIBS
="-lpthread $LIBS"
10410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10419 char pthread_self ();
10423 return pthread_self ();
10428 if ac_fn_c_try_link
"$LINENO"; then :
10429 ac_cv_lib_pthread_pthread_self
=yes
10431 ac_cv_lib_pthread_pthread_self
=no
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10438 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10439 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10444 if test "$HAVE_PTHREAD" = yes; then
10445 case "${canonical}" in
10447 *) LIB_PTHREAD
="-lpthread" ;;
10450 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10456 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10457 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
10458 $as_echo_n "(cached) " >&6
10460 ac_check_lib_save_LIBS
=$LIBS
10461 LIBS
="-lpthreads $LIBS"
10462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10475 return cma_open ();
10480 if ac_fn_c_try_link
"$LINENO"; then :
10481 ac_cv_lib_pthreads_cma_open
=yes
10483 ac_cv_lib_pthreads_cma_open
=no
10485 rm -f core conftest.err conftest.
$ac_objext \
10486 conftest
$ac_exeext conftest.
$ac_ext
10487 LIBS
=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10490 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10491 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
10492 cat >>confdefs.h
<<_ACEOF
10493 #define HAVE_LIBPTHREADS 1
10496 LIBS
="-lpthreads $LIBS"
10501 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10502 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10503 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10504 ## added to LIBS in configure would never contain the pthreads part,
10505 ## but the value used in Makefiles might. FIXME?
10507 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10508 ## be harmless on older versions of X where it happens to exist.
10509 test "$opsys" = "aix4-2" && \
10510 test $ac_cv_lib_pthreads_cma_open = yes && \
10511 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10517 $as_echo_n "checking for -bbigtoc option... " >&6; }
10518 if ${gdb_cv_bigtoc+:} false
; then :
10519 $as_echo_n "(cached) " >&6
10523 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10524 *) gdb_cv_bigtoc
=-bbigtoc ;;
10527 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10539 if ac_fn_c_try_link
"$LINENO"; then :
10544 rm -f core conftest.err conftest.
$ac_objext \
10545 conftest
$ac_exeext conftest.
$ac_ext
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10549 $as_echo "$gdb_cv_bigtoc" >&6; }
10553 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10554 # used for the tests that follow. We set them back to REAL_CFLAGS and
10555 # REAL_CPPFLAGS later on.
10557 REAL_CFLAGS
="$CFLAGS"
10558 REAL_CPPFLAGS
="$CPPFLAGS"
10560 if test "${HAVE_X11}" = "yes"; then
10561 DEFS
="$C_SWITCH_X_SITE $DEFS"
10562 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10564 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10565 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10567 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10568 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10569 # but it's more convenient here to set LD_RUN_PATH
10570 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10571 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10572 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10576 if test "${opsys}" = "gnu-linux"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10578 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10585 XOpenDisplay ("foo");
10590 if ac_fn_c_try_link
"$LINENO"; then :
10591 xlinux_first_failure
=no
10593 xlinux_first_failure
=yes
10595 rm -f core conftest.err conftest.
$ac_objext \
10596 conftest
$ac_exeext conftest.
$ac_ext
10597 if test "${xlinux_first_failure}" = "yes"; then
10598 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10599 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10600 OLD_CPPFLAGS
="$CPPFLAGS"
10602 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10603 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10604 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10605 LIBS
="$LIBS -b i486-linuxaout"
10606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10612 XOpenDisplay ("foo");
10617 if ac_fn_c_try_link
"$LINENO"; then :
10618 xlinux_second_failure
=no
10620 xlinux_second_failure
=yes
10622 rm -f core conftest.err conftest.
$ac_objext \
10623 conftest
$ac_exeext conftest.
$ac_ext
10624 if test "${xlinux_second_failure}" = "yes"; then
10625 # If we get the same failure with -b, there is no use adding -b.
10626 # So take it out. This plays safe.
10627 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10628 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10629 CPPFLAGS
="$OLD_CPPFLAGS"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635 $as_echo "yes" >&6; }
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10643 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10644 # header files included from there.
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10646 $as_echo_n "checking for Xkb... " >&6; }
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <X11/Xlib.h>
10650 #include <X11/XKBlib.h>
10654 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10659 if ac_fn_c_try_link
"$LINENO"; then :
10664 rm -f core conftest.err conftest.
$ac_objext \
10665 conftest
$ac_exeext conftest.
$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10667 $as_echo "$emacs_xkb" >&6; }
10668 if test $emacs_xkb = yes; then
10670 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10674 for ac_func
in XrmSetDatabase XScreenResourceString \
10675 XScreenNumberOfScreen XSetWMProtocols
10677 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10679 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10680 cat >>confdefs.h
<<_ACEOF
10681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10689 if test "${window_system}" = "x11"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10691 $as_echo_n "checking X11 version 6... " >&6; }
10692 if ${emacs_cv_x11_version_6+:} false
; then :
10693 $as_echo_n "(cached) " >&6
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <X11/Xlib.h>
10701 #if XlibSpecificationRelease < 6
10709 if ac_fn_c_try_link
"$LINENO"; then :
10710 emacs_cv_x11_version_6
=yes
10712 emacs_cv_x11_version_6
=no
10714 rm -f core conftest.err conftest.
$ac_objext \
10715 conftest
$ac_exeext conftest.
$ac_ext
10718 if test $emacs_cv_x11_version_6 = yes; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10720 $as_echo "6 or newer" >&6; }
10722 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10725 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10727 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10732 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10738 $as_echo "before 6" >&6; }
10743 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10745 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10746 if test "${with_rsvg}" != "no"; then
10747 RSVG_REQUIRED
=2.11.0
10748 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10753 # Extract the first word of "pkg-config", so it can be a program name with args.
10754 set dummy pkg-config
; ac_word
=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10758 $as_echo_n "(cached) " >&6
10760 case $PKG_CONFIG in
10762 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10766 for as_dir
in $PATH
10769 test -z "$as_dir" && as_dir
=.
10770 for ac_exec_ext
in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10784 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10785 if test -n "$PKG_CONFIG"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10787 $as_echo "$PKG_CONFIG" >&6; }
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10795 if test "$PKG_CONFIG" = "no" ; then
10798 PKG_CONFIG_MIN_VERSION
=0.9.0
10799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10801 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10803 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10809 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10810 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10812 $as_echo "$RSVG_CFLAGS" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10815 $as_echo_n "checking RSVG_LIBS... " >&6; }
10816 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10818 $as_echo "$RSVG_LIBS" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so.
10826 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10838 if test $succeeded = yes; then
10847 if test $HAVE_RSVG = yes; then
10849 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10851 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10852 LIBS
="$RSVG_LIBS $LIBS"
10857 HAVE_IMAGEMAGICK
=no
10858 if test "${HAVE_X11}" = "yes"; then
10859 if test "${with_imagemagick}" != "no"; then
10860 ## 6.2.8 is the earliest version known to work, but earlier versions
10861 ## might work - let us know if you find one.
10862 ## 6.0.7 does not work. See bug#7955.
10863 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10867 # Extract the first word of "pkg-config", so it can be a program name with args.
10868 set dummy pkg-config
; ac_word
=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10872 $as_echo_n "(cached) " >&6
10874 case $PKG_CONFIG in
10876 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10880 for as_dir
in $PATH
10883 test -z "$as_dir" && as_dir
=.
10884 for ac_exec_ext
in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10898 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10899 if test -n "$PKG_CONFIG"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10901 $as_echo "$PKG_CONFIG" >&6; }
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10909 if test "$PKG_CONFIG" = "no" ; then
10912 PKG_CONFIG_MIN_VERSION
=0.9.0
10913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10915 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10917 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10923 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10924 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10926 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10929 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10930 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10932 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 IMAGEMAGICK_CFLAGS
=""
10937 IMAGEMAGICK_LIBS
=""
10938 ## If we have a custom action on failure, don't print errors, but
10939 ## do set a variable so people can do so.
10940 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10947 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10948 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10952 if test $succeeded = yes; then
10953 HAVE_IMAGEMAGICK
=yes
10961 if test $HAVE_IMAGEMAGICK = yes; then
10963 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10965 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10966 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10967 for ac_func
in MagickExportImagePixels
10969 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10970 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10971 cat >>confdefs.h
<<_ACEOF
10972 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10985 if test "${with_gtk3}" = "yes"; then
10988 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10993 # Extract the first word of "pkg-config", so it can be a program name with args.
10994 set dummy pkg-config
; ac_word
=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10998 $as_echo_n "(cached) " >&6
11000 case $PKG_CONFIG in
11002 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11006 for as_dir
in $PATH
11009 test -z "$as_dir" && as_dir
=.
11010 for ac_exec_ext
in '' $ac_executable_extensions; do
11011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11012 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11024 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11025 if test -n "$PKG_CONFIG"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11027 $as_echo "$PKG_CONFIG" >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11035 if test "$PKG_CONFIG" = "no" ; then
11038 PKG_CONFIG_MIN_VERSION
=0.9.0
11039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11041 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11043 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045 $as_echo "yes" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11049 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11050 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11052 $as_echo "$GTK_CFLAGS" >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11055 $as_echo_n "checking GTK_LIBS... " >&6; }
11056 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11058 $as_echo "$GTK_LIBS" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11064 ## If we have a custom action on failure, don't print errors, but
11065 ## do set a variable so people can do so.
11066 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11078 if test $succeeded = yes; then
11084 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11085 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
11088 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11090 GTK_OBJ
=emacsgtkfixed.o
11093 if test "$pkg_check_gtk" != "yes"; then
11095 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11098 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11103 # Extract the first word of "pkg-config", so it can be a program name with args.
11104 set dummy pkg-config
; ac_word
=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11108 $as_echo_n "(cached) " >&6
11110 case $PKG_CONFIG in
11112 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11116 for as_dir
in $PATH
11119 test -z "$as_dir" && as_dir
=.
11120 for ac_exec_ext
in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11134 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11135 if test -n "$PKG_CONFIG"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11137 $as_echo "$PKG_CONFIG" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11145 if test "$PKG_CONFIG" = "no" ; then
11148 PKG_CONFIG_MIN_VERSION
=0.9.0
11149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11151 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11153 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 $as_echo "yes" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11159 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11160 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11162 $as_echo "$GTK_CFLAGS" >&6; }
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11165 $as_echo_n "checking GTK_LIBS... " >&6; }
11166 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11168 $as_echo "$GTK_LIBS" >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11174 ## If we have a custom action on failure, don't print errors, but
11175 ## do set a variable so people can do so.
11176 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11183 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11184 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11188 if test $succeeded = yes; then
11194 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11195 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
11200 if test x
"$pkg_check_gtk" = xyes
; then
11204 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11205 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11206 LIBS
="$GTK_LIBS $LIBS"
11208 for ac_func
in gtk_main
11210 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11211 if test "x$ac_cv_func_gtk_main" = xyes
; then :
11212 cat >>confdefs.h
<<_ACEOF
11213 #define HAVE_GTK_MAIN 1
11219 if test "${GTK_COMPILES}" != "yes"; then
11220 if test "$USE_X_TOOLKIT" != "maybe"; then
11221 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11226 $as_echo "#define USE_GTK 1" >>confdefs.h
11228 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11230 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11234 closing open displays. This is no problem if you just use
11235 one display, but if you use more than one and close one of them
11236 Emacs may crash." >&5
11237 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11238 closing open displays. This is no problem if you just use
11239 one display, but if you use more than one and close one of them
11240 Emacs may crash." >&2;}
11249 if test "${HAVE_GTK}" = "yes"; then
11251 if test "$with_toolkit_scroll_bars" != no
; then
11252 with_toolkit_scroll_bars
=yes
11255 HAVE_GTK_FILE_SELECTION
=no
11256 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11257 #include <gtk/gtk.h>
11259 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
11260 HAVE_GTK_FILE_SELECTION
=yes
11262 HAVE_GTK_FILE_SELECTION
=no
11265 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11266 for ac_func
in gtk_file_selection_new
11268 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11269 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
11270 cat >>confdefs.h
<<_ACEOF
11271 #define HAVE_GTK_FILE_SELECTION_NEW 1
11280 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11281 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11282 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11283 gtk_orientable_set_orientation
11285 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11287 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11288 cat >>confdefs.h
<<_ACEOF
11289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300 if test "${with_dbus}" = "yes"; then
11304 # Extract the first word of "pkg-config", so it can be a program name with args.
11305 set dummy pkg-config
; ac_word
=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11309 $as_echo_n "(cached) " >&6
11311 case $PKG_CONFIG in
11313 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11317 for as_dir
in $PATH
11320 test -z "$as_dir" && as_dir
=.
11321 for ac_exec_ext
in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11335 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11336 if test -n "$PKG_CONFIG"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11338 $as_echo "$PKG_CONFIG" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11346 if test "$PKG_CONFIG" = "no" ; then
11349 PKG_CONFIG_MIN_VERSION
=0.9.0
11350 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11352 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11354 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356 $as_echo "yes" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11360 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11361 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11363 $as_echo "$DBUS_CFLAGS" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11366 $as_echo_n "checking DBUS_LIBS... " >&6; }
11367 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11369 $as_echo "$DBUS_LIBS" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11375 ## If we have a custom action on failure, don't print errors, but
11376 ## do set a variable so people can do so.
11377 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11384 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11385 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11389 if test $succeeded = yes; then
11395 if test "$HAVE_DBUS" = yes; then
11396 LIBS
="$LIBS $DBUS_LIBS"
11398 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11400 for ac_func
in dbus_watch_get_unix_fd
11402 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11403 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
11404 cat >>confdefs.h
<<_ACEOF
11405 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11411 DBUS_OBJ
=dbusbind.o
11417 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11421 # Extract the first word of "pkg-config", so it can be a program name with args.
11422 set dummy pkg-config
; ac_word
=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11426 $as_echo_n "(cached) " >&6
11428 case $PKG_CONFIG in
11430 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11434 for as_dir
in $PATH
11437 test -z "$as_dir" && as_dir
=.
11438 for ac_exec_ext
in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11452 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11453 if test -n "$PKG_CONFIG"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11455 $as_echo "$PKG_CONFIG" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11463 if test "$PKG_CONFIG" = "no" ; then
11466 PKG_CONFIG_MIN_VERSION
=0.9.0
11467 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11469 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11471 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11473 $as_echo "yes" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11477 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11478 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11480 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11483 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11484 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11486 $as_echo "$GSETTINGS_LIBS" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 GSETTINGS_CFLAGS
=""
11492 ## If we have a custom action on failure, don't print errors, but
11493 ## do set a variable so people can do so.
11494 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11501 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11502 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11506 if test $succeeded = yes; then
11512 if test "$HAVE_GSETTINGS" = "yes"; then
11514 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11516 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11517 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11522 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11526 # Extract the first word of "pkg-config", so it can be a program name with args.
11527 set dummy pkg-config
; ac_word
=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11531 $as_echo_n "(cached) " >&6
11533 case $PKG_CONFIG in
11535 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11539 for as_dir
in $PATH
11542 test -z "$as_dir" && as_dir
=.
11543 for ac_exec_ext
in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11557 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11558 if test -n "$PKG_CONFIG"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11560 $as_echo "$PKG_CONFIG" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11568 if test "$PKG_CONFIG" = "no" ; then
11571 PKG_CONFIG_MIN_VERSION
=0.9.0
11572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11574 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11576 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11582 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11583 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11585 $as_echo "$GCONF_CFLAGS" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11588 $as_echo_n "checking GCONF_LIBS... " >&6; }
11589 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11591 $as_echo "$GCONF_LIBS" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11597 ## If we have a custom action on failure, don't print errors, but
11598 ## do set a variable so people can do so.
11599 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11611 if test $succeeded = yes; then
11617 if test "$HAVE_GCONF" = yes; then
11619 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11621 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11622 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11626 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11627 SAVE_CFLAGS
="$CFLAGS"
11628 SAVE_LDFLAGS
="$LDFLAGS"
11629 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11630 LDFLAGS
="$SETTINGS_LIBS $LDFLAGS"
11631 for ac_func
in g_type_init
11633 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11634 if test "x$ac_cv_func_g_type_init" = xyes
; then :
11635 cat >>confdefs.h
<<_ACEOF
11636 #define HAVE_G_TYPE_INIT 1
11642 CFLAGS
="$SAVE_CFLAGS"
11643 LDFLAGS
="$SAVE_LDFLAGS"
11651 if test "${with_selinux}" = "yes"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11653 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11654 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
11655 $as_echo_n "(cached) " >&6
11657 ac_check_lib_save_LIBS
=$LIBS
11658 LIBS
="-lselinux $LIBS"
11659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11668 char lgetfilecon ();
11672 return lgetfilecon ();
11677 if ac_fn_c_try_link
"$LINENO"; then :
11678 ac_cv_lib_selinux_lgetfilecon
=yes
11680 ac_cv_lib_selinux_lgetfilecon
=no
11682 rm -f core conftest.err conftest.
$ac_objext \
11683 conftest
$ac_exeext conftest.
$ac_ext
11684 LIBS
=$ac_check_lib_save_LIBS
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11687 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11688 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
11689 HAVE_LIBSELINUX
=yes
11694 if test "$HAVE_LIBSELINUX" = yes; then
11696 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11698 LIBSELINUX_LIBS
=-lselinux
11704 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11705 if test "${with_gnutls}" = "yes" ; then
11709 # Extract the first word of "pkg-config", so it can be a program name with args.
11710 set dummy pkg-config
; ac_word
=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11714 $as_echo_n "(cached) " >&6
11716 case $PKG_CONFIG in
11718 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11722 for as_dir
in $PATH
11725 test -z "$as_dir" && as_dir
=.
11726 for ac_exec_ext
in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11740 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11741 if test -n "$PKG_CONFIG"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11743 $as_echo "$PKG_CONFIG" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11751 if test "$PKG_CONFIG" = "no" ; then
11754 PKG_CONFIG_MIN_VERSION
=0.9.0
11755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11757 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11759 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11765 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11766 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11768 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11771 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11772 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11774 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 LIBGNUTLS_CFLAGS
=""
11780 ## If we have a custom action on failure, don't print errors, but
11781 ## do set a variable so people can do so.
11782 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11794 if test $succeeded = yes; then
11800 if test "${HAVE_GNUTLS}" = "yes"; then
11802 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11806 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11807 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11808 for ac_func
in gnutls_certificate_set_verify_function
11810 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11811 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = xyes
; then :
11812 cat >>confdefs.h
<<_ACEOF
11813 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11815 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11820 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11822 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11832 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11833 if test "$with_xaw3d" != no
; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11835 $as_echo_n "checking for xaw3d... " >&6; }
11836 if ${emacs_cv_xaw3d+:} false
; then :
11837 $as_echo_n "(cached) " >&6
11839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11842 #include <X11/Intrinsic.h>
11843 #include <X11/Xaw3d/Simple.h>
11852 if ac_fn_c_try_link
"$LINENO"; then :
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11854 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11855 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
11856 $as_echo_n "(cached) " >&6
11858 ac_check_lib_save_LIBS
=$LIBS
11859 LIBS
="-lXaw3d $LIBS"
11860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11863 /* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
11869 char XawScrollbarSetThumb ();
11873 return XawScrollbarSetThumb ();
11878 if ac_fn_c_try_link
"$LINENO"; then :
11879 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11881 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11883 rm -f core conftest.err conftest.
$ac_objext \
11884 conftest
$ac_exeext conftest.
$ac_ext
11885 LIBS
=$ac_check_lib_save_LIBS
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11888 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11889 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
11898 rm -f core conftest.err conftest.
$ac_objext \
11899 conftest
$ac_exeext conftest.
$ac_ext
11905 if test $emacs_cv_xaw3d = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11907 $as_echo "yes; using Lucid toolkit" >&6; }
11908 USE_X_TOOLKIT
=LUCID
11912 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11918 $as_echo_n "checking for libXaw... " >&6; }
11919 if ${emacs_cv_xaw+:} false
; then :
11920 $as_echo_n "(cached) " >&6
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 #include <X11/Intrinsic.h>
11926 #include <X11/Xaw/Simple.h>
11935 if ac_fn_c_try_link
"$LINENO"; then :
11940 rm -f core conftest.err conftest.
$ac_objext \
11941 conftest
$ac_exeext conftest.
$ac_ext
11944 if test $emacs_cv_xaw = yes; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11946 $as_echo "yes; using Lucid toolkit" >&6; }
11947 USE_X_TOOLKIT
=LUCID
11949 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11950 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11952 as_fn_error $?
"No X toolkit could be found.
11953 If you are sure you want Emacs compiled without an X toolkit, pass
11954 --with-x-toolkit=no
11955 to configure. Otherwise, install the development libraries for the toolkit
11956 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11961 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11964 if test "${USE_X_TOOLKIT}" != "none"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11966 $as_echo_n "checking X11 toolkit version... " >&6; }
11967 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
11968 $as_echo_n "(cached) " >&6
11970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <X11/Intrinsic.h>
11976 #if XtSpecificationRelease < 6
11984 if ac_fn_c_try_link
"$LINENO"; then :
11985 emacs_cv_x11_toolkit_version_6
=yes
11987 emacs_cv_x11_toolkit_version_6
=no
11989 rm -f core conftest.err conftest.
$ac_objext \
11990 conftest
$ac_exeext conftest.
$ac_ext
11993 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11994 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11996 $as_echo "6 or newer" >&6; }
11998 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12000 LIBXTR6
="-lSM -lICE"
12002 ## Use libw.a along with X11R6 Xt.
12003 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12007 $as_echo "before 6" >&6; }
12011 if test x
$HAVE_X11XTR6 = xyes
; then
12012 LIBS
="-lXt -lSM -lICE $LIBS"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12017 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12018 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
12019 $as_echo_n "(cached) " >&6
12021 ac_check_lib_save_LIBS
=$LIBS
12023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12032 char XmuConvertStandardSelection ();
12036 return XmuConvertStandardSelection ();
12041 if ac_fn_c_try_link
"$LINENO"; then :
12042 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12044 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12046 rm -f core conftest.err conftest.
$ac_objext \
12047 conftest
$ac_exeext conftest.
$ac_ext
12048 LIBS
=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12051 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12052 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
12053 cat >>confdefs.h
<<_ACEOF
12054 #define HAVE_LIBXMU 1
12061 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12067 ## These systems don't supply Xmu.
12069 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12074 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12075 if test "${HAVE_X11}" = "yes"; then
12076 if test "${USE_X_TOOLKIT}" != "none"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12078 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12079 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
12080 $as_echo_n "(cached) " >&6
12082 ac_check_lib_save_LIBS
=$LIBS
12083 LIBS
="-lXext $LIBS"
12084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12093 char XShapeQueryExtension ();
12097 return XShapeQueryExtension ();
12102 if ac_fn_c_try_link
"$LINENO"; then :
12103 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12105 ac_cv_lib_Xext_XShapeQueryExtension
=no
12107 rm -f core conftest.err conftest.
$ac_objext \
12108 conftest
$ac_exeext conftest.
$ac_ext
12109 LIBS
=$ac_check_lib_save_LIBS
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12112 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12113 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
12114 cat >>confdefs.h
<<_ACEOF
12115 #define HAVE_LIBXEXT 1
12118 LIBS
="-lXext $LIBS"
12126 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12128 $as_echo_n "checking for Motif version 2.1... " >&6; }
12129 if ${emacs_cv_motif_version_2_1+:} false
; then :
12130 $as_echo_n "(cached) " >&6
12132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12138 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12141 Motif version prior to 2.1.
12147 if ac_fn_c_try_compile
"$LINENO"; then :
12148 emacs_cv_motif_version_2_1
=yes
12150 emacs_cv_motif_version_2_1
=no
12152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12155 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12156 if test $emacs_cv_motif_version_2_1 = yes; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12158 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12159 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_check_lib_save_LIBS
=$LIBS
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12173 char XpCreateContext ();
12177 return XpCreateContext ();
12182 if ac_fn_c_try_link
"$LINENO"; then :
12183 ac_cv_lib_Xp_XpCreateContext
=yes
12185 ac_cv_lib_Xp_XpCreateContext
=no
12187 rm -f core conftest.err conftest.
$ac_objext \
12188 conftest
$ac_exeext conftest.
$ac_ext
12189 LIBS
=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12192 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12193 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12199 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12200 if ${emacs_cv_lesstif+:} false
; then :
12201 $as_echo_n "(cached) " >&6
12203 # We put this in CFLAGS temporarily to precede other -I options
12204 # that might be in CFLAGS temporarily.
12205 # We put this in CPPFLAGS where it precedes the other -I options.
12206 OLD_CPPFLAGS
=$CPPFLAGS
12208 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12209 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12221 if ac_fn_c_try_compile
"$LINENO"; then :
12222 emacs_cv_lesstif
=yes
12224 emacs_cv_lesstif
=no
12226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12229 $as_echo "$emacs_cv_lesstif" >&6; }
12230 if test $emacs_cv_lesstif = yes; then
12231 # Make sure this -I option remains in CPPFLAGS after it is set
12232 # back to REAL_CPPFLAGS.
12233 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12234 # have those other -I options anyway. Ultimately, having this
12235 # directory ultimately in CPPFLAGS will be enough.
12236 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12237 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12240 CPPFLAGS
=$OLD_CPPFLAGS
12246 USE_TOOLKIT_SCROLL_BARS
=no
12247 if test "${with_toolkit_scroll_bars}" != "no"; then
12248 if test "${USE_X_TOOLKIT}" != "none"; then
12249 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12250 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12253 USE_TOOLKIT_SCROLL_BARS
=yes
12254 elif test "${HAVE_XAW3D}" = "yes"; then
12255 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12257 USE_TOOLKIT_SCROLL_BARS
=yes
12259 elif test "${HAVE_GTK}" = "yes"; then
12260 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12262 USE_TOOLKIT_SCROLL_BARS
=yes
12263 elif test "${HAVE_NS}" = "yes"; then
12264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12266 USE_TOOLKIT_SCROLL_BARS
=yes
12270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12273 #include <X11/Xlib.h>
12274 #include <X11/Xresource.h>
12283 if ac_fn_c_try_compile
"$LINENO"; then :
12286 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12294 if test "${with_xim}" != "no"; then
12296 $as_echo "#define USE_XIM 1" >>confdefs.h
12301 if test "${HAVE_XIM}" != "no"; then
12302 late_CFLAGS
=$CFLAGS
12303 if test "$GCC" = yes; then
12304 CFLAGS
="$CFLAGS --pedantic-errors"
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 #include <X11/Xlib.h>
12310 #include <X11/Xresource.h>
12319 XPointer *client_data;
12321 /* If we're not using GCC, it's probably not XFree86, and this is
12322 probably right, but we can't use something like --pedantic-errors. */
12323 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12324 char*, XIMProc, XPointer*);
12326 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12332 if ac_fn_c_try_compile
"$LINENO"; then :
12333 emacs_cv_arg6_star
=yes
12335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12336 if test "$emacs_cv_arg6_star" = yes; then
12337 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12340 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12343 CFLAGS
=$late_CFLAGS
12346 ### Start of font-backend (under any platform) section.
12347 # (nothing here yet -- this is a placeholder)
12348 ### End of font-backend (under any platform) section.
12350 ### Start of font-backend (under X11) section.
12351 if test "${HAVE_X11}" = "yes"; then
12355 # Extract the first word of "pkg-config", so it can be a program name with args.
12356 set dummy pkg-config
; ac_word
=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12360 $as_echo_n "(cached) " >&6
12362 case $PKG_CONFIG in
12364 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12368 for as_dir
in $PATH
12371 test -z "$as_dir" && as_dir
=.
12372 for ac_exec_ext
in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12386 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12387 if test -n "$PKG_CONFIG"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12389 $as_echo "$PKG_CONFIG" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12397 if test "$PKG_CONFIG" = "no" ; then
12400 PKG_CONFIG_MIN_VERSION
=0.9.0
12401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12403 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12405 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407 $as_echo "yes" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12411 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12412 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12414 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12417 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12418 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12420 $as_echo "$FONTCONFIG_LIBS" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 FONTCONFIG_CFLAGS
=""
12426 ## If we have a custom action on failure, don't print errors, but
12427 ## do set a variable so people can do so.
12428 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12440 if test $succeeded = yes; then
12447 ## Use -lXft if available, unless `--with-xft=no'.
12449 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12452 if test "x${with_xft}" != "xno"; then
12457 # Extract the first word of "pkg-config", so it can be a program name with args.
12458 set dummy pkg-config
; ac_word
=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12462 $as_echo_n "(cached) " >&6
12464 case $PKG_CONFIG in
12466 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12470 for as_dir
in $PATH
12473 test -z "$as_dir" && as_dir
=.
12474 for ac_exec_ext
in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12488 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12489 if test -n "$PKG_CONFIG"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12491 $as_echo "$PKG_CONFIG" >&6; }
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12499 if test "$PKG_CONFIG" = "no" ; then
12502 PKG_CONFIG_MIN_VERSION
=0.9.0
12503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12505 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12507 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12513 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12514 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12516 $as_echo "$XFT_CFLAGS" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12519 $as_echo_n "checking XFT_LIBS... " >&6; }
12520 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12522 $as_echo "$XFT_LIBS" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12528 ## If we have a custom action on failure, don't print errors, but
12529 ## do set a variable so people can do so.
12530 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12537 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12538 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12542 if test $succeeded = yes; then
12548 ## Because xftfont.c uses XRenderQueryExtension, we also
12549 ## need to link to -lXrender.
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12552 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12553 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
12554 $as_echo_n "(cached) " >&6
12556 ac_check_lib_save_LIBS
=$LIBS
12557 LIBS
="-lXrender $LIBS"
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12567 char XRenderQueryExtension ();
12571 return XRenderQueryExtension ();
12576 if ac_fn_c_try_link
"$LINENO"; then :
12577 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12579 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12581 rm -f core conftest.err conftest.
$ac_objext \
12582 conftest
$ac_exeext conftest.
$ac_ext
12583 LIBS
=$ac_check_lib_save_LIBS
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12586 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12587 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
12591 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12592 OLD_CPPFLAGS
="$CPPFLAGS"
12593 OLD_CFLAGS
="$CFLAGS"
12595 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12596 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12597 XFT_LIBS
="-lXrender $XFT_LIBS"
12598 LIBS
="$XFT_LIBS $LIBS"
12599 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12600 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12602 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12603 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
12604 $as_echo_n "(cached) " >&6
12606 ac_check_lib_save_LIBS
=$LIBS
12607 LIBS
="-lXft $XFT_LIBS $LIBS"
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12617 char XftFontOpen ();
12621 return XftFontOpen ();
12626 if ac_fn_c_try_link
"$LINENO"; then :
12627 ac_cv_lib_Xft_XftFontOpen
=yes
12629 ac_cv_lib_Xft_XftFontOpen
=no
12631 rm -f core conftest.err conftest.
$ac_objext \
12632 conftest
$ac_exeext conftest.
$ac_ext
12633 LIBS
=$ac_check_lib_save_LIBS
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12636 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12637 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
12645 if test "${HAVE_XFT}" = "yes"; then
12647 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12650 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12652 CPPFLAGS
="$OLD_CPPFLAGS"
12653 CFLAGS
="$OLD_CFLAGS"
12655 fi # "${HAVE_XFT}" = "yes"
12656 fi # "$HAVE_XFT" != no
12657 fi # "x${with_xft}" != "xno"
12659 ## We used to allow building with FreeType and without Xft.
12660 ## However, the ftx font backend driver is not in good shape.
12661 if test "$HAVE_XFT" != "yes"; then
12668 # Extract the first word of "pkg-config", so it can be a program name with args.
12669 set dummy pkg-config
; ac_word
=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12673 $as_echo_n "(cached) " >&6
12675 case $PKG_CONFIG in
12677 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12681 for as_dir
in $PATH
12684 test -z "$as_dir" && as_dir
=.
12685 for ac_exec_ext
in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12699 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12700 if test -n "$PKG_CONFIG"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12702 $as_echo "$PKG_CONFIG" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12710 if test "$PKG_CONFIG" = "no" ; then
12713 PKG_CONFIG_MIN_VERSION
=0.9.0
12714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12716 $as_echo_n "checking for freetype2... " >&6; }
12718 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12720 $as_echo "yes" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12724 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12725 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12727 $as_echo "$FREETYPE_CFLAGS" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12730 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12731 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12733 $as_echo "$FREETYPE_LIBS" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12739 ## If we have a custom action on failure, don't print errors, but
12740 ## do set a variable so people can do so.
12741 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12753 if test $succeeded = yes; then
12760 test "$HAVE_FREETYPE" = "no" && as_fn_error $?
"libxft requires libfreetype" "$LINENO" 5
12764 if test "${HAVE_FREETYPE}" = "yes"; then
12766 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12768 if test "${with_libotf}" != "no"; then
12772 # Extract the first word of "pkg-config", so it can be a program name with args.
12773 set dummy pkg-config
; ac_word
=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12777 $as_echo_n "(cached) " >&6
12779 case $PKG_CONFIG in
12781 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12785 for as_dir
in $PATH
12788 test -z "$as_dir" && as_dir
=.
12789 for ac_exec_ext
in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12803 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12804 if test -n "$PKG_CONFIG"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12806 $as_echo "$PKG_CONFIG" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12814 if test "$PKG_CONFIG" = "no" ; then
12817 PKG_CONFIG_MIN_VERSION
=0.9.0
12818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12820 $as_echo_n "checking for libotf... " >&6; }
12822 if $PKG_CONFIG --exists "libotf" 2>&5; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12828 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12829 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12831 $as_echo "$LIBOTF_CFLAGS" >&6; }
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12834 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12835 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12837 $as_echo "$LIBOTF_LIBS" >&6; }
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12843 ## If we have a custom action on failure, don't print errors, but
12844 ## do set a variable so people can do so.
12845 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12857 if test $succeeded = yes; then
12863 if test "$HAVE_LIBOTF" = "yes"; then
12865 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12868 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12869 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
12870 $as_echo_n "(cached) " >&6
12872 ac_check_lib_save_LIBS
=$LIBS
12874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12883 char OTF_get_variation_glyphs ();
12887 return OTF_get_variation_glyphs ();
12892 if ac_fn_c_try_link
"$LINENO"; then :
12893 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12895 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12897 rm -f core conftest.err conftest.
$ac_objext \
12898 conftest
$ac_exeext conftest.
$ac_ext
12899 LIBS
=$ac_check_lib_save_LIBS
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12902 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12903 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
12904 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12906 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12909 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12911 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12919 if test "${HAVE_LIBOTF}" = yes; then
12920 if test "${with_m17n_flt}" != "no"; then
12924 # Extract the first word of "pkg-config", so it can be a program name with args.
12925 set dummy pkg-config
; ac_word
=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12929 $as_echo_n "(cached) " >&6
12931 case $PKG_CONFIG in
12933 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12937 for as_dir
in $PATH
12940 test -z "$as_dir" && as_dir
=.
12941 for ac_exec_ext
in '' $ac_executable_extensions; do
12942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12943 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12955 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12956 if test -n "$PKG_CONFIG"; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12958 $as_echo "$PKG_CONFIG" >&6; }
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12966 if test "$PKG_CONFIG" = "no" ; then
12969 PKG_CONFIG_MIN_VERSION
=0.9.0
12970 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12972 $as_echo_n "checking for m17n-flt... " >&6; }
12974 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12980 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12981 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12983 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12986 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12987 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12989 $as_echo "$M17N_FLT_LIBS" >&6; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12995 ## If we have a custom action on failure, don't print errors, but
12996 ## do set a variable so people can do so.
12997 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13009 if test $succeeded = yes; then
13015 if test "$HAVE_M17N_FLT" = "yes"; then
13017 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13029 ### End of font-backend (under X11) section.
13040 ### Use -lXpm if available, unless `--with-xpm=no'.
13043 if test "${HAVE_X11}" = "yes"; then
13044 if test "${with_xpm}" != "no"; then
13045 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13046 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13048 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13049 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
13050 $as_echo_n "(cached) " >&6
13052 ac_check_lib_save_LIBS
=$LIBS
13053 LIBS
="-lXpm -lX11 $LIBS"
13054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13063 char XpmReadFileToPixmap ();
13067 return XpmReadFileToPixmap ();
13072 if ac_fn_c_try_link
"$LINENO"; then :
13073 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13075 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13077 rm -f core conftest.err conftest.
$ac_objext \
13078 conftest
$ac_exeext conftest.
$ac_ext
13079 LIBS
=$ac_check_lib_save_LIBS
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13082 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13083 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
13090 if test "${HAVE_XPM}" = "yes"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13092 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include "X11/xpm.h"
13096 #ifndef XpmReturnAllocPixels
13097 no_return_alloc_pixels
13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13110 if test "${HAVE_XPM}" = "yes"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13112 $as_echo "yes" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13120 if test "${HAVE_XPM}" = "yes"; then
13122 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13129 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13132 if test "${HAVE_X11}" = "yes"; then
13133 if test "${with_jpeg}" != "no"; then
13134 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13135 if test "x$ac_cv_header_jerror_h" = xyes
; then :
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13137 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13138 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
13139 $as_echo_n "(cached) " >&6
13141 ac_check_lib_save_LIBS
=$LIBS
13142 LIBS
="-ljpeg $LIBS"
13143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13152 char jpeg_destroy_compress ();
13156 return jpeg_destroy_compress ();
13161 if ac_fn_c_try_link
"$LINENO"; then :
13162 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13164 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13166 rm -f core conftest.err conftest.
$ac_objext \
13167 conftest
$ac_exeext conftest.
$ac_ext
13168 LIBS
=$ac_check_lib_save_LIBS
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13171 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13172 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
13181 if test "${HAVE_JPEG}" = "yes"; then
13182 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <jpeglib.h>
13187 version=JPEG_LIB_VERSION
13190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13191 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13192 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13196 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13202 if test "${HAVE_JPEG}" = "yes"; then
13208 ### Use -lpng if available, unless `--with-png=no'.
13211 if test "${HAVE_X11}" = "yes"; then
13212 if test "${with_png}" != "no"; then
13213 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13214 # in /usr/include/libpng.
13215 for ac_header
in png.h libpng
/png.h
13217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13218 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13219 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13220 cat >>confdefs.h
<<_ACEOF
13221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13228 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13230 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13231 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 ac_check_lib_save_LIBS
=$LIBS
13235 LIBS
="-lpng -lz -lm $LIBS"
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13245 char png_get_channels ();
13249 return png_get_channels ();
13254 if ac_fn_c_try_link
"$LINENO"; then :
13255 ac_cv_lib_png_png_get_channels
=yes
13257 ac_cv_lib_png_png_get_channels
=no
13259 rm -f core conftest.err conftest.
$ac_objext \
13260 conftest
$ac_exeext conftest.
$ac_ext
13261 LIBS
=$ac_check_lib_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13264 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13265 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
13272 if test "${HAVE_PNG}" = "yes"; then
13274 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13276 LIBPNG
="-lpng -lz -lm"
13281 ### Use -ltiff if available, unless `--with-tiff=no'.
13284 if test "${HAVE_X11}" = "yes"; then
13285 if test "${with_tiff}" != "no"; then
13286 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13287 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
13289 # At least one tiff package requires the jpeg library.
13290 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13292 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13293 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
13294 $as_echo_n "(cached) " >&6
13296 ac_check_lib_save_LIBS
=$LIBS
13297 LIBS
="-ltiff $tifflibs $LIBS"
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13307 char TIFFGetVersion ();
13311 return TIFFGetVersion ();
13316 if ac_fn_c_try_link
"$LINENO"; then :
13317 ac_cv_lib_tiff_TIFFGetVersion
=yes
13319 ac_cv_lib_tiff_TIFFGetVersion
=no
13321 rm -f core conftest.err conftest.
$ac_objext \
13322 conftest
$ac_exeext conftest.
$ac_ext
13323 LIBS
=$ac_check_lib_save_LIBS
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13326 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13327 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
13336 if test "${HAVE_TIFF}" = "yes"; then
13338 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13345 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13348 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13349 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13350 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
13351 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13352 # Earlier versions can crash Emacs.
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13354 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13355 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
13356 $as_echo_n "(cached) " >&6
13358 ac_check_lib_save_LIBS
=$LIBS
13360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13369 char EGifPutExtensionLast ();
13373 return EGifPutExtensionLast ();
13378 if ac_fn_c_try_link
"$LINENO"; then :
13379 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13381 ac_cv_lib_gif_EGifPutExtensionLast
=no
13383 rm -f core conftest.err conftest.
$ac_objext \
13384 conftest
$ac_exeext conftest.
$ac_ext
13385 LIBS
=$ac_check_lib_save_LIBS
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13388 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13389 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
13399 if test "$HAVE_GIF" = yes; then
13401 elif test "$HAVE_GIF" = maybe
; then
13402 # If gif_lib.h but no libgif, try libungif.
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13404 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13405 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
13406 $as_echo_n "(cached) " >&6
13408 ac_check_lib_save_LIBS
=$LIBS
13409 LIBS
="-lungif $LIBS"
13410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13419 char EGifPutExtensionLast ();
13423 return EGifPutExtensionLast ();
13428 if ac_fn_c_try_link
"$LINENO"; then :
13429 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13431 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13433 rm -f core conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13435 LIBS
=$ac_check_lib_save_LIBS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13438 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13439 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
13445 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13448 if test "${HAVE_GIF}" = "yes"; then
13450 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13456 if test "${HAVE_X11}" = "yes"; then
13459 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13460 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13461 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13462 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13463 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13464 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13465 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13466 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13467 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13468 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13470 if test "X${MISSING}" != X
; then
13471 as_fn_error $?
"The following required libraries were not found:
13473 Maybe some development libraries/packages are missing?
13474 If you don't want to link with them give
13476 as options to configure" "$LINENO" 5
13480 ### Use -lgpm if available, unless `--with-gpm=no'.
13483 if test "${with_gpm}" != "no"; then
13484 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13485 if test "x$ac_cv_header_gpm_h" = xyes
; then :
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13487 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13488 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
13489 $as_echo_n "(cached) " >&6
13491 ac_check_lib_save_LIBS
=$LIBS
13493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13496 /* Override any GCC internal prototype to avoid an error.
13497 Use char because int might match the return type of a GCC
13498 builtin and then its argument prototype would still apply. */
13506 return Gpm_Open ();
13511 if ac_fn_c_try_link
"$LINENO"; then :
13512 ac_cv_lib_gpm_Gpm_Open
=yes
13514 ac_cv_lib_gpm_Gpm_Open
=no
13516 rm -f core conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13518 LIBS
=$ac_check_lib_save_LIBS
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13521 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13522 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
13530 if test "${HAVE_GPM}" = "yes"; then
13532 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13539 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13540 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
13542 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13549 ### Use NeXTstep API to implement GUI.
13550 if test "${HAVE_NS}" = "yes"; then
13552 $as_echo "#define HAVE_NS 1" >>confdefs.h
13554 if test "${NS_IMPL_COCOA}" = "yes"; then
13556 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13560 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13562 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13564 # See also .m.o rule in Makefile.in */
13565 # FIXME: are all these flags really needed? Document here why. */
13566 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
13567 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13569 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13571 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13574 # We also have mouse menus.
13580 ### Use session management (-lSM -lICE) if available
13583 if test "${HAVE_X11}" = "yes"; then
13584 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13585 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13587 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13588 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
13589 $as_echo_n "(cached) " >&6
13591 ac_check_lib_save_LIBS
=$LIBS
13592 LIBS
="-lSM -lICE $LIBS"
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13602 char SmcOpenConnection ();
13606 return SmcOpenConnection ();
13611 if ac_fn_c_try_link
"$LINENO"; then :
13612 ac_cv_lib_SM_SmcOpenConnection
=yes
13614 ac_cv_lib_SM_SmcOpenConnection
=no
13616 rm -f core conftest.err conftest.
$ac_objext \
13617 conftest
$ac_exeext conftest.
$ac_ext
13618 LIBS
=$ac_check_lib_save_LIBS
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13621 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13622 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
13630 if test "${HAVE_X_SM}" = "yes"; then
13632 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13634 LIBXSM
="-lSM -lICE"
13637 *) LIBS
="$LIBXSM $LIBS" ;;
13643 ### Use libxml (-lxml2) if available
13644 if test "${with_xml2}" != "no"; then
13645 ### I'm not sure what the version number should be, so I just guessed.
13649 # Extract the first word of "pkg-config", so it can be a program name with args.
13650 set dummy pkg-config
; ac_word
=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
13654 $as_echo_n "(cached) " >&6
13656 case $PKG_CONFIG in
13658 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13662 for as_dir
in $PATH
13665 test -z "$as_dir" && as_dir
=.
13666 for ac_exec_ext
in '' $ac_executable_extensions; do
13667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13668 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13680 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13681 if test -n "$PKG_CONFIG"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13683 $as_echo "$PKG_CONFIG" >&6; }
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13691 if test "$PKG_CONFIG" = "no" ; then
13694 PKG_CONFIG_MIN_VERSION
=0.9.0
13695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13697 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13699 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13701 $as_echo "yes" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13705 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13706 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13708 $as_echo "$LIBXML2_CFLAGS" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13711 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13712 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13714 $as_echo "$LIBXML2_LIBS" >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13720 ## If we have a custom action on failure, don't print errors, but
13721 ## do set a variable so people can do so.
13722 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13734 if test $succeeded = yes; then
13740 if test "${HAVE_LIBXML2}" = "yes"; then
13741 LIBS
="$LIBXML2_LIBS $LIBS"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13743 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13744 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
13745 $as_echo_n "(cached) " >&6
13747 ac_check_lib_save_LIBS
=$LIBS
13748 LIBS
="-lxml2 $LIBS"
13749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13758 char htmlReadMemory ();
13762 return htmlReadMemory ();
13767 if ac_fn_c_try_link
"$LINENO"; then :
13768 ac_cv_lib_xml2_htmlReadMemory
=yes
13770 ac_cv_lib_xml2_htmlReadMemory
=no
13772 rm -f core conftest.err conftest.
$ac_objext \
13773 conftest
$ac_exeext conftest.
$ac_ext
13774 LIBS
=$ac_check_lib_save_LIBS
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13777 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13778 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
13784 if test "${HAVE_LIBXML2}" = "yes"; then
13786 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13797 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13799 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13800 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
13801 $as_echo_n "(cached) " >&6
13803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13814 if ac_fn_c_try_link
"$LINENO"; then :
13815 emacs_cv_netdb_declares_h_errno
=yes
13817 emacs_cv_netdb_declares_h_errno
=no
13819 rm -f core conftest.err conftest.
$ac_objext \
13820 conftest
$ac_exeext conftest.
$ac_ext
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13823 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13824 if test $emacs_cv_netdb_declares_h_errno = yes; then
13826 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13830 # fmod, logb, and frexp are found in -lm on most systems.
13831 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13833 $as_echo_n "checking for sqrt in -lm... " >&6; }
13834 if ${ac_cv_lib_m_sqrt+:} false
; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS
=$LIBS
13839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13857 if ac_fn_c_try_link
"$LINENO"; then :
13858 ac_cv_lib_m_sqrt
=yes
13860 ac_cv_lib_m_sqrt
=no
13862 rm -f core conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13864 LIBS
=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13867 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13868 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
13869 cat >>confdefs.h
<<_ACEOF
13870 #define HAVE_LIBM 1
13878 # Check for mail-locking functions in a "mail" library. Probably this should
13879 # have the same check as for liblockfile below.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13881 $as_echo_n "checking for maillock in -lmail... " >&6; }
13882 if ${ac_cv_lib_mail_maillock+:} false
; then :
13883 $as_echo_n "(cached) " >&6
13885 ac_check_lib_save_LIBS
=$LIBS
13886 LIBS
="-lmail $LIBS"
13887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13900 return maillock ();
13905 if ac_fn_c_try_link
"$LINENO"; then :
13906 ac_cv_lib_mail_maillock
=yes
13908 ac_cv_lib_mail_maillock
=no
13910 rm -f core conftest.err conftest.
$ac_objext \
13911 conftest
$ac_exeext conftest.
$ac_ext
13912 LIBS
=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13915 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13916 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13922 if test $have_mail = yes; then
13924 LIBS
="$LIBS_MAIL $LIBS"
13926 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13932 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13933 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13934 $as_echo_n "(cached) " >&6
13936 ac_check_lib_save_LIBS
=$LIBS
13937 LIBS
="-llockfile $LIBS"
13938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13951 return maillock ();
13956 if ac_fn_c_try_link
"$LINENO"; then :
13957 ac_cv_lib_lockfile_maillock
=yes
13959 ac_cv_lib_lockfile_maillock
=no
13961 rm -f core conftest.err conftest.
$ac_objext \
13962 conftest
$ac_exeext conftest.
$ac_ext
13963 LIBS
=$ac_check_lib_save_LIBS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13966 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13967 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13973 if test $have_lockfile = yes; then
13974 LIBS_MAIL
=-llockfile
13975 LIBS
="$LIBS_MAIL $LIBS"
13977 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13980 # If we have the shared liblockfile, assume we must use it for mail
13981 # locking (e.g. Debian). If we couldn't link against liblockfile
13982 # (no liblockfile.a installed), ensure that we don't need to.
13983 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13984 set dummy liblockfile.so
; ac_word
=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if ${ac_cv_prog_liblockfile+:} false
; then :
13988 $as_echo_n "(cached) " >&6
13990 if test -n "$liblockfile"; then
13991 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13994 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13995 for as_dir
in $as_dummy
13998 test -z "$as_dir" && as_dir
=.
13999 for ac_exec_ext
in '' $ac_executable_extensions; do
14000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001 ac_cv_prog_liblockfile
="yes"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14012 liblockfile
=$ac_cv_prog_liblockfile
14013 if test -n "$liblockfile"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14015 $as_echo "$liblockfile" >&6; }
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14022 if test $ac_cv_prog_liblockfile = yes; then
14023 as_fn_error $?
"Shared liblockfile found but can't link against it.
14024 This probably means that movemail could lose mail.
14025 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14028 for ac_func
in touchlock
14030 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14031 if test "x$ac_cv_func_touchlock" = xyes
; then :
14032 cat >>confdefs.h
<<_ACEOF
14033 #define HAVE_TOUCHLOCK 1
14039 for ac_header
in maillock.h
14041 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14042 if test "x$ac_cv_header_maillock_h" = xyes
; then :
14043 cat >>confdefs.h
<<_ACEOF
14044 #define HAVE_MAILLOCK_H 1
14053 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14054 ## interlock access to the mail spool. The alternative is a lock file named
14055 ## /usr/spool/mail/$USER.lock.
14058 aix4-2
) mail_lock
="lockf" ;;
14060 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14062 ## On GNU/Linux systems, both methods are used by various mail programs.
14063 ## I assume most people are using newer mailers that have heard of flock.
14064 ## Change this if you need to.
14065 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14066 ## configure gets the right answers, and that means *NOT* using flock.
14067 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14068 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14069 ## Debian maintainer hasn't provided a clean fix for Emacs.
14070 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14071 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14072 ## correct logic. -- fx
14073 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14074 ## liblockfile is a Free Software replacement for libmail, used on
14075 ## Debian systems and elsewhere. -rfr.
14078 if test $have_mail = yes ||
test $have_lockfile = yes; then
14079 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14085 case "$mail_lock" in
14087 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14091 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14094 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14099 for ac_func
in gethostname getdomainname \
14100 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14101 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14102 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14103 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14104 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14105 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14106 gai_strerror mkstemp getline getdelim mremap fsync sync \
14107 difftime mempcpy mblen mbrlen posix_memalign \
14108 cfmakeraw cfsetspeed isnan copysign __executable_start
14110 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14112 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14113 cat >>confdefs.h
<<_ACEOF
14114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14122 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14123 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
14124 $as_echo_n "(cached) " >&6
14126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14132 __builtin_unwind_init ();
14137 if ac_fn_c_try_link
"$LINENO"; then :
14138 emacs_cv_func___builtin_unwind_init
=yes
14140 emacs_cv_func___builtin_unwind_init
=no
14142 rm -f core conftest.err conftest.
$ac_objext \
14143 conftest
$ac_exeext conftest.
$ac_ext
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14146 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14147 if test $emacs_cv_func___builtin_unwind_init = yes; then
14149 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14153 for ac_header
in sys
/un.h
14155 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14156 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
14157 cat >>confdefs.h
<<_ACEOF
14158 #define HAVE_SYS_UN_H 1
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14167 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14168 if ${ac_cv_sys_largefile_source+:} false
; then :
14169 $as_echo_n "(cached) " >&6
14172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #include <sys/types.h> /* for off_t */
14179 int (*fp) (FILE *, off_t, int) = fseeko;
14180 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14185 if ac_fn_c_try_link
"$LINENO"; then :
14186 ac_cv_sys_largefile_source
=no
; break
14188 rm -f core conftest.err conftest.
$ac_objext \
14189 conftest
$ac_exeext conftest.
$ac_ext
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #define _LARGEFILE_SOURCE 1
14193 #include <sys/types.h> /* for off_t */
14198 int (*fp) (FILE *, off_t, int) = fseeko;
14199 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14204 if ac_fn_c_try_link
"$LINENO"; then :
14205 ac_cv_sys_largefile_source
=1; break
14207 rm -f core conftest.err conftest.
$ac_objext \
14208 conftest
$ac_exeext conftest.
$ac_ext
14209 ac_cv_sys_largefile_source
=unknown
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14214 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14215 case $ac_cv_sys_largefile_source in #(
14218 cat >>confdefs.h
<<_ACEOF
14219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14226 # in glibc 2.1.3, but that breaks too many other things.
14227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14228 if test $ac_cv_sys_largefile_source != unknown
; then
14230 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14236 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14237 if ${ac_cv_func_getpgrp_void+:} false
; then :
14238 $as_echo_n "(cached) " >&6
14240 # Use it with a single arg.
14241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 $ac_includes_default
14252 if ac_fn_c_try_compile
"$LINENO"; then :
14253 ac_cv_func_getpgrp_void
=no
14255 ac_cv_func_getpgrp_void
=yes
14257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14261 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14262 if test $ac_cv_func_getpgrp_void = yes; then
14264 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14270 for ac_func
in grantpt
14272 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14273 if test "x$ac_cv_func_grantpt" = xyes
; then :
14274 cat >>confdefs.h
<<_ACEOF
14275 #define HAVE_GRANTPT 1
14282 # PTY-related GNU extensions.
14283 for ac_func
in getpt
14285 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14286 if test "x$ac_cv_func_getpt" = xyes
; then :
14287 cat >>confdefs.h
<<_ACEOF
14288 #define HAVE_GETPT 1
14295 # Check this now, so that we will NOT find the above functions in ncurses.
14296 # That is because we have not set up to link ncurses in lib-src.
14297 # It's better to believe a function is not available
14298 # than to expect to find it in ncurses.
14299 # Also we need tputs and friends to be able to build at all.
14300 have_tputs_et_al
=true
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14302 $as_echo_n "checking for library containing tputs... " >&6; }
14303 if ${ac_cv_search_tputs+:} false
; then :
14304 $as_echo_n "(cached) " >&6
14306 ac_func_search_save_LIBS
=$LIBS
14307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14325 for ac_lib
in '' ncurses terminfo termcap
; do
14326 if test -z "$ac_lib"; then
14327 ac_res
="none required"
14330 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14332 if ac_fn_c_try_link
"$LINENO"; then :
14333 ac_cv_search_tputs
=$ac_res
14335 rm -f core conftest.err conftest.
$ac_objext \
14337 if ${ac_cv_search_tputs+:} false
; then :
14341 if ${ac_cv_search_tputs+:} false
; then :
14344 ac_cv_search_tputs
=no
14346 rm conftest.
$ac_ext
14347 LIBS
=$ac_func_search_save_LIBS
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14350 $as_echo "$ac_cv_search_tputs" >&6; }
14351 ac_res
=$ac_cv_search_tputs
14352 if test "$ac_res" != no
; then :
14353 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14356 have_tputs_et_al
=false
14359 if test "$have_tputs_et_al" != true
; then
14360 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
14361 Maybe some development libraries/packages are missing? Try installing
14362 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14364 # Must define this when any termcap library is found.
14366 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14368 ## FIXME This was the cpp logic, but I am not sure it is right.
14369 ## The above test has not necessarily found libncurses.
14370 HAVE_LIBNCURSES
=yes
14372 ## Use terminfo instead of termcap?
14373 ## Note only system files NOT using terminfo are:
14374 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14375 ## darwin|gnu without ncurses.
14379 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14380 ## hpux10-20: Use the system provided termcap(3) library.
14381 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14382 ## is necessary. Otherwise Emacs dumps core when run -nw.
14383 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14385 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14386 ## The ncurses library has been moved out of the System framework in
14387 ## Mac OS X 10.2. So if configure detects it, set the command-line
14388 ## option to use it.
14390 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14391 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14393 LIBS_TERMCAP
="-lncurses"
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14399 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14400 if ${emacs_cv_freebsd_terminfo+:} false
; then :
14401 $as_echo_n "(cached) " >&6
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 #include <osreldate.h>
14409 #if __FreeBSD_version < 400000
14417 if ac_fn_c_try_link
"$LINENO"; then :
14418 emacs_cv_freebsd_terminfo
=yes
14420 emacs_cv_freebsd_terminfo
=no
14422 rm -f core conftest.err conftest.
$ac_objext \
14423 conftest
$ac_exeext conftest.
$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14428 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14430 if test $emacs_cv_freebsd_terminfo = yes; then
14432 LIBS_TERMCAP
="-lncurses"
14434 LIBS_TERMCAP
="-ltermcap"
14439 if test $ac_cv_search_tputs = -lterminfo; then
14441 LIBS_TERMCAP
="-lterminfo"
14443 LIBS_TERMCAP
="-ltermcap"
14450 ## hpux: Make sure we get select from libc rather than from libcurses
14451 ## because libcurses on HPUX 10.10 has a broken version of select.
14452 ## We used to use -lc -lcurses, but this may be cleaner.
14453 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14455 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14457 ## Must use system termcap, if we use any termcap. It does special things.
14458 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14461 TERMCAP_OBJ
=tparam.o
14462 if test $TERMINFO = yes; then
14464 $as_echo "#define TERMINFO 1" >>confdefs.h
14467 ## Default used to be -ltermcap. Add a case above if need something else.
14468 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14470 TERMCAP_OBJ
=terminfo.o
14476 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 #include <netinet/in.h>
14481 #include <arpa/nameser.h>
14482 #include <resolv.h>
14491 if ac_fn_c_try_link
"$LINENO"; then :
14496 rm -f core conftest.err conftest.
$ac_objext \
14497 conftest
$ac_exeext conftest.
$ac_ext
14498 if test "$have_res_init" = no
; then
14500 LIBS
="$LIBS -lresolv"
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14502 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <netinet/in.h>
14506 #include <arpa/nameser.h>
14507 #include <resolv.h>
14516 if ac_fn_c_try_link
"$LINENO"; then :
14521 rm -f core conftest.err conftest.
$ac_objext \
14522 conftest
$ac_exeext conftest.
$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14524 $as_echo "$have_res_init" >&6; }
14525 if test "$have_res_init" = yes ; then
14531 if test "$have_res_init" = yes; then
14533 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14537 # Do we need the Hesiod library to provide the support routines?
14539 if test "$with_hesiod" != no
; then
14540 # Don't set $LIBS here -- see comments above. FIXME which comments?
14541 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14542 if test "x$ac_cv_func_res_send" = xyes
; then :
14545 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14546 if test "x$ac_cv_func___res_send" = xyes
; then :
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14550 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14551 if ${ac_cv_lib_resolv_res_send+:} false
; then :
14552 $as_echo_n "(cached) " >&6
14554 ac_check_lib_save_LIBS
=$LIBS
14555 LIBS
="-lresolv $LIBS"
14556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14569 return res_send ();
14574 if ac_fn_c_try_link
"$LINENO"; then :
14575 ac_cv_lib_resolv_res_send
=yes
14577 ac_cv_lib_resolv_res_send
=no
14579 rm -f core conftest.err conftest.
$ac_objext \
14580 conftest
$ac_exeext conftest.
$ac_ext
14581 LIBS
=$ac_check_lib_save_LIBS
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14584 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14585 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14589 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14590 if ${ac_cv_lib_resolv___res_send+:} false
; then :
14591 $as_echo_n "(cached) " >&6
14593 ac_check_lib_save_LIBS
=$LIBS
14594 LIBS
="-lresolv $LIBS"
14595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14604 char __res_send ();
14608 return __res_send ();
14613 if ac_fn_c_try_link
"$LINENO"; then :
14614 ac_cv_lib_resolv___res_send
=yes
14616 ac_cv_lib_resolv___res_send
=no
14618 rm -f core conftest.err conftest.
$ac_objext \
14619 conftest
$ac_exeext conftest.
$ac_ext
14620 LIBS
=$ac_check_lib_save_LIBS
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14623 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14624 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
14634 if test "$resolv" = yes ; then
14639 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14640 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14644 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14645 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 ac_check_lib_save_LIBS
=$LIBS
14649 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14659 char hes_getmailhost ();
14663 return hes_getmailhost ();
14668 if ac_fn_c_try_link
"$LINENO"; then :
14669 ac_cv_lib_hesiod_hes_getmailhost
=yes
14671 ac_cv_lib_hesiod_hes_getmailhost
=no
14673 rm -f core conftest.err conftest.
$ac_objext \
14674 conftest
$ac_exeext conftest.
$ac_ext
14675 LIBS
=$ac_check_lib_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14678 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14679 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
14688 if test x
"$hesiod" = xyes
; then
14690 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14697 # Do we need libresolv (due to res_init or Hesiod)?
14698 if test "$resolv" = yes ; then
14700 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14708 # These tell us which Kerberos-related libraries to use.
14715 if test "${with_kerberos}" != no
; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14717 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14718 if ${ac_cv_lib_com_err_com_err+:} false
; then :
14719 $as_echo_n "(cached) " >&6
14721 ac_check_lib_save_LIBS
=$LIBS
14722 LIBS
="-lcom_err $LIBS"
14723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14726 /* Override any GCC internal prototype to avoid an error.
14727 Use char because int might match the return type of a GCC
14728 builtin and then its argument prototype would still apply. */
14741 if ac_fn_c_try_link
"$LINENO"; then :
14742 ac_cv_lib_com_err_com_err
=yes
14744 ac_cv_lib_com_err_com_err
=no
14746 rm -f core conftest.err conftest.
$ac_objext \
14747 conftest
$ac_exeext conftest.
$ac_ext
14748 LIBS
=$ac_check_lib_save_LIBS
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14751 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14752 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
14758 if test $have_com_err = yes; then
14759 COM_ERRLIB
=-lcom_err
14760 LIBS
="$COM_ERRLIB $LIBS"
14762 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14766 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14767 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
14768 $as_echo_n "(cached) " >&6
14770 ac_check_lib_save_LIBS
=$LIBS
14771 LIBS
="-lcrypto $LIBS"
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14775 /* Override any GCC internal prototype to avoid an error.
14776 Use char because int might match the return type of a GCC
14777 builtin and then its argument prototype would still apply. */
14781 char mit_des_cbc_encrypt ();
14785 return mit_des_cbc_encrypt ();
14790 if ac_fn_c_try_link
"$LINENO"; then :
14791 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14793 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14795 rm -f core conftest.err conftest.
$ac_objext \
14796 conftest
$ac_exeext conftest.
$ac_ext
14797 LIBS
=$ac_check_lib_save_LIBS
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14800 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14801 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
14807 if test $have_crypto = yes; then
14809 LIBS
="$CRYPTOLIB $LIBS"
14811 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14815 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14816 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
14817 $as_echo_n "(cached) " >&6
14819 ac_check_lib_save_LIBS
=$LIBS
14820 LIBS
="-lk5crypto $LIBS"
14821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14830 char mit_des_cbc_encrypt ();
14834 return mit_des_cbc_encrypt ();
14839 if ac_fn_c_try_link
"$LINENO"; then :
14840 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14842 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14844 rm -f core conftest.err conftest.
$ac_objext \
14845 conftest
$ac_exeext conftest.
$ac_ext
14846 LIBS
=$ac_check_lib_save_LIBS
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14849 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14850 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
14856 if test $have_k5crypto = yes; then
14857 CRYPTOLIB
=-lk5crypto
14858 LIBS
="$CRYPTOLIB $LIBS"
14860 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14864 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14865 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
14866 $as_echo_n "(cached) " >&6
14868 ac_check_lib_save_LIBS
=$LIBS
14869 LIBS
="-lkrb5 $LIBS"
14870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14879 char krb5_init_context ();
14883 return krb5_init_context ();
14888 if ac_fn_c_try_link
"$LINENO"; then :
14889 ac_cv_lib_krb5_krb5_init_context
=yes
14891 ac_cv_lib_krb5_krb5_init_context
=no
14893 rm -f core conftest.err conftest.
$ac_objext \
14894 conftest
$ac_exeext conftest.
$ac_ext
14895 LIBS
=$ac_check_lib_save_LIBS
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14898 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14899 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
14905 if test $have_krb5=yes; then
14907 LIBS
="$KRB5LIB $LIBS"
14909 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14912 if test "${with_kerberos5}" = no
; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14914 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14915 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
14916 $as_echo_n "(cached) " >&6
14918 ac_check_lib_save_LIBS
=$LIBS
14919 LIBS
="-ldes425 $LIBS"
14920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14929 char des_cbc_encrypt ();
14933 return des_cbc_encrypt ();
14938 if ac_fn_c_try_link
"$LINENO"; then :
14939 ac_cv_lib_des425_des_cbc_encrypt
=yes
14941 ac_cv_lib_des425_des_cbc_encrypt
=no
14943 rm -f core conftest.err conftest.
$ac_objext \
14944 conftest
$ac_exeext conftest.
$ac_ext
14945 LIBS
=$ac_check_lib_save_LIBS
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14948 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14949 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
14955 if test $have_des425 = yes; then
14957 LIBS
="$DESLIB $LIBS"
14959 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14963 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14964 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
14965 $as_echo_n "(cached) " >&6
14967 ac_check_lib_save_LIBS
=$LIBS
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14978 char des_cbc_encrypt ();
14982 return des_cbc_encrypt ();
14987 if ac_fn_c_try_link
"$LINENO"; then :
14988 ac_cv_lib_des_des_cbc_encrypt
=yes
14990 ac_cv_lib_des_des_cbc_encrypt
=no
14992 rm -f core conftest.err conftest.
$ac_objext \
14993 conftest
$ac_exeext conftest.
$ac_ext
14994 LIBS
=$ac_check_lib_save_LIBS
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14997 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14998 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
15004 if test $have_des = yes; then
15006 LIBS
="$DESLIB $LIBS"
15008 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15013 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15014 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
15015 $as_echo_n "(cached) " >&6
15017 ac_check_lib_save_LIBS
=$LIBS
15018 LIBS
="-lkrb4 $LIBS"
15019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 /* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
15028 char krb_get_cred ();
15032 return krb_get_cred ();
15037 if ac_fn_c_try_link
"$LINENO"; then :
15038 ac_cv_lib_krb4_krb_get_cred
=yes
15040 ac_cv_lib_krb4_krb_get_cred
=no
15042 rm -f core conftest.err conftest.
$ac_objext \
15043 conftest
$ac_exeext conftest.
$ac_ext
15044 LIBS
=$ac_check_lib_save_LIBS
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15047 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15048 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
15054 if test $have_krb4 = yes; then
15056 LIBS
="$KRB4LIB $LIBS"
15058 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15062 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15063 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
15064 $as_echo_n "(cached) " >&6
15066 ac_check_lib_save_LIBS
=$LIBS
15068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15071 /* Override any GCC internal prototype to avoid an error.
15072 Use char because int might match the return type of a GCC
15073 builtin and then its argument prototype would still apply. */
15077 char krb_get_cred ();
15081 return krb_get_cred ();
15086 if ac_fn_c_try_link
"$LINENO"; then :
15087 ac_cv_lib_krb_krb_get_cred
=yes
15089 ac_cv_lib_krb_krb_get_cred
=no
15091 rm -f core conftest.err conftest.
$ac_objext \
15092 conftest
$ac_exeext conftest.
$ac_ext
15093 LIBS
=$ac_check_lib_save_LIBS
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15096 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15097 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
15103 if test $have_krb = yes; then
15105 LIBS
="$KRB4LIB $LIBS"
15107 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15113 if test "${with_kerberos5}" != no
; then
15114 for ac_header
in krb5.h
15116 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15117 if test "x$ac_cv_header_krb5_h" = xyes
; then :
15118 cat >>confdefs.h
<<_ACEOF
15119 #define HAVE_KRB5_H 1
15121 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15123 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
15125 cat >>confdefs.h
<<_ACEOF
15126 #define HAVE_KRB5_ERROR_TEXT 1
15131 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15133 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
15135 cat >>confdefs.h
<<_ACEOF
15136 #define HAVE_KRB5_ERROR_E_TEXT 1
15147 for ac_header
in des.h
15149 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15150 if test "x$ac_cv_header_des_h" = xyes
; then :
15151 cat >>confdefs.h
<<_ACEOF
15152 #define HAVE_DES_H 1
15156 for ac_header
in kerberosIV
/des.h
15158 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15159 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
15160 cat >>confdefs.h
<<_ACEOF
15161 #define HAVE_KERBEROSIV_DES_H 1
15165 for ac_header
in kerberos
/des.h
15167 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15168 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
15169 cat >>confdefs.h
<<_ACEOF
15170 #define HAVE_KERBEROS_DES_H 1
15185 for ac_header
in krb.h
15187 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15188 if test "x$ac_cv_header_krb_h" = xyes
; then :
15189 cat >>confdefs.h
<<_ACEOF
15190 #define HAVE_KRB_H 1
15194 for ac_header
in kerberosIV
/krb.h
15196 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
15198 cat >>confdefs.h
<<_ACEOF
15199 #define HAVE_KERBEROSIV_KRB_H 1
15203 for ac_header
in kerberos
/krb.h
15205 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15206 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
15207 cat >>confdefs.h
<<_ACEOF
15208 #define HAVE_KERBEROS_KRB_H 1
15224 for ac_header
in com_err.h
15226 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15227 if test "x$ac_cv_header_com_err_h" = xyes
; then :
15228 cat >>confdefs.h
<<_ACEOF
15229 #define HAVE_COM_ERR_H 1
15244 # Solaris requires -lintl if you want strerror (which calls dgettext)
15245 # to return localized messages.
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15247 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15248 if ${ac_cv_lib_intl_dgettext+:} false
; then :
15249 $as_echo_n "(cached) " >&6
15251 ac_check_lib_save_LIBS
=$LIBS
15252 LIBS
="-lintl $LIBS"
15253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15256 /* Override any GCC internal prototype to avoid an error.
15257 Use char because int might match the return type of a GCC
15258 builtin and then its argument prototype would still apply. */
15266 return dgettext ();
15271 if ac_fn_c_try_link
"$LINENO"; then :
15272 ac_cv_lib_intl_dgettext
=yes
15274 ac_cv_lib_intl_dgettext
=no
15276 rm -f core conftest.err conftest.
$ac_objext \
15277 conftest
$ac_exeext conftest.
$ac_ext
15278 LIBS
=$ac_check_lib_save_LIBS
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15281 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15282 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
15283 cat >>confdefs.h
<<_ACEOF
15284 #define HAVE_LIBINTL 1
15287 LIBS
="-lintl $LIBS"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15293 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15294 if ${emacs_cv_localtime_cache+:} false
; then :
15295 $as_echo_n "(cached) " >&6
15297 if test x
$ac_cv_func_tzset = xyes
; then
15298 if test "$cross_compiling" = yes; then :
15299 # If we have tzset, assume the worst when cross-compiling.
15300 emacs_cv_localtime_cache
=yes
15302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15305 char TZ_GMT0[] = "TZ=GMT0";
15306 char TZ_PST8[] = "TZ=PST8";
15309 time_t now = time ((time_t *) 0);
15310 int hour_GMT0, hour_unset;
15311 if (putenv (TZ_GMT0) != 0)
15313 hour_GMT0 = localtime (&now)->tm_hour;
15315 hour_unset = localtime (&now)->tm_hour;
15316 if (putenv (TZ_PST8) != 0)
15318 if (localtime (&now)->tm_hour == hour_GMT0)
15321 if (localtime (&now)->tm_hour != hour_unset)
15326 if ac_fn_c_try_run
"$LINENO"; then :
15327 emacs_cv_localtime_cache
=no
15329 emacs_cv_localtime_cache
=yes
15331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15336 # If we lack tzset, report that localtime does not cache TZ,
15337 # since we can't invalidate the cache if we don't have tzset.
15338 emacs_cv_localtime_cache
=no
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15342 $as_echo "$emacs_cv_localtime_cache" >&6; }
15343 if test $emacs_cv_localtime_cache = yes; then
15345 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15349 if test "x$HAVE_TIMEVAL" = xyes
; then
15350 for ac_func
in gettimeofday
15352 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15353 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
15354 cat >>confdefs.h
<<_ACEOF
15355 #define HAVE_GETTIMEOFDAY 1
15361 if test $ac_cv_func_gettimeofday = yes; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15363 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15364 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
15365 $as_echo_n "(cached) " >&6
15367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15370 #ifdef TIME_WITH_SYS_TIME
15371 #include <sys/time.h>
15374 #ifdef HAVE_SYS_TIME_H
15375 #include <sys/time.h>
15383 struct timeval time;
15384 gettimeofday (&time, 0);
15389 if ac_fn_c_try_compile
"$LINENO"; then :
15390 emacs_cv_gettimeofday_two_arguments
=yes
15392 emacs_cv_gettimeofday_two_arguments
=no
15394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15397 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15398 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15400 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15407 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15408 if test "x$ac_cv_func_socket" = xyes
; then :
15414 if test $ok_so_far = yes; then
15415 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15416 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
15424 if test $ok_so_far = yes; then
15425 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15426 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
15434 if test $ok_so_far = yes; then
15436 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15440 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15442 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15447 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15448 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15450 $as_echo "yes" >&6; }
15452 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456 $as_echo "no" >&6; }
15459 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15460 if test "x$ac_cv_type_pid_t" = xyes
; then :
15464 cat >>confdefs.h
<<_ACEOF
15470 for ac_header
in vfork.h
15472 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_vfork_h" = xyes
; then :
15474 cat >>confdefs.h
<<_ACEOF
15475 #define HAVE_VFORK_H 1
15482 for ac_func
in fork vfork
15484 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15485 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15486 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15487 cat >>confdefs.h
<<_ACEOF
15488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15494 if test "x$ac_cv_func_fork" = xyes
; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15496 $as_echo_n "checking for working fork... " >&6; }
15497 if ${ac_cv_func_fork_works+:} false
; then :
15498 $as_echo_n "(cached) " >&6
15500 if test "$cross_compiling" = yes; then :
15501 ac_cv_func_fork_works
=cross
15503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 $ac_includes_default
15510 /* By Ruediger Kuhlmann. */
15511 return fork () < 0;
15517 if ac_fn_c_try_run
"$LINENO"; then :
15518 ac_cv_func_fork_works
=yes
15520 ac_cv_func_fork_works
=no
15522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15528 $as_echo "$ac_cv_func_fork_works" >&6; }
15531 ac_cv_func_fork_works
=$ac_cv_func_fork
15533 if test "x$ac_cv_func_fork_works" = xcross
; then
15535 *-*-amigaos* |
*-*-msdosdjgpp*)
15536 # Override, as these systems have only a dummy fork() stub
15537 ac_cv_func_fork_works
=no
15540 ac_cv_func_fork_works
=yes
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15544 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15546 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15547 if test "x$ac_cv_func_vfork" = xyes
; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15549 $as_echo_n "checking for working vfork... " >&6; }
15550 if ${ac_cv_func_vfork_works+:} false
; then :
15551 $as_echo_n "(cached) " >&6
15553 if test "$cross_compiling" = yes; then :
15554 ac_cv_func_vfork_works
=cross
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 /* Thanks to Paul Eggert for this test. */
15559 $ac_includes_default
15560 #include <sys/wait.h>
15561 #ifdef HAVE_VFORK_H
15562 # include <vfork.h>
15564 /* On some sparc systems, changes by the child to local and incoming
15565 argument registers are propagated back to the parent. The compiler
15566 is told about this with #include <vfork.h>, but some compilers
15567 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15568 static variable whose address is put into a register that is
15569 clobbered by the vfork. */
15572 sparc_address_test (int arg)
15574 sparc_address_test (arg) int arg;
15577 static pid_t child;
15595 pid_t parent = getpid ();
15598 sparc_address_test (0);
15603 /* Here is another test for sparc vfork register problems. This
15604 test uses lots of local variables, at least as many local
15605 variables as main has allocated so far including compiler
15606 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15607 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15608 reuse the register of parent for one of the local variables,
15609 since it will think that parent can't possibly be used any more
15610 in this routine. Assigning to the local variable will thus
15611 munge parent in the parent process. */
15613 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15614 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15615 /* Convince the compiler that p..p7 are live; otherwise, it might
15616 use the same hardware register for all 8 local variables. */
15617 if (p != p1 || p != p2 || p != p3 || p != p4
15618 || p != p5 || p != p6 || p != p7)
15621 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15622 from child file descriptors. If the child closes a descriptor
15623 before it execs or exits, this munges the parent's descriptor
15624 as well. Test for this by closing stdout in the child. */
15625 _exit(close(fileno(stdout)) != 0);
15630 while (wait(&status) != child)
15633 /* Was there some problem with vforking? */
15636 /* Did the child fail? (This shouldn't happen.) */
15639 /* Did the vfork/compiler bug occur? */
15640 || parent != getpid()
15642 /* Did the file descriptor bug occur? */
15643 || fstat(fileno(stdout), &st) != 0
15648 if ac_fn_c_try_run
"$LINENO"; then :
15649 ac_cv_func_vfork_works
=yes
15651 ac_cv_func_vfork_works
=no
15653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15659 $as_echo "$ac_cv_func_vfork_works" >&6; }
15662 if test "x$ac_cv_func_fork_works" = xcross
; then
15663 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15665 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15668 if test "x$ac_cv_func_vfork_works" = xyes
; then
15670 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15674 $as_echo "#define vfork fork" >>confdefs.h
15677 if test "x$ac_cv_func_fork_works" = xyes
; then
15679 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15684 for ac_func
in snprintf
15686 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15687 if test "x$ac_cv_func_snprintf" = xyes
; then :
15688 cat >>confdefs.h
<<_ACEOF
15689 #define HAVE_SNPRINTF 1
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15697 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15698 if ${emacs_cv_langinfo_codeset+:} false
; then :
15699 $as_echo_n "(cached) " >&6
15701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <langinfo.h>
15707 char* cs = nl_langinfo(CODESET);
15712 if ac_fn_c_try_link
"$LINENO"; then :
15713 emacs_cv_langinfo_codeset
=yes
15715 emacs_cv_langinfo_codeset
=no
15717 rm -f core conftest.err conftest.
$ac_objext \
15718 conftest
$ac_exeext conftest.
$ac_ext
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15722 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15723 if test $emacs_cv_langinfo_codeset = yes; then
15725 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15730 $as_echo_n "checking for mbstate_t... " >&6; }
15731 if ${ac_cv_type_mbstate_t+:} false
; then :
15732 $as_echo_n "(cached) " >&6
15734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 $ac_includes_default
15737 # include <wchar.h>
15741 mbstate_t x; return sizeof x;
15746 if ac_fn_c_try_compile
"$LINENO"; then :
15747 ac_cv_type_mbstate_t
=yes
15749 ac_cv_type_mbstate_t
=no
15751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15754 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15755 if test $ac_cv_type_mbstate_t = yes; then
15757 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15761 $as_echo "#define mbstate_t int" >>confdefs.h
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15766 $as_echo_n "checking for C restricted array declarations... " >&6; }
15767 if ${emacs_cv_c_restrict_arr+:} false
; then :
15768 $as_echo_n "(cached) " >&6
15770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 void fred (int x[__restrict]);
15781 if ac_fn_c_try_compile
"$LINENO"; then :
15782 emacs_cv_c_restrict_arr
=yes
15784 emacs_cv_c_restrict_arr
=no
15786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15789 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15790 if test "$emacs_cv_c_restrict_arr" = yes; then
15792 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15797 # Set up the CFLAGS for real compilation, so we can substitute it.
15798 CFLAGS
="$REAL_CFLAGS"
15799 CPPFLAGS
="$REAL_CPPFLAGS"
15801 ## Hack to detect a buggy GCC version.
15802 if test "x$GCC" = xyes \
15803 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15804 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15805 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15806 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15809 version
=$PACKAGE_VERSION
15811 ### Specify what sort of things we'll be editing into Makefile and config.h.
15812 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15836 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15837 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15838 ## end of LIBX_BASE, but nothing ever set it.
15843 ## Used in lwlib/Makefile.in.
15845 if test -n "${machfile}"; then
15846 M_FILE
="\$(srcdir)/${machfile}"
15850 S_FILE
="\$(srcdir)/${opsysfile}"
15861 cat >>confdefs.h
<<_ACEOF
15862 #define EMACS_CONFIGURATION "${canonical}"
15866 cat >>confdefs.h
<<_ACEOF
15867 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15870 if test -n "$machfile"; then
15872 cat >>confdefs.h
<<_ACEOF
15873 #define config_machfile "${machfile}"
15878 cat >>confdefs.h
<<_ACEOF
15879 #define config_opsysfile "${opsysfile}"
15886 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15888 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15891 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15893 if test "$HAVE_XFT" = "yes"; then
15894 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15895 elif test "$HAVE_FREETYPE" = "yes"; then
15896 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15906 if test "${USE_X_TOOLKIT}" != "none" ; then
15907 WIDGET_OBJ
=widget.o
15909 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15911 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15913 $as_echo "#define USE_LUCID 1" >>confdefs.h
15915 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15917 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15922 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15923 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15927 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15928 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15929 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15933 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15934 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15937 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15943 case "$USE_X_TOOLKIT" in
15944 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15945 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15946 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15950 if test "$USE_X_TOOLKIT" = "none"; then
15951 LIBXT_OTHER
="\$(LIBXSM)"
15952 OLDXMENU_TARGET
="really-oldXMenu"
15954 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15955 OLDXMENU_TARGET
="really-lwlib"
15959 ## The X Menu stuff is present in the X10 distribution, but missing
15960 ## from X11. If we have X10, just use the installed library;
15961 ## otherwise, use our own copy.
15962 if test "${HAVE_X11}" = "yes" ; then
15964 $as_echo "#define HAVE_X11 1" >>confdefs.h
15967 if test "$USE_X_TOOLKIT" = "none"; then
15968 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15970 OLDXMENU
="\${lwlibdir}/liblw.a"
15972 LIBXMENU
="\$(OLDXMENU)"
15973 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15974 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15976 ## For a syntactically valid Makefile; not actually used for anything.
15977 ## See comments in src/Makefile.in.
15979 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15980 if test "${HAVE_X_WINDOWS}" = "yes"; then
15989 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16002 if test "${HAVE_MENUS}" = "yes" ; then
16004 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16008 if test "${GNU_MALLOC}" = "yes" ; then
16010 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16015 if test "${REL_ALLOC}" = "yes" ; then
16017 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16020 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16024 if test "$opsys" = "cygwin"; then
16025 CYGWIN_OBJ
="sheap.o"
16026 ## Cygwin differs because of its unexec().
16028 POST_ALLOC_OBJ
=lastfile.o
16031 PRE_ALLOC_OBJ
=lastfile.o
16038 # Configure gnulib here, now that we know LIBS.
16050 LIBC_FATAL_STDERR_
=1
16051 export LIBC_FATAL_STDERR_
16054 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16055 # for constant arguments. Useless!
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16057 $as_echo_n "checking for working alloca.h... " >&6; }
16058 if ${ac_cv_working_alloca_h+:} false
; then :
16059 $as_echo_n "(cached) " >&6
16061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #include <alloca.h>
16067 char *p = (char *) alloca (2 * sizeof (int));
16073 if ac_fn_c_try_link
"$LINENO"; then :
16074 ac_cv_working_alloca_h
=yes
16076 ac_cv_working_alloca_h
=no
16078 rm -f core conftest.err conftest.
$ac_objext \
16079 conftest
$ac_exeext conftest.
$ac_ext
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16082 $as_echo "$ac_cv_working_alloca_h" >&6; }
16083 if test $ac_cv_working_alloca_h = yes; then
16085 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16090 $as_echo_n "checking for alloca... " >&6; }
16091 if ${ac_cv_func_alloca_works+:} false
; then :
16092 $as_echo_n "(cached) " >&6
16094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16097 # define alloca __builtin_alloca
16100 # include <malloc.h>
16101 # define alloca _alloca
16103 # ifdef HAVE_ALLOCA_H
16104 # include <alloca.h>
16109 # ifndef alloca /* predefined by HP cc +Olibcalls */
16110 void *alloca (size_t);
16120 char *p = (char *) alloca (1);
16126 if ac_fn_c_try_link
"$LINENO"; then :
16127 ac_cv_func_alloca_works
=yes
16129 ac_cv_func_alloca_works
=no
16131 rm -f core conftest.err conftest.
$ac_objext \
16132 conftest
$ac_exeext conftest.
$ac_ext
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16135 $as_echo "$ac_cv_func_alloca_works" >&6; }
16137 if test $ac_cv_func_alloca_works = yes; then
16139 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16143 # that cause trouble. Some versions do not even contain alloca or
16144 # contain a buggy version. If you still want to use their alloca,
16145 # use ar to extract alloca.o from them instead of compiling alloca.c.
16151 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16153 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16157 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16158 if ${ac_cv_os_cray+:} false
; then :
16159 $as_echo_n "(cached) " >&6
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #if defined CRAY && ! defined CRAY2
16170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16171 $EGREP "webecray" >/dev
/null
2>&1; then :
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16180 $as_echo "$ac_cv_os_cray" >&6; }
16181 if test $ac_cv_os_cray = yes; then
16182 for ac_func
in _getb67 GETB67 getb67
; do
16183 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16184 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16185 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16187 cat >>confdefs.h
<<_ACEOF
16188 #define CRAY_STACKSEG_END $ac_func
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16198 $as_echo_n "checking stack direction for C alloca... " >&6; }
16199 if ${ac_cv_c_stack_direction+:} false
; then :
16200 $as_echo_n "(cached) " >&6
16202 if test "$cross_compiling" = yes; then :
16203 ac_cv_c_stack_direction
=0
16205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 $ac_includes_default
16209 find_stack_direction (int *addr, int depth)
16211 int dir, dummy = 0;
16214 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16215 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16216 return dir + dummy;
16220 main (int argc, char **argv)
16222 return find_stack_direction (0, argc + !argv + 20) < 0;
16225 if ac_fn_c_try_run
"$LINENO"; then :
16226 ac_cv_c_stack_direction
=1
16228 ac_cv_c_stack_direction
=-1
16230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16236 $as_echo "$ac_cv_c_stack_direction" >&6; }
16237 cat >>confdefs.h
<<_ACEOF
16238 #define STACK_DIRECTION $ac_cv_c_stack_direction
16247 for ac_func
in $ac_func_list
16249 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16250 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16251 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16252 cat >>confdefs.h
<<_ACEOF
16253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16263 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16264 if ${ac_cv_c_bigendian+:} false
; then :
16265 $as_echo_n "(cached) " >&6
16267 ac_cv_c_bigendian
=unknown
16268 # See if we're dealing with a universal compiler.
16269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271 #ifndef __APPLE_CC__
16272 not a universal capable compiler
16277 if ac_fn_c_try_compile
"$LINENO"; then :
16279 # Check for potential -arch flags. It is not universal unless
16280 # there are at least two -arch flags with different values.
16283 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16284 if test -n "$ac_prev"; then
16286 i?
86 | x86_64 | ppc | ppc64
)
16287 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16290 ac_cv_c_bigendian
=universal
16296 elif test "x$ac_word" = "x-arch"; then
16301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16302 if test $ac_cv_c_bigendian = unknown
; then
16303 # See if sys/param.h defines the BYTE_ORDER macro.
16304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <sys/types.h>
16307 #include <sys/param.h>
16312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16313 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16315 bogus endian macros
16322 if ac_fn_c_try_compile
"$LINENO"; then :
16323 # It does; now see whether it defined to BIG_ENDIAN or not.
16324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 #include <sys/types.h>
16327 #include <sys/param.h>
16332 #if BYTE_ORDER != BIG_ENDIAN
16340 if ac_fn_c_try_compile
"$LINENO"; then :
16341 ac_cv_c_bigendian
=yes
16343 ac_cv_c_bigendian
=no
16345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16349 if test $ac_cv_c_bigendian = unknown
; then
16350 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353 #include <limits.h>
16358 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16359 bogus endian macros
16366 if ac_fn_c_try_compile
"$LINENO"; then :
16367 # It does; now see whether it defined to _BIG_ENDIAN or not.
16368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 #include <limits.h>
16375 #ifndef _BIG_ENDIAN
16383 if ac_fn_c_try_compile
"$LINENO"; then :
16384 ac_cv_c_bigendian
=yes
16386 ac_cv_c_bigendian
=no
16388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16392 if test $ac_cv_c_bigendian = unknown
; then
16393 # Compile a test program.
16394 if test "$cross_compiling" = yes; then :
16395 # Try to guess by grepping values from an object file.
16396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 short int ascii_mm[] =
16399 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16400 short int ascii_ii[] =
16401 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16402 int use_ascii (int i) {
16403 return ascii_mm[i] + ascii_ii[i];
16405 short int ebcdic_ii[] =
16406 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16407 short int ebcdic_mm[] =
16408 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16409 int use_ebcdic (int i) {
16410 return ebcdic_mm[i] + ebcdic_ii[i];
16417 return use_ascii (foo) == use_ebcdic (foo);
16422 if ac_fn_c_try_compile
"$LINENO"; then :
16423 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16424 ac_cv_c_bigendian
=yes
16426 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16427 if test "$ac_cv_c_bigendian" = unknown
; then
16428 ac_cv_c_bigendian
=no
16430 # finding both strings is unlikely to happen, but who knows?
16431 ac_cv_c_bigendian
=unknown
16435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 $ac_includes_default
16444 /* Are we little or big endian? From Harbison&Steele. */
16448 char c[sizeof (long int)];
16451 return u.c[sizeof (long int) - 1] == 1;
16457 if ac_fn_c_try_run
"$LINENO"; then :
16458 ac_cv_c_bigendian
=no
16460 ac_cv_c_bigendian
=yes
16462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16469 $as_echo "$ac_cv_c_bigendian" >&6; }
16470 case $ac_cv_c_bigendian in #(
16472 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16478 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16482 as_fn_error $?
"unknown endianness
16483 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16488 $as_echo_n "checking for inline... " >&6; }
16489 if ${ac_cv_c_inline+:} false
; then :
16490 $as_echo_n "(cached) " >&6
16493 for ac_kw
in inline __inline__ __inline
; do
16494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 #ifndef __cplusplus
16498 static $ac_kw foo_t static_foo () {return 0; }
16499 $ac_kw foo_t foo () {return 0; }
16503 if ac_fn_c_try_compile
"$LINENO"; then :
16504 ac_cv_c_inline
=$ac_kw
16506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16507 test "$ac_cv_c_inline" != no
&& break
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16512 $as_echo "$ac_cv_c_inline" >&6; }
16514 case $ac_cv_c_inline in
16517 case $ac_cv_c_inline in
16519 *) ac_val
=$ac_cv_c_inline;;
16521 cat >>confdefs.h
<<_ACEOF
16522 #ifndef __cplusplus
16523 #define inline $ac_val
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16531 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16532 if ${gl_cv_func_c99_strtold+:} false
; then :
16533 $as_echo_n "(cached) " >&6
16535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 /* On HP-UX before 11.23, strtold returns a struct instead of
16538 long double. Reject implementations like that, by requiring
16539 compatibility with the C99 prototype. */
16540 #include <stdlib.h>
16541 static long double (*p) (char const *, char **) = strtold;
16543 test (char const *nptr, char **endptr)
16546 r = strtold (nptr, endptr);
16552 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16557 if ac_fn_c_try_link
"$LINENO"; then :
16558 gl_cv_func_c99_strtold
=yes
16560 gl_cv_func_c99_strtold
=no
16562 rm -f core conftest.err conftest.
$ac_objext \
16563 conftest
$ac_exeext conftest.
$ac_ext
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16566 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16567 if test $gl_cv_func_c99_strtold = yes; then
16569 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16579 GNULIB_EUIDACCESS
=0;
16580 GNULIB_FACCESSAT
=0;
16584 GNULIB_FTRUNCATE
=0;
16586 GNULIB_GETDOMAINNAME
=0;
16587 GNULIB_GETDTABLESIZE
=0;
16588 GNULIB_GETGROUPS
=0;
16589 GNULIB_GETHOSTNAME
=0;
16591 GNULIB_GETLOGIN_R
=0;
16592 GNULIB_GETPAGESIZE
=0;
16593 GNULIB_GETUSERSHELL
=0;
16594 GNULIB_GROUP_MEMBER
=0;
16605 GNULIB_READLINKAT
=0;
16609 GNULIB_SYMLINKAT
=0;
16610 GNULIB_TTYNAME_R
=0;
16611 GNULIB_UNISTD_H_GETOPT
=0;
16612 GNULIB_UNISTD_H_NONBLOCKING
=0;
16613 GNULIB_UNISTD_H_SIGPIPE
=0;
16627 HAVE_GETDTABLESIZE
=1;
16629 HAVE_GETHOSTNAME
=1;
16631 HAVE_GETPAGESIZE
=1;
16632 HAVE_GROUP_MEMBER
=1;
16647 HAVE_DECL_ENVIRON
=1;
16648 HAVE_DECL_FCHDIR
=1;
16649 HAVE_DECL_GETDOMAINNAME
=1;
16650 HAVE_DECL_GETLOGIN_R
=1;
16651 HAVE_DECL_GETPAGESIZE
=1;
16652 HAVE_DECL_GETUSERSHELL
=1;
16653 HAVE_DECL_TTYNAME_R
=1;
16655 HAVE_SYS_PARAM_H
=0;
16660 REPLACE_FCHOWNAT
=0;
16662 REPLACE_GETDOMAINNAME
=0;
16663 REPLACE_GETLOGIN_R
=0;
16664 REPLACE_GETGROUPS
=0;
16665 REPLACE_GETPAGESIZE
=0;
16673 REPLACE_READLINK
=0;
16677 REPLACE_TTYNAME_R
=0;
16679 REPLACE_UNLINKAT
=0;
16682 UNISTD_H_HAVE_WINSOCK2_H
=0;
16683 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16687 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16688 if ${ac_cv_struct_st_dm_mode+:} false
; then :
16689 $as_echo_n "(cached) " >&6
16691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16694 #include <sys/types.h>
16695 #include <sys/stat.h>
16699 struct stat s; s.st_dm_mode;
16704 if ac_fn_c_try_compile
"$LINENO"; then :
16705 ac_cv_struct_st_dm_mode
=yes
16707 ac_cv_struct_st_dm_mode
=no
16709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16712 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16714 if test $ac_cv_struct_st_dm_mode = yes; then
16716 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16721 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16722 if test "x$ac_cv_have_decl_strmode" = xyes
; then :
16728 cat >>confdefs.h
<<_ACEOF
16729 #define HAVE_DECL_STRMODE $ac_have_decl
16735 GNULIB_CALLOC_POSIX
=0;
16736 GNULIB_CANONICALIZE_FILE_NAME
=0;
16737 GNULIB_GETLOADAVG
=0;
16738 GNULIB_GETSUBOPT
=0;
16740 GNULIB_MALLOC_POSIX
=0;
16744 GNULIB_MKOSTEMPS
=0;
16750 GNULIB_REALLOC_POSIX
=0;
16757 GNULIB_SYSTEM_POSIX
=0;
16763 HAVE_CANONICALIZE_FILE_NAME
=1;
16764 HAVE_DECL_GETLOADAVG
=1;
16778 HAVE_DECL_SETENV
=1;
16782 HAVE_STRUCT_RANDOM_DATA
=1;
16783 HAVE_SYS_LOADAVG_H
=0;
16785 HAVE_DECL_UNSETENV
=1;
16787 REPLACE_CANONICALIZE_FILE_NAME
=0;
16793 REPLACE_REALPATH
=0;
16796 REPLACE_UNSETENV
=0;
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16802 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16803 if ${gl_cv_have_include_next+:} false
; then :
16804 $as_echo_n "(cached) " >&6
16806 rm -rf conftestd1a conftestd1b conftestd2
16807 mkdir conftestd1a conftestd1b conftestd2
16808 cat <<EOF > conftestd1a/conftest.h
16809 #define DEFINED_IN_CONFTESTD1
16810 #include_next <conftest.h>
16811 #ifdef DEFINED_IN_CONFTESTD2
16814 #error "include_next doesn't work"
16817 cat <<EOF > conftestd1b/conftest.h
16818 #define DEFINED_IN_CONFTESTD1
16820 #include_next <conftest.h>
16821 #ifdef DEFINED_IN_CONFTESTD2
16824 #error "include_next doesn't work"
16827 cat <<EOF > conftestd2/conftest.h
16828 #ifndef DEFINED_IN_CONFTESTD1
16829 #error "include_next test doesn't work"
16831 #define DEFINED_IN_CONFTESTD2
16833 gl_save_CPPFLAGS
="$CPPFLAGS"
16834 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837 #include <conftest.h>
16839 if ac_fn_c_try_compile
"$LINENO"; then :
16840 gl_cv_have_include_next
=yes
16842 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 #include <conftest.h>
16847 if ac_fn_c_try_compile
"$LINENO"; then :
16848 gl_cv_have_include_next
=buggy
16850 gl_cv_have_include_next
=no
16852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16856 CPPFLAGS
="$gl_save_CPPFLAGS"
16857 rm -rf conftestd1a conftestd1b conftestd2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16861 $as_echo "$gl_cv_have_include_next" >&6; }
16862 PRAGMA_SYSTEM_HEADER
=
16863 if test $gl_cv_have_include_next = yes; then
16864 INCLUDE_NEXT
=include_next
16865 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16866 if test -n "$GCC"; then
16867 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16870 if test $gl_cv_have_include_next = buggy
; then
16871 INCLUDE_NEXT
=include
16872 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16874 INCLUDE_NEXT
=include
16875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16882 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16883 if ${gl_cv_pragma_columns+:} false
; then :
16884 $as_echo_n "(cached) " >&6
16886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16895 $EGREP "choke me" >/dev
/null
2>&1; then :
16896 gl_cv_pragma_columns
=yes
16898 gl_cv_pragma_columns
=no
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16905 $as_echo "$gl_cv_pragma_columns" >&6; }
16906 if test $gl_cv_pragma_columns = yes; then
16907 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16928 if test $gl_cv_have_include_next = yes; then
16929 gl_cv_next_getopt_h
='<'getopt.h
'>'
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16932 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16933 if ${gl_cv_next_getopt_h+:} false
; then :
16934 $as_echo_n "(cached) " >&6
16937 if test $ac_cv_header_getopt_h = yes; then
16940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 #include <getopt.h>
16946 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16947 *) gl_absname_cpp
="$ac_cpp" ;;
16949 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16950 sed -n '\#/getopt.h#{
16951 s#.*"\(.*/getopt.h\)".*#\1#
16957 gl_cv_next_getopt_h
='<'getopt.h
'>'
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16963 $as_echo "$gl_cv_next_getopt_h" >&6; }
16965 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16967 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16969 gl_next_as_first_directive
='<'getopt.h
'>'
16971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16972 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16974 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16979 if test $ac_cv_header_getopt_h = yes; then
16988 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16989 for ac_header
in getopt.h
16991 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16992 if test "x$ac_cv_header_getopt_h" = xyes
; then :
16993 cat >>confdefs.h
<<_ACEOF
16994 #define HAVE_GETOPT_H 1
16998 gl_replace_getopt
=yes
17005 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17006 for ac_func
in getopt_long_only
17008 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17009 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
17010 cat >>confdefs.h
<<_ACEOF
17011 #define HAVE_GETOPT_LONG_ONLY 1
17015 gl_replace_getopt
=yes
17021 if test -z "$gl_replace_getopt"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17023 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17024 if ${gl_cv_func_getopt_posix+:} false
; then :
17025 $as_echo_n "(cached) " >&6
17028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 #include <unistd.h>
17034 int *p = &optreset; return optreset;
17039 if ac_fn_c_try_link
"$LINENO"; then :
17042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <getopt.h>
17048 return !getopt_clip;
17053 if ac_fn_c_try_compile
"$LINENO"; then :
17058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17060 rm -f core conftest.err conftest.
$ac_objext \
17061 conftest
$ac_exeext conftest.
$ac_ext
17063 gl_save_CPPFLAGS
=$CPPFLAGS
17064 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17065 if test "$cross_compiling" = yes; then :
17067 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17068 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17069 *) gl_cv_func_getopt_posix
="guessing yes";;
17073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17076 #include <unistd.h>
17077 #include <stdlib.h>
17078 #include <string.h>
17084 static char program[] = "program";
17085 static char a[] = "-a";
17086 static char foo[] = "foo";
17087 static char bar[] = "bar";
17088 char *argv[] = { program, a, foo, bar, NULL };
17091 optind = OPTIND_MIN;
17094 c = getopt (4, argv, "ab");
17097 c = getopt (4, argv, "ab");
17100 if (!(optind == 2))
17103 /* Some internal state exists at this point. */
17105 static char program[] = "program";
17106 static char donald[] = "donald";
17107 static char p[] = "-p";
17108 static char billy[] = "billy";
17109 static char duck[] = "duck";
17110 static char a[] = "-a";
17111 static char bar[] = "bar";
17112 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17115 optind = OPTIND_MIN;
17118 c = getopt (7, argv, "+abp:q:");
17121 if (!(strcmp (argv[0], "program") == 0))
17123 if (!(strcmp (argv[1], "donald") == 0))
17125 if (!(strcmp (argv[2], "-p") == 0))
17127 if (!(strcmp (argv[3], "billy") == 0))
17129 if (!(strcmp (argv[4], "duck") == 0))
17131 if (!(strcmp (argv[5], "-a") == 0))
17133 if (!(strcmp (argv[6], "bar") == 0))
17135 if (!(optind == 1))
17138 /* Detect MacOS 10.5, AIX 7.1 bug. */
17140 static char program[] = "program";
17141 static char ab[] = "-ab";
17142 char *argv[3] = { program, ab, NULL };
17143 optind = OPTIND_MIN;
17145 if (getopt (2, argv, "ab:") != 'a')
17147 if (getopt (2, argv, "ab:") != '?')
17159 if ac_fn_c_try_run
"$LINENO"; then :
17160 gl_cv_func_getopt_posix
=yes
17162 gl_cv_func_getopt_posix
=no
17164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17168 CPPFLAGS
=$gl_save_CPPFLAGS
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17172 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17173 case "$gl_cv_func_getopt_posix" in
17174 *no
) gl_replace_getopt
=yes ;;
17178 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17180 $as_echo_n "checking for working GNU getopt function... " >&6; }
17181 if ${gl_cv_func_getopt_gnu+:} false
; then :
17182 $as_echo_n "(cached) " >&6
17184 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17185 # optstring is necessary for programs like m4 that have POSIX-mandated
17186 # semantics for supporting options interspersed with files.
17187 # Also, since getopt_long is a GNU extension, we require optind=0.
17188 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17189 # so take care to revert to the correct (non-)export state.
17190 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17191 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17192 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17193 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17194 *) gl_had_POSIXLY_CORRECT
= ;;
17197 export POSIXLY_CORRECT
17198 if test "$cross_compiling" = yes; then :
17199 case $host_os:$ac_cv_have_decl_optreset in
17200 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17201 *:yes) gl_cv_func_getopt_gnu
=no
;;
17202 *) gl_cv_func_getopt_gnu
=yes;;
17206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208 #include <getopt.h>
17209 #include <stddef.h>
17210 #include <string.h>
17212 #include <stdlib.h>
17213 #if defined __MACH__ && defined __APPLE__
17214 /* Avoid a crash on MacOS X. */
17215 #include <mach/mach.h>
17216 #include <mach/mach_error.h>
17217 #include <mach/thread_status.h>
17218 #include <mach/exception.h>
17219 #include <mach/task.h>
17220 #include <pthread.h>
17221 /* The exception port on which our thread listens. */
17222 static mach_port_t our_exception_port;
17223 /* The main function of the thread listening for exceptions of type
17226 mach_exception_thread (void *arg)
17228 /* Buffer for a message to be received. */
17230 mach_msg_header_t head;
17231 mach_msg_body_t msgh_body;
17234 mach_msg_return_t retval;
17235 /* Wait for a message on the exception port. */
17236 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17237 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17238 if (retval != MACH_MSG_SUCCESS)
17243 nocrash_init (void)
17245 mach_port_t self = mach_task_self ();
17246 /* Allocate a port on which the thread shall listen for exceptions. */
17247 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17249 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17250 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17251 MACH_MSG_TYPE_MAKE_SEND)
17253 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17255 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17256 /* Create the thread listening on the exception port. */
17257 pthread_attr_t attr;
17259 if (pthread_attr_init (&attr) == 0
17260 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17261 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17262 pthread_attr_destroy (&attr);
17263 /* Replace the exception port info for these exceptions with our own.
17264 Note that we replace the exception port for the entire task, not only
17265 for a particular thread. This has the effect that when our exception
17266 port gets the message, the thread specific exception port has already
17267 been asked, and we don't need to bother about it.
17268 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17269 task_set_exception_ports (self, mask, our_exception_port,
17270 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17276 /* Avoid a crash on POSIX systems. */
17277 #include <signal.h>
17278 /* A POSIX signal handler. */
17280 exception_handler (int sig)
17285 nocrash_init (void)
17288 signal (SIGSEGV, exception_handler);
17291 signal (SIGBUS, exception_handler);
17305 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17306 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17307 OSF/1 5.1, Solaris 10. */
17309 static char conftest[] = "conftest";
17310 static char plus[] = "-+";
17311 char *argv[3] = { conftest, plus, NULL };
17313 if (getopt (2, argv, "+a") != '?')
17316 /* This code succeeds on glibc 2.8, mingw,
17317 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17318 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17320 static char program[] = "program";
17321 static char p[] = "-p";
17322 static char foo[] = "foo";
17323 static char bar[] = "bar";
17324 char *argv[] = { program, p, foo, bar, NULL };
17327 if (getopt (4, argv, "p::") != 'p')
17329 else if (optarg != NULL)
17331 else if (getopt (4, argv, "p::") != -1)
17333 else if (optind != 2)
17336 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17338 static char program[] = "program";
17339 static char foo[] = "foo";
17340 static char p[] = "-p";
17341 char *argv[] = { program, foo, p, NULL };
17343 if (getopt (3, argv, "-p") != 1)
17345 else if (getopt (3, argv, "-p") != 'p')
17348 /* This code fails on glibc 2.11. */
17350 static char program[] = "program";
17351 static char b[] = "-b";
17352 static char a[] = "-a";
17353 char *argv[] = { program, b, a, NULL };
17354 optind = opterr = 0;
17355 if (getopt (3, argv, "+:a:b") != 'b')
17357 else if (getopt (3, argv, "+:a:b") != ':')
17360 /* This code dumps core on glibc 2.14. */
17362 static char program[] = "program";
17363 static char w[] = "-W";
17364 static char dummy[] = "dummy";
17365 char *argv[] = { program, w, dummy, NULL };
17366 optind = opterr = 1;
17367 if (getopt (3, argv, "W;") != 'W')
17376 if ac_fn_c_try_run
"$LINENO"; then :
17377 gl_cv_func_getopt_gnu
=yes
17379 gl_cv_func_getopt_gnu
=no
17381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17385 case $gl_had_POSIXLY_CORRECT in
17387 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17388 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17393 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17394 if test "$gl_cv_func_getopt_gnu" = "no"; then
17395 gl_replace_getopt
=yes
17406 if test -n "$gl_replace_getopt"; then :
17413 if test $REPLACE_GETOPT = 1; then
17417 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17421 GNULIB_UNISTD_H_GETOPT
=1
17424 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17425 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
17431 cat >>confdefs.h
<<_ACEOF
17432 #define HAVE_DECL_GETENV $ac_have_decl
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17437 $as_echo_n "checking for unsigned long long int... " >&6; }
17438 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
17439 $as_echo_n "(cached) " >&6
17441 ac_cv_type_unsigned_long_long_int
=yes
17442 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17446 /* For now, do not test the preprocessor; as of 2007 there are too many
17447 implementations with broken preprocessors. Perhaps this can
17448 be revisited in 2012. In the meantime, code should not expect
17449 #if to work with literals wider than 32 bits. */
17450 /* Test literals. */
17451 long long int ll = 9223372036854775807ll;
17452 long long int nll = -9223372036854775807LL;
17453 unsigned long long int ull = 18446744073709551615ULL;
17454 /* Test constant expressions. */
17455 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17457 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17463 /* Test availability of runtime routines for shift and division. */
17464 long long int llmax = 9223372036854775807ll;
17465 unsigned long long int ullmax = 18446744073709551615ull;
17466 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17467 | (llmax / ll) | (llmax % ll)
17468 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17469 | (ullmax / ull) | (ullmax % ull));
17475 if ac_fn_c_try_link
"$LINENO"; then :
17478 ac_cv_type_unsigned_long_long_int
=no
17480 rm -f core conftest.err conftest.
$ac_objext \
17481 conftest
$ac_exeext conftest.
$ac_ext
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17485 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17486 if test $ac_cv_type_unsigned_long_long_int = yes; then
17488 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17495 $as_echo_n "checking for long long int... " >&6; }
17496 if ${ac_cv_type_long_long_int+:} false
; then :
17497 $as_echo_n "(cached) " >&6
17499 ac_cv_type_long_long_int
=yes
17500 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17501 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17502 if test $ac_cv_type_long_long_int = yes; then
17503 if test "$cross_compiling" = yes; then :
17506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <limits.h>
17511 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17512 # define LLONG_MAX (HALF - 1 + HALF)
17517 long long int n = 1;
17521 long long int m = n << i;
17524 if (LLONG_MAX / 2 < m)
17532 if ac_fn_c_try_run
"$LINENO"; then :
17535 ac_cv_type_long_long_int
=no
17537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17545 $as_echo "$ac_cv_type_long_long_int" >&6; }
17546 if test $ac_cv_type_long_long_int = yes; then
17548 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17557 gl_cv_c_multiarch
=no
17558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 #ifndef __APPLE_CC__
17561 not a universal capable compiler
17566 if ac_fn_c_try_compile
"$LINENO"; then :
17570 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17571 if test -n "$prev"; then
17573 i?
86 | x86_64 | ppc | ppc64
)
17574 if test -z "$arch" ||
test "$arch" = "$word"; then
17577 gl_cv_c_multiarch
=yes
17583 if test "x$word" = "x-arch"; then
17590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17591 if test $gl_cv_c_multiarch = yes; then
17592 APPLE_UNIVERSAL_BUILD
=1
17594 APPLE_UNIVERSAL_BUILD
=0
17601 if test $ac_cv_type_long_long_int = yes; then
17602 HAVE_LONG_LONG_INT
=1
17604 HAVE_LONG_LONG_INT
=0
17608 if test $ac_cv_type_unsigned_long_long_int = yes; then
17609 HAVE_UNSIGNED_LONG_LONG_INT
=1
17611 HAVE_UNSIGNED_LONG_LONG_INT
=0
17616 if test $ac_cv_header_wchar_h = yes; then
17623 if test $ac_cv_header_inttypes_h = yes; then
17630 if test $ac_cv_header_sys_types_h = yes; then
17646 if test $gl_cv_have_include_next = yes; then
17647 gl_cv_next_stdint_h
='<'stdint.h
'>'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17650 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17651 if ${gl_cv_next_stdint_h+:} false
; then :
17652 $as_echo_n "(cached) " >&6
17655 if test $ac_cv_header_stdint_h = yes; then
17658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17660 #include <stdint.h>
17664 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17665 *) gl_absname_cpp
="$ac_cpp" ;;
17667 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17668 sed -n '\#/stdint.h#{
17669 s#.*"\(.*/stdint.h\)".*#\1#
17675 gl_cv_next_stdint_h
='<'stdint.h
'>'
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17681 $as_echo "$gl_cv_next_stdint_h" >&6; }
17683 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17685 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17687 gl_next_as_first_directive
='<'stdint.h
'>'
17689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17690 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17692 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17697 if test $ac_cv_header_stdint_h = yes; then
17704 if test $ac_cv_header_stdint_h = yes; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17706 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17707 if ${gl_cv_header_working_stdint_h+:} false
; then :
17708 $as_echo_n "(cached) " >&6
17710 gl_cv_header_working_stdint_h
=no
17711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17715 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17716 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17717 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17718 #include <stdint.h>
17719 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17720 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17721 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17725 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17726 included before <wchar.h>. */
17727 #include <stddef.h>
17728 #include <signal.h>
17730 # include <stdio.h>
17732 # include <wchar.h>
17737 int8_t a1 = INT8_MAX;
17738 int8_t a1min = INT8_MIN;
17741 int16_t a2 = INT16_MAX;
17742 int16_t a2min = INT16_MIN;
17745 int32_t a3 = INT32_MAX;
17746 int32_t a3min = INT32_MIN;
17749 int64_t a4 = INT64_MAX;
17750 int64_t a4min = INT64_MIN;
17753 uint8_t b1 = UINT8_MAX;
17755 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17758 uint16_t b2 = UINT16_MAX;
17761 uint32_t b3 = UINT32_MAX;
17764 uint64_t b4 = UINT64_MAX;
17766 int_least8_t c1 = INT8_C (0x7f);
17767 int_least8_t c1max = INT_LEAST8_MAX;
17768 int_least8_t c1min = INT_LEAST8_MIN;
17769 int_least16_t c2 = INT16_C (0x7fff);
17770 int_least16_t c2max = INT_LEAST16_MAX;
17771 int_least16_t c2min = INT_LEAST16_MIN;
17772 int_least32_t c3 = INT32_C (0x7fffffff);
17773 int_least32_t c3max = INT_LEAST32_MAX;
17774 int_least32_t c3min = INT_LEAST32_MIN;
17775 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17776 int_least64_t c4max = INT_LEAST64_MAX;
17777 int_least64_t c4min = INT_LEAST64_MIN;
17778 uint_least8_t d1 = UINT8_C (0xff);
17779 uint_least8_t d1max = UINT_LEAST8_MAX;
17780 uint_least16_t d2 = UINT16_C (0xffff);
17781 uint_least16_t d2max = UINT_LEAST16_MAX;
17782 uint_least32_t d3 = UINT32_C (0xffffffff);
17783 uint_least32_t d3max = UINT_LEAST32_MAX;
17784 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17785 uint_least64_t d4max = UINT_LEAST64_MAX;
17786 int_fast8_t e1 = INT_FAST8_MAX;
17787 int_fast8_t e1min = INT_FAST8_MIN;
17788 int_fast16_t e2 = INT_FAST16_MAX;
17789 int_fast16_t e2min = INT_FAST16_MIN;
17790 int_fast32_t e3 = INT_FAST32_MAX;
17791 int_fast32_t e3min = INT_FAST32_MIN;
17792 int_fast64_t e4 = INT_FAST64_MAX;
17793 int_fast64_t e4min = INT_FAST64_MIN;
17794 uint_fast8_t f1 = UINT_FAST8_MAX;
17795 uint_fast16_t f2 = UINT_FAST16_MAX;
17796 uint_fast32_t f3 = UINT_FAST32_MAX;
17797 uint_fast64_t f4 = UINT_FAST64_MAX;
17799 intptr_t g = INTPTR_MAX;
17800 intptr_t gmin = INTPTR_MIN;
17803 uintptr_t h = UINTPTR_MAX;
17805 intmax_t i = INTMAX_MAX;
17806 uintmax_t j = UINTMAX_MAX;
17808 #include <limits.h> /* for CHAR_BIT */
17809 #define TYPE_MINIMUM(t) \
17810 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17811 #define TYPE_MAXIMUM(t) \
17812 ((t) ((t) 0 < (t) -1 \
17814 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17817 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17818 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17820 /* Detect bug in FreeBSD 6.0 / ia64. */
17821 int check_SIG_ATOMIC:
17822 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17823 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17825 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17827 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17828 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17830 /* Detect bug in mingw. */
17832 WINT_MIN == TYPE_MINIMUM (wint_t)
17833 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17836 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17838 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17839 int check_UINT16_C:
17840 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17842 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17844 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17847 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17850 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17853 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17855 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17856 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17857 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17858 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17859 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17860 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17861 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17862 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17863 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17864 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17865 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17876 if ac_fn_c_try_compile
"$LINENO"; then :
17877 if test "$cross_compiling" = yes; then :
17878 gl_cv_header_working_stdint_h
=yes
17881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17885 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17886 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17887 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17888 #include <stdint.h>
17891 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17892 included before <wchar.h>. */
17893 #include <stddef.h>
17894 #include <signal.h>
17896 # include <stdio.h>
17898 # include <wchar.h>
17903 #include <string.h>
17904 #define MVAL(macro) MVAL1(macro)
17905 #define MVAL1(expression) #expression
17906 static const char *macro_values[] =
17940 for (mv = macro_values; *mv != NULL; mv++)
17942 const char *value = *mv;
17943 /* Test whether it looks like a cast expression. */
17944 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17945 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17946 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17947 || strncmp (value, "((int)"/*)*/, 6) == 0
17948 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17949 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17950 return mv - macro_values + 1;
17958 if ac_fn_c_try_run
"$LINENO"; then :
17959 gl_cv_header_working_stdint_h
=yes
17961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17971 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17973 if test "$gl_cv_header_working_stdint_h" = yes; then
17976 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17978 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17980 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17981 cat >>confdefs.h
<<_ACEOF
17982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17989 if test $ac_cv_header_sys_inttypes_h = yes; then
17990 HAVE_SYS_INTTYPES_H
=1
17992 HAVE_SYS_INTTYPES_H
=0
17995 if test $ac_cv_header_sys_bitypes_h = yes; then
17996 HAVE_SYS_BITYPES_H
=1
17998 HAVE_SYS_BITYPES_H
=0
18004 if test $APPLE_UNIVERSAL_BUILD = 0; then
18007 for gltype
in ptrdiff_t size_t
; do
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18009 $as_echo_n "checking for bit size of $gltype... " >&6; }
18010 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
18011 $as_echo_n "(cached) " >&6
18013 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18014 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18015 included before <wchar.h>. */
18016 #include <stddef.h>
18017 #include <signal.h>
18019 # include <stdio.h>
18021 # include <wchar.h>
18024 #include <limits.h>"; then :
18030 eval gl_cv_bitsizeof_
${gltype}=\
$result
18033 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18035 $as_echo "$ac_res" >&6; }
18036 eval result
=\
$gl_cv_bitsizeof_${gltype}
18037 if test $result = unknown
; then
18040 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18041 cat >>confdefs.h
<<_ACEOF
18042 #define BITSIZEOF_${GLTYPE} $result
18045 eval BITSIZEOF_
${GLTYPE}=\
$result
18052 for gltype
in sig_atomic_t wchar_t wint_t
; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18054 $as_echo_n "checking for bit size of $gltype... " >&6; }
18055 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
18056 $as_echo_n "(cached) " >&6
18058 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18059 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18060 included before <wchar.h>. */
18061 #include <stddef.h>
18062 #include <signal.h>
18064 # include <stdio.h>
18066 # include <wchar.h>
18069 #include <limits.h>"; then :
18075 eval gl_cv_bitsizeof_
${gltype}=\
$result
18078 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 eval result
=\
$gl_cv_bitsizeof_${gltype}
18082 if test $result = unknown
; then
18085 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18086 cat >>confdefs.h
<<_ACEOF
18087 #define BITSIZEOF_${GLTYPE} $result
18090 eval BITSIZEOF_
${GLTYPE}=\
$result
18096 for gltype
in sig_atomic_t wchar_t wint_t
; do
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18098 $as_echo_n "checking whether $gltype is signed... " >&6; }
18099 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
18100 $as_echo_n "(cached) " >&6
18102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18105 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18106 included before <wchar.h>. */
18107 #include <stddef.h>
18108 #include <signal.h>
18110 # include <stdio.h>
18112 # include <wchar.h>
18115 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18124 if ac_fn_c_try_compile
"$LINENO"; then :
18129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18130 eval gl_cv_type_
${gltype}_signed
=\
$result
18133 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18135 $as_echo "$ac_res" >&6; }
18136 eval result
=\
$gl_cv_type_${gltype}_signed
18137 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18138 if test "$result" = yes; then
18139 cat >>confdefs.h
<<_ACEOF
18140 #define HAVE_SIGNED_${GLTYPE} 1
18143 eval HAVE_SIGNED_
${GLTYPE}=1
18145 eval HAVE_SIGNED_
${GLTYPE}=0
18150 gl_cv_type_ptrdiff_t_signed
=yes
18151 gl_cv_type_size_t_signed
=no
18152 if test $APPLE_UNIVERSAL_BUILD = 0; then
18155 for gltype
in ptrdiff_t size_t
; do
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18157 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18158 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
18159 $as_echo_n "(cached) " >&6
18161 eval gl_cv_type_
${gltype}_suffix
=no
18162 eval result
=\
$gl_cv_type_${gltype}_signed
18163 if test "$result" = yes; then
18168 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18170 '') gltype1
='int';;
18171 l
) gltype1
='long int';;
18172 ll
) gltype1
='long long int';;
18173 i64
) gltype1
='__int64';;
18174 u
) gltype1
='unsigned int';;
18175 ul
) gltype1
='unsigned long int';;
18176 ull
) gltype1
='unsigned long long int';;
18177 ui64
)gltype1
='unsigned __int64';;
18179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18182 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18183 included before <wchar.h>. */
18184 #include <stddef.h>
18185 #include <signal.h>
18187 # include <stdio.h>
18189 # include <wchar.h>
18192 extern $gltype foo;
18193 extern $gltype1 foo;
18202 if ac_fn_c_try_compile
"$LINENO"; then :
18203 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18206 eval result
=\
$gl_cv_type_${gltype}_suffix
18207 test "$result" != no
&& break
18210 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18212 $as_echo "$ac_res" >&6; }
18213 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18214 eval result
=\
$gl_cv_type_${gltype}_suffix
18215 test "$result" = no
&& result
=
18216 eval ${GLTYPE}_SUFFIX
=\
$result
18217 cat >>confdefs.h
<<_ACEOF
18218 #define ${GLTYPE}_SUFFIX $result
18227 for gltype
in sig_atomic_t wchar_t wint_t
; do
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18229 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18230 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
18231 $as_echo_n "(cached) " >&6
18233 eval gl_cv_type_
${gltype}_suffix
=no
18234 eval result
=\
$gl_cv_type_${gltype}_signed
18235 if test "$result" = yes; then
18240 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18242 '') gltype1
='int';;
18243 l
) gltype1
='long int';;
18244 ll
) gltype1
='long long int';;
18245 i64
) gltype1
='__int64';;
18246 u
) gltype1
='unsigned int';;
18247 ul
) gltype1
='unsigned long int';;
18248 ull
) gltype1
='unsigned long long int';;
18249 ui64
)gltype1
='unsigned __int64';;
18251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18255 included before <wchar.h>. */
18256 #include <stddef.h>
18257 #include <signal.h>
18259 # include <stdio.h>
18261 # include <wchar.h>
18264 extern $gltype foo;
18265 extern $gltype1 foo;
18274 if ac_fn_c_try_compile
"$LINENO"; then :
18275 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18278 eval result
=\
$gl_cv_type_${gltype}_suffix
18279 test "$result" != no
&& break
18282 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18286 eval result
=\
$gl_cv_type_${gltype}_suffix
18287 test "$result" = no
&& result
=
18288 eval ${GLTYPE}_SUFFIX
=\
$result
18289 cat >>confdefs.h
<<_ACEOF
18290 #define ${GLTYPE}_SUFFIX $result
18300 if test -n "$STDINT_H"; then
18301 GL_GENERATE_STDINT_H_TRUE
=
18302 GL_GENERATE_STDINT_H_FALSE
='#'
18304 GL_GENERATE_STDINT_H_TRUE
='#'
18305 GL_GENERATE_STDINT_H_FALSE
=
18314 GNULIB_STRTOIMAX
=0;
18315 GNULIB_STRTOUMAX
=0;
18316 HAVE_DECL_IMAXABS
=1;
18317 HAVE_DECL_IMAXDIV
=1;
18318 HAVE_DECL_STRTOIMAX
=1;
18319 HAVE_DECL_STRTOUMAX
=1;
18320 INT32_MAX_LT_INTMAX_MAX
=1;
18321 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18322 PRI_MACROS_BROKEN
=0;
18323 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18324 UINT32_MAX_LT_UINTMAX_MAX
=1;
18325 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18341 if test $gl_cv_have_include_next = yes; then
18342 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18345 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18346 if ${gl_cv_next_inttypes_h+:} false
; then :
18347 $as_echo_n "(cached) " >&6
18350 if test $ac_cv_header_inttypes_h = yes; then
18353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355 #include <inttypes.h>
18359 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18360 *) gl_absname_cpp
="$ac_cpp" ;;
18362 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18363 sed -n '\#/inttypes.h#{
18364 s#.*"\(.*/inttypes.h\)".*#\1#
18370 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18376 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18378 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18380 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18382 gl_next_as_first_directive
='<'inttypes.h
'>'
18384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18385 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18387 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18396 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18414 GNULIB_UTIMENSAT
=0;
18428 REPLACE_FUTIMENS
=0;
18434 REPLACE_UTIMENSAT
=0;
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18440 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18441 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
18442 $as_echo_n "(cached) " >&6
18444 rm -f conftest.sym conftest.
file
18445 echo >conftest.
file
18446 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18447 if test "$cross_compiling" = yes; then :
18448 # When cross-compiling, be pessimistic so we will end up using the
18449 # replacement version of lstat that checks for trailing slashes and
18450 # calls lstat a second time when necessary.
18451 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 $ac_includes_default
18461 /* Linux will dereference the symlink and fail, as required by
18462 POSIX. That is better in the sense that it means we will not
18463 have to compile and use the lstat wrapper. */
18464 return lstat ("conftest.sym/", &sbuf) == 0;
18470 if ac_fn_c_try_run
"$LINENO"; then :
18471 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18473 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18480 # If the 'ln -s' command failed, then we probably don't even
18481 # have an lstat function.
18482 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18484 rm -f conftest.sym conftest.
file
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18488 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18489 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18491 cat >>confdefs.h
<<_ACEOF
18492 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18498 GNULIB_NANOSLEEP
=0;
18502 HAVE_DECL_LOCALTIME_R
=1;
18506 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18507 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18508 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18509 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18516 GNULIB_PTHREAD_SIGMASK
=0;
18517 GNULIB_SIGNAL_H_SIGPIPE
=0;
18518 GNULIB_SIGPROCMASK
=0;
18519 GNULIB_SIGACTION
=0;
18520 HAVE_POSIX_SIGNALBLOCKING
=1;
18521 HAVE_PTHREAD_SIGMASK
=1;
18525 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18527 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18529 HAVE_SIGHANDLER_T
=1;
18530 REPLACE_PTHREAD_SIGMASK
=0;
18535 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18536 #include <signal.h>
18537 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18538 #include <sys/types.h>
18541 if test "x$ac_cv_type_sigset_t" = xyes
; then :
18543 cat >>confdefs.h
<<_ACEOF
18544 #define HAVE_SIGSET_T 1
18547 gl_cv_type_sigset_t
=yes
18549 gl_cv_type_sigset_t
=no
18552 if test $gl_cv_type_sigset_t != yes; then
18560 if test $ac_cv_header_sys_socket_h = no
; then
18561 for ac_header
in ws2tcpip.h
18563 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18564 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
18565 cat >>confdefs.h
<<_ACEOF
18566 #define HAVE_WS2TCPIP_H 1
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18576 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18577 if ${ac_cv_header_stdbool_h+:} false
; then :
18578 $as_echo_n "(cached) " >&6
18580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18583 #include <stdbool.h>
18585 "error: bool is not defined"
18588 "error: false is not defined"
18591 "error: false is not 0"
18594 "error: true is not defined"
18597 "error: true is not 1"
18599 #ifndef __bool_true_false_are_defined
18600 "error: __bool_true_false_are_defined is not defined"
18603 struct s { _Bool s: 1; _Bool t; } s;
18605 char a[true == 1 ? 1 : -1];
18606 char b[false == 0 ? 1 : -1];
18607 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18608 char d[(bool) 0.5 == true ? 1 : -1];
18609 /* See body of main program for 'e'. */
18610 char f[(_Bool) 0.0 == false ? 1 : -1];
18612 char h[sizeof (_Bool)];
18613 char i[sizeof s.t];
18614 enum { j = false, k = true, l = false * true, m = true * 256 };
18615 /* The following fails for
18616 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18618 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18619 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18620 /* Catch a bug in an HP-UX C compiler. See
18621 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18622 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18634 /* Refer to every declared value, to avoid compiler optimizations. */
18635 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18636 + !m + !n + !o + !p + !q + !pq);
18642 if ac_fn_c_try_compile
"$LINENO"; then :
18643 ac_cv_header_stdbool_h
=yes
18645 ac_cv_header_stdbool_h
=no
18647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18650 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18651 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18652 if test "x$ac_cv_type__Bool" = xyes
; then :
18654 cat >>confdefs.h
<<_ACEOF
18655 #define HAVE__BOOL 1
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18668 $as_echo_n "checking for wchar_t... " >&6; }
18669 if ${gt_cv_c_wchar_t+:} false
; then :
18670 $as_echo_n "(cached) " >&6
18672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 #include <stddef.h>
18675 wchar_t foo = (wchar_t)'\0';
18684 if ac_fn_c_try_compile
"$LINENO"; then :
18685 gt_cv_c_wchar_t
=yes
18689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18692 $as_echo "$gt_cv_c_wchar_t" >&6; }
18693 if test $gt_cv_c_wchar_t = yes; then
18695 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18707 GNULIB_FPRINTF_POSIX
=0;
18724 GNULIB_OBSTACK_PRINTF
=0;
18725 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18729 GNULIB_PRINTF_POSIX
=0;
18738 GNULIB_SPRINTF_POSIX
=0;
18739 GNULIB_STDIO_H_NONBLOCKING
=0;
18740 GNULIB_STDIO_H_SIGPIPE
=0;
18742 GNULIB_VASPRINTF
=0;
18747 GNULIB_VFPRINTF_POSIX
=0;
18749 GNULIB_VPRINTF_POSIX
=0;
18750 GNULIB_VSNPRINTF
=0;
18751 GNULIB_VSPRINTF_POSIX
=0;
18752 HAVE_DECL_FPURGE
=1;
18753 HAVE_DECL_FSEEKO
=1;
18754 HAVE_DECL_FTELLO
=1;
18755 HAVE_DECL_GETDELIM
=1;
18756 HAVE_DECL_GETLINE
=1;
18757 HAVE_DECL_OBSTACK_PRINTF
=1;
18758 HAVE_DECL_SNPRINTF
=1;
18759 HAVE_DECL_VSNPRINTF
=1;
18777 REPLACE_GETDELIM
=0;
18779 REPLACE_OBSTACK_PRINTF
=0;
18785 REPLACE_RENAMEAT
=0;
18786 REPLACE_SNPRINTF
=0;
18788 REPLACE_STDIO_READ_FUNCS
=0;
18789 REPLACE_STDIO_WRITE_FUNCS
=0;
18791 REPLACE_VASPRINTF
=0;
18792 REPLACE_VDPRINTF
=0;
18793 REPLACE_VFPRINTF
=0;
18795 REPLACE_VSNPRINTF
=0;
18796 REPLACE_VSPRINTF
=0;
18799 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18801 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
18803 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18812 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18813 if test "x$ac_cv_have_decl_strtoimax" = xyes
; then :
18819 cat >>confdefs.h
<<_ACEOF
18820 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18825 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18826 if test "x$ac_cv_have_decl_strtoumax" = xyes
; then :
18832 cat >>confdefs.h
<<_ACEOF
18833 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18839 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18840 if ${ac_cv_header_stat_broken+:} false
; then :
18841 $as_echo_n "(cached) " >&6
18843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 #include <sys/types.h>
18846 #include <sys/stat.h>
18848 #if defined S_ISBLK && defined S_IFDIR
18849 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18852 #if defined S_ISBLK && defined S_IFCHR
18853 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18856 #if defined S_ISLNK && defined S_IFREG
18857 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18860 #if defined S_ISSOCK && defined S_IFREG
18861 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18865 if ac_fn_c_try_compile
"$LINENO"; then :
18866 ac_cv_header_stat_broken
=no
18868 ac_cv_header_stat_broken
=yes
18870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18873 $as_echo "$ac_cv_header_stat_broken" >&6; }
18874 if test $ac_cv_header_stat_broken = yes; then
18876 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18883 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18884 if ${ac_cv_c_restrict+:} false
; then :
18885 $as_echo_n "(cached) " >&6
18887 ac_cv_c_restrict
=no
18888 # The order here caters to the fact that C++ does not require restrict.
18889 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 typedef int * int_ptr;
18893 int foo (int_ptr $ac_kw ip) {
18900 int * $ac_kw t = s;
18907 if ac_fn_c_try_compile
"$LINENO"; then :
18908 ac_cv_c_restrict
=$ac_kw
18910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18911 test "$ac_cv_c_restrict" != no
&& break
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18916 $as_echo "$ac_cv_c_restrict" >&6; }
18918 case $ac_cv_c_restrict in
18920 no
) $as_echo "#define restrict /**/" >>confdefs.h
18922 *) cat >>confdefs.h
<<_ACEOF
18923 #define restrict $ac_cv_c_restrict
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18933 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18934 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
18935 $as_echo_n "(cached) " >&6
18937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18944 static struct timespec x; x.tv_sec = x.tv_nsec;
18949 if ac_fn_c_try_compile
"$LINENO"; then :
18950 gl_cv_sys_struct_timespec_in_time_h
=yes
18952 gl_cv_sys_struct_timespec_in_time_h
=no
18954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18957 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18959 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18960 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18961 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18962 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18963 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18966 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18967 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
18968 $as_echo_n "(cached) " >&6
18970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18972 #include <sys/time.h>
18977 static struct timespec x; x.tv_sec = x.tv_nsec;
18982 if ac_fn_c_try_compile
"$LINENO"; then :
18983 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18985 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18990 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18991 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18992 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18995 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18996 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
18997 $as_echo_n "(cached) " >&6
18999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 #include <pthread.h>
19006 static struct timespec x; x.tv_sec = x.tv_nsec;
19011 if ac_fn_c_try_compile
"$LINENO"; then :
19012 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19014 gl_cv_sys_struct_timespec_in_pthread_h
=no
19016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19019 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19020 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19021 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19040 if test $gl_cv_have_include_next = yes; then
19041 gl_cv_next_time_h
='<'time.h
'>'
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19044 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19045 if ${gl_cv_next_time_h+:} false
; then :
19046 $as_echo_n "(cached) " >&6
19049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19055 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19056 *) gl_absname_cpp
="$ac_cpp" ;;
19058 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19059 sed -n '\#/time.h#{
19060 s#.*"\(.*/time.h\)".*#\1#
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19069 $as_echo "$gl_cv_next_time_h" >&6; }
19071 NEXT_TIME_H
=$gl_cv_next_time_h
19073 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19075 gl_next_as_first_directive
='<'time.h
'>'
19077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19078 gl_next_as_first_directive
=$gl_cv_next_time_h
19080 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19087 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19088 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
19094 cat >>confdefs.h
<<_ACEOF
19095 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19102 GL_COND_LIBTOOL_TRUE
=
19103 GL_COND_LIBTOOL_FALSE
='#'
19105 GL_COND_LIBTOOL_TRUE
='#'
19106 GL_COND_LIBTOOL_FALSE
=
19109 gl_cond_libtool
=false
19122 gl_source_base
='lib'
19125 if test $ac_cv_func_alloca_works = no
; then
19129 # Define an additional variable used in the Makefile substitution.
19130 if test $ac_cv_working_alloca_h = yes; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19132 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19133 if ${gl_cv_rpl_alloca+:} false
; then :
19134 $as_echo_n "(cached) " >&6
19137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19140 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19146 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19147 gl_cv_rpl_alloca
=yes
19149 gl_cv_rpl_alloca
=no
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19156 $as_echo "$gl_cv_rpl_alloca" >&6; }
19157 if test $gl_cv_rpl_alloca = yes; then
19159 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19169 if test -n "$ALLOCA_H"; then
19170 GL_GENERATE_ALLOCA_H_TRUE
=
19171 GL_GENERATE_ALLOCA_H_FALSE
='#'
19173 GL_GENERATE_ALLOCA_H_TRUE
='#'
19174 GL_GENERATE_ALLOCA_H_FALSE
=
19203 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19206 if test $HAVE_DUP2 = 1; then
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19208 $as_echo_n "checking whether dup2 works... " >&6; }
19209 if ${gl_cv_func_dup2_works+:} false
; then :
19210 $as_echo_n "(cached) " >&6
19212 if test "$cross_compiling" = yes; then :
19214 mingw
*) # on this platform, dup2 always returns 0 for success
19215 gl_cv_func_dup2_works
=no
;;
19216 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19217 gl_cv_func_dup2_works
=no
;;
19218 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19219 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19220 gl_cv_func_dup2_works
=no
;;
19221 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19222 gl_cv_func_dup2_works
=no
;;
19223 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19224 gl_cv_func_dup2_works
=no
;;
19225 *) gl_cv_func_dup2_works
=yes;;
19228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19231 #include <unistd.h>
19239 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19242 if (dup2 (1, 1) == 0)
19245 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19249 if (dup2 (0, 0) != -1)
19251 /* Many gnulib modules require POSIX conformance of EBADF. */
19252 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19261 if ac_fn_c_try_run
"$LINENO"; then :
19262 gl_cv_func_dup2_works
=yes
19264 gl_cv_func_dup2_works
=no
19266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19273 $as_echo "$gl_cv_func_dup2_works" >&6; }
19274 if test "$gl_cv_func_dup2_works" = no
; then
19280 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19289 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19309 # Persuade glibc <stdlib.h> to declare getloadavg().
19314 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19315 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19317 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19318 if test "x$ac_cv_func_getloadavg" = xyes
; then :
19321 gl_func_getloadavg_done
=no
19323 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19324 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19325 # to get the right answer into the cache.
19326 # For kstat on solaris, we need to test for libelf and libkvm to force the
19327 # definition of SVR4 below.
19328 if test $gl_func_getloadavg_done = no
; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19330 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19331 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
19332 $as_echo_n "(cached) " >&6
19334 ac_check_lib_save_LIBS
=$LIBS
19336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19349 return elf_begin ();
19354 if ac_fn_c_try_link
"$LINENO"; then :
19355 ac_cv_lib_elf_elf_begin
=yes
19357 ac_cv_lib_elf_elf_begin
=no
19359 rm -f core conftest.err conftest.
$ac_objext \
19360 conftest
$ac_exeext conftest.
$ac_ext
19361 LIBS
=$ac_check_lib_save_LIBS
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19364 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19365 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19370 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19371 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
19372 $as_echo_n "(cached) " >&6
19374 ac_check_lib_save_LIBS
=$LIBS
19376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19379 /* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19389 return kvm_open ();
19394 if ac_fn_c_try_link
"$LINENO"; then :
19395 ac_cv_lib_kvm_kvm_open
=yes
19397 ac_cv_lib_kvm_kvm_open
=no
19399 rm -f core conftest.err conftest.
$ac_objext \
19400 conftest
$ac_exeext conftest.
$ac_ext
19401 LIBS
=$ac_check_lib_save_LIBS
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19404 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19405 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
19409 # Check for the 4.4BSD definition of getloadavg.
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19411 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19412 if ${ac_cv_lib_util_getloadavg+:} false
; then :
19413 $as_echo_n "(cached) " >&6
19415 ac_check_lib_save_LIBS
=$LIBS
19416 LIBS
="-lutil $LIBS"
19417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19420 /* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19426 char getloadavg ();
19430 return getloadavg ();
19435 if ac_fn_c_try_link
"$LINENO"; then :
19436 ac_cv_lib_util_getloadavg
=yes
19438 ac_cv_lib_util_getloadavg
=no
19440 rm -f core conftest.err conftest.
$ac_objext \
19441 conftest
$ac_exeext conftest.
$ac_ext
19442 LIBS
=$ac_check_lib_save_LIBS
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19445 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19446 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
19447 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19452 if test $gl_func_getloadavg_done = no
; then
19453 # There is a commonly available library for RS/6000 AIX.
19454 # Since it is not a standard part of AIX, it might be installed locally.
19455 gl_getloadavg_LIBS
=$LIBS
19456 LIBS
="-L/usr/local/lib $LIBS"
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19458 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19459 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
19460 $as_echo_n "(cached) " >&6
19462 ac_check_lib_save_LIBS
=$LIBS
19463 LIBS
="-lgetloadavg $LIBS"
19464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19473 char getloadavg ();
19477 return getloadavg ();
19482 if ac_fn_c_try_link
"$LINENO"; then :
19483 ac_cv_lib_getloadavg_getloadavg
=yes
19485 ac_cv_lib_getloadavg_getloadavg
=no
19487 rm -f core conftest.err conftest.
$ac_objext \
19488 conftest
$ac_exeext conftest.
$ac_ext
19489 LIBS
=$ac_check_lib_save_LIBS
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19492 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19493 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
19494 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19496 LIBS
=$gl_getloadavg_LIBS
19501 # Set up the replacement function if necessary.
19502 if test $gl_func_getloadavg_done = no
; then
19505 # Solaris has libkstat which does not require root.
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19507 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19508 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
19509 $as_echo_n "(cached) " >&6
19511 ac_check_lib_save_LIBS
=$LIBS
19512 LIBS
="-lkstat $LIBS"
19513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19522 char kstat_open ();
19526 return kstat_open ();
19531 if ac_fn_c_try_link
"$LINENO"; then :
19532 ac_cv_lib_kstat_kstat_open
=yes
19534 ac_cv_lib_kstat_kstat_open
=no
19536 rm -f core conftest.err conftest.
$ac_objext \
19537 conftest
$ac_exeext conftest.
$ac_ext
19538 LIBS
=$ac_check_lib_save_LIBS
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19541 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19542 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
19543 cat >>confdefs.h
<<_ACEOF
19544 #define HAVE_LIBKSTAT 1
19547 LIBS
="-lkstat $LIBS"
19551 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19553 # AIX has libperfstat which does not require root
19554 if test $gl_func_getloadavg_done = no
; then
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19556 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19557 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
19558 $as_echo_n "(cached) " >&6
19560 ac_check_lib_save_LIBS
=$LIBS
19561 LIBS
="-lperfstat $LIBS"
19562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19571 char perfstat_cpu_total ();
19575 return perfstat_cpu_total ();
19580 if ac_fn_c_try_link
"$LINENO"; then :
19581 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19583 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19585 rm -f core conftest.err conftest.
$ac_objext \
19586 conftest
$ac_exeext conftest.
$ac_ext
19587 LIBS
=$ac_check_lib_save_LIBS
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19590 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19591 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
19592 cat >>confdefs.h
<<_ACEOF
19593 #define HAVE_LIBPERFSTAT 1
19596 LIBS
="-lperfstat $LIBS"
19600 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19603 if test $gl_func_getloadavg_done = no
; then
19604 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19605 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
19606 gl_func_getloadavg_done
=yes
19608 $as_echo "#define DGUX 1" >>confdefs.h
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19611 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19612 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
19613 $as_echo_n "(cached) " >&6
19615 ac_check_lib_save_LIBS
=$LIBS
19617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19626 char dg_sys_info ();
19630 return dg_sys_info ();
19635 if ac_fn_c_try_link
"$LINENO"; then :
19636 ac_cv_lib_dgc_dg_sys_info
=yes
19638 ac_cv_lib_dgc_dg_sys_info
=no
19640 rm -f core conftest.err conftest.
$ac_objext \
19641 conftest
$ac_exeext conftest.
$ac_ext
19642 LIBS
=$ac_check_lib_save_LIBS
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19645 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19646 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
19647 cat >>confdefs.h
<<_ACEOF
19648 #define HAVE_LIBDGC 1
19663 if test "x$gl_save_LIBS" = x
; then
19664 GETLOADAVG_LIBS
=$LIBS
19666 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19671 # Test whether the system declares getloadavg. Solaris has the function
19672 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19673 for ac_header
in sys
/loadavg.h
19675 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19676 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
19677 cat >>confdefs.h
<<_ACEOF
19678 #define HAVE_SYS_LOADAVG_H 1
19685 if test $ac_cv_header_sys_loadavg_h = yes; then
19686 HAVE_SYS_LOADAVG_H
=1
19688 HAVE_SYS_LOADAVG_H
=0
19690 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19691 # include <sys/loadavg.h>
19693 #include <stdlib.h>
19695 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
19698 HAVE_DECL_GETLOADAVG
=0
19702 if test $HAVE_GETLOADAVG = 0; then
19711 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19714 # Figure out what our getloadavg.c needs.
19716 # On HPUX9, an unprivileged user can get load averages this way.
19717 if test $gl_func_getloadavg_done = no
; then
19718 for ac_func
in pstat_getdynamic
19720 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19721 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
19722 cat >>confdefs.h
<<_ACEOF
19723 #define HAVE_PSTAT_GETDYNAMIC 1
19725 gl_func_getloadavg_done
=yes
19731 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19732 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19733 # Irix 4.0.5F has the header but not the library.
19734 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19735 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19736 gl_func_getloadavg_done
=yes
19738 $as_echo "#define SVR4 1" >>confdefs.h
19742 if test $gl_func_getloadavg_done = no
; then
19743 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19744 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
19745 gl_func_getloadavg_done
=yes
19747 $as_echo "#define UMAX 1" >>confdefs.h
19750 $as_echo "#define UMAX4_3 1" >>confdefs.h
19757 if test $gl_func_getloadavg_done = no
; then
19758 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19759 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
19760 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19767 if test $gl_func_getloadavg_done = no
; then
19768 for ac_header
in mach
/mach.h
19770 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19771 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
19772 cat >>confdefs.h
<<_ACEOF
19773 #define HAVE_MACH_MACH_H 1
19782 for ac_header
in nlist.h
19784 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19785 if test "x$ac_cv_header_nlist_h" = xyes
; then :
19786 cat >>confdefs.h
<<_ACEOF
19787 #define HAVE_NLIST_H 1
19789 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19791 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
19793 cat >>confdefs.h
<<_ACEOF
19794 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19807 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19808 x.n_un.n_name = "";
19816 if ac_fn_c_try_link
"$LINENO"; then :
19818 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19821 rm -f core conftest.err conftest.
$ac_objext \
19822 conftest
$ac_exeext conftest.
$ac_ext
19834 GNULIB_GETLOADAVG
=1
19845 if test $REPLACE_GETOPT = 1; then
19854 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19864 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19878 if test -n "$gl_replace_getopt"; then :
19885 if test $REPLACE_GETOPT = 1; then
19889 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19893 GNULIB_UNISTD_H_GETOPT
=1
19896 if test $REPLACE_GETOPT = 1; then
19905 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19915 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19926 if test $ac_cv_func_lstat = yes; then
19928 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
19935 if test $REPLACE_LSTAT = 1; then
19944 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19968 if test $APPLE_UNIVERSAL_BUILD = 1; then
19969 # A universal build on Apple MacOS X platforms.
19970 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19971 # But we need a configuration result that is valid in both modes.
19972 gl_cv_func_working_mktime
=no
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19975 $as_echo_n "checking for working mktime... " >&6; }
19976 if ${gl_cv_func_working_mktime+:} false
; then :
19977 $as_echo_n "(cached) " >&6
19979 if test "$cross_compiling" = yes; then :
19980 gl_cv_func_working_mktime
=no
19982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19984 /* Test program from Paul Eggert and Tony Leneis. */
19985 #include <limits.h>
19986 #include <stdlib.h>
19989 #ifdef HAVE_UNISTD_H
19990 # include <unistd.h>
19994 # define alarm(X) /* empty */
19997 /* Work around redefinition to rpl_putenv by other config tests. */
20000 static time_t time_t_max;
20001 static time_t time_t_min;
20003 /* Values we'll use to set the TZ environment variable. */
20004 static char *tz_strings[] = {
20005 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20006 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20008 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20010 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20011 Based on a problem report from Andreas Jaeger. */
20013 spring_forward_gap ()
20015 /* glibc (up to about 1998-10-07) failed this test. */
20018 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20019 instead of "TZ=America/Vancouver" in order to detect the bug even
20020 on systems that don't support the Olson extension, or don't have the
20021 full zoneinfo tables installed. */
20022 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20031 return mktime (&tm) != (time_t) -1;
20035 mktime_test1 (time_t now)
20038 return ! (lt = localtime (&now)) || mktime (lt) == now;
20042 mktime_test (time_t now)
20044 return (mktime_test1 (now)
20045 && mktime_test1 ((time_t) (time_t_max - now))
20046 && mktime_test1 ((time_t) (time_t_min + now)));
20052 /* Based on code from Ariel Faigon. */
20062 return tm.tm_mon == 2 && tm.tm_mday == 31;
20066 bigtime_test (int j)
20070 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20071 now = mktime (&tm);
20072 if (now != (time_t) -1)
20074 struct tm *lt = localtime (&now);
20076 && lt->tm_year == tm.tm_year
20077 && lt->tm_mon == tm.tm_mon
20078 && lt->tm_mday == tm.tm_mday
20079 && lt->tm_hour == tm.tm_hour
20080 && lt->tm_min == tm.tm_min
20081 && lt->tm_sec == tm.tm_sec
20082 && lt->tm_yday == tm.tm_yday
20083 && lt->tm_wday == tm.tm_wday
20084 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20085 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20094 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20095 ignoring leap seconds. */
20096 unsigned long int answer = 2527315200UL;
20100 tm.tm_year = 2050 - 1900;
20103 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20106 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20107 instead of "TZ=America/Vancouver" in order to detect the bug even
20108 on systems that don't support the Olson extension, or don't have the
20109 full zoneinfo tables installed. */
20110 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20114 /* Check that the result is either a failure, or close enough
20115 to the correct answer that we can assume the discrepancy is
20116 due to leap seconds. */
20117 return (t == (time_t) -1
20118 || (0 < t && answer - 120 <= t && t <= answer + 120));
20127 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20128 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20130 /* This test makes some buggy mktime implementations loop.
20131 Give up after 60 seconds; a mktime slower than that
20132 isn't worth using anyway. */
20135 time_t_max = (! time_t_signed
20137 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20139 time_t_min = (! time_t_signed
20141 : time_t_signed_magnitude
20145 delta = time_t_max / 997; /* a suitable prime number */
20146 for (i = 0; i < N_STRINGS; i++)
20149 putenv (tz_strings[i]);
20151 for (t = 0; t <= time_t_max - delta; t += delta)
20152 if (! mktime_test (t))
20154 if (! (mktime_test ((time_t) 1)
20155 && mktime_test ((time_t) (60 * 60))
20156 && mktime_test ((time_t) (60 * 60 * 24))))
20159 for (j = 1; ; j <<= 1)
20160 if (! bigtime_test (j))
20162 else if (INT_MAX / 2 < j)
20164 if (! bigtime_test (INT_MAX))
20167 if (! irix_6_4_bug ())
20169 if (! spring_forward_gap ())
20171 if (! year_2050_test ())
20176 if ac_fn_c_try_run
"$LINENO"; then :
20177 gl_cv_func_working_mktime
=yes
20179 gl_cv_func_working_mktime
=no
20181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20182 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20188 $as_echo "$gl_cv_func_working_mktime" >&6; }
20190 if test $gl_cv_func_working_mktime = no
; then
20196 if test $REPLACE_MKTIME = 1; then
20205 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20225 LIB_PTHREAD_SIGMASK
=
20228 if test $ac_cv_func_pthread_sigmask = yes; then
20231 HAVE_PTHREAD_SIGMASK
=0
20232 REPLACE_PTHREAD_SIGMASK
=1
20238 if test $HAVE_PTHREAD_SIGMASK = 1; then
20241 if test -z "$LIB_PTHREAD_SIGMASK"; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20243 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20244 if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false
; then :
20245 $as_echo_n "(cached) " >&6
20248 if test "$cross_compiling" = yes; then :
20251 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20252 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20254 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h. */
20261 #include <pthread.h>
20262 #include <signal.h>
20263 #include <stddef.h>
20267 sigemptyset (&set);
20268 return pthread_sigmask (1729, &set, NULL) != 0;
20271 if ac_fn_c_try_run
"$LINENO"; then :
20272 gl_cv_func_pthread_sigmask_in_libc_works
=no
20274 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20276 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20277 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20283 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20284 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20286 REPLACE_PTHREAD_SIGMASK
=1
20288 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20295 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20296 if ${gl_cv_func_pthread_sigmask_return_works+:} false
; then :
20297 $as_echo_n "(cached) " >&6
20300 gl_save_LIBS
="$LIBS"
20301 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20302 if test "$cross_compiling" = yes; then :
20305 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20307 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20314 #include <pthread.h>
20315 #include <signal.h>
20316 #include <stddef.h>
20320 sigemptyset (&set);
20321 if (pthread_sigmask (1729, &set, NULL) == -1)
20326 if ac_fn_c_try_run
"$LINENO"; then :
20327 gl_cv_func_pthread_sigmask_return_works
=yes
20329 gl_cv_func_pthread_sigmask_return_works
=no
20331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20335 LIBS
="$gl_save_LIBS"
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20339 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20340 case "$gl_cv_func_pthread_sigmask_return_works" in
20342 REPLACE_PTHREAD_SIGMASK
=1
20344 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20350 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20351 if ${gl_cv_func_pthread_sigmask_unblock_works+:} false
; then :
20352 $as_echo_n "(cached) " >&6
20357 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20359 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20361 gl_save_LIBS
="$LIBS"
20362 LIBS
="$LIBS $LIBMULTITHREAD"
20363 if test "$cross_compiling" = yes; then :
20366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20369 #include <pthread.h>
20370 #include <signal.h>
20372 #include <stdlib.h>
20373 #include <unistd.h>
20374 static volatile int sigint_occurred;
20376 sigint_handler (int sig)
20383 int pid = getpid ();
20385 signal (SIGINT, sigint_handler);
20386 sigemptyset (&set);
20387 sigaddset (&set, SIGINT);
20388 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20390 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20391 if (!(system (command) == 0))
20394 if (!(sigint_occurred == 0))
20396 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20398 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20403 if ac_fn_c_try_run
"$LINENO"; then :
20406 gl_cv_func_pthread_sigmask_unblock_works
=no
20408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20412 LIBS
="$gl_save_LIBS"
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20416 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20417 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20419 REPLACE_PTHREAD_SIGMASK
=1
20421 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20427 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20436 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20439 if test $HAVE_PTHREAD_SIGMASK = 1; then
20441 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20451 GNULIB_PTHREAD_SIGMASK
=1
20460 if test $ac_cv_func_readlink = no
; then
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20464 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20465 if ${gl_cv_decl_readlink_works+:} false
; then :
20466 $as_echo_n "(cached) " >&6
20468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20469 /* end confdefs.h. */
20470 #include <unistd.h>
20471 /* Cause compilation failure if original declaration has wrong type. */
20472 ssize_t readlink (const char *, char *, size_t);
20481 if ac_fn_c_try_compile
"$LINENO"; then :
20482 gl_cv_decl_readlink_works
=yes
20484 gl_cv_decl_readlink_works
=no
20486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20489 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20491 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20492 if ${gl_cv_func_readlink_works+:} false
; then :
20493 $as_echo_n "(cached) " >&6
20495 # We have readlink, so assume ln -s works.
20496 ln -s conftest.no-such conftest.link
20497 ln -s conftest.link conftest.lnk2
20498 if test "$cross_compiling" = yes; then :
20499 gl_cv_func_readlink_works
="guessing no"
20501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20503 #include <unistd.h>
20509 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20514 if ac_fn_c_try_run
"$LINENO"; then :
20515 gl_cv_func_readlink_works
=yes
20517 gl_cv_func_readlink_works
=no
20519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20523 rm -f conftest.link conftest.lnk2
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20526 $as_echo "$gl_cv_func_readlink_works" >&6; }
20527 if test "$gl_cv_func_readlink_works" != yes; then
20529 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20532 elif test "$gl_cv_decl_readlink_works" != yes; then
20537 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20546 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20574 if test $gl_cv_have_include_next = yes; then
20575 gl_cv_next_signal_h
='<'signal.h
'>'
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20578 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20579 if ${gl_cv_next_signal_h+:} false
; then :
20580 $as_echo_n "(cached) " >&6
20583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h. */
20585 #include <signal.h>
20589 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20590 *) gl_absname_cpp
="$ac_cpp" ;;
20592 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20593 sed -n '\#/signal.h#{
20594 s#.*"\(.*/signal.h\)".*#\1#
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20603 $as_echo "$gl_cv_next_signal_h" >&6; }
20605 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20607 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20609 gl_next_as_first_directive
='<'signal.h
'>'
20611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20612 gl_next_as_first_directive
=$gl_cv_next_signal_h
20614 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20620 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20621 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20622 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20623 #include <signal.h>
20626 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
20629 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20636 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20637 #include <signal.h>
20640 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
20643 HAVE_SIGHANDLER_T
=0
20649 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20650 /* <sys/types.h> is not needed according to POSIX, but the
20651 <sys/socket.h> in i386-unknown-freebsd4.10 and
20652 powerpc-apple-darwin5.5 required it. */
20653 #include <sys/types.h>
20654 #if HAVE_SYS_SOCKET_H
20655 # include <sys/socket.h>
20656 #elif HAVE_WS2TCPIP_H
20657 # include <ws2tcpip.h>
20661 if test "x$ac_cv_type_socklen_t" = xyes
; then :
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20665 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20666 if ${gl_cv_socklen_t_equiv+:} false
; then :
20667 $as_echo_n "(cached) " >&6
20669 # Systems have either "struct sockaddr *" or
20670 # "void *" as the second argument to getpeername
20671 gl_cv_socklen_t_equiv
=
20672 for arg2
in "struct sockaddr" void
; do
20673 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h. */
20676 #include <sys/types.h>
20677 #include <sys/socket.h>
20679 int getpeername (int, $arg2 *, $t *);
20684 getpeername (0, 0, &len);
20689 if ac_fn_c_try_compile
"$LINENO"; then :
20690 gl_cv_socklen_t_equiv
="$t"
20692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20693 test "$gl_cv_socklen_t_equiv" != "" && break
20695 test "$gl_cv_socklen_t_equiv" != "" && break
20700 if test "$gl_cv_socklen_t_equiv" = ""; then
20701 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20704 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20706 cat >>confdefs.h
<<_ACEOF
20707 #define socklen_t $gl_cv_socklen_t_equiv
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20714 $as_echo_n "checking for ssize_t... " >&6; }
20715 if ${gt_cv_ssize_t+:} false
; then :
20716 $as_echo_n "(cached) " >&6
20718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20724 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20730 if ac_fn_c_try_compile
"$LINENO"; then :
20735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20738 $as_echo "$gt_cv_ssize_t" >&6; }
20739 if test $gt_cv_ssize_t = no
; then
20741 $as_echo "#define ssize_t int" >>confdefs.h
20747 NEXT_STDARG_H
='<stdarg.h>'
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20749 $as_echo_n "checking for va_copy... " >&6; }
20750 if ${gl_cv_func_va_copy+:} false
; then :
20751 $as_echo_n "(cached) " >&6
20754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20756 #include <stdarg.h>
20762 void (*func) (va_list, va_list) = va_copy;
20769 if ac_fn_c_try_compile
"$LINENO"; then :
20770 gl_cv_func_va_copy
=yes
20772 gl_cv_func_va_copy
=no
20774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20778 $as_echo "$gl_cv_func_va_copy" >&6; }
20779 if test $gl_cv_func_va_copy = no
; then
20780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20781 /* end confdefs.h. */
20782 #if defined _AIX && !defined __GNUC__
20787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20788 $EGREP "vaccine" >/dev
/null
2>&1; then :
20795 if test $gl_aixcc = yes; then
20805 if test $gl_cv_have_include_next = yes; then
20806 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20809 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20810 if ${gl_cv_next_stdarg_h+:} false
; then :
20811 $as_echo_n "(cached) " >&6
20814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <stdarg.h>
20820 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20821 *) gl_absname_cpp
="$ac_cpp" ;;
20823 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20824 sed -n '\#/stdarg.h#{
20825 s#.*"\(.*/stdarg.h\)".*#\1#
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20834 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20836 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20838 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20840 gl_next_as_first_directive
='<'stdarg.h
'>'
20842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20843 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20845 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20850 if test "$gl_cv_next_stdarg_h" = '""'; then
20851 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20852 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20856 saved_as_echo_n
="$as_echo_n"
20858 if ${gl_cv_func___va_copy+:} false
; then :
20859 $as_echo_n "(cached) " >&6
20862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20864 #include <stdarg.h>
20877 if ac_fn_c_try_compile
"$LINENO"; then :
20878 gl_cv_func___va_copy
=yes
20880 gl_cv_func___va_copy
=no
20882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20885 as_echo_n
="$saved_as_echo_n"
20887 if test $gl_cv_func___va_copy = yes; then
20889 $as_echo "#define va_copy __va_copy" >>confdefs.h
20894 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20900 if test -n "$STDARG_H"; then
20901 GL_GENERATE_STDARG_H_TRUE
=
20902 GL_GENERATE_STDARG_H_FALSE
='#'
20904 GL_GENERATE_STDARG_H_TRUE
='#'
20905 GL_GENERATE_STDARG_H_FALSE
=
20913 # Define two additional variables used in the Makefile substitution.
20915 if test "$ac_cv_header_stdbool_h" = yes; then
20918 STDBOOL_H
='stdbool.h'
20921 if test -n "$STDBOOL_H"; then
20922 GL_GENERATE_STDBOOL_H_TRUE
=
20923 GL_GENERATE_STDBOOL_H_FALSE
='#'
20925 GL_GENERATE_STDBOOL_H_TRUE
='#'
20926 GL_GENERATE_STDBOOL_H_FALSE
=
20930 if test "$ac_cv_type__Bool" = yes; then
20941 if test $gt_cv_c_wchar_t = no
; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20946 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20947 if ${gl_cv_decl_null_works+:} false
; then :
20948 $as_echo_n "(cached) " >&6
20950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20951 /* end confdefs.h. */
20952 #include <stddef.h>
20953 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20963 if ac_fn_c_try_compile
"$LINENO"; then :
20964 gl_cv_decl_null_works
=yes
20966 gl_cv_decl_null_works
=no
20968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20971 $as_echo "$gl_cv_decl_null_works" >&6; }
20972 if test $gl_cv_decl_null_works = no
; then
20977 if test -n "$STDDEF_H"; then
20978 GL_GENERATE_STDDEF_H_TRUE
=
20979 GL_GENERATE_STDDEF_H_FALSE
='#'
20981 GL_GENERATE_STDDEF_H_TRUE
='#'
20982 GL_GENERATE_STDDEF_H_FALSE
=
20985 if test -n "$STDDEF_H"; then
20994 if test $gl_cv_have_include_next = yes; then
20995 gl_cv_next_stddef_h
='<'stddef.h
'>'
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20998 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20999 if ${gl_cv_next_stddef_h+:} false
; then :
21000 $as_echo_n "(cached) " >&6
21003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21005 #include <stddef.h>
21009 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21010 *) gl_absname_cpp
="$ac_cpp" ;;
21012 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21013 sed -n '\#/stddef.h#{
21014 s#.*"\(.*/stddef.h\)".*#\1#
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21023 $as_echo "$gl_cv_next_stddef_h" >&6; }
21025 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21027 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21029 gl_next_as_first_directive
='<'stddef.h
'>'
21031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21032 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21034 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21053 if test $gl_cv_have_include_next = yes; then
21054 gl_cv_next_stdio_h
='<'stdio.h
'>'
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21057 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21058 if ${gl_cv_next_stdio_h+:} false
; then :
21059 $as_echo_n "(cached) " >&6
21062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21068 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21069 *) gl_absname_cpp
="$ac_cpp" ;;
21071 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21072 sed -n '\#/stdio.h#{
21073 s#.*"\(.*/stdio.h\)".*#\1#
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21082 $as_echo "$gl_cv_next_stdio_h" >&6; }
21084 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21086 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21088 gl_next_as_first_directive
='<'stdio.h
'>'
21090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21091 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21093 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21138 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21139 if ${gl_cv_next_stdlib_h+:} false
; then :
21140 $as_echo_n "(cached) " >&6
21143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stdlib.h>
21149 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21150 *) gl_absname_cpp
="$ac_cpp" ;;
21152 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21153 sed -n '\#/stdlib.h#{
21154 s#.*"\(.*/stdlib.h\)".*#\1#
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21163 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21165 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21167 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21169 gl_next_as_first_directive
='<'stdlib.h
'>'
21171 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21172 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21174 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21184 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21192 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21201 if test "$ac_cv_have_decl_strtoimax" != yes; then
21202 HAVE_DECL_STRTOIMAX
=0
21205 if test $ac_cv_func_strtoimax = no
; then
21214 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21217 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21218 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
21224 cat >>confdefs.h
<<_ACEOF
21225 #define HAVE_DECL_STRTOLL $ac_have_decl
21246 if test "$ac_cv_have_decl_strtoumax" != yes; then
21247 HAVE_DECL_STRTOUMAX
=0
21250 if test $ac_cv_func_strtoumax = no
; then
21259 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21262 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21263 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
21269 cat >>confdefs.h
<<_ACEOF
21270 #define HAVE_DECL_STRTOULL $ac_have_decl
21289 if test $ac_cv_func_symlink = no
; then
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21293 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21294 if ${gl_cv_func_symlink_works+:} false
; then :
21295 $as_echo_n "(cached) " >&6
21297 if test "$cross_compiling" = yes; then :
21298 gl_cv_func_symlink_works
="guessing no"
21300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302 #include <unistd.h>
21308 if (!symlink ("a", "conftest.link/"))
21310 if (symlink ("conftest.f", "conftest.lnk2"))
21312 else if (!symlink ("a", "conftest.lnk2/"))
21320 if ac_fn_c_try_run
"$LINENO"; then :
21321 gl_cv_func_symlink_works
=yes
21323 gl_cv_func_symlink_works
=no
21325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21329 rm -f conftest.f conftest.link conftest.lnk2
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21332 $as_echo "$gl_cv_func_symlink_works" >&6; }
21333 if test "$gl_cv_func_symlink_works" != yes; then
21338 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21347 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21377 if test $gl_cv_have_include_next = yes; then
21378 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21381 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21382 if ${gl_cv_next_sys_stat_h+:} false
; then :
21383 $as_echo_n "(cached) " >&6
21386 if test $ac_cv_header_sys_stat_h = yes; then
21389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21391 #include <sys/stat.h>
21395 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21396 *) gl_absname_cpp
="$ac_cpp" ;;
21398 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21399 sed -n '\#/sys/stat.h#{
21400 s#.*"\(.*/sys/stat.h\)".*#\1#
21406 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21412 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21414 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21416 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21418 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21421 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21423 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21429 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21430 #include <sys/stat.h>
21432 if test "x$ac_cv_type_nlink_t" = xyes
; then :
21436 $as_echo "#define nlink_t int" >>confdefs.h
21454 if test $ac_cv_have_decl_localtime_r = no
; then
21455 HAVE_DECL_LOCALTIME_R
=0
21459 if test $ac_cv_func_localtime_r = yes; then
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21462 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21463 if ${gl_cv_time_r_posix+:} false
; then :
21464 $as_echo_n "(cached) " >&6
21466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21472 /* We don't need to append 'restrict's to the argument types,
21473 even though the POSIX signature has the 'restrict's,
21474 since C99 says they can't affect type compatibility. */
21475 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21477 /* Check the return type is a pointer.
21478 On HP-UX 10 it is 'int'. */
21479 *localtime_r (0, 0);
21485 if ac_fn_c_try_compile
"$LINENO"; then :
21486 gl_cv_time_r_posix
=yes
21488 gl_cv_time_r_posix
=no
21490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21494 $as_echo "$gl_cv_time_r_posix" >&6; }
21495 if test $gl_cv_time_r_posix = yes; then
21496 REPLACE_LOCALTIME_R
=0
21498 REPLACE_LOCALTIME_R
=1
21504 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21513 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21544 if test $gl_cv_have_include_next = yes; then
21545 gl_cv_next_unistd_h
='<'unistd.h
'>'
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21548 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21549 if ${gl_cv_next_unistd_h+:} false
; then :
21550 $as_echo_n "(cached) " >&6
21553 if test $ac_cv_header_unistd_h = yes; then
21556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21558 #include <unistd.h>
21562 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21563 *) gl_absname_cpp
="$ac_cpp" ;;
21565 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21566 sed -n '\#/unistd.h#{
21567 s#.*"\(.*/unistd.h\)".*#\1#
21573 gl_cv_next_unistd_h
='<'unistd.h
'>'
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21579 $as_echo "$gl_cv_next_unistd_h" >&6; }
21581 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21583 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21585 gl_next_as_first_directive
='<'unistd.h
'>'
21587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21588 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21590 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21595 if test $ac_cv_header_unistd_h = yes; then
21604 gl_gnulib_enabled_dosname
=false
21605 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21606 gl_gnulib_enabled_sigprocmask
=false
21607 gl_gnulib_enabled_stat
=false
21608 gl_gnulib_enabled_strtoll
=false
21609 gl_gnulib_enabled_strtoull
=false
21610 gl_gnulib_enabled_verify
=false
21611 func_gl_gnulib_m4code_dosname
()
21613 if ! $gl_gnulib_enabled_dosname; then
21614 gl_gnulib_enabled_dosname
=true
21617 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21619 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21622 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21625 func_gl_gnulib_m4code_sigprocmask
()
21627 if ! $gl_gnulib_enabled_sigprocmask; then
21631 if test $gl_cv_type_sigset_t = yes; then
21632 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21633 if test "x$ac_cv_func_sigprocmask" = xyes
; then :
21634 gl_cv_func_sigprocmask
=1
21638 if test -z "$gl_cv_func_sigprocmask"; then
21639 HAVE_POSIX_SIGNALBLOCKING
=0
21642 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21651 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21660 GNULIB_SIGPROCMASK
=1
21666 gl_gnulib_enabled_sigprocmask
=true
21669 func_gl_gnulib_m4code_stat
()
21671 if ! $gl_gnulib_enabled_stat; then
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21676 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21677 if ${gl_cv_func_stat_dir_slash+:} false
; then :
21678 $as_echo_n "(cached) " >&6
21680 if test "$cross_compiling" = yes; then :
21682 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21683 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21688 #include <sys/stat.h>
21693 struct stat st; return stat (".", &st) != stat ("./", &st);
21698 if ac_fn_c_try_run
"$LINENO"; then :
21699 gl_cv_func_stat_dir_slash
=yes
21701 gl_cv_func_stat_dir_slash
=no
21703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21709 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21711 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21712 if ${gl_cv_func_stat_file_slash+:} false
; then :
21713 $as_echo_n "(cached) " >&6
21716 # Assume that if we have lstat, we can also check symlinks.
21717 if test $ac_cv_func_lstat = yes; then
21718 ln -s conftest.tmp conftest.lnk
21720 if test "$cross_compiling" = yes; then :
21721 gl_cv_func_stat_file_slash
="guessing no"
21723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21725 #include <sys/stat.h>
21732 if (!stat ("conftest.tmp/", &st))
21735 if (!stat ("conftest.lnk/", &st))
21744 if ac_fn_c_try_run
"$LINENO"; then :
21745 gl_cv_func_stat_file_slash
=yes
21747 gl_cv_func_stat_file_slash
=no
21749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21753 rm -f conftest.tmp conftest.lnk
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21756 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21757 case $gl_cv_func_stat_dir_slash in
21758 *no
) REPLACE_STAT
=1
21760 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21763 case $gl_cv_func_stat_file_slash in
21764 *no
) REPLACE_STAT
=1
21766 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21770 if test $REPLACE_STAT = 1; then
21779 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21797 gl_gnulib_enabled_stat
=true
21798 if $condition; then
21799 func_gl_gnulib_m4code_dosname
21801 if $condition; then
21802 func_gl_gnulib_m4code_verify
21806 func_gl_gnulib_m4code_strtoll
()
21808 if ! $gl_gnulib_enabled_strtoll; then
21812 if test "$ac_cv_type_long_long_int" = yes; then
21813 for ac_func
in strtoll
21815 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21816 if test "x$ac_cv_func_strtoll" = xyes
; then :
21817 cat >>confdefs.h
<<_ACEOF
21818 #define HAVE_STRTOLL 1
21824 if test $ac_cv_func_strtoll = no
; then
21829 if test $HAVE_STRTOLL = 0; then
21838 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21855 gl_gnulib_enabled_strtoll
=true
21858 func_gl_gnulib_m4code_strtoull
()
21860 if ! $gl_gnulib_enabled_strtoull; then
21864 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21865 for ac_func
in strtoull
21867 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21868 if test "x$ac_cv_func_strtoull" = xyes
; then :
21869 cat >>confdefs.h
<<_ACEOF
21870 #define HAVE_STRTOULL 1
21876 if test $ac_cv_func_strtoull = no
; then
21881 if test $HAVE_STRTOULL = 0; then
21890 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
21907 gl_gnulib_enabled_strtoull
=true
21910 func_gl_gnulib_m4code_verify
()
21912 if ! $gl_gnulib_enabled_verify; then
21913 gl_gnulib_enabled_verify
=true
21916 if test $REPLACE_GETOPT = 1; then
21917 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21919 if test $REPLACE_LSTAT = 1; then
21920 func_gl_gnulib_m4code_dosname
21922 if test $REPLACE_LSTAT = 1; then
21923 func_gl_gnulib_m4code_stat
21925 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21926 func_gl_gnulib_m4code_sigprocmask
21928 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21929 func_gl_gnulib_m4code_stat
21931 if test $ac_cv_func_strtoimax = no
; then
21932 func_gl_gnulib_m4code_verify
21934 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
21935 func_gl_gnulib_m4code_strtoll
21937 if test $ac_cv_func_strtoumax = no
; then
21938 func_gl_gnulib_m4code_verify
21940 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
21941 func_gl_gnulib_m4code_strtoull
21944 if $gl_gnulib_enabled_dosname; then
21945 gl_GNULIB_ENABLED_dosname_TRUE
=
21946 gl_GNULIB_ENABLED_dosname_FALSE
='#'
21948 gl_GNULIB_ENABLED_dosname_TRUE
='#'
21949 gl_GNULIB_ENABLED_dosname_FALSE
=
21952 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21953 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
21954 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
21956 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
21957 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
21960 if $gl_gnulib_enabled_sigprocmask; then
21961 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
21962 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
21964 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
21965 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
21968 if $gl_gnulib_enabled_stat; then
21969 gl_GNULIB_ENABLED_stat_TRUE
=
21970 gl_GNULIB_ENABLED_stat_FALSE
='#'
21972 gl_GNULIB_ENABLED_stat_TRUE
='#'
21973 gl_GNULIB_ENABLED_stat_FALSE
=
21976 if $gl_gnulib_enabled_strtoll; then
21977 gl_GNULIB_ENABLED_strtoll_TRUE
=
21978 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
21980 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
21981 gl_GNULIB_ENABLED_strtoll_FALSE
=
21984 if $gl_gnulib_enabled_strtoull; then
21985 gl_GNULIB_ENABLED_strtoull_TRUE
=
21986 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
21988 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
21989 gl_GNULIB_ENABLED_strtoull_FALSE
=
21992 if $gl_gnulib_enabled_verify; then
21993 gl_GNULIB_ENABLED_verify_TRUE
=
21994 gl_GNULIB_ENABLED_verify_FALSE
='#'
21996 gl_GNULIB_ENABLED_verify_TRUE
='#'
21997 gl_GNULIB_ENABLED_verify_FALSE
=
22000 # End of code from modules
22021 gl_source_base
='tests'
22022 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
22024 gl_module_indicator_condition
=$gltests_WITNESS
22035 LIBGNU_LIBDEPS
="$gl_libdeps"
22037 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22042 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22045 ## The -headerpad option tells ld (see man page) to leave room at the
22046 ## end of the header for adding load commands. Needed for dumping.
22047 ## 0x690 is the total size of 30 segment load commands (at 56
22048 ## each); under Cocoa 31 commands are required.
22049 if test "$HAVE_NS" = "yes"; then
22050 libs_nsgui
="-framework AppKit"
22051 headerpad_extra
=6C8
22054 headerpad_extra
=690
22056 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22058 ## This is here because src/Makefile.in did some extra fiddling around
22059 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22060 ## #ifndef LD_SWITCH_SYSTEM
22061 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22062 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22063 ## not using gcc, darwin system not on an alpha (ie darwin, since
22064 ## darwin + alpha does not occur).
22065 ## Because this was done in src/Makefile.in, the resulting part of
22066 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22067 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22068 ## rather than LD_SWITCH_SYSTEM.
22069 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22070 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22073 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22074 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22075 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22076 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22077 ## had different values in configure (in ac_link) and src/Makefile.in.
22078 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22079 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
22081 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22084 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22085 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22094 ## gnu: GNU needs its own crt0.
22095 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22097 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22098 ## library search parth, i.e. it won't search /usr/lib for libc and
22099 ## friends. Using -nostartfiles instead avoids this problem, and
22100 ## will also work on earlier NetBSD releases.
22101 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22103 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22104 ## MkLinux/LinuxPPC needs this.
22105 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22108 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22114 if test "x$ORDINARY_LINK" = "xyes"; then
22118 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22121 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22122 ## freebsd, gnu-* not on macppc|ibms390x.
22123 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22125 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22126 ## places that are difficult to figure out at make time. Fortunately,
22127 ## these same versions allow you to pass arbitrary flags on to the
22128 ## linker, so there is no reason not to use it as a linker.
22130 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22131 ## searching for libraries in its internal directories, so we have to
22132 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22133 LD_FIRSTFLAG
="-nostdlib"
22136 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22137 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22142 ## FIXME? The logic here is not precisely the same as that above.
22143 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22144 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22146 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22149 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22152 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22153 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22159 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22160 ## immediately undefine it again and redefine it to empty.
22161 ## Was the C_SWITCH_X_SITE part really necessary?
22162 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22168 ## Ask GCC where to find libgcc.a.
22169 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22174 ## If we're using X11/GNUstep, define some consequences.
22175 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22177 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22180 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22187 #### Report on what we decided to do.
22188 #### Report GTK as a toolkit, even if it doesn't use Xt.
22189 #### It makes printing result more understandable as using GTK sets
22190 #### toolkit_scroll_bars to yes by default.
22191 if test "${HAVE_GTK}" = "yes"; then
22196 if test -n "$machfile"; then
22197 and_machfile
=" and \`${machfile}'"
22201 Configured for \`${canonical}'.
22203 Where should the build process find the source code? ${srcdir}
22204 What operating system and machine description files should Emacs use?
22205 \`${opsysfile}'${and_machfile}
22206 What compiler should emacs be built with? ${CC} ${CFLAGS}
22207 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22208 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22209 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22210 What window system should Emacs use? ${window_system}
22211 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22213 if test -n "${x_includes}"; then
22214 echo " Where do we find X Windows header files? ${x_includes}"
22216 echo " Where do we find X Windows header files? Standard dirs"
22218 if test -n "${x_libraries}"; then
22219 echo " Where do we find X Windows libraries? ${x_libraries}"
22221 echo " Where do we find X Windows libraries? Standard dirs"
22224 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22225 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22226 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22227 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22228 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22229 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22230 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22231 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22233 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22234 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22235 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22236 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22237 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22238 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22239 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22241 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22242 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22243 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22244 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22246 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22249 if test $USE_XASSERTS = yes; then
22250 echo " Compiling with asserts turned on."
22251 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22256 if test "$HAVE_NS" = "yes"; then
22258 echo "You must run \"make install\" in order to test the built application.
22259 The installed application will go to nextstep/Emacs.app and can be
22260 run or moved from there."
22261 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22262 echo "The application will be fully self-contained."
22264 echo "The lisp resources for the application will be installed under ${prefix}.
22265 You may need to run \"make install\" with sudo. The application will fail
22266 to run if these resources are not installed."
22272 # Remove any trailing slashes in these variables.
22273 test "${prefix}" != NONE
&&
22274 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22275 test "${exec_prefix}" != NONE
&&
22276 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22278 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"
22280 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"
22283 opt_makefile
=test
/automated
/Makefile
22285 if test -f $srcdir/${opt_makefile}.
in; then
22286 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22287 ac_config_files
="$ac_config_files test/automated/Makefile"
22291 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22295 ac_config_commands
="$ac_config_commands mkdirs"
22298 ac_config_commands
="$ac_config_commands epaths"
22301 ac_config_commands
="$ac_config_commands gdbinit"
22304 cat >confcache
<<\_ACEOF
22305 # This file is a shell script that caches the results of configure
22306 # tests run on this system so they can be shared between configure
22307 # scripts and configure runs, see configure's option --config-cache.
22308 # It is not useful on other systems. If it contains results you don't
22309 # want to keep, you may remove or edit it.
22311 # config.status only pays attention to the cache file if you give it
22312 # the --recheck option to rerun configure.
22314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22316 # following values.
22320 # The following way of writing the cache mishandles newlines in values,
22321 # but we know of no workaround that is simple, portable, and efficient.
22322 # So, we kill variables containing newlines.
22323 # Ultrix sh set writes to stderr and can't be redirected directly,
22324 # and sets the high bit in the cache file unless we assign to the vars.
22326 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22327 eval ac_val
=\$
$ac_var
22331 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22335 _ | IFS | as_nl
) ;; #(
22336 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22337 *) { eval $ac_var=; unset $ac_var;} ;;
22343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22344 *${as_nl}ac_space
=\
*)
22345 # `set' does not quote correctly, so add quotes: double-quote
22346 # substitution turns \\\\ into \\, and sed turns \\ into \.
22349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22352 # `set' quotes correctly as required by POSIX, so do not add quotes.
22353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22366 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22367 if test -w "$cache_file"; then
22368 if test "x$cache_file" != "x/dev/null"; then
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22370 $as_echo "$as_me: updating cache $cache_file" >&6;}
22371 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
22372 cat confcache
>"$cache_file"
22374 case $cache_file in #(
22376 mv -f confcache
"$cache_file"$$
&&
22377 mv -f "$cache_file"$$
"$cache_file" ;; #(
22379 mv -f confcache
"$cache_file" ;;
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22390 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22391 # Let make expand exec_prefix.
22392 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22394 DEFS
=-DHAVE_CONFIG_H
22399 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22400 # 1. Remove the extension, and $U if already installed.
22401 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22402 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22404 # will be set to the directory where LIBOBJS objects are built.
22405 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22406 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22408 LIBOBJS
=$ac_libobjs
22410 LTLIBOBJS
=$ac_ltlibobjs
22413 if test -n "$EXEEXT"; then
22415 am__EXEEXT_FALSE
='#'
22417 am__EXEEXT_TRUE
='#'
22421 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22422 as_fn_error $?
"conditional \"AMDEP\" was never defined.
22423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22426 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
22427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22430 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22431 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
22432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22434 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22435 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22439 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22440 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22443 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22444 as_fn_error $?
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22447 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22448 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22451 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22452 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22455 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22456 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22459 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22460 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22463 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22464 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22467 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22468 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22471 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22472 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22475 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22476 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22479 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22480 as_fn_error $?
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22486 if test -n "$gl_LIBOBJS"; then
22487 # Remove the extension.
22488 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22489 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22490 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22491 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22494 gl_LIBOBJS
=$gl_libobjs
22496 gl_LTLIBOBJS
=$gl_ltlibobjs
22502 if test -n "$gltests_LIBOBJS"; then
22503 # Remove the extension.
22504 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22505 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22506 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22507 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22510 gltests_LIBOBJS
=$gltests_libobjs
22512 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22516 : "${CONFIG_STATUS=./config.status}"
22518 ac_clean_files_save
=$ac_clean_files
22519 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22521 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22523 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22525 # Generated by $as_me.
22526 # Run this file to recreate the current configuration.
22527 # Compiler output produced by configure, useful for debugging
22528 # configure, is in config.log if it exists.
22531 ac_cs_recheck=false
22534 SHELL=\${CONFIG_SHELL-$SHELL}
22537 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22538 ## -------------------- ##
22539 ## M4sh Initialization. ##
22540 ## -------------------- ##
22542 # Be more Bourne compatible
22543 DUALCASE
=1; export DUALCASE
# for MKS sh
22544 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22548 # is contrary to our usage. Disable this feature.
22549 alias -g '${1+"$@"}'='"$@"'
22550 setopt NO_GLOB_SUBST
22552 case `(set -o) 2>/dev/null` in #(
22564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22565 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22568 # Prefer a ksh shell builtin over an external printf program on Solaris,
22569 # but without wasting forks for bash or zsh.
22570 if test -z "$BASH_VERSION$ZSH_VERSION" \
22571 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22572 as_echo='print
-r --'
22573 as_echo_n='print
-rn --'
22574 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22575 as_echo='printf %s
\n'
22576 as_echo_n='printf %s
'
22578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22579 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22580 as_echo_n='/usr
/ucb
/echo -n'
22582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22583 as_echo_n_body='eval
22587 expr "X$arg" : "X\\(.*\\)$as_nl";
22588 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22590 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22592 export as_echo_n_body
22593 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22595 export as_echo_body
22596 as_echo='sh
-c $as_echo_body as_echo
'
22599 # The user is always right.
22600 if test "${PATH_SEPARATOR+set}" != set; then
22602 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22603 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22610 # We need space, tab and new line, in precisely that order. Quoting is
22611 # there to prevent editors from complaining about space-tab.
22612 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22613 # splitting by setting IFS to empty value.)
22616 # Find who we are. Look in the path if we contain no directory separator.
22619 *[\\/]* ) as_myself=$0 ;;
22620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22624 test -z "$as_dir" && as_dir=.
22625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22631 # We did not find ourselves, most probably we were run as `sh COMMAND'
22632 # in which case we are not to be found in the path.
22633 if test "x$as_myself" = x
; then
22636 if test ! -f "$as_myself"; then
22637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22641 # Unset variables that we do not need and which cause bugs (e.g. in
22642 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22643 # suppresses any "Segmentation fault" message there. '((' could
22644 # trigger a bug in pdksh 5.2.14.
22645 for as_var
in BASH_ENV ENV MAIL MAILPATH
22646 do eval test x\
${$as_var+set} = xset \
22647 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22660 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22663 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22664 # ----------------------------------------
22665 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22666 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22667 # script with STATUS, using 1 if that was 0.
22670 as_status
=$1; test $as_status -eq 0 && as_status
=1
22672 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22675 $as_echo "$as_me: error: $2" >&2
22676 as_fn_exit
$as_status
22680 # as_fn_set_status STATUS
22681 # -----------------------
22682 # Set $? to STATUS, without forking.
22683 as_fn_set_status
()
22686 } # as_fn_set_status
22688 # as_fn_exit STATUS
22689 # -----------------
22690 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22694 as_fn_set_status
$1
22700 # Portably unset VAR.
22703 { eval $1=; unset $1;}
22705 as_unset
=as_fn_unset
22706 # as_fn_append VAR VALUE
22707 # ----------------------
22708 # Append the text in VALUE to the end of the definition contained in VAR. Take
22709 # advantage of any shell optimizations that allow amortized linear growth over
22710 # repeated appends, instead of the typical quadratic growth present in naive
22712 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22713 eval 'as_fn_append ()
22724 # as_fn_arith ARG...
22725 # ------------------
22726 # Perform arithmetic evaluation on the ARGs, and store the result in the
22727 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22728 # must be portable across $(()) and expr.
22729 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22730 eval 'as_fn_arith ()
22737 as_val
=`expr "$@" || test $? -eq 1`
22742 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22743 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22749 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22750 as_basename
=basename
22755 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22761 as_me
=`$as_basename -- "$0" ||
22762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22763 X"$0" : 'X\(//\)$' \| \
22764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22766 sed '/^.*\/\([^/][^/]*\)\/*$/{
22780 # Avoid depending upon Character Ranges.
22781 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22782 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22783 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22784 as_cr_digits
='0123456789'
22785 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22787 ECHO_C
= ECHO_N
= ECHO_T
=
22788 case `echo -n x` in #(((((
22790 case `echo 'xy\c'` in
22791 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22793 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22800 rm -f conf$$ conf$$.exe conf$$.
file
22801 if test -d conf$$.dir
; then
22802 rm -f conf$$.dir
/conf$$.
file
22805 mkdir conf$$.dir
2>/dev
/null
22807 if (echo >conf$$.
file) 2>/dev
/null
; then
22808 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22810 # ... but there are two gotchas:
22811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22813 # In both cases, we have to default to `cp -p'.
22814 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22816 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22824 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22825 rmdir conf$$.dir
2>/dev
/null
22830 # Create "$as_dir" as a directory, including parents if necessary.
22835 -*) as_dir
=.
/$as_dir;;
22837 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22841 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22842 *) as_qdir
=$as_dir;;
22844 as_dirs
="'$as_qdir' $as_dirs"
22845 as_dir
=`$as_dirname -- "$as_dir" ||
22846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22847 X"$as_dir" : 'X\(//\)[^/]' \| \
22848 X"$as_dir" : 'X\(//\)$' \| \
22849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22850 $as_echo X"$as_dir" |
22851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22855 /^X\(\/\/\)[^/].*/{
22868 test -d "$as_dir" && break
22870 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22871 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
22875 if mkdir
-p .
2>/dev
/null
; then
22876 as_mkdir_p
='mkdir -p "$as_dir"'
22878 test -d .
/-p && rmdir .
/-p
22882 if test -x / >/dev
/null
2>&1; then
22883 as_test_x
='test -x'
22885 if ls -dL / >/dev
/null
2>&1; then
22892 if test -d "$1"; then
22898 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22899 ???[sx]*):;;*)false;;esac;fi
22903 as_executable_p
=$as_test_x
22905 # Sed expression to map a string onto a valid CPP name.
22906 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22908 # Sed expression to map a string onto a valid variable name.
22909 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22913 ## ----------------------------------- ##
22914 ## Main body of $CONFIG_STATUS script. ##
22915 ## ----------------------------------- ##
22917 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22920 # Save the log message, to keep $0 and so on meaningful, and to
22921 # report actual input values of CONFIG_FILES etc. instead of their
22922 # values after options handling.
22924 This file was extended by emacs $as_me 24.0.50, which was
22925 generated by GNU Autoconf 2.68. Invocation command line was
22927 CONFIG_FILES = $CONFIG_FILES
22928 CONFIG_HEADERS = $CONFIG_HEADERS
22929 CONFIG_LINKS = $CONFIG_LINKS
22930 CONFIG_COMMANDS = $CONFIG_COMMANDS
22933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22938 case $ac_config_files in *"
22939 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22942 case $ac_config_headers in *"
22943 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22948 # Files that config.status was made for.
22949 config_files="$ac_config_files"
22950 config_headers="$ac_config_headers"
22951 config_commands="$ac_config_commands"
22955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22957 \`$as_me' instantiates files and other configuration actions
22958 from templates according to the current configuration. Unless the files
22959 and actions are specified as TAGs, all are instantiated by default.
22961 Usage: $0 [OPTION]... [TAG]...
22963 -h, --help print this help, then exit
22964 -V, --version print version number and configuration settings, then exit
22965 --config print configuration, then exit
22966 -q, --quiet, --silent
22967 do not print progress messages
22968 -d, --debug don't remove temporary files
22969 --recheck update $as_me by reconfiguring in the same conditions
22970 --file=FILE[:TEMPLATE]
22971 instantiate the configuration file FILE
22972 --header=FILE[:TEMPLATE]
22973 instantiate the configuration header FILE
22975 Configuration files:
22978 Configuration headers:
22981 Configuration commands:
22984 Report bugs to the package provider."
22987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22988 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22990 emacs config.status 24.0.50
22991 configured by $0, generated by GNU Autoconf 2.68,
22992 with options \\"\$ac_cs_config\\"
22994 Copyright (C) 2010 Free Software Foundation, Inc.
22995 This config.status script is free software; the Free Software Foundation
22996 gives unlimited permission to copy, distribute and modify it."
23003 test -n "\$AWK" || AWK=awk
23006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23007 # The default lists apply if the user does not specify any file.
23013 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23014 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23018 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23030 # Handling of the options.
23031 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23033 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23034 $as_echo "$ac_cs_version"; exit ;;
23035 --config |
--confi |
--conf |
--con |
--co |
--c )
23036 $as_echo "$ac_cs_config"; exit ;;
23037 --debug |
--debu |
--deb |
--de |
--d |
-d )
23039 --file |
--fil |
--fi |
--f )
23042 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23043 '') as_fn_error $?
"missing file argument" ;;
23045 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23046 ac_need_defaults
=false
;;
23047 --header |
--heade |
--head |
--hea )
23050 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23052 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23053 ac_need_defaults
=false
;;
23055 # Conflict between --help and --header
23056 as_fn_error $?
"ambiguous option: \`$1'
23057 Try \`$0 --help' for more information.";;
23058 --help |
--hel |
-h )
23059 $as_echo "$ac_cs_usage"; exit ;;
23060 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23061 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23064 # This is an error.
23065 -*) as_fn_error $?
"unrecognized option: \`$1'
23066 Try \`$0 --help' for more information." ;;
23068 *) as_fn_append ac_config_targets
" $1"
23069 ac_need_defaults
=false
;;
23075 ac_configure_extra_args
=
23077 if $ac_cs_silent; then
23079 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084 if \$ac_cs_recheck; then
23085 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23088 CONFIG_SHELL='$SHELL'
23089 export CONFIG_SHELL
23094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23099 ## Running $as_me. ##
23105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23110 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23116 # Handling of arguments.
23117 for ac_config_target
in $ac_config_targets
23119 case $ac_config_target in
23120 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23121 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23122 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23123 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23124 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23125 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23126 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23127 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23128 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23129 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23130 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23131 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23132 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23133 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23134 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23135 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23136 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23137 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23139 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23144 # If the user did not use the arguments to specify the items to instantiate,
23145 # then the envvar interface is used. Set only those that are not.
23146 # We use the long form for the default assignment because of an extremely
23147 # bizarre bug on SunOS 4.1.3.
23148 if $ac_need_defaults; then
23149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23154 # Have a temporary directory for convenience. Make it in the build tree
23155 # simply because there is no reason against having it here, and in addition,
23156 # creating and moving files from /tmp can sometimes cause problems.
23157 # Hook for its removal unless debugging.
23158 # Note that there is a small window in which the directory will not be cleaned:
23159 # after its creation but before its name has been assigned to `$tmp'.
23163 trap 'exit_status=$?
23164 : "${ac_tmp:=$tmp}"
23165 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23167 trap 'as_fn_exit 1' 1 2 13 15
23169 # Create a (secure) tmp directory for tmp files.
23172 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23176 tmp
=.
/conf$$
-$RANDOM
23177 (umask 077 && mkdir
"$tmp")
23178 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
23181 # Set up the scripts for CONFIG_FILES section.
23182 # No need to generate them if there are no CONFIG_FILES.
23183 # This happens for instance with `./config.status config.h'.
23184 if test -n "$CONFIG_FILES"; then
23186 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23187 ac_cs_awk_getline
=:
23188 ac_cs_awk_pipe_init
=
23189 ac_cs_awk_read_file
='
23190 while ((getline aline < (F[key])) > 0)
23193 ac_cs_awk_pipe_fini
=
23195 ac_cs_awk_getline
=false
23196 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23197 ac_cs_awk_read_file
='
23199 print "cat " F[key] " &&"
23200 '$ac_cs_awk_pipe_init
23201 # The final `:' finishes the AND list.
23202 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23204 ac_cr
=`echo X | tr X '\015'`
23205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23206 # But we know of no other shell where ac_cr would be empty at this
23207 # point, so we can use a bashism as a fallback.
23208 if test "x$ac_cr" = x
; then
23209 eval ac_cr
=\$
\'\\r
\'
23211 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23215 ac_cs_awk_cr
=$ac_cr
23218 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23221 # Create commands to substitute file output variables.
23223 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23224 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
23225 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23228 } >conf$
$files.sh
&&
23229 . .
/conf$
$files.sh ||
23230 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
23231 rm -f conf$
$files.sh
23234 echo "cat >conf$$subs.awk <<_ACEOF" &&
23235 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23237 } >conf$$subs.sh ||
23238 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23241 for ac_last_try in false false false false false :; do
23242 . ./conf$$subs.sh ||
23243 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23245 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23246 if test $ac_delim_n = $ac_delim_num; then
23248 elif $ac_last_try; then
23249 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23251 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23254 rm -f conf$$subs.sh
23256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23257 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
23261 s/^/S["/; s
/!.
*/"]=/
23271 s/\(.\{148\}\)..*/\1/
23273 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23278 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23285 s/\(.\{148\}\)..*/\1/
23287 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23291 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23296 ' <conf$$subs.awk | sed '
23301 ' >>$CONFIG_STATUS || ac_write_fail=1
23302 rm -f conf$$subs.awk
23303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23305 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
23306 for (key in S) S_is_set[key] = 1
23308 \$ac_cs_awk_pipe_init
23312 nfields = split(line, field, "@
")
23314 len = length(field[1])
23315 for (i = 2; i < nfields; i++) {
23317 keylen = length(key)
23318 if (S_is_set[key]) {
23320 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23321 len += length(value) + length(field[++i])
23326 if (nfields == 3 && !substed) {
23328 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23329 \$ac_cs_awk_read_file
23335 \$ac_cs_awk_pipe_fini
23338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23339 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23340 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23343 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
23344 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
23347 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23348 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
23349 # trailing colons and then remove the whole line if VPATH becomes empty
23350 # (actually we leave an empty line to preserve line numbers).
23351 if test "x
$srcdir" = x.; then
23352 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23371 fi # test -n "$CONFIG_FILES"
23373 # Set up the scripts for CONFIG_HEADERS section.
23374 # No need to generate them if there are no CONFIG_HEADERS.
23375 # This happens for instance with `./config.status Makefile'.
23376 if test -n "$CONFIG_HEADERS"; then
23377 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
23381 # Transform confdefs.h into an awk script `defines.awk', embedded as
23382 # here-document in config.status, that substitutes the proper values into
23383 # config.h.in to produce config.h.
23385 # Create a delimiter string that does not exist in confdefs.h, to ease
23386 # handling of long lines.
23388 for ac_last_try in false false :; do
23389 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
23390 if test -z "$ac_tt"; then
23392 elif $ac_last_try; then
23393 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
23395 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23399 # For the awk script, D is an array of macro values keyed by name,
23400 # likewise P contains macro parameters if any. Preserve backslash
23401 # newline sequences.
23403 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23405 s/.\{148\}/&'"$ac_delim"'/g
23408 s/^[ ]*#[ ]*define[ ][ ]*/ /
23415 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23417 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23422 D["\
1"]=" \
3\\\\\\n
"\\/p
23424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23429 s/.\{148\}/&'"$ac_delim"'/g
23434 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23437 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23439 ' <confdefs.h | sed '
23440 s/'"$ac_delim"'/"\\\
23441 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23444 for (key in D) D_is_set[key] = 1
23447 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23449 split(line, arg, " ")
23450 if (arg[1] == "#") {
23454 defundef
= substr
(arg
[1], 2)
23457 split(mac1
, mac2
, "(") #)
23459 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23460 if (D_is_set
[macro
]) {
23461 # Preserve the white space surrounding the "#".
23462 print prefix
"define", macro P
[macro
] D
[macro
]
23465 # Replace #undef with comments. This is necessary, for example,
23466 # in the case of _POSIX_SOURCE, which is predefined and required
23467 # on some systems where configure will not decide to define it.
23468 if (defundef
== "undef") {
23469 print
"/*", prefix defundef
, macro
, "*/"
23477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23478 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
23479 fi # test -n "$CONFIG_HEADERS"
23482 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23487 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23489 case $ac_mode$ac_tag in
23491 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23492 :[FH
]-) ac_tag
=-:-;;
23493 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23510 -) ac_f
="$ac_tmp/stdin";;
23511 *) # Look for the file first in the build tree, then in the source tree
23512 # (if the path is not absolute). The absolute path cannot be DOS-style,
23513 # because $ac_f cannot contain `:'.
23517 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23519 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23521 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23522 as_fn_append ac_file_inputs
" '$ac_f'"
23525 # Let's still pretend it is `configure' which instantiates (i.e., don't
23526 # use $as_me), people would be surprised to read:
23527 # /* config.h. Generated by config.status. */
23528 configure_input
='Generated from '`
23529 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23531 if test x
"$ac_file" != x-
; then
23532 configure_input
="$ac_file. $configure_input"
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23534 $as_echo "$as_me: creating $ac_file" >&6;}
23536 # Neutralize special characters interpreted by sed in replacement strings.
23537 case $configure_input in #(
23538 *\
&* |
*\|
* |
*\\* )
23539 ac_sed_conf_input
=`$as_echo "$configure_input" |
23540 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23541 *) ac_sed_conf_input
=$configure_input;;
23545 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
23546 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
23551 ac_dir
=`$as_dirname -- "$ac_file" ||
23552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553 X"$ac_file" : 'X\(//\)[^/]' \| \
23554 X"$ac_file" : 'X\(//\)$' \| \
23555 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23556 $as_echo X"$ac_file" |
23557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23561 /^X\(\/\/\)[^/].*/{
23574 as_dir
="$ac_dir"; as_fn_mkdir_p
23578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23581 # A ".." for each directory in $ac_dir_suffix.
23582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23583 case $ac_top_builddir_sub in
23584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23588 ac_abs_top_builddir
=$ac_pwd
23589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23590 # for backward compatibility:
23591 ac_top_builddir
=$ac_top_build_prefix
23594 .
) # We are building in place.
23596 ac_top_srcdir
=$ac_top_builddir_sub
23597 ac_abs_top_srcdir
=$ac_pwd ;;
23598 [\\/]* | ?
:[\\/]* ) # Absolute name.
23599 ac_srcdir
=$srcdir$ac_dir_suffix;
23600 ac_top_srcdir
=$srcdir
23601 ac_abs_top_srcdir
=$srcdir ;;
23602 *) # Relative name.
23603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23617 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23618 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23620 ac_MKDIR_P
=$MKDIR_P
23622 [\\/$
]* | ?
:[\\/]* ) ;;
23623 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23628 # If the template does not know about datarootdir, expand it.
23629 # FIXME: This hack should be removed a few years after 2.60.
23630 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23642 *datarootdir
*) ac_datarootdir_seen
=yes;;
23643 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23648 ac_datarootdir_hack='
23649 s&@datadir@&$datadir&g
23650 s&@docdir@&$docdir&g
23651 s&@infodir@&$infodir&g
23652 s&@localedir@&$localedir&g
23653 s&@mandir@&$mandir&g
23654 s&\\\${datarootdir}&$datarootdir&g' ;;
23658 # Neutralize VPATH when `$srcdir' = `.'.
23659 # Shell code in configure.ac might set extrasub.
23660 # FIXME: do we really want to maintain this feature?
23661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23662 ac_sed_extra="$ac_vpsub
23665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23667 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23668 s|@configure_input@|
$ac_sed_conf_input|
;t t
23669 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23670 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23671 s
&@srcdir@
&$ac_srcdir&;t t
23672 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23673 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23674 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23675 s
&@builddir@
&$ac_builddir&;t t
23676 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23677 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23678 s
&@INSTALL@
&$ac_INSTALL&;t t
23679 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23680 $ac_datarootdir_hack
23682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23683 if $ac_cs_awk_getline; then
23684 $AWK -f "$ac_tmp/subs.
awk"
23686 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
23688 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
23690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
23692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23693 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23695 which seems to be undefined. Please make sure it is defined" >&5
23696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23697 which seems to be undefined. Please make sure it is defined" >&2;}
23699 rm -f "$ac_tmp/stdin"
23701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23710 if test x"$ac_file" != x-; then
23712 $as_echo "/* $configure_input */" \
23713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23714 } >"$ac_tmp/config.h" \
23715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23721 mv "$ac_tmp/config.h" "$ac_file" \
23722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23725 $as_echo "/* $configure_input */" \
23726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23727 || as_fn_error $? "could not create -" "$LINENO" 5
23729 # Compute "$ac_file"'s index
in $config_headers.
23732 for _am_header
in $config_headers :; do
23733 case $_am_header in
23734 $_am_arg |
$_am_arg:* )
23737 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23740 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23741 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$_am_arg" : 'X\(//\)[^/]' \| \
23743 X"$_am_arg" : 'X\(//\)$' \| \
23744 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23745 $as_echo X"$_am_arg" |
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23750 /^X\(\/\/\)[^/].*/{
23762 s/.*/./; q'`/stamp-h
$_am_stamp_count
23765 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23766 $as_echo "$as_me: executing $ac_file commands" >&6;}
23771 case $ac_file$ac_mode in
23772 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23773 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23774 # are listed without --file. Let's play safe and only enable the eval
23775 # if we detect the quoting.
23776 case $CONFIG_FILES in
23777 *\'*) eval set x
"$CONFIG_FILES" ;;
23778 *) set x
$CONFIG_FILES ;;
23783 # Strip MF so we end up with the name of the file.
23784 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23785 # Check whether this is an Automake generated Makefile or not.
23786 # We used to match only the files named `Makefile.in', but
23787 # some people rename them; so instead we look at the file content.
23788 # Grep'ing the first line is not enough: some people post-process
23789 # each Makefile.in and add a new line on top of each file to say so.
23790 # Grep'ing the whole file is not good either: AIX grep has a line
23791 # limit of 2048, but all sed's we know have understand at least 4000.
23792 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23793 dirpart
=`$as_dirname -- "$mf" ||
23794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23795 X"$mf" : 'X\(//\)[^/]' \| \
23796 X"$mf" : 'X\(//\)$' \| \
23797 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23803 /^X\(\/\/\)[^/].*/{
23819 # Extract the definition of DEPDIR, am__include, and am__quote
23820 # from the Makefile without running `make'.
23821 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23822 test -z "$DEPDIR" && continue
23823 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23824 test -z "am__include" && continue
23825 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23826 # When using ansi2knr, U may be empty or an underscore; expand it
23827 U
=`sed -n 's/^U = //p' < "$mf"`
23828 # Find all dependency output files, they are included files with
23829 # $(DEPDIR) in their names. We invoke sed twice because it is the
23830 # simplest approach to changing $(DEPDIR) to its actual value in the
23832 for file in `sed -n "
23833 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23834 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23835 # Make sure the directory exists.
23836 test -f "$dirpart/$file" && continue
23837 fdir
=`$as_dirname -- "$file" ||
23838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23839 X"$file" : 'X\(//\)[^/]' \| \
23840 X"$file" : 'X\(//\)$' \| \
23841 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23842 $as_echo X"$file" |
23843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23847 /^X\(\/\/\)[^/].*/{
23860 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23861 # echo "creating $dirpart/$file"
23862 echo '# dummy' > "$dirpart/$file"
23868 for dir
in etc lisp
; do
23869 test -d ${dir} || mkdir
${dir}
23873 echo creating src
/epaths.h
23874 ${MAKE-make} epaths-force
23877 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23878 echo creating src
/.gdbinit
23879 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23889 ac_clean_files
=$ac_clean_files_save
23891 test $ac_write_fail = 0 ||
23892 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23895 # configure is writing to config.log, and then calls config.status.
23896 # config.status does its own redirection, appending to config.log.
23897 # Unfortunately, on DOS this fails, as config.log is still kept open
23898 # by configure, so config.status won't be able to write to it; its
23899 # output is simply discarded. So we exec the FD to /dev/null,
23900 # effectively closing config.log, so it can be properly (re)opened and
23901 # appended to by config.status. When coming back to configure, we
23902 # need to make the FD available again.
23903 if test "$no_create" != yes; then
23905 ac_config_status_args
=
23906 test "$silent" = yes &&
23907 ac_config_status_args
="$ac_config_status_args --quiet"
23909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23912 # would make configure fail if this is the last instruction.
23913 $ac_cs_success || as_fn_exit
1
23915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}