2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.1.50'
553 PACKAGE_STRING
='emacs 24.1.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
633 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
663 REPLACE_OBSTACK_PRINTF
688 HAVE_DECL_OBSTACK_PRINTF
694 GNULIB_VSPRINTF_POSIX
698 GNULIB_VFPRINTF_POSIX
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
721 GNULIB_OBSTACK_PRINTF_POSIX
722 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
767 REPLACE_PTHREAD_SIGMASK
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
776 HAVE_POSIX_SIGNALBLOCKING
779 GNULIB_SIGNAL_H_SIGPIPE
781 GNULIB_PTHREAD_SIGMASK
790 HAVE_DECL_LOCALTIME_R
829 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
831 UINT64_MAX_EQ_ULONG_MAX
832 UINT32_MAX_LT_UINTMAX_MAX
835 INT64_MAX_EQ_LONG_MAX
836 INT32_MAX_LT_INTMAX_MAX
845 GL_GENERATE_STDINT_H_FALSE
846 GL_GENERATE_STDINT_H_TRUE
855 HAVE_SIGNED_SIG_ATOMIC_T
858 BITSIZEOF_SIG_ATOMIC_T
861 APPLE_UNIVERSAL_BUILD
865 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
870 HAVE_UNSIGNED_LONG_LONG_INT
874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
878 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
891 REPLACE_CANONICALIZE_FILE_NAME
896 HAVE_STRUCT_RANDOM_DATA
915 HAVE_CANONICALIZE_FILE_NAME
942 GNULIB_CANONICALIZE_FILE_NAME
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
967 REPLACE_GETDOMAINNAME
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
980 HAVE_DECL_GETDOMAINNAME
1018 GNULIB_UNISTD_H_SIGPIPE
1019 GNULIB_UNISTD_H_NONBLOCKING
1020 GNULIB_UNISTD_H_GETOPT
1044 GNULIB_GETDTABLESIZE
1045 GNULIB_GETDOMAINNAME
1061 GL_GENERATE_ALLOCA_H_FALSE
1062 GL_GENERATE_ALLOCA_H_TRUE
1065 GL_COND_LIBTOOL_FALSE
1066 GL_COND_LIBTOOL_TRUE
1099 x_default_search_path
1168 LD_SWITCH_X_SITE_RPATH
1235 INSTALL_STRIP_PROGRAM
1277 program_transform_name
1288 ac_subst_files
='deps_frag
1292 enable_option_checking
1315 with_toolkit_scroll_bars
1327 with_pkg_config_prog
1331 enable_ns_self_contained
1333 enable_maintainer_mode
1334 enable_locallisppath
1336 enable_use_lisp_union_type
1339 enable_dependency_tracking
1344 ac_precious_vars
='build_alias
1356 # Initialize some variables set by options.
1358 ac_init_version
=false
1359 ac_unrecognized_opts
=
1360 ac_unrecognized_sep
=
1361 # The variables have the same names as the options, with
1362 # dashes changed to underlines.
1363 cache_file
=/dev
/null
1370 program_transform_name
=s
,x
,x
,
1378 # Installation directory options.
1379 # These are left unexpanded so users can "make install exec_prefix=/foo"
1380 # and all the variables that are supposed to be based on exec_prefix
1381 # by default will actually change.
1382 # Use braces instead of parens because sh, perl, etc. also accept them.
1383 # (The list follows the same order as the GNU Coding Standards.)
1384 bindir
='${exec_prefix}/bin'
1385 sbindir
='${exec_prefix}/sbin'
1386 libexecdir
='${exec_prefix}/libexec'
1387 datarootdir
='${prefix}/share'
1388 datadir
='${datarootdir}'
1389 sysconfdir
='${prefix}/etc'
1390 sharedstatedir
='${prefix}/com'
1391 localstatedir
='${prefix}/var'
1392 includedir
='${prefix}/include'
1393 oldincludedir
='/usr/include'
1394 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1395 infodir
='${datarootdir}/info'
1400 libdir
='${exec_prefix}/lib'
1401 localedir
='${datarootdir}/locale'
1402 mandir
='${datarootdir}/man'
1408 # If the previous option needs an argument, assign it.
1409 if test -n "$ac_prev"; then
1410 eval $ac_prev=\
$ac_option
1416 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1420 # Accept the important Cygnus configure options, so we can diagnose typos.
1422 case $ac_dashdash$ac_option in
1426 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1428 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1429 bindir
=$ac_optarg ;;
1431 -build |
--build |
--buil |
--bui |
--bu)
1432 ac_prev
=build_alias
;;
1433 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1434 build_alias
=$ac_optarg ;;
1436 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1437 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1438 ac_prev
=cache_file
;;
1439 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1440 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1441 cache_file
=$ac_optarg ;;
1443 --config-cache |
-C)
1444 cache_file
=config.cache
;;
1446 -datadir |
--datadir |
--datadi |
--datad)
1448 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1449 datadir
=$ac_optarg ;;
1451 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1452 |
--dataroo |
--dataro |
--datar)
1453 ac_prev
=datarootdir
;;
1454 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1455 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1456 datarootdir
=$ac_optarg ;;
1458 -disable-* |
--disable-*)
1459 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1462 as_fn_error
"invalid feature name: $ac_useropt"
1463 ac_useropt_orig
=$ac_useropt
1464 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1467 "enable_
$ac_useropt"
1469 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1470 ac_unrecognized_sep
=', ';;
1472 eval enable_
$ac_useropt=no
;;
1474 -docdir |
--docdir |
--docdi |
--doc |
--do)
1476 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1477 docdir
=$ac_optarg ;;
1479 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1481 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1482 dvidir
=$ac_optarg ;;
1484 -enable-* |
--enable-*)
1485 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1486 # Reject names that are not valid shell variable names.
1487 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1488 as_fn_error
"invalid feature name: $ac_useropt"
1489 ac_useropt_orig
=$ac_useropt
1490 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491 case $ac_user_opts in
1493 "enable_
$ac_useropt"
1495 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1496 ac_unrecognized_sep
=', ';;
1498 eval enable_
$ac_useropt=\
$ac_optarg ;;
1500 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1501 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1502 |
--exec |
--exe |
--ex)
1503 ac_prev
=exec_prefix
;;
1504 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1505 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1506 |
--exec=* |
--exe=* |
--ex=*)
1507 exec_prefix
=$ac_optarg ;;
1509 -gas |
--gas |
--ga |
--g)
1510 # Obsolete; use --with-gas.
1513 -help |
--help |
--hel |
--he |
-h)
1514 ac_init_help
=long
;;
1515 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1516 ac_init_help
=recursive
;;
1517 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1518 ac_init_help
=short
;;
1520 -host |
--host |
--hos |
--ho)
1521 ac_prev
=host_alias
;;
1522 -host=* |
--host=* |
--hos=* |
--ho=*)
1523 host_alias
=$ac_optarg ;;
1525 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1527 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1529 htmldir
=$ac_optarg ;;
1531 -includedir |
--includedir |
--includedi |
--included |
--include \
1532 |
--includ |
--inclu |
--incl |
--inc)
1533 ac_prev
=includedir
;;
1534 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1535 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1536 includedir
=$ac_optarg ;;
1538 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1540 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1541 infodir
=$ac_optarg ;;
1543 -libdir |
--libdir |
--libdi |
--libd)
1545 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1546 libdir
=$ac_optarg ;;
1548 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1549 |
--libexe |
--libex |
--libe)
1550 ac_prev
=libexecdir
;;
1551 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1552 |
--libexe=* |
--libex=* |
--libe=*)
1553 libexecdir
=$ac_optarg ;;
1555 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1556 ac_prev
=localedir
;;
1557 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1558 localedir
=$ac_optarg ;;
1560 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1561 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1562 ac_prev
=localstatedir
;;
1563 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1564 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1565 localstatedir
=$ac_optarg ;;
1567 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1569 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1570 mandir
=$ac_optarg ;;
1572 -nfp |
--nfp |
--nf)
1573 # Obsolete; use --without-fp.
1576 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1577 |
--no-cr |
--no-c |
-n)
1580 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1581 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1584 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1585 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1586 |
--oldin |
--oldi |
--old |
--ol |
--o)
1587 ac_prev
=oldincludedir
;;
1588 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1589 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1590 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1591 oldincludedir
=$ac_optarg ;;
1593 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1595 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1596 prefix
=$ac_optarg ;;
1598 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1599 |
--program-pre |
--program-pr |
--program-p)
1600 ac_prev
=program_prefix
;;
1601 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1602 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1603 program_prefix
=$ac_optarg ;;
1605 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1606 |
--program-suf |
--program-su |
--program-s)
1607 ac_prev
=program_suffix
;;
1608 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1609 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1610 program_suffix
=$ac_optarg ;;
1612 -program-transform-name |
--program-transform-name \
1613 |
--program-transform-nam |
--program-transform-na \
1614 |
--program-transform-n |
--program-transform- \
1615 |
--program-transform |
--program-transfor \
1616 |
--program-transfo |
--program-transf \
1617 |
--program-trans |
--program-tran \
1618 |
--progr-tra |
--program-tr |
--program-t)
1619 ac_prev
=program_transform_name
;;
1620 -program-transform-name=* |
--program-transform-name=* \
1621 |
--program-transform-nam=* |
--program-transform-na=* \
1622 |
--program-transform-n=* |
--program-transform-=* \
1623 |
--program-transform=* |
--program-transfor=* \
1624 |
--program-transfo=* |
--program-transf=* \
1625 |
--program-trans=* |
--program-tran=* \
1626 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1627 program_transform_name
=$ac_optarg ;;
1629 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1631 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1632 pdfdir
=$ac_optarg ;;
1634 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1636 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1639 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1640 |
-silent |
--silent |
--silen |
--sile |
--sil)
1643 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1645 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1647 sbindir
=$ac_optarg ;;
1649 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1650 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1651 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1653 ac_prev
=sharedstatedir
;;
1654 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1655 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1656 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1658 sharedstatedir
=$ac_optarg ;;
1660 -site |
--site |
--sit)
1662 -site=* |
--site=* |
--sit=*)
1665 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1667 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1668 srcdir
=$ac_optarg ;;
1670 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1671 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1672 ac_prev
=sysconfdir
;;
1673 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1674 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1675 sysconfdir
=$ac_optarg ;;
1677 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1678 ac_prev
=target_alias
;;
1679 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1680 target_alias
=$ac_optarg ;;
1682 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1685 -version |
--version |
--versio |
--versi |
--vers |
-V)
1686 ac_init_version
=: ;;
1689 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1690 # Reject names that are not valid shell variable names.
1691 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1692 as_fn_error
"invalid package name: $ac_useropt"
1693 ac_useropt_orig
=$ac_useropt
1694 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1695 case $ac_user_opts in
1699 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1700 ac_unrecognized_sep
=', ';;
1702 eval with_
$ac_useropt=\
$ac_optarg ;;
1704 -without-* |
--without-*)
1705 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1706 # Reject names that are not valid shell variable names.
1707 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1708 as_fn_error
"invalid package name: $ac_useropt"
1709 ac_useropt_orig
=$ac_useropt
1710 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1711 case $ac_user_opts in
1715 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1716 ac_unrecognized_sep
=', ';;
1718 eval with_
$ac_useropt=no
;;
1721 # Obsolete; use --with-x.
1724 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1725 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1726 ac_prev
=x_includes
;;
1727 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1728 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1729 x_includes
=$ac_optarg ;;
1731 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1732 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1733 ac_prev
=x_libraries
;;
1734 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1735 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1736 x_libraries
=$ac_optarg ;;
1738 -*) as_fn_error
"unrecognized option: \`$ac_option'
1739 Try \`$0 --help' for more information."
1743 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1744 # Reject names that are not valid shell variable names.
1745 case $ac_envvar in #(
1746 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1747 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1749 eval $ac_envvar=\
$ac_optarg
1750 export $ac_envvar ;;
1753 # FIXME: should be removed in autoconf 3.0.
1754 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1755 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1756 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1757 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1763 if test -n "$ac_prev"; then
1764 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1765 as_fn_error
"missing argument to $ac_option"
1768 if test -n "$ac_unrecognized_opts"; then
1769 case $enable_option_checking in
1771 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1772 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1776 # Check all directory arguments for consistency.
1777 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1778 datadir sysconfdir sharedstatedir localstatedir includedir \
1779 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1780 libdir localedir mandir
1782 eval ac_val
=\$
$ac_var
1783 # Remove trailing slashes.
1786 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1787 eval $ac_var=\
$ac_val;;
1789 # Be sure to have absolute directory names.
1791 [\\/$
]* | ?
:[\\/]* ) continue;;
1792 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1794 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1797 # There might be people who depend on the old broken behavior: `$host'
1798 # used to hold the argument of --host etc.
1799 # FIXME: To remove some day.
1802 target
=$target_alias
1804 # FIXME: To remove some day.
1805 if test "x$host_alias" != x
; then
1806 if test "x$build_alias" = x
; then
1807 cross_compiling
=maybe
1808 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1809 If a cross compiler is detected then cross compile mode will be used." >&2
1810 elif test "x$build_alias" != "x$host_alias"; then
1816 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1818 test "$silent" = yes && exec 6>/dev
/null
1821 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1822 ac_ls_di
=`ls -di .` &&
1823 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1824 as_fn_error
"working directory cannot be determined"
1825 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1826 as_fn_error
"pwd does not report name of working directory"
1829 # Find the source files, if location was not specified.
1830 if test -z "$srcdir"; then
1831 ac_srcdir_defaulted
=yes
1832 # Try the directory containing this script, then the parent directory.
1833 ac_confdir
=`$as_dirname -- "$as_myself" ||
1834 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1835 X"$as_myself" : 'X\(//\)[^/]' \| \
1836 X"$as_myself" : 'X\(//\)$' \| \
1837 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1838 $as_echo X"$as_myself" |
1839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1857 if test ! -r "$srcdir/$ac_unique_file"; then
1861 ac_srcdir_defaulted
=no
1863 if test ! -r "$srcdir/$ac_unique_file"; then
1864 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1865 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1867 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1869 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1871 # When building in place, set srcdir=.
1872 if test "$ac_abs_confdir" = "$ac_pwd"; then
1875 # Remove unnecessary trailing slashes from srcdir.
1876 # Double slashes in file names in object file debugging info
1877 # mess up M-x gdb in Emacs.
1879 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1881 for ac_var
in $ac_precious_vars; do
1882 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1883 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1884 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1885 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1889 # Report the --help message.
1891 if test "$ac_init_help" = "long"; then
1892 # Omit some internal or obsolete options to make the list less imposing.
1893 # This message is too long to be a string in the A/UX 3.1 sh.
1895 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1897 Usage: $0 [OPTION]... [VAR=VALUE]...
1899 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1900 VAR=VALUE. See below for descriptions of some of the useful variables.
1902 Defaults for the options are specified in brackets.
1905 -h, --help display this help and exit
1906 --help=short display options specific to this package
1907 --help=recursive display the short help of all the included packages
1908 -V, --version display version information and exit
1909 -q, --quiet, --silent do not print \`checking...' messages
1910 --cache-file=FILE cache test results in FILE [disabled]
1911 -C, --config-cache alias for \`--cache-file=config.cache'
1912 -n, --no-create do not create output files
1913 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1915 Installation directories:
1916 --prefix=PREFIX install architecture-independent files in PREFIX
1917 [$ac_default_prefix]
1918 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1921 By default, \`make install' will install all the files in
1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1924 for instance \`--prefix=\$HOME'.
1926 For better control, use the options below.
1928 Fine tuning of the installation directories:
1929 --bindir=DIR user executables [EPREFIX/bin]
1930 --sbindir=DIR system admin executables [EPREFIX/sbin]
1931 --libexecdir=DIR program executables [EPREFIX/libexec]
1932 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1933 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1934 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1935 --libdir=DIR object code libraries [EPREFIX/lib]
1936 --includedir=DIR C header files [PREFIX/include]
1937 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1938 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1939 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1940 --infodir=DIR info documentation [DATAROOTDIR/info]
1941 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1942 --mandir=DIR man documentation [DATAROOTDIR/man]
1943 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1944 --htmldir=DIR html documentation [DOCDIR]
1945 --dvidir=DIR dvi documentation [DOCDIR]
1946 --pdfdir=DIR pdf documentation [DOCDIR]
1947 --psdir=DIR ps documentation [DOCDIR]
1953 --program-prefix=PREFIX prepend PREFIX to installed program names
1954 --program-suffix=SUFFIX append SUFFIX to installed program names
1955 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1958 --x-includes=DIR X include files are
in DIR
1959 --x-libraries=DIR X library files are
in DIR
1962 --build=BUILD configure
for building on BUILD
[guessed
]
1963 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1967 if test -n "$ac_init_help"; then
1968 case $ac_init_help in
1969 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1974 --disable-option-checking ignore unrecognized
--enable/--with options
1975 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1976 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1977 --disable-ns-self-contained
1978 disable self contained build under NeXTstep
1979 --enable-asserts compile code with asserts enabled
1980 --disable-maintainer-mode
1981 disable
make rules and dependencies not useful
(and
1982 sometimes confusing
) to the casual installer
1983 --enable-locallisppath=PATH
1984 directories Emacs should search
for lisp files
1985 specific to this site
1986 --enable-checking[=LIST
]
1987 enable expensive run-time checks. With LIST
, enable
1988 only specific categories of checks. Categories are
:
1989 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1990 stringfreelist
, xmallocoverrun
, conslist
1991 --enable-use-lisp-union-type
1992 use a union
for the Lisp_Object data
type. This is
1993 only useful
for development
for catching certain
1995 --enable-profiling build emacs with profiling support. This might not
1996 work on all platforms
1997 --enable-autodepend automatically generate dependencies to .h-files.
1998 Requires GNU Make and Gcc. Enabled
if GNU Make and
2000 --disable-dependency-tracking speeds up one-time build
2001 --enable-dependency-tracking do not reject slow dependency extractors
2002 --disable-largefile omit support
for large files
2003 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2006 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2007 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2008 --without-pop don
't support POP mail retrieval with movemail
2009 --with-kerberos support Kerberos-authenticated POP
2010 --with-kerberos5 support Kerberos version 5 authenticated POP
2011 --with-hesiod support Hesiod to get the POP server host
2012 --with-mmdf support MMDF mailboxes
2013 --with-mail-unlink unlink, rather than empty, mail spool after reading
2014 --with-mailhost=HOSTNAME
2015 string giving default POP mail host
2016 --without-sound don't compile with sound support
2017 --without-sync-input process async input synchronously
2018 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2019 lucid or athena
, motif
, no
)
2020 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2021 --without-xpm don
't compile with XPM image support
2022 --without-jpeg don't compile with JPEG image support
2023 --without-tiff don
't compile with TIFF image support
2024 --without-gif don't compile with GIF image support
2025 --without-png don
't compile with PNG image support
2026 --without-rsvg don't compile with SVG image support
2027 --without-xml2 don
't compile with XML parsing support
2028 --without-imagemagick don't compile with ImageMagick image support
2029 --without-xft don
't use XFT for anti aliased fonts
2030 --without-libotf don't use libotf
for OpenType font support
2031 --without-m17n-flt don
't use m17n-flt for text shaping
2032 --without-toolkit-scroll-bars
2033 don't use Motif or Xaw3d scroll bars
2034 --without-xaw3d don
't use Xaw3d
2035 --without-xim don't use X11 XIM
2036 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2037 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2039 --without-dbus don't compile with D-Bus support
2040 --without-gconf don
't compile with GConf support
2041 --without-gsettings don't compile with GSettings support
2042 --without-selinux don
't compile with SELinux support
2043 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2044 --without-makeinfo don
't require makeinfo for building manuals
2045 --without-compress-info don't
compress the installed Info pages
2046 --with-pkg-config-prog=PATH
2047 path to pkg-config
for finding GTK and librsvg
2048 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2049 /usr
/lib
, or
/usr
/lib64 on some platforms.
2050 --with-gameuser=USER user
for shared game score files
2051 --with-gnustep-conf=PATH
2052 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2053 or
/etc
/GNUstep
/GNUstep.conf
2054 --with-x use the X Window System
2056 Some influential environment variables
:
2057 CC C compiler
command
2058 CFLAGS C compiler flags
2059 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2060 nonstandard directory
<lib dir
>
2061 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2062 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2063 you have headers
in a nonstandard directory
<include dir
>
2065 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2067 Use these variables to override the choices made by
`configure' or to help
2068 it to find libraries and programs with nonstandard names/locations.
2070 Report bugs to the package provider.
2075 if test "$ac_init_help" = "recursive"; then
2076 # If there are subdirs, report their specific --help.
2077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2078 test -d "$ac_dir" ||
2079 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2086 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2087 # A ".." for each directory in $ac_dir_suffix.
2088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2089 case $ac_top_builddir_sub in
2090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2094 ac_abs_top_builddir=$ac_pwd
2095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2096 # for backward compatibility:
2097 ac_top_builddir=$ac_top_build_prefix
2100 .) # We are building in place.
2102 ac_top_srcdir=$ac_top_builddir_sub
2103 ac_abs_top_srcdir=$ac_pwd ;;
2104 [\\/]* | ?:[\\/]* ) # Absolute name.
2105 ac_srcdir=$srcdir$ac_dir_suffix;
2106 ac_top_srcdir=$srcdir
2107 ac_abs_top_srcdir=$srcdir ;;
2109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2110 ac_top_srcdir=$ac_top_build_prefix$srcdir
2111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2115 cd "$ac_dir" || { ac_status=$?; continue; }
2116 # Check for guested configure.
2117 if test -f "$ac_srcdir/configure.gnu"; then
2119 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2120 elif test -f "$ac_srcdir/configure"; then
2122 $SHELL "$ac_srcdir/configure" --help=recursive
2124 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2126 cd "$ac_pwd" || { ac_status=$?; break; }
2130 test -n "$ac_init_help" && exit $ac_status
2131 if $ac_init_version; then
2133 emacs configure 24.1.50
2134 generated by GNU Autoconf 2.65
2136 Copyright (C) 2009 Free Software Foundation, Inc.
2137 This configure script is free software; the Free Software Foundation
2138 gives unlimited permission to copy, distribute and modify it.
2143 ## ------------------------ ##
2144 ## Autoconf initialization. ##
2145 ## ------------------------ ##
2147 # ac_fn_c_try_compile LINENO
2148 # --------------------------
2149 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_c_try_compile ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 rm -f conftest.$ac_objext
2154 if { { ac_try="$ac_compile"
2156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2157 *) ac_try_echo
=$ac_try;;
2159 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_compile") 2>conftest.err
2163 if test -s conftest.err
; then
2164 grep -v '^ *+' conftest.err
>conftest.er1
2165 cat conftest.er1
>&5
2166 mv -f conftest.er1 conftest.err
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } && {
2170 test -z "$ac_c_werror_flag" ||
2171 test ! -s conftest.err
2172 } && test -s conftest.
$ac_objext; then :
2175 $as_echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.
$ac_ext >&5
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2181 as_fn_set_status
$ac_retval
2183 } # ac_fn_c_try_compile
2185 # ac_fn_c_try_cpp LINENO
2186 # ----------------------
2187 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2191 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } >/dev/null && {
2207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2208 test ! -s conftest.err
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 as_fn_set_status $ac_retval
2222 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2223 # -------------------------------------------------------
2224 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2225 # the include files in INCLUDES and setting the cache variable VAR
2227 ac_fn_c_check_header_mongrel ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2240 # Is the header compilable?
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2242 $as_echo_n "checking $2 usability... " >&6; }
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_header_compiler=yes
2251 ac_header_compiler=no
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2255 $as_echo "$ac_header_compiler" >&6; }
2257 # Is the header present?
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2259 $as_echo_n "checking $2 presence... " >&6; }
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 if ac_fn_c_try_cpp "$LINENO"; then :
2265 ac_header_preproc=yes
2267 ac_header_preproc=no
2269 rm -f conftest.err conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2271 $as_echo "$ac_header_preproc" >&6; }
2273 # So? What about this header?
2274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2277 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2279 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2283 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2285 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2287 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2289 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2291 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295 $as_echo_n "checking for $2... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2299 eval "$3=\$ac_header_compiler"
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 } # ac_fn_c_check_header_mongrel
2309 # ac_fn_c_try_run LINENO
2310 # ----------------------
2311 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2312 # that executables *can* be run.
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 if { { ac_try="$ac_link"
2318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2319 *) ac_try_echo
=$ac_try;;
2321 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323 (eval "$ac_link") 2>&5
2325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2326 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2327 { { case "(($ac_try" in
2328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_try") 2>&5
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; }; }; then :
2339 $as_echo "$as_me: program exited with status $ac_status" >&5
2340 $as_echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 ac_retval=$ac_status
2345 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 as_fn_set_status $ac_retval
2351 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2352 # -------------------------------------------------------
2353 # Tests whether HEADER exists and can be compiled using the include files in
2354 # INCLUDES, setting the cache variable VAR accordingly.
2355 ac_fn_c_check_header_compile ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361 $as_echo_n "(cached) " >&6
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2368 if ac_fn_c_try_compile "$LINENO"; then :
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_header_compile
2382 # ac_fn_c_check_decl LINENO SYMBOL VAR
2383 # ------------------------------------
2384 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2385 ac_fn_c_check_decl ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2389 $as_echo_n "checking whether $2 is declared... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2419 } # ac_fn_c_check_decl
2421 # ac_fn_c_try_link LINENO
2422 # -----------------------
2423 # Try to link conftest.$ac_ext, and return whether this succeeded.
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 rm -f conftest.$ac_objext conftest$ac_exeext
2428 if { { ac_try="$ac_link"
2430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2431 *) ac_try_echo
=$ac_try;;
2433 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435 (eval "$ac_link") 2>conftest.err
2437 if test -s conftest.err
; then
2438 grep -v '^ *+' conftest.err
>conftest.er1
2439 cat conftest.er1
>&5
2440 mv -f conftest.er1 conftest.err
2442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 test $ac_status = 0; } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest
$ac_exeext && {
2447 test "$cross_compiling" = yes ||
2448 $as_test_x conftest
$ac_exeext
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.
$ac_ext >&5
2457 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2458 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2459 # interfere with the next link command; also delete a directory that is
2460 # left behind by Apple's compiler. We do this before executing the actions.
2461 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2463 as_fn_set_status
$ac_retval
2465 } # ac_fn_c_try_link
2467 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2468 # ----------------------------------------------
2469 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2470 ac_fn_c_check_header_preproc
()
2472 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2482 if ac_fn_c_try_cpp
"$LINENO"; then :
2487 rm -f conftest.err conftest.
$ac_ext
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2494 } # ac_fn_c_check_header_preproc
2496 # ac_fn_c_check_func LINENO FUNC VAR
2497 # ----------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_c_check_func
()
2501 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2519 # include <limits.h>
2521 # include <assert.h>
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2548 if ac_fn_c_try_link
"$LINENO"; then :
2553 rm -f core conftest.err conftest.
$ac_objext \
2554 conftest
$ac_exeext conftest.
$ac_ext
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2561 } # ac_fn_c_check_func
2563 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2564 # ----------------------------------------------------
2565 # Tries to find if the field MEMBER exists in type AGGR, after including
2566 # INCLUDES, setting cache variable VAR accordingly.
2567 ac_fn_c_check_member
()
2569 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2571 $as_echo_n "checking for $2.$3... " >&6; }
2572 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2588 if ac_fn_c_try_compile
"$LINENO"; then :
2591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2598 if (sizeof ac_aggr.$3)
2604 if ac_fn_c_try_compile
"$LINENO"; then :
2609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2618 } # ac_fn_c_check_member
2620 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2621 # -------------------------------------------
2622 # Tests whether TYPE exists after having included INCLUDES, setting cache
2623 # variable VAR accordingly.
2624 ac_fn_c_check_type
()
2626 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2628 $as_echo_n "checking for $2... " >&6; }
2629 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2630 $as_echo_n "(cached) " >&6
2633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2645 if ac_fn_c_try_compile
"$LINENO"; then :
2646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2658 if ac_fn_c_try_compile
"$LINENO"; then :
2663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2672 } # ac_fn_c_check_type
2674 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2675 # --------------------------------------------
2676 # Tries to find the compile-time value of EXPR in a program that includes
2677 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2679 ac_fn_c_compute_int
()
2681 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2682 if test "$cross_compiling" = yes; then
2683 # Depending upon the size, compute the lo and hi bounds.
2684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2690 static int test_array [1 - 2 * !(($2) >= 0)];
2697 if ac_fn_c_try_compile
"$LINENO"; then :
2700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2713 if ac_fn_c_try_compile
"$LINENO"; then :
2714 ac_hi
=$ac_mid; break
2716 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2717 if test $ac_lo -le $ac_mid; then
2721 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2732 static int test_array [1 - 2 * !(($2) < 0)];
2739 if ac_fn_c_try_compile
"$LINENO"; then :
2742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2748 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2755 if ac_fn_c_try_compile
"$LINENO"; then :
2756 ac_lo
=$ac_mid; break
2758 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2759 if test $ac_mid -le $ac_hi; then
2763 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2773 # Binary search between lo and hi bounds.
2774 while test "x$ac_lo" != "x$ac_hi"; do
2775 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2782 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789 if ac_fn_c_try_compile
"$LINENO"; then :
2792 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2804 static long int longval () { return $2; }
2805 static unsigned long int ulongval () { return $2; }
2812 FILE *f = fopen ("conftest.val", "w");
2817 long int i = longval ();
2820 fprintf (f, "%ld", i);
2824 unsigned long int i = ulongval ();
2827 fprintf (f, "%lu", i);
2829 /* Do not output a trailing newline, as this causes \r\n confusion
2830 on some platforms. */
2831 return ferror (f) || fclose (f) != 0;
2837 if ac_fn_c_try_run
"$LINENO"; then :
2838 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2847 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2848 as_fn_set_status
$ac_retval
2850 } # ac_fn_c_compute_int
2851 cat >config.log
<<_ACEOF
2852 This file contains any messages produced by compilers while
2853 running configure, to aid debugging if configure makes a mistake.
2855 It was created by emacs $as_me 24.1.50, which was
2856 generated by GNU Autoconf 2.65. Invocation command line was
2868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir
=.
2892 $as_echo "PATH: $as_dir"
2908 # Keep a trace of the command line.
2909 # Strip out --no-create and --no-recursion so they do not pile up.
2910 # Strip out --silent because we don't want to record it for future runs.
2911 # Also quote any args containing shell meta-characters.
2912 # Make two passes to allow for proper duplicate-argument suppression.
2916 ac_must_keep_next
=false
2922 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2923 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2924 |
-silent |
--silent |
--silen |
--sile |
--sil)
2927 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2930 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2932 as_fn_append ac_configure_args1
" '$ac_arg'"
2933 if test $ac_must_keep_next = true
; then
2934 ac_must_keep_next
=false
# Got value, back to normal.
2937 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2938 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2939 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2940 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2941 case "$ac_configure_args0 " in
2942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2945 -* ) ac_must_keep_next
=true
;;
2948 as_fn_append ac_configure_args
" '$ac_arg'"
2953 { ac_configure_args0
=; unset ac_configure_args0
;}
2954 { ac_configure_args1
=; unset ac_configure_args1
;}
2956 # When interrupted or exit'd, cleanup temporary files, and complete
2957 # config.log. We remove comments because anyway the quotes in there
2958 # would cause problems or look ugly.
2959 # WARNING: Use '\'' to represent an apostrophe within the trap.
2960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2961 trap 'exit_status=$?
2962 # Save into config.log some information that might help in debugging.
2967 ## ---------------- ##
2968 ## Cache variables. ##
2969 ## ---------------- ##
2972 # The following way of writing the cache mishandles newlines in values,
2974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2975 eval ac_val=\$$ac_var
2979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2983 _ | IFS | as_nl) ;; #(
2984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2985 *) { eval $ac_var=; unset $ac_var;} ;;
2990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2991 *${as_nl}ac_space=\ *)
2993 "s/'\''/'\''\\\\'\'''\''/g;
2994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3005 ## ----------------- ##
3006 ## Output variables. ##
3007 ## ----------------- ##
3010 for ac_var in $ac_subst_vars
3012 eval ac_val=\$$ac_var
3014 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3016 $as_echo "$ac_var='\''$ac_val'\''"
3020 if test -n "$ac_subst_files"; then
3022 ## ------------------- ##
3023 ## File substitutions. ##
3024 ## ------------------- ##
3027 for ac_var
in $ac_subst_files
3029 eval ac_val
=\$
$ac_var
3031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 $as_echo "$ac_var='\''$ac_val'\''"
3038 if test -s confdefs.h; then
3048 test "$ac_signal" != 0 &&
3049 $as_echo "$as_me: caught signal $ac_signal"
3050 $as_echo "$as_me: exit $exit_status"
3052 rm -f core *.core core.conftest.* &&
3053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3056 for ac_signal
in 1 2 13 15; do
3057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3062 rm -f -r conftest
* confdefs.h
3064 $as_echo "/* confdefs.h */" > confdefs.h
3066 # Predefined preprocessor variables.
3068 cat >>confdefs.h
<<_ACEOF
3069 #define PACKAGE_NAME "$PACKAGE_NAME"
3072 cat >>confdefs.h
<<_ACEOF
3073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3076 cat >>confdefs.h
<<_ACEOF
3077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3080 cat >>confdefs.h
<<_ACEOF
3081 #define PACKAGE_STRING "$PACKAGE_STRING"
3084 cat >>confdefs.h
<<_ACEOF
3085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3088 cat >>confdefs.h
<<_ACEOF
3089 #define PACKAGE_URL "$PACKAGE_URL"
3093 # Let the site file select an alternate cache file if it wants to.
3094 # Prefer an explicitly selected file to automatically selected ones.
3097 if test -n "$CONFIG_SITE"; then
3098 ac_site_file1
=$CONFIG_SITE
3099 elif test "x$prefix" != xNONE
; then
3100 ac_site_file1
=$prefix/share
/config.site
3101 ac_site_file2
=$prefix/etc
/config.site
3103 ac_site_file1
=$ac_default_prefix/share
/config.site
3104 ac_site_file2
=$ac_default_prefix/etc
/config.site
3106 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3108 test "x$ac_site_file" = xNONE
&& continue
3109 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3111 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3112 sed 's/^/| /' "$ac_site_file" >&5
3117 if test -r "$cache_file"; then
3118 # Some versions of bash will fail to source /dev/null (special files
3119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3120 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3122 $as_echo "$as_me: loading cache $cache_file" >&6;}
3124 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3125 *) .
"./$cache_file";;
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3130 $as_echo "$as_me: creating cache $cache_file" >&6;}
3134 as_fn_append ac_header_list
" stdlib.h"
3135 as_fn_append ac_header_list
" unistd.h"
3136 as_fn_append ac_header_list
" sys/param.h"
3137 as_fn_append ac_func_list
" readlinkat"
3138 gl_getopt_required
=GNU
3139 as_fn_append ac_header_list
" getopt.h"
3140 as_fn_append ac_header_list
" wchar.h"
3141 as_fn_append ac_header_list
" stdint.h"
3142 as_fn_append ac_header_list
" inttypes.h"
3143 as_fn_append ac_func_list
" lstat"
3144 as_fn_append ac_func_list
" alarm"
3145 as_fn_append ac_func_list
" pthread_sigmask"
3146 as_fn_append ac_func_list
" readlink"
3147 as_fn_append ac_header_list
" sys/socket.h"
3148 as_fn_append ac_func_list
" tzset"
3149 as_fn_append ac_func_list
" strtoimax"
3150 as_fn_append ac_func_list
" strtoumax"
3151 as_fn_append ac_func_list
" symlink"
3152 as_fn_append ac_header_list
" sys/stat.h"
3153 as_fn_append ac_header_list
" sys/time.h"
3154 as_fn_append ac_func_list
" localtime_r"
3155 # Check that the precious variables saved in the cache have kept the same
3157 ac_cache_corrupted
=false
3158 for ac_var
in $ac_precious_vars; do
3159 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3160 eval ac_new_set
=\
$ac_env_${ac_var}_set
3161 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3162 eval ac_new_val
=\
$ac_env_${ac_var}_value
3163 case $ac_old_set,$ac_new_set in
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3167 ac_cache_corrupted
=: ;;
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3171 ac_cache_corrupted
=: ;;
3174 if test "x$ac_old_val" != "x$ac_new_val"; then
3175 # differences in whitespace do not lead to failure.
3176 ac_old_val_w
=`echo x $ac_old_val`
3177 ac_new_val_w
=`echo x $ac_new_val`
3178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3181 ac_cache_corrupted
=:
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3185 eval $ac_var=\
$ac_old_val
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3193 # Pass precious variables to config.status.
3194 if test "$ac_new_set" = set; then
3196 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3197 *) ac_arg
=$ac_var=$ac_new_val ;;
3199 case " $ac_configure_args " in
3200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3201 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3205 if $ac_cache_corrupted; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3210 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3212 ## -------------------- ##
3213 ## Main body of script. ##
3214 ## -------------------- ##
3217 ac_cpp
='$CPP $CPPFLAGS'
3218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3223 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3227 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3228 for ac_t
in install-sh
install.sh shtool
; do
3229 if test -f "$ac_dir/$ac_t"; then
3231 ac_install_sh
="$ac_aux_dir/$ac_t -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 test "${ac_cv_path_install+set}" = set; 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 test "${ac_cv_prog_STRIP+set}" = set; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; 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 test "${ac_cv_path_mkdir+set}" = set; 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 test "${ac_cv_prog_AWK+set}" = set; 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 { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; 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 ## Makefile.in needs the cache file name.
4085 ## This is an option because I do not know if all info/man support
4086 ## compressed files, nor how to test if they do so.
4088 # Check whether --with-compress-info was given.
4089 if test "${with_compress_info+set}" = set; then :
4090 withval
=$with_compress_info;
4092 with_compress_info
=yes
4095 if test $with_compress_info = yes; then
4103 # Check whether --with-pkg-config-prog was given.
4104 if test "${with_pkg_config_prog+set}" = set; then :
4105 withval
=$with_pkg_config_prog;
4108 if test "X${with_pkg_config_prog}" != X
; then
4109 if test "${with_pkg_config_prog}" != yes; then
4110 PKG_CONFIG
="${with_pkg_config_prog}"
4116 # Check whether --with-crt-dir was given.
4117 if test "${with_crt_dir+set}" = set; then :
4118 withval
=$with_crt_dir;
4121 CRT_DIR
="${with_crt_dir}"
4124 # Check whether --with-gameuser was given.
4125 if test "${with_gameuser+set}" = set; then :
4126 withval
=$with_gameuser;
4129 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4130 && gameuser
="${with_gameuser}"
4131 test "X$gameuser" = X
&& gameuser
=games
4134 # Check whether --with-gnustep-conf was given.
4135 if test "${with_gnustep_conf+set}" = set; then :
4136 withval
=$with_gnustep_conf;
4139 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4140 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4141 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4142 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4144 # Check whether --enable-ns-self-contained was given.
4145 if test "${enable_ns_self_contained+set}" = set; then :
4146 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4148 EN_NS_SELF_CONTAINED
=yes
4152 # Check whether --enable-asserts was given.
4153 if test "${enable_asserts+set}" = set; then :
4154 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4160 # Check whether --enable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then :
4162 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4164 USE_MAINTAINER_MODE
=yes
4167 if test $USE_MAINTAINER_MODE = yes; then
4174 # Check whether --enable-locallisppath was given.
4175 if test "${enable_locallisppath+set}" = set; then :
4176 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4178 elif test "${enableval}" != "yes"; then
4179 locallisppath
=${enableval}
4184 # Check whether --enable-checking was given.
4185 if test "${enable_checking+set}" = set; then :
4186 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4189 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4190 for check
in $ac_checking_flags
4193 # these set all the flags to specific states
4194 yes) ac_enable_checking
=1 ;;
4195 no
) ac_enable_checking
= ;
4196 ac_gc_check_stringbytes
= ;
4197 ac_gc_check_string_overrun
= ;
4198 ac_gc_check_string_free_list
= ;
4199 ac_xmalloc_overrun
= ;
4200 ac_gc_check_cons_list
= ;;
4201 all
) ac_enable_checking
=1 ;
4202 ac_gc_check_stringbytes
=1 ;
4203 ac_gc_check_string_overrun
=1 ;
4204 ac_gc_check_string_free_list
=1 ;
4205 ac_xmalloc_overrun
=1 ;
4206 ac_gc_check_cons_list
=1 ;;
4207 # these enable particular checks
4208 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4209 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4210 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4211 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4212 conslist
) ac_gc_check_cons_list
=1 ;;
4213 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4218 if test x
$ac_enable_checking != x
; then
4220 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4223 if test x
$ac_gc_check_stringbytes != x
; then
4225 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4228 if test x
$ac_gc_check_string_overrun != x
; then
4230 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4233 if test x
$ac_gc_check_string_free_list != x
; then
4235 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4238 if test x
$ac_xmalloc_overrun != x
; then
4240 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4243 if test x
$ac_gc_check_cons_list != x
; then
4245 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4249 # Check whether --enable-use-lisp-union-type was given.
4250 if test "${enable_use_lisp_union_type+set}" = set; then :
4251 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4253 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4260 # Check whether --enable-profiling was given.
4261 if test "${enable_profiling+set}" = set; then :
4262 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4265 if test x
$ac_enable_profiling != x
; then
4266 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4272 # Check whether --enable-autodepend was given.
4273 if test "${enable_autodepend+set}" = set; then :
4274 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4276 ac_enable_autodepend
=yes
4280 #### Make srcdir absolute, if it isn't already. It's important to
4281 #### avoid running the path through pwd unnecessarily, since pwd can
4282 #### give you automounter prefixes, which can go away. We do all this
4283 #### so Emacs can find its files when run uninstalled.
4284 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4289 ## We may be able to use the $PWD environment variable to make this
4290 ## absolute. But sometimes PWD is inaccurate.
4291 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4292 ## but that tested only for a well-formed and valid PWD,
4293 ## it did not object when PWD was well-formed and valid but just wrong.
4294 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4298 srcdir
="`(cd ${srcdir}; pwd)`"
4301 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4304 #### Given the configuration name, set machfile and opsysfile to the
4305 #### names of the m/*.h and s/*.h files we should use.
4307 ### Canonicalize the configuration name.
4309 # Make sure we can run config.sub.
4310 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4311 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4314 $as_echo_n "checking build system type... " >&6; }
4315 if test "${ac_cv_build+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4318 ac_build_alias
=$build_alias
4319 test "x$ac_build_alias" = x
&&
4320 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4321 test "x$ac_build_alias" = x
&&
4322 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4323 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4324 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4328 $as_echo "$ac_cv_build" >&6; }
4329 case $ac_cv_build in
4331 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4334 ac_save_IFS
=$IFS; IFS
='-'
4340 # Remember, the first character of IFS is used to create $*,
4341 # except with old shells:
4344 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4348 $as_echo_n "checking host system type... " >&6; }
4349 if test "${ac_cv_host+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 if test "x$host_alias" = x
; then
4353 ac_cv_host
=$ac_cv_build
4355 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4356 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4361 $as_echo "$ac_cv_host" >&6; }
4364 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4367 ac_save_IFS
=$IFS; IFS
='-'
4373 # Remember, the first character of IFS is used to create $*,
4374 # except with old shells:
4377 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4381 configuration
=${host_alias-${build_alias-$host}}
4385 ### If you add support for a new configuration, add code to this
4386 ### switch statement to recognize your configuration name and select
4387 ### the appropriate operating system and machine description files.
4389 ### You would hope that you could choose an m/*.h file pretty much
4390 ### based on the machine portion of the configuration name, and an s/*.h
4391 ### file based on the operating system portion. However, it turns out
4392 ### that each m/*.h file is pretty manufacturer-specific - for
4393 ### example mips.h is MIPS
4394 ### So we basically have to have a special case for each
4395 ### configuration name.
4397 ### As far as handling version numbers on operating systems is
4398 ### concerned, make sure things will fail in a fixable way. If
4399 ### /etc/MACHINES doesn't say anything about version numbers, be
4400 ### prepared to handle anything reasonably. If version numbers
4401 ### matter, be sure /etc/MACHINES says something about it.
4403 machine
='' opsys
='' unported
=no
4404 case "${canonical}" in
4406 ## GNU/Linux and similar ports
4409 case ${canonical} in
4410 alpha
*) machine
=alpha
;;
4411 s390x-
*) machine
=ibms390x
;;
4412 powerpc
*) machine
=macppc
;;
4413 sparc
*) machine
=sparc
;;
4414 ia64
*) machine
=ia64
;;
4415 m68k
*) machine
=m68k
;;
4416 x86_64
*) machine
=amdx86-64
;;
4423 case "${canonical}" in
4424 alpha
*) machine
=alpha
;;
4425 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4426 ia64-
*) machine
=ia64
;;
4427 i
[3456]86-*) machine
=intel386
;;
4428 powerpc-
*) machine
=macppc
;;
4429 sparc-
*) machine
=sparc
;;
4430 sparc64-
*) machine
=sparc
;;
4434 ## FreeBSD kernel + glibc based userland
4437 case "${canonical}" in
4438 alpha
*) machine
=alpha
;;
4439 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4440 ia64-
*) machine
=ia64
;;
4441 i
[3456]86-*) machine
=intel386
;;
4442 powerpc-
*) machine
=macppc
;;
4443 sparc-
*) machine
=sparc
;;
4444 sparc64-
*) machine
=sparc
;;
4451 case "${canonical}" in
4452 alpha
*) machine
=alpha
;;
4453 x86_64-
*) machine
=amdx86-64
;;
4454 i
[3456]86-*) machine
=intel386
;;
4455 m68k-
*) machine
=m68k
;;
4456 powerpc-
*) machine
=macppc
;;
4457 sparc
*-) machine
=sparc
;;
4458 vax-
*) machine
=vax
;;
4465 case "${canonical}" in
4466 alpha
*) machine
=alpha
;;
4467 x86_64-
*) machine
=amdx86-64
;;
4468 i386-
*) machine
=intel386
;;
4469 powerpc-
*) machine
=macppc
;;
4470 sparc
*) machine
=sparc
;;
4471 vax-
*) machine
=vax
;;
4475 ## Apple Darwin / Mac OS X
4477 case "${canonical}" in
4478 i
[3456]86-* ) machine
=intel386
;;
4479 powerpc-
* ) machine
=macppc
;;
4480 x86_64-
* ) machine
=amdx86-64
;;
4484 # Use fink packages if available.
4485 # FIXME? Is it really our business to decide this for the user?
4486 if test -d /sw
/include
&& test -d /sw
/lib
; then
4487 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4488 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa
*-hp-hpux10.2
* )
4496 hppa
*-hp-hpux1[1-9]* )
4498 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4502 rs6000-ibm-aix4.
[23]* )
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_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4527 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4528 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4529 case "${canonical}" in
4530 i
[3456]86-*-* ) machine
=intel386
;;
4531 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4532 sparc
* ) machine
=sparc
;;
4535 case "${canonical}" in
4536 *-sunos5.6
* |
*-solaris2.6
* )
4540 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4542 emacs_check_sunpro_c
=yes
4544 *-sunos5* |
*-solaris* )
4546 emacs_check_sunpro_c
=yes
4549 ## Watch out for a compiler that we know will not work.
4550 case "${canonical}" in
4551 *-solaris* |
*-sunos5* )
4552 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4553 ## /usr/ucb/cc doesn't work;
4554 ## we should find some other compiler that does work.
4562 ## Intel 386 machines where we don't care about the manufacturer.
4565 case "${canonical}" in
4566 *-cygwin ) opsys
=cygwin
;;
4567 *-darwin* ) opsys
=darwin
;;
4568 *-sysv4.2uw
* ) opsys
=unixware
;;
4569 *-sysv5uw* ) opsys
=unixware
;;
4570 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4571 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4580 ### If the code above didn't choose an operating system, just choose
4581 ### an operating system based on the configuration name. You really
4582 ### only want to use this when you have no idea what the right
4583 ### operating system is; if you know what operating systems a machine
4584 ### runs, it's cleaner to make it explicit in the case statement
4586 if test x
"${opsys}" = x
; then
4587 case "${canonical}" in
4588 *-gnu* ) opsys
=gnu
;;
4597 if test $unported = yes; then
4598 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4599 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4602 if test -n "$machine"; then
4603 machfile
="m/${machine}.h"
4607 opsysfile
="s/${opsys}.h"
4610 #### Choose a compiler.
4613 ac_cpp
='$CPP $CPPFLAGS'
4614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC
="$CC" # Let the user override the test.
4628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir
=.
4633 for ac_exec_ext
in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_CC"; then
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc
; ac_word
=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir
=.
4673 for ac_exec_ext
in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC
="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_CC" = x
; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned
=yes ;;
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC
="$CC" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc
; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC
="$CC" # Let the user override the test.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected
=yes
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy
$ac_cv_prog_CC
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4790 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog
in cl.exe
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC
="$CC" # Let the user override the test.
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_exec_ext
in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CC" && break
4850 if test -z "$CC"; then
4852 for ac_prog
in cl.exe
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy
$ac_prog; ac_word
=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir
=.
4869 for ac_exec_ext
in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC
="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CC" && break
4894 if test "x$ac_ct_CC" = x
; then
4897 case $cross_compiling:$ac_tool_warned in
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned
=yes ;;
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error
"no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4919 for ac_option
in --version -v -V -qversion; do
4920 { { ac_try
="$ac_compiler $ac_option >&5"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 if test -s conftest.err; then
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4964 for ac_file in $ac_files
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4973 if { { ac_try="$ac_link_default"
4975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4976 *) ac_try_echo
=$ac_try;;
4978 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4989 for ac_file
in $ac_files ''
4991 test -f "$ac_file" ||
continue
4993 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4996 # We found the default executable, but exeext='' is most
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5002 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5014 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status
77
5028 as_fn_error
"C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext
=$ac_cv_exeext
5040 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5041 ac_clean_files
=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try
="$ac_link"
5046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5056 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5059 for ac_file
in conftest.exe conftest conftest.
*; do
5060 test -f "$ac_file" ||
continue
5062 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5063 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5074 rm -f conftest conftest
$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5078 rm -f conftest.
$ac_ext
5079 EXEEXT
=$ac_cv_exeext
5081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5094 ac_clean_files
="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try
="$ac_link"
5102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5114 *) ac_try_echo
=$ac_try;;
5116 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5124 if test "$cross_compiling" = maybe
; then
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error
"cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5138 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5139 ac_clean_files
=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try
="$ac_compile"
5159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files
: cannot compile
5183 See \
`config.log' for more details." "$LINENO" 5; }
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5210 if ac_fn_c_try_compile "$LINENO"; then :
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5248 if ac_fn_c_try_compile "$LINENO"; then :
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5279 if ac_fn_c_try_compile "$LINENO"; then :
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5300 if test "$GCC" = yes; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 ac_cv_prog_cc_c89=no
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5333 s = g (p, va_arg (v,int));
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5376 rm -f conftest.$ac_ext
5381 case "x$ac_cv_prog_cc_c89" in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5404 ac_config_commands="$ac_config_commands depfiles"
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5410 @echo this is the am__doit target
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include
"confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5455 if test "x$enable_dependency_tracking" != xno
; then
5465 depcc
="$CC" am_compiler_list
=
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5491 am_cv_CC_dependencies_compiler_type
=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5496 case " $depcc " in #(
5497 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5500 for depmode
in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5509 for i
in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub
/conftst
$i.h
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj
=sub
/conftest.
${OBJEXT-o}
5522 am__minus_obj
="-o $am__obj"
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false ||
continue
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes
; then
5537 msvisualcpp | msvcmsys
)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj
=conftest.
${OBJEXT-o}
5546 if depmode
=$depmode \
5547 source=sub
/conftest.c object
=$am__obj \
5548 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5549 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5550 >/dev
/null
2>conftest.err
&&
5551 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5552 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5553 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type
=$depmode
5573 am_cv_CC_dependencies_compiler_type
=none
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5585 am__fastdepCC_FALSE
='#'
5587 am__fastdepCC_TRUE
='#'
5588 am__fastdepCC_FALSE
=
5592 if test "x$CC" != xcc
; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5599 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5620 if { { case "(($ac_try" in
5621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5632 *) ac_try_echo
=$ac_try;;
5634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5641 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5642 if test "x$CC" != xcc
; then
5643 # Test first that cc exists at all.
5644 if { ac_try
='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5659 *) ac_try_echo
=$ac_try;;
5661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 rm -f core conftest*
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5706 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5719 if test x$GCC = xyes; then
5720 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5722 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5725 # Initialize gnulib right after choosing the compiler.
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5746 for ac_c_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 # include <limits.h>
5759 # include <assert.h>
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: fails on valid input.
5769 rm -f conftest.err conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5781 # Passes both tests.
5785 rm -f conftest.err conftest.$ac_ext
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.
$ac_ext
5790 if $ac_preproc_ok; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5805 for ac_c_preproc_warn_flag
in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if ac_fn_c_try_cpp
"$LINENO"; then :
5825 # Broken: fails on valid input.
5828 rm -f conftest.err conftest.
$ac_ext
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5836 if ac_fn_c_try_cpp
"$LINENO"; then :
5837 # Broken: success on invalid input.
5840 # Passes both tests.
5844 rm -f conftest.err conftest.
$ac_ext
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.
$ac_ext
5849 if $ac_preproc_ok; then :
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5859 ac_cpp
='$CPP $CPPFLAGS'
5860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found
=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5874 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5877 test -z "$as_dir" && as_dir
=.
5878 for ac_prog
in grep ggrep
; do
5879 for ac_exec_ext
in '' $ac_executable_extensions; do
5880 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5886 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5889 $as_echo_n 0123456789 >"conftest.in"
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5897 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5898 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP
="$ac_path_GREP"
5902 ac_path_GREP_max
=$ac_count
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5907 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5910 $ac_path_GREP_found && break 3
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5919 ac_cv_path_GREP
=$GREP
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP
="$ac_cv_path_GREP"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5934 then ac_cv_path_EGREP
="$GREP -E"
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found
=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5943 test -z "$as_dir" && as_dir
=.
5944 for ac_prog
in egrep; do
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5952 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5955 $as_echo_n 0123456789 >"conftest.in"
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP
="$ac_path_EGREP"
5968 ac_path_EGREP_max
=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5976 $ac_path_EGREP_found && break 3
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 ac_cv_path_EGREP
=$EGREP
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP
="$ac_cv_path_EGREP"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6013 gl_cv_c_amsterdam_compiler
=yes
6015 gl_cv_c_amsterdam_compiler
=no
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6026 if test -z "$ARFLAGS"; then
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR
="$AR" # Let the user override the test.
6041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir
=.
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy
ar; ac_word
=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir
=.
6086 for ac_exec_ext
in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR
="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x
; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned
=yes ;;
6122 if test -z "$ARFLAGS"; then
6127 if test -z "$ARFLAGS"; then
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir
=.
6153 for ac_exec_ext
in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 RANLIB
=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB
=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib
; ac_word
=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir
=.
6193 for ac_exec_ext
in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_RANLIB" = x
; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned
=yes ;;
6223 RANLIB
=$ac_ct_RANLIB
6226 RANLIB
="$ac_cv_prog_RANLIB"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6253 if ac_fn_c_try_compile
"$LINENO"; then :
6254 ac_cv_header_stdc
=yes
6256 ac_cv_header_stdc
=no
6258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev
/null
2>&1; then :
6271 ac_cv_header_stdc
=no
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev
/null
2>&1; then :
6288 ac_cv_header_stdc
=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6326 if ac_fn_c_try_run
"$LINENO"; then :
6329 ac_cv_header_stdc
=no
6331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6347 inttypes.h stdint.h unistd.h
6349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 eval as_val
=\$
$as_ac_Header
6353 if test "x$as_val" = x
""yes; then :
6354 cat >>confdefs.h
<<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6374 if test "$MINIX" = yes; then
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__
=yes
6416 ac_cv_safe_to_define___extensions__
=no
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval
=$enable_largefile;
6447 if test "$enable_largefile" != no
; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 ac_cv_sys_largefile_CC
=no
6455 if test "$GCC" != yes; then
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6482 rm -f core conftest.err conftest.
$ac_objext
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6485 ac_cv_sys_largefile_CC
=' -n32'; break
6487 rm -f core conftest.err conftest.
$ac_objext
6491 rm -f conftest.
$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no
; then
6497 CC
=$CC$ac_cv_sys_largefile_CC
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6525 if ac_fn_c_try_compile
"$LINENO"; then :
6526 ac_cv_sys_file_offset_bits
=no
; break
6528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6549 if ac_fn_c_try_compile
"$LINENO"; then :
6550 ac_cv_sys_file_offset_bits
=64; break
6552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 ac_cv_sys_file_offset_bits
=unknown
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6562 cat >>confdefs.h
<<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6568 if test $ac_cv_sys_file_offset_bits = unknown
; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6594 if ac_fn_c_try_compile
"$LINENO"; then :
6595 ac_cv_sys_large_files
=no
; break
6597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6618 if ac_fn_c_try_compile
"$LINENO"; then :
6619 ac_cv_sys_large_files
=1; break
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 ac_cv_sys_large_files
=unknown
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6631 cat >>confdefs.h
<<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6642 case $ac_cv_prog_cc_stdc in #(
6644 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 ac_cv_prog_cc_c99
=no
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6656 #include <stdbool.h>
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6666 test_varargs_macros (void)
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6681 your preprocessor is broken;
6685 your preprocessor is broken;
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6690 struct incomplete_array
6698 const wchar_t *name;
6702 typedef const char *ccp;
6705 test_restrict (ccp restrict text)
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 // Check varargs and va_copy.
6717 test_varargs (const char *format, ...)
6720 va_start (args, format);
6722 va_copy (args_copy, args);
6733 str = va_arg (args_copy, const char *);
6736 number = va_arg (args_copy, int);
6739 fnumber = va_arg (args_copy, double);
6754 _Bool success = false;
6757 if (test_restrict ("String literal") == 0)
6759 char *restrict newvar = "Another string";
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6772 // Check named initializers.
6773 struct named_init ni = {
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6792 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6794 CC
="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile
"$LINENO"; then :
6796 ac_cv_prog_cc_c99
=$ac_arg
6798 rm -f core conftest.err conftest.
$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6801 rm -f conftest.
$ac_ext
6806 case "x$ac_cv_prog_cc_c99" in
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6814 CC
="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6818 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6819 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6826 ac_cv_prog_cc_c89
=no
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6848 s = g (p, va_arg (v,int));
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6884 CC
="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile
"$LINENO"; then :
6886 ac_cv_prog_cc_c89
=$ac_arg
6888 rm -f core conftest.err conftest.
$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6891 rm -f conftest.
$ac_ext
6896 case "x$ac_cv_prog_cc_c89" in
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6904 CC
="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6908 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6909 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6911 ac_cv_prog_cc_stdc
=no
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6923 case $ac_cv_prog_cc_stdc in #(
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module careadlinkat:
6940 # Code from module crypto/md5:
6941 # Code from module crypto/sha1:
6942 # Code from module crypto/sha256:
6943 # Code from module crypto/sha512:
6944 # Code from module dosname:
6945 # Code from module dtoastr:
6946 # Code from module dup2:
6947 # Code from module extensions:
6949 # Code from module filemode:
6950 # Code from module getloadavg:
6951 # Code from module getopt-gnu:
6952 # Code from module getopt-posix:
6953 # Code from module gettext-h:
6954 # Code from module ignore-value:
6955 # Code from module include_next:
6956 # Code from module intprops:
6957 # Code from module inttypes-incomplete:
6958 # Code from module largefile:
6960 # Code from module lstat:
6961 # Code from module manywarnings:
6962 # Code from module mktime:
6963 # Code from module multiarch:
6964 # Code from module nocrash:
6965 # Code from module pathmax:
6966 # Code from module pthread_sigmask:
6967 # Code from module readlink:
6968 # Code from module signal-h:
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:
6981 # Code from module stdbool:
6982 # Code from module stddef:
6983 # Code from module stdint:
6984 # Code from module stdio:
6985 # Code from module stdlib:
6986 # Code from module strftime:
6987 # Code from module strtoimax:
6988 # Code from module strtoll:
6989 # Code from module strtoull:
6990 # Code from module strtoumax:
6991 # Code from module symlink:
6992 # Code from module sys_stat:
6993 # Code from module time:
6994 # Code from module time_r:
6995 # Code from module u64:
6996 # Code from module unistd:
6997 # Code from module verify:
6998 # Code from module warnings:
7001 # Check whether --enable-gcc-warnings was given.
7002 if test "${enable_gcc_warnings+set}" = set; then :
7003 enableval
=$enable_gcc_warnings; case $enableval in
7005 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7007 gl_gcc_warnings
=$enableval
7014 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7015 # ------------------------------------------------
7016 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7017 # Otherwise, run RUN-IF-NOT-FOUND.
7020 # When compiling with GCC, prefer -isystem to -I when including system
7021 # include files, to avoid generating useless diagnostics for the files.
7022 if test "$gl_gcc_warnings" != yes; then
7027 # This, $nw, is the list of warnings we disable.
7030 case $with_x_toolkit in
7031 lucid | athena | motif
)
7032 # Old toolkits mishandle 'const'.
7033 nw
="$nw -Wwrite-strings"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7037 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7038 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7042 gl_save_compiler_FLAGS
="$CFLAGS"
7043 CFLAGS
="$CFLAGS -Werror"
7044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7055 if ac_fn_c_try_compile
"$LINENO"; then :
7056 gl_cv_warn_c__Werror
=yes
7058 gl_cv_warn_c__Werror
=no
7060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7061 CFLAGS
="$gl_save_compiler_FLAGS"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7065 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7066 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7067 as_fn_append WERROR_CFLAGS
" -Werror"
7074 nw
="$nw -Waggregate-return" # anachronistic
7075 nw
="$nw -Wlong-long" # C90 is anachronistic
7076 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7077 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7078 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7079 nw
="$nw -Wcast-qual" # Too many warnings for now
7080 nw
="$nw -Wconversion" # Too many warnings for now
7081 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7082 nw
="$nw -Wsign-conversion" # Too many warnings for now
7083 nw
="$nw -Woverlength-strings" # Not a problem these days
7084 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7085 nw
="$nw -Wpadded" # Our structs are not padded
7086 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7087 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7088 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7089 nw
="$nw -Wvla" # warnings in gettext.h
7090 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7091 nw
="$nw -Wswitch-enum" # Too many warnings for now
7092 nw
="$nw -Wswitch-default" # Too many warnings for now
7093 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7094 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7096 # Emacs doesn't care about shadowing; see
7097 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7100 # The following lines should be removable at some point.
7101 nw
="$nw -Wstack-protector"
7102 nw
="$nw -Wstrict-overflow"
7103 nw
="$nw -Wsuggest-attribute=const"
7104 nw
="$nw -Wsuggest-attribute=pure"
7108 if test -n "$GCC"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7111 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7112 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7116 gl_save_CFLAGS
="$CFLAGS"
7117 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_compile
"$LINENO"; then :
7130 gl_cv_cc_nomfi_supported
=yes
7132 gl_cv_cc_nomfi_supported
=no
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 CFLAGS
="$gl_save_CFLAGS"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7139 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7141 if test "$gl_cv_cc_nomfi_supported" = yes; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7143 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7144 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7148 gl_save_CFLAGS
="$CFLAGS"
7149 CFLAGS
="$CFLAGS -W -Werror"
7150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7154 typedef struct { int a; int b; } s_t;
7166 if ac_fn_c_try_compile
"$LINENO"; then :
7167 gl_cv_cc_nomfi_needed
=no
7169 gl_cv_cc_nomfi_needed
=yes
7171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7172 CFLAGS
="$gl_save_CFLAGS"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7177 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7182 for gl_manywarn_item
in \
7186 -Wformat-nonliteral \
7189 -Wmissing-include-dirs \
7199 -Wtraditional-conversion \
7200 -Wdeclaration-after-statement \
7203 -Wunsafe-loop-optimizations \
7205 -Wbad-function-cast \
7213 -Waggregate-return \
7214 -Wstrict-prototypes \
7215 -Wold-style-definition \
7216 -Wmissing-prototypes \
7217 -Wmissing-declarations \
7218 -Wmissing-noreturn \
7219 -Wmissing-format-attribute \
7224 -Wunreachable-code \
7229 -Wvolatile-register-var \
7230 -Wdisabled-optimization \
7232 -Woverlength-strings \
7233 -Wbuiltin-macro-redefined \
7235 -Wpacked-bitfield-compat \
7238 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7240 # The following are not documented in the manual but are included in
7241 # output from gcc --help=warnings.
7242 for gl_manywarn_item
in \
7244 -Wcoverage-mismatch \
7248 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7250 # More warnings from gcc 4.6.2 --help=warnings.
7251 for gl_manywarn_item
in \
7255 -Wdeprecated-declarations \
7257 -Wdouble-promotion \
7260 -Wformat-contains-nul \
7261 -Wformat-extra-args \
7262 -Wformat-zero-length \
7267 -Wpointer-to-int-cast \
7269 -Wsuggest-attribute=const \
7270 -Wsuggest-attribute=noreturn \
7271 -Wsuggest-attribute=pure \
7274 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7277 # Disable the missing-field-initializers warning if needed
7278 if test "$gl_cv_cc_nomfi_needed" = yes; then
7279 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7290 *" $gl_warn_item "*)
7293 gl_warn_set
="$gl_warn_set $gl_warn_item"
7300 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7302 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7303 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7307 gl_save_compiler_FLAGS
="$CFLAGS"
7309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7320 if ac_fn_c_try_compile
"$LINENO"; then :
7321 eval "$as_gl_Warn=yes"
7323 eval "$as_gl_Warn=no"
7325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 CFLAGS
="$gl_save_compiler_FLAGS"
7329 eval ac_res
=\$
$as_gl_Warn
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7331 $as_echo "$ac_res" >&6; }
7332 eval as_val
=\$
$as_gl_Warn
7333 if test "x$as_val" = x
""yes; then :
7334 as_fn_append WARN_CFLAGS
" $w"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7339 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7340 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7344 gl_save_compiler_FLAGS
="$CFLAGS"
7345 CFLAGS
="$CFLAGS -Wno-missing-field-initializers"
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7357 if ac_fn_c_try_compile
"$LINENO"; then :
7358 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7360 gl_cv_warn_c__Wno_missing_field_initializers
=no
7362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 CFLAGS
="$gl_save_compiler_FLAGS"
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7367 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7368 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7369 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7373 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7374 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7378 gl_save_compiler_FLAGS
="$CFLAGS"
7379 CFLAGS
="$CFLAGS -Wno-sign-compare"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_compile
"$LINENO"; then :
7392 gl_cv_warn_c__Wno_sign_compare
=yes
7394 gl_cv_warn_c__Wno_sign_compare
=no
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 CFLAGS
="$gl_save_compiler_FLAGS"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7401 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7402 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7403 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7405 # Too many warnings for now
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7407 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7408 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7412 gl_save_compiler_FLAGS
="$CFLAGS"
7413 CFLAGS
="$CFLAGS -Wno-type-limits"
7414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7425 if ac_fn_c_try_compile
"$LINENO"; then :
7426 gl_cv_warn_c__Wno_type_limits
=yes
7428 gl_cv_warn_c__Wno_type_limits
=no
7430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 CFLAGS
="$gl_save_compiler_FLAGS"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7435 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7436 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7437 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7439 # Too many warnings for now
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7441 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7442 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7446 gl_save_compiler_FLAGS
="$CFLAGS"
7447 CFLAGS
="$CFLAGS -Wno-switch"
7448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7459 if ac_fn_c_try_compile
"$LINENO"; then :
7460 gl_cv_warn_c__Wno_switch
=yes
7462 gl_cv_warn_c__Wno_switch
=no
7464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7465 CFLAGS
="$gl_save_compiler_FLAGS"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7469 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7470 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7471 as_fn_append WARN_CFLAGS
" -Wno-switch"
7473 # Too many warnings for now
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7475 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7476 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7477 $as_echo_n "(cached) " >&6
7480 gl_save_compiler_FLAGS
="$CFLAGS"
7481 CFLAGS
="$CFLAGS -Wno-unused-parameter"
7482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7493 if ac_fn_c_try_compile
"$LINENO"; then :
7494 gl_cv_warn_c__Wno_unused_parameter
=yes
7496 gl_cv_warn_c__Wno_unused_parameter
=no
7498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7499 CFLAGS
="$gl_save_compiler_FLAGS"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7503 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7504 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7505 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7507 # Too many warnings for now
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7509 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7510 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7514 gl_save_compiler_FLAGS
="$CFLAGS"
7515 CFLAGS
="$CFLAGS -Wno-format-nonliteral"
7516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7527 if ac_fn_c_try_compile
"$LINENO"; then :
7528 gl_cv_warn_c__Wno_format_nonliteral
=yes
7530 gl_cv_warn_c__Wno_format_nonliteral
=no
7532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 CFLAGS
="$gl_save_compiler_FLAGS"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7537 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7538 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7539 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7543 # In spite of excluding -Wlogical-op above, it is enabled, as of
7544 # gcc 4.5.0 20090517.
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7551 gl_save_compiler_FLAGS
="$CFLAGS"
7552 CFLAGS
="$CFLAGS -Wno-logical-op"
7553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_compile
"$LINENO"; then :
7565 gl_cv_warn_c__Wno_logical_op
=yes
7567 gl_cv_warn_c__Wno_logical_op
=no
7569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7570 CFLAGS
="$gl_save_compiler_FLAGS"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7576 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7581 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7582 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7586 gl_save_compiler_FLAGS
="$CFLAGS"
7587 CFLAGS
="$CFLAGS -fdiagnostics-show-option"
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_compile
"$LINENO"; then :
7600 gl_cv_warn_c__fdiagnostics_show_option
=yes
7602 gl_cv_warn_c__fdiagnostics_show_option
=no
7604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7605 CFLAGS
="$gl_save_compiler_FLAGS"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7609 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7610 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7611 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7615 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7616 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7620 gl_save_compiler_FLAGS
="$CFLAGS"
7621 CFLAGS
="$CFLAGS -funit-at-a-time"
7622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7633 if ac_fn_c_try_compile
"$LINENO"; then :
7634 gl_cv_warn_c__funit_at_a_time
=yes
7636 gl_cv_warn_c__funit_at_a_time
=no
7638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7639 CFLAGS
="$gl_save_compiler_FLAGS"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7643 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7644 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7645 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7650 $as_echo "#define lint 1" >>confdefs.h
7653 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7656 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7659 # We use a slightly smaller set of warning options for lib/.
7660 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7662 nw
="$nw -Wunused-macros"
7666 set x
$WARN_CFLAGS; shift
7670 *" $gl_warn_item "*)
7673 gl_warn_set
="$gl_warn_set $gl_warn_item"
7677 GNULIB_WARN_CFLAGS
=$gl_warn_set
7685 ## Although we're running on an amd64 kernel, we're actually compiling for
7686 ## the x86 architecture. The user should probably have provided an
7687 ## explicit --build to `configure', but if everything else than the kernel
7688 ## is running in i386 mode, we can help them out.
7689 if test "$machine" = "amdx86-64"; then
7690 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7691 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7695 if test "$ac_cv_have_decl_i386" = "yes"; then
7696 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7698 machfile
="m/${machine}.h"
7702 # Extract the first word of "install-info", so it can be a program name with args.
7703 set dummy install-info
; ac_word
=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7709 case $INSTALL_INFO in
7711 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7733 if test -n "$INSTALL_INFO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7735 $as_echo "$INSTALL_INFO" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7742 # Extract the first word of "install-info", so it can be a program name with args.
7743 set dummy install-info
; ac_word
=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7749 case $INSTALL_INFO in
7751 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7755 for as_dir
in /usr
/sbin
7758 test -z "$as_dir" && as_dir
=.
7759 for ac_exec_ext
in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7773 if test -n "$INSTALL_INFO"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7775 $as_echo "$INSTALL_INFO" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7782 # Extract the first word of "install-info", so it can be a program name with args.
7783 set dummy install-info
; ac_word
=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7789 case $INSTALL_INFO in
7791 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir
=.
7799 for ac_exec_ext
in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7813 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7814 if test -n "$INSTALL_INFO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7816 $as_echo "$INSTALL_INFO" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7823 # Extract the first word of "gzip", so it can be a program name with args.
7824 set dummy
gzip; ac_word
=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7832 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir
=.
7840 for ac_exec_ext
in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7854 if test -n "$GZIP_PROG"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7856 $as_echo "$GZIP_PROG" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7865 ## Need makeinfo >= 4.7 (?) to build the manuals.
7866 # Extract the first word of "makeinfo", so it can be a program name with args.
7867 set dummy makeinfo
; ac_word
=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7875 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir
=.
7883 for ac_exec_ext
in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7897 MAKEINFO
=$ac_cv_path_MAKEINFO
7898 if test -n "$MAKEINFO"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7900 $as_echo "$MAKEINFO" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7907 if test "$MAKEINFO" != "no" && \
7908 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7912 ## Makeinfo is unusual. For a released Emacs, the manuals are
7913 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7914 ## therefore in the category of "special tools" not normally required, which
7915 ## configure does not have to check for (eg autoconf itself).
7916 ## In a Bazaar checkout on the other hand, the manuals are not included.
7917 ## So makeinfo is a requirement to build from Bazaar, and configure
7918 ## should test for it as it does for any other build requirement.
7919 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7920 ## with pre-built manuals, from a Bazaar checkout.
7923 if test "$MAKEINFO" = "no"; then
7925 if test "x${with_makeinfo}" = "xno"; then
7927 elif test ! -e $srcdir/info
/emacs
; then
7928 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7929 source tree does not seem to have pre-built manuals in the \`info' directory.
7930 Either install a suitable version of makeinfo, or re-run configure
7931 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7937 INFO_OPTS
=--no-split
7942 if test x
$GCC = xyes
; then
7943 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7944 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7946 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7947 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7951 late_LDFLAGS
=$LDFLAGS
7952 if test x
$GCC = xyes
; then
7953 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7955 LDFLAGS
="$LDFLAGS -znocombreloc"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7959 $as_echo_n "checking for -znocombreloc... " >&6; }
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7971 if ac_fn_c_try_link
"$LINENO"; then :
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7973 $as_echo "yes" >&6; }
7975 LDFLAGS
=$late_LDFLAGS
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7979 rm -f core conftest.err conftest.
$ac_objext \
7980 conftest
$ac_exeext conftest.
$ac_ext
7983 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7985 your-opsys-here
) CANNOT_DUMP
=yes ;;
7988 test "$CANNOT_DUMP" = "yes" && \
7990 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7996 UNEXEC_OBJ
=unexelf.o
7998 # MSDOS uses unexcoff.o
7999 # MSWindows uses unexw32.o
8001 UNEXEC_OBJ
=unexaix.o
8007 UNEXEC_OBJ
=unexmacosx.o
8010 UNEXEC_OBJ
=unexhp9k800.o
8013 # Use the Solaris dldump() function, called from unexsol.c, to dump
8014 # emacs, instead of the generic ELF dump code found in unexelf.c.
8015 # The resulting binary has a complete symbol table, and is better
8016 # for debugging and other observability tools (debuggers, pstack, etc).
8018 # If you encounter a problem using dldump(), please consider sending
8019 # a message to the OpenSolaris tools-linking mailing list:
8020 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8022 # It is likely that dldump() works with older Solaris too, but this has
8023 # not been tested, so for now this change is for Solaris 10 or newer.
8024 UNEXEC_OBJ
=unexsol.o
8031 ## Let `ld' find image libs and similar things in /usr/local/lib.
8032 ## The system compiler, GCC, has apparently been modified to not
8033 ## look there, contrary to what a stock GCC would do.
8034 ### It's not our place to do this. See bug#10313#17.
8035 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8040 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8041 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8045 ### It's not our place to do this. See bug#10313#17.
8046 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8051 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8052 ## otherwise Emacs dumps core on elf systems.
8053 LD_SWITCH_SYSTEM
="-Z"
8058 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8060 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8061 ## which has not been defined yet. When this was handled with cpp,
8062 ## it was expanded to null when configure sourced the s/*.h file.
8063 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8064 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8065 ## (or somesuch), but because it is supposed to go at the _front_
8066 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8067 ## Compare with the gnu-linux case below, which added to the end
8068 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8069 ## LD_SWITCH_SYSTEM_TEMACS.
8072 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8077 if test "$machine" = "alpha"; then
8078 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8079 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8083 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8084 ## With ELF, make sure that all common symbols get allocated to in the
8085 ## data section. Otherwise, the dump of temacs may miss variables in
8086 ## the shared library that have been initialized. For example, with
8087 ## GNU libc, __malloc_initialized would normally be resolved to the
8088 ## shared library's .bss section, which is fatal.
8089 if test "x$GCC" = "xyes"; then
8090 C_SWITCH_MACHINE
="-fno-common"
8092 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8095 UNEXEC_OBJ
=unexalpha.o
8103 ## Some programs in src produce warnings saying certain subprograms
8104 ## are too complex and need a MAXMEM value greater than 2000 for
8105 ## additional optimization. --nils@exp-math.uni-essen.de
8106 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8107 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8108 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8109 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8115 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8116 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8118 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8120 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8122 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8124 ## Motif needs -lgen.
8125 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8130 ### Make sure subsequent tests use flags consistent with the build flags.
8132 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8133 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8135 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8138 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8140 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8143 # Check whether --enable-largefile was given.
8144 if test "${enable_largefile+set}" = set; then :
8145 enableval
=$enable_largefile;
8148 if test "$enable_largefile" != no
; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8151 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8152 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8155 ac_cv_sys_largefile_CC
=no
8156 if test "$GCC" != yes; then
8159 # IRIX 6.2 and later do not support large files by default,
8160 # so use the C compiler's -n32 option if that helps.
8161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <sys/types.h>
8164 /* Check that off_t can represent 2**63 - 1 correctly.
8165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8166 since some C++ compilers masquerading as C compilers
8167 incorrectly reject 9223372036854775807. */
8168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8170 && LARGE_OFF_T % 2147483647 == 1)
8180 if ac_fn_c_try_compile
"$LINENO"; then :
8183 rm -f core conftest.err conftest.
$ac_objext
8185 if ac_fn_c_try_compile
"$LINENO"; then :
8186 ac_cv_sys_largefile_CC
=' -n32'; break
8188 rm -f core conftest.err conftest.
$ac_objext
8192 rm -f conftest.
$ac_ext
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8196 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8197 if test "$ac_cv_sys_largefile_CC" != no
; then
8198 CC
=$CC$ac_cv_sys_largefile_CC
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8202 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8203 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8210 /* Check that off_t can represent 2**63 - 1 correctly.
8211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8212 since some C++ compilers masquerading as C compilers
8213 incorrectly reject 9223372036854775807. */
8214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8216 && LARGE_OFF_T % 2147483647 == 1)
8226 if ac_fn_c_try_compile
"$LINENO"; then :
8227 ac_cv_sys_file_offset_bits
=no
; break
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #define _FILE_OFFSET_BITS 64
8233 #include <sys/types.h>
8234 /* Check that off_t can represent 2**63 - 1 correctly.
8235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8236 since some C++ compilers masquerading as C compilers
8237 incorrectly reject 9223372036854775807. */
8238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8240 && LARGE_OFF_T % 2147483647 == 1)
8250 if ac_fn_c_try_compile
"$LINENO"; then :
8251 ac_cv_sys_file_offset_bits
=64; break
8253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8254 ac_cv_sys_file_offset_bits
=unknown
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8259 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8260 case $ac_cv_sys_file_offset_bits in #(
8263 cat >>confdefs.h
<<_ACEOF
8264 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8269 if test $ac_cv_sys_file_offset_bits = unknown
; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8271 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8272 if test "${ac_cv_sys_large_files+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8279 /* Check that off_t can represent 2**63 - 1 correctly.
8280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8281 since some C++ compilers masquerading as C compilers
8282 incorrectly reject 9223372036854775807. */
8283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8285 && LARGE_OFF_T % 2147483647 == 1)
8295 if ac_fn_c_try_compile
"$LINENO"; then :
8296 ac_cv_sys_large_files
=no
; break
8298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 #define _LARGE_FILES 1
8302 #include <sys/types.h>
8303 /* Check that off_t can represent 2**63 - 1 correctly.
8304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8305 since some C++ compilers masquerading as C compilers
8306 incorrectly reject 9223372036854775807. */
8307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8309 && LARGE_OFF_T % 2147483647 == 1)
8319 if ac_fn_c_try_compile
"$LINENO"; then :
8320 ac_cv_sys_large_files
=1; break
8322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 ac_cv_sys_large_files
=unknown
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8328 $as_echo "$ac_cv_sys_large_files" >&6; }
8329 case $ac_cv_sys_large_files in #(
8332 cat >>confdefs.h
<<_ACEOF
8333 #define _LARGE_FILES $ac_cv_sys_large_files
8352 START_FILES
='pre-crt0.o'
8355 ## Adding -lm confuses the dynamic linker, so omit it.
8357 START_FILES
='pre-crt0.o'
8360 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8361 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8363 gnu-linux | gnu-kfreebsd
)
8364 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8365 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8367 hpux10-20 | hpux11
)
8369 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8372 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8373 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8382 for file in x
$LIB_STANDARD $START_FILES; do
8384 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8388 if test "x$crt_files" != x
; then
8390 ## If user specified a crt-dir, use that unconditionally.
8393 if test "X$CRT_DIR" = "X"; then
8395 CRT_DIR
=/usr
/lib
# default
8397 case "$canonical" in
8398 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8399 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8400 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8401 ## For anything else (eg /usr/lib32), it is up the user to specify
8402 ## the location (bug#5655).
8403 ## Test for crtn.o, not just the directory, because sometimes the
8404 ## directory exists but does not have the relevant files (bug#1287).
8405 ## FIXME better to test for binary compatibility somehow.
8406 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8409 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8413 hpux10-20
) CRT_DIR
=/lib
;;
8416 test "x${GCC}" = xyes
&& crt_gcc
=yes
8422 for file in $crt_files; do
8424 ## If we're using gcc, try to determine it automatically by asking
8425 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8426 ## system-dependent default from above.]
8427 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8429 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8432 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8433 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8434 X"$crt_file" : 'X\(//\)[^/]' \| \
8435 X"$crt_file" : 'X\(//\)$' \| \
8436 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8437 $as_echo X"$crt_file" |
8438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8461 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8464 test "x$crt_missing" = x || \
8465 as_fn_error
"Required file(s) not found:$crt_missing
8466 Try using the --with-crt-dir option." "$LINENO" 5
8468 fi # crt_files != ""
8474 if test -f $CRT_DIR/crti.o
; then
8476 test -f $CRT_DIR/crtn.o || \
8477 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8479 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8480 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8489 if test "${with_sound}" != "no"; then
8490 # Sound support for GNU/Linux and the free BSDs.
8491 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8495 eval as_val
=\$
$as_ac_Header
8496 if test "x$as_val" = x
""yes; then :
8497 cat >>confdefs.h
<<_ACEOF
8498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8500 have_sound_header
=yes
8505 # Emulation library used on NetBSD.
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8507 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8508 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8511 ac_check_lib_save_LIBS
=$LIBS
8512 LIBS
="-lossaudio $LIBS"
8513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8516 /* Override any GCC internal prototype to avoid an error.
8517 Use char because int might match the return type of a GCC
8518 builtin and then its argument prototype would still apply. */
8526 return _oss_ioctl ();
8531 if ac_fn_c_try_link
"$LINENO"; then :
8532 ac_cv_lib_ossaudio__oss_ioctl
=yes
8534 ac_cv_lib_ossaudio__oss_ioctl
=no
8536 rm -f core conftest.err conftest.
$ac_objext \
8537 conftest
$ac_exeext conftest.
$ac_ext
8538 LIBS
=$ac_check_lib_save_LIBS
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8541 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8542 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8551 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8555 # Extract the first word of "pkg-config", so it can be a program name with args.
8556 set dummy pkg-config
; ac_word
=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8564 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir
=.
8572 for ac_exec_ext
in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8586 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8587 if test -n "$PKG_CONFIG"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8589 $as_echo "$PKG_CONFIG" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8597 if test "$PKG_CONFIG" = "no" ; then
8600 PKG_CONFIG_MIN_VERSION
=0.9.0
8601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8603 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8605 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8606 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8607 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8614 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8615 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8617 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8624 ## If we have a custom action on failure, don't print errors, but
8625 ## do set a variable so people can do so.
8626 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8638 if test $succeeded = yes; then
8644 if test $HAVE_ALSA = yes; then
8645 SAVE_CFLAGS
="$CFLAGS"
8647 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8648 LIBS
="$ALSA_LIBS $LIBS"
8649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <asoundlib.h>
8655 snd_lib_error_set_handler (0);
8660 if ac_fn_c_try_compile
"$LINENO"; then :
8661 emacs_alsa_normal
=yes
8663 emacs_alsa_normal
=no
8665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8666 if test "$emacs_alsa_normal" != yes; then
8667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <alsa/asoundlib.h>
8673 snd_lib_error_set_handler (0);
8678 if ac_fn_c_try_compile
"$LINENO"; then :
8679 emacs_alsa_subdir
=yes
8681 emacs_alsa_subdir
=no
8683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8684 if test "$emacs_alsa_subdir" != yes; then
8685 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8687 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8690 CFLAGS
="$SAVE_CFLAGS"
8692 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8693 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8695 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8699 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8701 gnu-linux|freebsd|netbsd
)
8703 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8712 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8713 linux
/version.h sys
/systeminfo.h \
8714 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8715 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8716 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8720 eval as_val
=\$
$as_ac_Header
8721 if test "x$as_val" = x
""yes; then :
8722 cat >>confdefs.h
<<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8732 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/personality.h>
8739 personality (PER_LINUX32)
8744 if ac_fn_c_try_compile
"$LINENO"; then :
8745 emacs_cv_personality_linux32
=yes
8747 emacs_cv_personality_linux32
=no
8749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8751 $as_echo "$emacs_cv_personality_linux32" >&6; }
8753 if test $emacs_cv_personality_linux32 = yes; then
8755 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8759 for ac_header
in term.h
8761 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8762 if test "x$ac_cv_header_term_h" = x
""yes; then :
8763 cat >>confdefs.h
<<_ACEOF
8764 #define HAVE_TERM_H 1
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8772 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8773 if test "${ac_cv_header_time+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <sys/types.h>
8779 #include <sys/time.h>
8785 if ((struct tm *) 0)
8791 if ac_fn_c_try_compile
"$LINENO"; then :
8792 ac_cv_header_time
=yes
8794 ac_cv_header_time
=no
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8799 $as_echo "$ac_cv_header_time" >&6; }
8800 if test $ac_cv_header_time = yes; then
8802 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8806 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8807 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8813 cat >>confdefs.h
<<_ACEOF
8814 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8817 if test $ac_cv_have_decl_sys_siglist != yes; then
8818 # For Tru64, at least:
8819 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8820 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8826 cat >>confdefs.h
<<_ACEOF
8827 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8830 if test $ac_cv_have_decl___sys_siglist = yes; then
8832 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8837 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8838 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/types.h>
8844 #include <sys/wait.h>
8846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8862 if ac_fn_c_try_compile
"$LINENO"; then :
8863 ac_cv_header_sys_wait_h
=yes
8865 ac_cv_header_sys_wait_h
=no
8867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8870 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8871 if test $ac_cv_header_sys_wait_h = yes; then
8873 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8879 $as_echo_n "checking for struct utimbuf... " >&6; }
8880 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #ifdef TIME_WITH_SYS_TIME
8886 #include <sys/time.h>
8889 #ifdef HAVE_SYS_TIME_H
8890 #include <sys/time.h>
8901 static struct utimbuf x; x.actime = x.modtime;
8906 if ac_fn_c_try_compile
"$LINENO"; then :
8907 emacs_cv_struct_utimbuf
=yes
8909 emacs_cv_struct_utimbuf
=no
8911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8914 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8915 if test $emacs_cv_struct_utimbuf = yes; then
8917 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8922 $as_echo_n "checking for speed_t... " >&6; }
8923 if test "${emacs_cv_speed_t+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #include <termios.h>
8937 if ac_fn_c_try_compile
"$LINENO"; then :
8938 emacs_cv_speed_t
=yes
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8945 $as_echo "$emacs_cv_speed_t" >&6; }
8946 if test $emacs_cv_speed_t = yes; then
8948 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8953 $as_echo_n "checking for struct timeval... " >&6; }
8954 if test "${emacs_cv_struct_timeval+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 #ifdef TIME_WITH_SYS_TIME
8960 #include <sys/time.h>
8963 #ifdef HAVE_SYS_TIME_H
8964 #include <sys/time.h>
8972 static struct timeval x; x.tv_sec = x.tv_usec;
8977 if ac_fn_c_try_compile
"$LINENO"; then :
8978 emacs_cv_struct_timeval
=yes
8980 emacs_cv_struct_timeval
=no
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8985 $as_echo "$emacs_cv_struct_timeval" >&6; }
8986 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8987 if test $emacs_cv_struct_timeval = yes; then
8989 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8994 $as_echo_n "checking for struct exception... " >&6; }
8995 if test "${emacs_cv_struct_exception+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9004 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9009 if ac_fn_c_try_compile
"$LINENO"; then :
9010 emacs_cv_struct_exception
=yes
9012 emacs_cv_struct_exception
=no
9014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9017 $as_echo "$emacs_cv_struct_exception" >&6; }
9018 HAVE_EXCEPTION
=$emacs_cv_struct_exception
9019 if test $emacs_cv_struct_exception != yes; then
9021 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9025 for ac_header
in sys
/socket.h
9027 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9028 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
9029 cat >>confdefs.h
<<_ACEOF
9030 #define HAVE_SYS_SOCKET_H 1
9037 for ac_header
in net
/if.h
9039 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9040 #if HAVE_SYS_SOCKET_H
9041 #include <sys/socket.h>
9044 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9045 cat >>confdefs.h
<<_ACEOF
9046 #define HAVE_NET_IF_H 1
9053 for ac_header
in ifaddrs.h
9055 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9056 #if HAVE_SYS_SOCKET_H
9057 #include <sys/socket.h>
9060 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9061 cat >>confdefs.h
<<_ACEOF
9062 #define HAVE_IFADDRS_H 1
9069 for ac_header
in net
/if_dl.h
9071 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9072 #if HAVE_SYS_SOCKET_H
9073 #include <sys/socket.h>
9076 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9077 cat >>confdefs.h
<<_ACEOF
9078 #define HAVE_NET_IF_DL_H 1
9085 for ac_func
in getifaddrs freeifaddrs
9087 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9088 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9089 eval as_val
=\$
$as_ac_var
9090 if test "x$as_val" = x
""yes; then :
9091 cat >>confdefs.h
<<_ACEOF
9092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9099 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9107 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9109 cat >>confdefs.h
<<_ACEOF
9110 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9115 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9116 #if HAVE_SYS_SOCKET_H
9117 #include <sys/socket.h>
9123 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9125 cat >>confdefs.h
<<_ACEOF
9126 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9131 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9132 #if HAVE_SYS_SOCKET_H
9133 #include <sys/socket.h>
9139 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9141 cat >>confdefs.h
<<_ACEOF
9142 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9147 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9148 #if HAVE_SYS_SOCKET_H
9149 #include <sys/socket.h>
9155 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9157 cat >>confdefs.h
<<_ACEOF
9158 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9163 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9164 #if HAVE_SYS_SOCKET_H
9165 #include <sys/socket.h>
9171 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9173 cat >>confdefs.h
<<_ACEOF
9174 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9179 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9180 #if HAVE_SYS_SOCKET_H
9181 #include <sys/socket.h>
9187 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9199 $as_echo_n "checking for function prototypes... " >&6; }
9200 if test "$ac_cv_prog_cc_c89" != no
; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9202 $as_echo "yes" >&6; }
9204 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9207 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9215 $as_echo_n "checking for working volatile... " >&6; }
9216 if test "${ac_cv_c_volatile+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9227 int * volatile y = (int *) 0;
9233 if ac_fn_c_try_compile
"$LINENO"; then :
9234 ac_cv_c_volatile
=yes
9238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9241 $as_echo "$ac_cv_c_volatile" >&6; }
9242 if test $ac_cv_c_volatile = no
; then
9244 $as_echo "#define volatile /**/" >>confdefs.h
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9249 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9250 if test "${ac_cv_c_const+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9259 /* FIXME: Include the comments suggested by Paul. */
9261 /* Ultrix mips cc rejects this. */
9262 typedef int charset[2];
9264 /* SunOS 4.1.1 cc rejects this. */
9265 char const *const *pcpcc;
9267 /* NEC SVR4.0.2 mips cc rejects this. */
9268 struct point {int x, y;};
9269 static struct point const zero = {0,0};
9270 /* AIX XL C 1.02.0.0 rejects this.
9271 It does not let you subtract one const X* pointer from another in
9272 an arm of an if-expression whose if-part is not a constant
9274 const char *g = "string";
9275 pcpcc = &g + (g ? g-g : 0);
9276 /* HPUX 7.0 cc rejects these. */
9278 ppc = (char**) pcpcc;
9279 pcpcc = (char const *const *) ppc;
9280 { /* SCO 3.2v4 cc rejects this. */
9282 char const *s = 0 ? (char *) 0 : (char const *) 0;
9287 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9289 const int *foo = &x[0];
9292 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9293 typedef const int *iptr;
9297 { /* AIX XL C 1.02.0.0 rejects this saying
9298 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9299 struct s { int j; const int *ap[3]; };
9300 struct s *b; b->j = 5;
9302 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9306 return !cs[0] && !zero.x;
9313 if ac_fn_c_try_compile
"$LINENO"; then :
9318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9321 $as_echo "$ac_cv_c_const" >&6; }
9322 if test $ac_cv_c_const = no
; then
9324 $as_echo "#define const /**/" >>confdefs.h
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9329 $as_echo_n "checking for void * support... " >&6; }
9330 if test "${emacs_cv_void_star+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9344 if ac_fn_c_try_compile
"$LINENO"; then :
9345 emacs_cv_void_star
=yes
9347 emacs_cv_void_star
=no
9349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9352 $as_echo "$emacs_cv_void_star" >&6; }
9353 if test $emacs_cv_void_star = yes; then
9354 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9357 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9362 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9363 if test "${ac_cv_c_bigendian+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9366 ac_cv_c_bigendian
=unknown
9367 # See if we're dealing with a universal compiler.
9368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 #ifndef __APPLE_CC__
9371 not a universal capable compiler
9376 if ac_fn_c_try_compile
"$LINENO"; then :
9378 # Check for potential -arch flags. It is not universal unless
9379 # there are at least two -arch flags with different values.
9382 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9383 if test -n "$ac_prev"; then
9385 i?
86 | x86_64 | ppc | ppc64
)
9386 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9389 ac_cv_c_bigendian
=universal
9395 elif test "x$ac_word" = "x-arch"; then
9400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9401 if test $ac_cv_c_bigendian = unknown
; then
9402 # See if sys/param.h defines the BYTE_ORDER macro.
9403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <sys/types.h>
9406 #include <sys/param.h>
9411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9412 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9421 if ac_fn_c_try_compile
"$LINENO"; then :
9422 # It does; now see whether it defined to BIG_ENDIAN or not.
9423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <sys/types.h>
9426 #include <sys/param.h>
9431 #if BYTE_ORDER != BIG_ENDIAN
9439 if ac_fn_c_try_compile
"$LINENO"; then :
9440 ac_cv_c_bigendian
=yes
9442 ac_cv_c_bigendian
=no
9444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9448 if test $ac_cv_c_bigendian = unknown
; then
9449 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9457 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9465 if ac_fn_c_try_compile
"$LINENO"; then :
9466 # It does; now see whether it defined to _BIG_ENDIAN or not.
9467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9482 if ac_fn_c_try_compile
"$LINENO"; then :
9483 ac_cv_c_bigendian
=yes
9485 ac_cv_c_bigendian
=no
9487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9491 if test $ac_cv_c_bigendian = unknown
; then
9492 # Compile a test program.
9493 if test "$cross_compiling" = yes; then :
9494 # Try to guess by grepping values from an object file.
9495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 short int ascii_mm[] =
9498 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9499 short int ascii_ii[] =
9500 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9501 int use_ascii (int i) {
9502 return ascii_mm[i] + ascii_ii[i];
9504 short int ebcdic_ii[] =
9505 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9506 short int ebcdic_mm[] =
9507 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9508 int use_ebcdic (int i) {
9509 return ebcdic_mm[i] + ebcdic_ii[i];
9516 return use_ascii (foo) == use_ebcdic (foo);
9521 if ac_fn_c_try_compile
"$LINENO"; then :
9522 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9523 ac_cv_c_bigendian
=yes
9525 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9526 if test "$ac_cv_c_bigendian" = unknown
; then
9527 ac_cv_c_bigendian
=no
9529 # finding both strings is unlikely to happen, but who knows?
9530 ac_cv_c_bigendian
=unknown
9534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 $ac_includes_default
9543 /* Are we little or big endian? From Harbison&Steele. */
9547 char c[sizeof (long int)];
9550 return u.c[sizeof (long int) - 1] == 1;
9556 if ac_fn_c_try_run
"$LINENO"; then :
9557 ac_cv_c_bigendian
=no
9559 ac_cv_c_bigendian
=yes
9561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9568 $as_echo "$ac_cv_c_bigendian" >&6; }
9569 case $ac_cv_c_bigendian in #(
9571 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9577 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9581 as_fn_error
"unknown endianness
9582 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9587 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9588 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 char __attribute__ ((__aligned__ (1 << 3))) c;
9602 if ac_fn_c_try_compile
"$LINENO"; then :
9603 emacs_cv_attribute_aligned
=yes
9605 emacs_cv_attribute_aligned
=no
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9610 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9611 if test $emacs_cv_attribute_aligned = yes; then
9613 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9620 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9621 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9622 $as_echo_n "(cached) " >&6
9624 cat >conftest.
make <<\_ACEOF
9627 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9632 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9634 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9638 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9640 $as_echo "yes" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 SET_MAKE
="MAKE=${MAKE-make}"
9652 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9654 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9656 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9657 if test "x$testval" != x
; then
9660 ac_enable_autodepend
=no
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9663 $as_echo "$HAVE_GNU_MAKE" >&6; }
9664 if test $HAVE_GNU_MAKE = yes; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9666 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9667 SAVE_CFLAGS
="$CFLAGS"
9668 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9680 if ac_fn_c_try_compile
"$LINENO"; then :
9683 ac_enable_autodepend
=no
9685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 CFLAGS
="$SAVE_CFLAGS"
9687 test -f deps.d || ac_enable_autodepend
=no
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9690 $as_echo "$ac_enable_autodepend" >&6; }
9692 if test $ac_enable_autodepend = yes; then
9693 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9694 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9695 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9696 deps_frag
=autodeps.mk
9699 deps_frag
=$srcdir/src
/$deps_frag
9705 lisp_frag
=$srcdir/src
/lisp.mk
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9710 $as_echo_n "checking for long file names... " >&6; }
9711 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9714 ac_cv_sys_long_file_names
=yes
9715 # Test for long file names in all the places we know might matter:
9716 # . the current directory, where building will happen
9717 # $prefix/lib where we will be installing things
9718 # $exec_prefix/lib likewise
9719 # $TMPDIR if set, where it might want to write temporary files
9720 # /tmp where it might want to write temporary files
9723 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9724 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9725 # in the usual case where exec_prefix is '${prefix}'.
9727 . |
/* | ?
:[\\/]*) ;; #(
9730 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9731 ac_xdir
=$ac_dir/cf$$
9732 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9733 ac_tf1
=$ac_xdir/conftest9012345
9734 ac_tf2
=$ac_xdir/conftest9012346
9735 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9736 ac_cv_sys_long_file_names
=no
9737 rm -f -r "$ac_xdir" 2>/dev
/null
9738 test $ac_cv_sys_long_file_names = no
&& break
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9742 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9743 if test $ac_cv_sys_long_file_names = yes; then
9745 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9750 #### Choose a window system.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9753 $as_echo_n "checking for X... " >&6; }
9756 # Check whether --with-x was given.
9757 if test "${with_x+set}" = set; then :
9761 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9762 if test "x$with_x" = xno
; then
9763 # The user explicitly disabled X.
9766 case $x_includes,$x_libraries in #(
9767 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9768 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9771 # One or both of the vars are not set, and there is no cached value.
9772 ac_x_includes
=no ac_x_libraries
=no
9773 rm -f -r conftest.dir
9774 if mkdir conftest.dir
; then
9776 cat >Imakefile
<<'_ACEOF'
9778 @echo incroot='${INCROOT}'
9780 @echo usrlibdir='${USRLIBDIR}'
9782 @echo libdir='${LIBDIR}'
9784 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9786 for ac_var
in incroot usrlibdir libdir
; do
9787 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9790 for ac_extension
in a so sl dylib la dll
; do
9791 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9792 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9793 ac_im_usrlibdir
=$ac_im_libdir; break
9796 # Screen out bogus values from the imake configuration. They are
9797 # bogus both because they are the default anyway, and because
9798 # using them would break gcc on systems where it needs fixed includes.
9799 case $ac_im_incroot in
9800 /usr
/include
) ac_x_includes
= ;;
9801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9803 case $ac_im_usrlibdir in
9804 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9809 rm -f -r conftest.dir
9812 # Standard set of common directories for X headers.
9813 # Check X11 before X11Rn because it is often a symlink to the current release.
9827 /usr/local/X11/include
9828 /usr/local/X11R7/include
9829 /usr/local/X11R6/include
9830 /usr/local/X11R5/include
9831 /usr/local/X11R4/include
9833 /usr/local/include/X11
9834 /usr/local/include/X11R7
9835 /usr/local/include/X11R6
9836 /usr/local/include/X11R5
9837 /usr/local/include/X11R4
9841 /usr/XFree86/include/X11
9845 /usr/unsupported/include
9847 /usr/local/x11r5/include
9848 /usr/lpp/Xamples/include
9850 /usr/openwin/include
9851 /usr/openwin/share/include'
9853 if test "$ac_x_includes" = no
; then
9854 # Guess where to find include files, by looking for Xlib.h.
9855 # First, try using that file with no special directory specified.
9856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include <X11/Xlib.h>
9860 if ac_fn_c_try_cpp
"$LINENO"; then :
9861 # We can compile using X headers with no special include directory.
9864 for ac_dir
in $ac_x_header_dirs; do
9865 if test -r "$ac_dir/X11/Xlib.h"; then
9866 ac_x_includes
=$ac_dir
9871 rm -f conftest.err conftest.
$ac_ext
9872 fi # $ac_x_includes = no
9874 if test "$ac_x_libraries" = no
; then
9875 # Check for the libraries.
9876 # See if we find them without any special options.
9877 # Don't add to $LIBS permanently.
9880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 #include <X11/Xlib.h>
9891 if ac_fn_c_try_link
"$LINENO"; then :
9893 # We can link X programs with no special library path.
9897 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9899 # Don't even attempt the hair of trying to link an X program!
9900 for ac_extension
in a so sl dylib la dll
; do
9901 if test -r "$ac_dir/libX11.$ac_extension"; then
9902 ac_x_libraries
=$ac_dir
9908 rm -f core conftest.err conftest.
$ac_objext \
9909 conftest
$ac_exeext conftest.
$ac_ext
9910 fi # $ac_x_libraries = no
9912 case $ac_x_includes,$ac_x_libraries in #(
9914 # Didn't find X, or a directory has "'" in its name.
9915 ac_cv_have_x
="have_x=no";; #(
9917 # Record where we found X for the cache.
9918 ac_cv_have_x
="have_x=yes\
9919 ac_x_includes='$ac_x_includes'\
9920 ac_x_libraries='$ac_x_libraries'"
9926 eval "$ac_cv_have_x"
9929 if test "$have_x" != yes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9931 $as_echo "$have_x" >&6; }
9934 # If each of the values was on the command line, it overrides each guess.
9935 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9936 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9937 # Update the cache value to reflect the command line values.
9938 ac_cv_have_x
="have_x=yes\
9939 ac_x_includes='$x_includes'\
9940 ac_x_libraries='$x_libraries'"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9942 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9945 if test "$no_x" = yes; then
9951 LD_SWITCH_X_SITE_RPATH
=
9952 if test "${x_libraries}" != NONE
; then
9953 if test -n "${x_libraries}"; then
9954 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9955 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9957 x_default_search_path
=""
9958 x_search_path
=${x_libraries}
9959 if test -z "${x_search_path}"; then
9960 x_search_path
=/usr
/lib
9962 for x_library
in `echo ${x_search_path}: | \
9963 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9965 ${x_library}/X11/%L/%T/%N%C%S:\
9966 ${x_library}/X11/%l/%T/%N%C%S:\
9967 ${x_library}/X11/%T/%N%C%S:\
9968 ${x_library}/X11/%L/%T/%N%S:\
9969 ${x_library}/X11/%l/%T/%N%S:\
9970 ${x_library}/X11/%T/%N%S"
9971 if test x
"${x_default_search_path}" = x
; then
9972 x_default_search_path
=${x_search_path}
9974 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9980 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9981 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9984 if test x
"${x_includes}" = x
; then
9985 bitmapdir
=/usr
/include
/X11
/bitmaps
9987 # accumulate include directories that have X11 bitmap subdirectories
9989 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9990 if test -d "${bmd}/X11/bitmaps"; then
9991 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9993 if test -d "${bmd}/bitmaps"; then
9994 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9997 if test ${bmd_acc} != "dummyval"; then
9998 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10005 tmp_CPPFLAGS
="$CPPFLAGS"
10006 tmp_CFLAGS
="$CFLAGS"
10007 CPPFLAGS
="$CPPFLAGS -x objective-c"
10008 CFLAGS
="$CFLAGS -x objective-c"
10009 TEMACS_LDFLAGS2
="\${LDFLAGS}"
10011 if test "${with_ns}" != no
; then
10012 if test "${opsys}" = darwin
; then
10014 ns_appdir
=`pwd`/nextstep
/Emacs.app
10015 ns_appbindir
=${ns_appdir}/Contents
/MacOS
10016 ns_appresdir
=${ns_appdir}/Contents
/Resources
10017 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
10018 elif test -f $GNUSTEP_CONFIG_FILE; then
10019 NS_IMPL_GNUSTEP
=yes
10020 ns_appdir
=`pwd`/nextstep
/Emacs.app
10021 ns_appbindir
=${ns_appdir}
10022 ns_appresdir
=${ns_appdir}/Resources
10023 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
10024 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10025 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10026 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10027 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10028 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10029 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
10030 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10031 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
10032 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10033 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10034 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10039 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10040 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 #include <GNUstepBase/GSConfig.h>
10049 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10058 if ac_fn_c_try_compile
"$LINENO"; then :
10059 emacs_cv_objc_exceptions
=yes
10061 emacs_cv_objc_exceptions
=no
10063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10066 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10067 if test $emacs_cv_objc_exceptions = yes; then
10069 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10071 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10075 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10077 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10078 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10081 as_fn_error
"\`--with-ns' was specified, but the include
10082 files are missing or cannot be compiled." "$LINENO" 5
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088 #include <Foundation/NSObjCRuntime.h>
10097 if ac_fn_c_try_compile
"$LINENO"; then :
10098 ns_have_nsinteger
=yes
10100 ns_have_nsinteger
=no
10102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10103 if test $ns_have_nsinteger = yes; then
10105 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10111 LEIM_INSTALLDIR
="\${install_prefix}/leim"
10115 if test "${HAVE_NS}" = yes; then
10116 if test "$with_toolkit_scroll_bars" = "no"; then
10117 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10120 window_system
=nextstep
10122 # set up packaging dirs
10123 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10124 prefix
=${ns_appresdir}
10125 exec_prefix
=${ns_appbindir}
10126 libexecdir
=${ns_appbindir}/libexec
10127 LEIM_INSTALLDIR
="\${ns_appresdir}/leim"
10129 ns_frag
=$srcdir/src
/ns.mk
10130 NS_OBJ
="fontset.o fringe.o image.o"
10131 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10133 CFLAGS
="$tmp_CFLAGS"
10134 CPPFLAGS
="$tmp_CPPFLAGS"
10141 case "${window_system}" in
10145 case "${with_x_toolkit}" in
10146 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10147 motif
) USE_X_TOOLKIT
=MOTIF
;;
10149 USE_X_TOOLKIT
=none
;;
10150 gtk3
) with_gtk3
=yes
10151 USE_X_TOOLKIT
=none
;;
10152 no
) USE_X_TOOLKIT
=none
;;
10153 * ) USE_X_TOOLKIT
=maybe
;;
10163 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10164 # Extract the first word of "X", so it can be a program name with args.
10165 set dummy X
; ac_word
=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10171 if test -n "$HAVE_XSERVER"; then
10172 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10175 for as_dir
in $PATH
10178 test -z "$as_dir" && as_dir
=.
10179 for ac_exec_ext
in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181 ac_cv_prog_HAVE_XSERVER
="true"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10192 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10193 if test -n "$HAVE_XSERVER"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10195 $as_echo "$HAVE_XSERVER" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10202 if test "$HAVE_XSERVER" = true ||
10203 test -n "$DISPLAY" ||
10204 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10205 as_fn_error
"You seem to be running X, but no X development libraries
10206 were found. You should install the relevant development files for X
10207 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10208 sure you have development files for image handling, i.e.
10209 tiff, gif, jpeg, png and xpm.
10210 If you are sure you want Emacs compiled without X window support, pass
10212 to configure." "$LINENO" 5
10216 ### If we're using X11, we should use the X menu package.
10218 case ${HAVE_X11} in
10219 yes ) HAVE_MENUS
=yes ;;
10222 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10223 # Assume not, until told otherwise.
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10227 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10228 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10233 #include <malloc.h>
10234 static void hook (void) {}
10238 malloc_set_state (malloc_get_state ());
10239 __after_morecore_hook = hook;
10240 __malloc_initialize_hook = hook;
10245 if ac_fn_c_try_link
"$LINENO"; then :
10246 emacs_cv_var_doug_lea_malloc
=yes
10248 emacs_cv_var_doug_lea_malloc
=no
10250 rm -f core conftest.err conftest.
$ac_objext \
10251 conftest
$ac_exeext conftest.
$ac_ext
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10254 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10255 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10260 ## darwin ld insists on the use of malloc routines in the System framework.
10261 darwin|sol2-10
) system_malloc
=yes ;;
10264 if test "${system_malloc}" = "yes"; then
10266 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10269 GNU_MALLOC_reason
="
10270 (The GNU allocators don't work with this system configuration.)"
10274 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10275 VMLIMIT_OBJ
=vm-limit.o
10280 if test "$doug_lea_malloc" = "yes" ; then
10281 if test "$GNU_MALLOC" = yes ; then
10282 GNU_MALLOC_reason
="
10283 (Using Doug Lea's new malloc from the GNU C Library.)"
10286 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10289 ## Use mmap directly for allocating larger buffers.
10290 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10291 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10292 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10294 gnu
*) REL_ALLOC
=no
;;
10298 if test x
"${REL_ALLOC}" = x
; then
10299 REL_ALLOC
=${GNU_MALLOC}
10302 use_mmap_for_buffers
=no
10304 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10310 for ac_header
in $ac_header_list
10312 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10313 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10315 eval as_val
=\$
$as_ac_Header
10316 if test "x$as_val" = x
""yes; then :
10317 cat >>confdefs.h
<<_ACEOF
10318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10332 for ac_func
in getpagesize
10334 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10335 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10336 cat >>confdefs.h
<<_ACEOF
10337 #define HAVE_GETPAGESIZE 1
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10344 $as_echo_n "checking for working mmap... " >&6; }
10345 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test "$cross_compiling" = yes; then :
10349 ac_cv_func_mmap_fixed_mapped
=no
10351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 $ac_includes_default
10354 /* malloc might have been renamed as rpl_malloc. */
10357 /* Thanks to Mike Haertel and Jim Avera for this test.
10358 Here is a matrix of mmap possibilities:
10359 mmap private not fixed
10360 mmap private fixed at somewhere currently unmapped
10361 mmap private fixed at somewhere already mapped
10362 mmap shared not fixed
10363 mmap shared fixed at somewhere currently unmapped
10364 mmap shared fixed at somewhere already mapped
10365 For private mappings, we should verify that changes cannot be read()
10366 back from the file, nor mmap's back from the file at a different
10367 address. (There have been systems where private was not correctly
10368 implemented like the infamous i386 svr4.0, and systems where the
10369 VM page cache was not coherent with the file system buffer cache
10370 like early versions of FreeBSD and possibly contemporary NetBSD.)
10371 For shared mappings, we should conversely verify that changes get
10372 propagated back to all the places they're supposed to be.
10374 Grep wants private fixed already mapped.
10375 The main things grep needs to know about mmap are:
10376 * does it exist and is it safe to write into the mmap'd area
10377 * how to use it (BSD variants) */
10380 #include <sys/mman.h>
10382 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10386 /* This mess was copied from the GNU getpagesize.h. */
10387 #ifndef HAVE_GETPAGESIZE
10388 # ifdef _SC_PAGESIZE
10389 # define getpagesize() sysconf(_SC_PAGESIZE)
10390 # else /* no _SC_PAGESIZE */
10391 # ifdef HAVE_SYS_PARAM_H
10392 # include <sys/param.h>
10393 # ifdef EXEC_PAGESIZE
10394 # define getpagesize() EXEC_PAGESIZE
10395 # else /* no EXEC_PAGESIZE */
10397 # define getpagesize() NBPG * CLSIZE
10400 # endif /* no CLSIZE */
10401 # else /* no NBPG */
10403 # define getpagesize() NBPC
10404 # else /* no NBPC */
10406 # define getpagesize() PAGESIZE
10407 # endif /* PAGESIZE */
10408 # endif /* no NBPC */
10409 # endif /* no NBPG */
10410 # endif /* no EXEC_PAGESIZE */
10411 # else /* no HAVE_SYS_PARAM_H */
10412 # define getpagesize() 8192 /* punt totally */
10413 # endif /* no HAVE_SYS_PARAM_H */
10414 # endif /* no _SC_PAGESIZE */
10416 #endif /* no HAVE_GETPAGESIZE */
10421 char *data, *data2, *data3;
10422 const char *cdata2;
10426 pagesize = getpagesize ();
10428 /* First, make a file with some known garbage in it. */
10429 data = (char *) malloc (pagesize);
10432 for (i = 0; i < pagesize; ++i)
10433 *(data + i) = rand ();
10435 fd = creat ("conftest.mmap", 0600);
10438 if (write (fd, data, pagesize) != pagesize)
10442 /* Next, check that the tail of a page is zero-filled. File must have
10443 non-zero length, otherwise we risk SIGBUS for entire page. */
10444 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10448 if (write (fd2, cdata2, 1) != 1)
10450 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10451 if (data2 == MAP_FAILED)
10453 for (i = 0; i < pagesize; ++i)
10457 if (munmap (data2, pagesize))
10460 /* Next, try to mmap the file at a fixed address which already has
10461 something else allocated at it. If we can, also make sure that
10462 we see the same garbage. */
10463 fd = open ("conftest.mmap", O_RDWR);
10466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10469 for (i = 0; i < pagesize; ++i)
10470 if (*(data + i) != *(data2 + i))
10473 /* Finally, make sure that changes to the mapped area do not
10474 percolate back to the file as seen by read(). (This is a bug on
10475 some variants of i386 svr4.0.) */
10476 for (i = 0; i < pagesize; ++i)
10477 *(data2 + i) = *(data2 + i) + 1;
10478 data3 = (char *) malloc (pagesize);
10481 if (read (fd, data3, pagesize) != pagesize)
10483 for (i = 0; i < pagesize; ++i)
10484 if (*(data + i) != *(data3 + i))
10490 if ac_fn_c_try_run
"$LINENO"; then :
10491 ac_cv_func_mmap_fixed_mapped
=yes
10493 ac_cv_func_mmap_fixed_mapped
=no
10495 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10496 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10501 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10504 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10507 rm -f conftest.mmap conftest.txt
10509 if test $use_mmap_for_buffers = yes; then
10511 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10516 LIBS
="$LIBS_SYSTEM $LIBS"
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10519 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10523 ac_check_lib_save_LIBS
=$LIBS
10524 LIBS
="-ldnet $LIBS"
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10538 return dnet_ntoa ();
10543 if ac_fn_c_try_link
"$LINENO"; then :
10544 ac_cv_lib_dnet_dnet_ntoa
=yes
10546 ac_cv_lib_dnet_dnet_ntoa
=no
10548 rm -f core conftest.err conftest.
$ac_objext \
10549 conftest
$ac_exeext conftest.
$ac_ext
10550 LIBS
=$ac_check_lib_save_LIBS
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10553 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10554 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10555 cat >>confdefs.h
<<_ACEOF
10556 #define HAVE_LIBDNET 1
10559 LIBS
="-ldnet $LIBS"
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10565 $as_echo_n "checking for main in -lXbsd... " >&6; }
10566 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10569 ac_check_lib_save_LIBS
=$LIBS
10570 LIBS
="-lXbsd $LIBS"
10571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10583 if ac_fn_c_try_link
"$LINENO"; then :
10584 ac_cv_lib_Xbsd_main
=yes
10586 ac_cv_lib_Xbsd_main
=no
10588 rm -f core conftest.err conftest.
$ac_objext \
10589 conftest
$ac_exeext conftest.
$ac_ext
10590 LIBS
=$ac_check_lib_save_LIBS
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10593 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10594 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10595 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10600 for ac_header
in pthread.h
10602 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10603 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10604 cat >>confdefs.h
<<_ACEOF
10605 #define HAVE_PTHREAD_H 1
10612 if test "$ac_cv_header_pthread_h"; then
10613 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10614 emacs_pthread_function
=pthread_atfork
10616 emacs_pthread_function
=pthread_self
10618 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10620 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10621 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10622 $as_echo_n "(cached) " >&6
10624 ac_check_lib_save_LIBS
=$LIBS
10625 LIBS
="-lpthread $LIBS"
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10635 char $emacs_pthread_function ();
10639 return $emacs_pthread_function ();
10644 if ac_fn_c_try_link
"$LINENO"; then :
10645 eval "$as_ac_Lib=yes"
10647 eval "$as_ac_Lib=no"
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10651 LIBS
=$ac_check_lib_save_LIBS
10653 eval ac_res
=\$
$as_ac_Lib
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10655 $as_echo "$ac_res" >&6; }
10656 eval as_val
=\$
$as_ac_Lib
10657 if test "x$as_val" = x
""yes; then :
10662 if test "$HAVE_PTHREAD" = yes; then
10663 case "${canonical}" in
10665 *) LIB_PTHREAD
="-lpthread"
10666 LIBS
="$LIB_PTHREAD $LIBS" ;;
10669 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10675 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10676 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10679 ac_check_lib_save_LIBS
=$LIBS
10680 LIBS
="-lpthreads $LIBS"
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10694 return cma_open ();
10699 if ac_fn_c_try_link
"$LINENO"; then :
10700 ac_cv_lib_pthreads_cma_open
=yes
10702 ac_cv_lib_pthreads_cma_open
=no
10704 rm -f core conftest.err conftest.
$ac_objext \
10705 conftest
$ac_exeext conftest.
$ac_ext
10706 LIBS
=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10709 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10710 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10711 cat >>confdefs.h
<<_ACEOF
10712 #define HAVE_LIBPTHREADS 1
10715 LIBS
="-lpthreads $LIBS"
10720 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10721 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10722 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10723 ## added to LIBS in configure would never contain the pthreads part,
10724 ## but the value used in Makefiles might. FIXME?
10726 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10727 ## be harmless on older versions of X where it happens to exist.
10728 test "$opsys" = "aix4-2" && \
10729 test $ac_cv_lib_pthreads_cma_open = yes && \
10730 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10736 $as_echo_n "checking for -bbigtoc option... " >&6; }
10737 if test "${gdb_cv_bigtoc+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10742 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10743 *) gdb_cv_bigtoc
=-bbigtoc ;;
10746 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10758 if ac_fn_c_try_link
"$LINENO"; then :
10763 rm -f core conftest.err conftest.
$ac_objext \
10764 conftest
$ac_exeext conftest.
$ac_ext
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10768 $as_echo "$gdb_cv_bigtoc" >&6; }
10772 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10773 # used for the tests that follow. We set them back to REAL_CFLAGS and
10774 # REAL_CPPFLAGS later on.
10776 REAL_CFLAGS
="$CFLAGS"
10777 REAL_CPPFLAGS
="$CPPFLAGS"
10779 if test "${HAVE_X11}" = "yes"; then
10780 DEFS
="$C_SWITCH_X_SITE $DEFS"
10781 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10783 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10784 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10786 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10787 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10788 # but it's more convenient here to set LD_RUN_PATH since this
10789 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10790 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10791 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10795 if test "${opsys}" = "gnu-linux"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10797 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10804 XOpenDisplay ("foo");
10809 if ac_fn_c_try_link
"$LINENO"; then :
10810 xgnu_linux_first_failure
=no
10812 xgnu_linux_first_failure
=yes
10814 rm -f core conftest.err conftest.
$ac_objext \
10815 conftest
$ac_exeext conftest.
$ac_ext
10816 if test "${xgnu_linux_first_failure}" = "yes"; then
10817 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10818 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10819 OLD_CPPFLAGS
="$CPPFLAGS"
10821 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10822 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10823 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10824 LIBS
="$LIBS -b i486-linuxaout"
10825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10831 XOpenDisplay ("foo");
10836 if ac_fn_c_try_link
"$LINENO"; then :
10837 xgnu_linux_second_failure
=no
10839 xgnu_linux_second_failure
=yes
10841 rm -f core conftest.err conftest.
$ac_objext \
10842 conftest
$ac_exeext conftest.
$ac_ext
10843 if test "${xgnu_linux_second_failure}" = "yes"; then
10844 # If we get the same failure with -b, there is no use adding -b.
10845 # So take it out. This plays safe.
10846 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10847 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10848 CPPFLAGS
="$OLD_CPPFLAGS"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 $as_echo "yes" >&6; }
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10862 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10863 # header files included from there.
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10865 $as_echo_n "checking for Xkb... " >&6; }
10866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <X11/Xlib.h>
10869 #include <X11/XKBlib.h>
10873 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10878 if ac_fn_c_try_link
"$LINENO"; then :
10883 rm -f core conftest.err conftest.
$ac_objext \
10884 conftest
$ac_exeext conftest.
$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10886 $as_echo "$emacs_xkb" >&6; }
10887 if test $emacs_xkb = yes; then
10889 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10893 for ac_func
in XrmSetDatabase XScreenResourceString \
10894 XScreenNumberOfScreen XSetWMProtocols
10896 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10897 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10898 eval as_val
=\$
$as_ac_var
10899 if test "x$as_val" = x
""yes; then :
10900 cat >>confdefs.h
<<_ACEOF
10901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10909 if test "${window_system}" = "x11"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10911 $as_echo_n "checking X11 version 6... " >&6; }
10912 if test "${emacs_cv_x11_version_6+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 #include <X11/Xlib.h>
10921 #if XlibSpecificationRelease < 6
10929 if ac_fn_c_try_link
"$LINENO"; then :
10930 emacs_cv_x11_version_6
=yes
10932 emacs_cv_x11_version_6
=no
10934 rm -f core conftest.err conftest.
$ac_objext \
10935 conftest
$ac_exeext conftest.
$ac_ext
10938 if test $emacs_cv_x11_version_6 = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10940 $as_echo "6 or newer" >&6; }
10942 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10945 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10947 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10952 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10958 $as_echo "before 6" >&6; }
10963 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10965 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10966 if test "${with_rsvg}" != "no"; then
10967 RSVG_REQUIRED
=2.11.0
10968 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10973 # Extract the first word of "pkg-config", so it can be a program name with args.
10974 set dummy pkg-config
; ac_word
=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10980 case $PKG_CONFIG in
10982 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10986 for as_dir
in $PATH
10989 test -z "$as_dir" && as_dir
=.
10990 for ac_exec_ext
in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11004 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11005 if test -n "$PKG_CONFIG"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11007 $as_echo "$PKG_CONFIG" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11015 if test "$PKG_CONFIG" = "no" ; then
11018 PKG_CONFIG_MIN_VERSION
=0.9.0
11019 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11021 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11023 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11024 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11025 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11032 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11033 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11035 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11056 if test $succeeded = yes; then
11065 if test $HAVE_RSVG = yes; then
11067 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11069 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11070 LIBS
="$RSVG_LIBS $LIBS"
11075 HAVE_IMAGEMAGICK
=no
11076 if test "${HAVE_X11}" = "yes"; then
11077 if test "${with_imagemagick}" != "no"; then
11078 ## 6.2.8 is the earliest version known to work, but earlier versions
11079 ## might work - let us know if you find one.
11080 ## 6.0.7 does not work. See bug#7955.
11081 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
11085 # Extract the first word of "pkg-config", so it can be a program name with args.
11086 set dummy pkg-config
; ac_word
=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11092 case $PKG_CONFIG in
11094 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11098 for as_dir
in $PATH
11101 test -z "$as_dir" && as_dir
=.
11102 for ac_exec_ext
in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11116 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11117 if test -n "$PKG_CONFIG"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11119 $as_echo "$PKG_CONFIG" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11127 if test "$PKG_CONFIG" = "no" ; then
11130 PKG_CONFIG_MIN_VERSION
=0.9.0
11131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11133 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11135 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11136 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11137 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11144 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11145 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11147 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 IMAGEMAGICK_CFLAGS
=""
11153 IMAGEMAGICK_LIBS
=""
11154 ## If we have a custom action on failure, don't print errors, but
11155 ## do set a variable so people can do so.
11156 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11168 if test $succeeded = yes; then
11169 HAVE_IMAGEMAGICK
=yes
11177 if test $HAVE_IMAGEMAGICK = yes; then
11179 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11181 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11182 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11183 for ac_func
in MagickExportImagePixels
11185 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11186 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11201 if test "${with_gtk3}" = "yes"; then
11204 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11209 # Extract the first word of "pkg-config", so it can be a program name with args.
11210 set dummy pkg-config
; ac_word
=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11216 case $PKG_CONFIG in
11218 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11222 for as_dir
in $PATH
11225 test -z "$as_dir" && as_dir
=.
11226 for ac_exec_ext
in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11240 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11241 if test -n "$PKG_CONFIG"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11243 $as_echo "$PKG_CONFIG" >&6; }
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11251 if test "$PKG_CONFIG" = "no" ; then
11254 PKG_CONFIG_MIN_VERSION
=0.9.0
11255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11257 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11259 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11260 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11261 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11268 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11269 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11271 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11278 ## If we have a custom action on failure, don't print errors, but
11279 ## do set a variable so people can do so.
11280 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11292 if test $succeeded = yes; then
11298 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11299 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11302 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11304 GTK_OBJ
=emacsgtkfixed.o
11307 if test "$pkg_check_gtk" != "yes"; then
11309 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11312 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11317 # Extract the first word of "pkg-config", so it can be a program name with args.
11318 set dummy pkg-config
; ac_word
=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11324 case $PKG_CONFIG in
11326 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11330 for as_dir
in $PATH
11333 test -z "$as_dir" && as_dir
=.
11334 for ac_exec_ext
in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11348 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11349 if test -n "$PKG_CONFIG"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11351 $as_echo "$PKG_CONFIG" >&6; }
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11359 if test "$PKG_CONFIG" = "no" ; then
11362 PKG_CONFIG_MIN_VERSION
=0.9.0
11363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11365 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11367 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11368 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11369 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11376 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11377 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11379 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11386 ## If we have a custom action on failure, don't print errors, but
11387 ## do set a variable so people can do so.
11388 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11400 if test $succeeded = yes; then
11406 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11407 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11412 if test x
"$pkg_check_gtk" = xyes
; then
11416 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11417 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11418 LIBS
="$GTK_LIBS $LIBS"
11420 for ac_func
in gtk_main
11422 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11423 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11424 cat >>confdefs.h
<<_ACEOF
11425 #define HAVE_GTK_MAIN 1
11431 if test "${GTK_COMPILES}" != "yes"; then
11432 if test "$USE_X_TOOLKIT" != "maybe"; then
11433 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11438 $as_echo "#define USE_GTK 1" >>confdefs.h
11440 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11442 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11446 closing open displays. This is no problem if you just use
11447 one display, but if you use more than one and close one of them
11448 Emacs may crash." >&5
11449 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11450 closing open displays. This is no problem if you just use
11451 one display, but if you use more than one and close one of them
11452 Emacs may crash." >&2;}
11461 if test "${HAVE_GTK}" = "yes"; then
11463 if test "$with_toolkit_scroll_bars" != no
; then
11464 with_toolkit_scroll_bars
=yes
11467 HAVE_GTK_FILE_SELECTION
=no
11468 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11469 #include <gtk/gtk.h>
11471 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11472 HAVE_GTK_FILE_SELECTION
=yes
11474 HAVE_GTK_FILE_SELECTION
=no
11477 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11478 for ac_func
in gtk_file_selection_new
11480 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11481 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11482 cat >>confdefs.h
<<_ACEOF
11483 #define HAVE_GTK_FILE_SELECTION_NEW 1
11492 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11493 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11494 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11495 gtk_orientable_set_orientation \
11496 gtk_window_set_has_resize_grip
11498 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11500 eval as_val
=\$
$as_ac_var
11501 if test "x$as_val" = x
""yes; then :
11502 cat >>confdefs.h
<<_ACEOF
11503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11513 if test "${with_dbus}" = "yes"; then
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config
; ac_word
=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11524 case $PKG_CONFIG in
11526 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11530 for as_dir
in $PATH
11533 test -z "$as_dir" && as_dir
=.
11534 for ac_exec_ext
in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11548 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11551 $as_echo "$PKG_CONFIG" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11559 if test "$PKG_CONFIG" = "no" ; then
11562 PKG_CONFIG_MIN_VERSION
=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11565 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11567 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11568 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11569 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11576 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11577 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11579 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11586 ## If we have a custom action on failure, don't print errors, but
11587 ## do set a variable so people can do so.
11588 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11600 if test $succeeded = yes; then
11606 if test "$HAVE_DBUS" = yes; then
11607 LIBS
="$LIBS $DBUS_LIBS"
11609 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11611 for ac_func
in dbus_watch_get_unix_fd \
11612 dbus_validate_bus_name \
11613 dbus_validate_path \
11614 dbus_validate_interface \
11615 dbus_validate_member
11617 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11618 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11619 eval as_val
=\$
$as_ac_var
11620 if test "x$as_val" = x
""yes; then :
11621 cat >>confdefs.h
<<_ACEOF
11622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 DBUS_OBJ
=dbusbind.o
11634 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11638 # Extract the first word of "pkg-config", so it can be a program name with args.
11639 set dummy pkg-config
; ac_word
=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11645 case $PKG_CONFIG in
11647 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11651 for as_dir
in $PATH
11654 test -z "$as_dir" && as_dir
=.
11655 for ac_exec_ext
in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11669 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11670 if test -n "$PKG_CONFIG"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11672 $as_echo "$PKG_CONFIG" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11680 if test "$PKG_CONFIG" = "no" ; then
11683 PKG_CONFIG_MIN_VERSION
=0.9.0
11684 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11686 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11688 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11689 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11690 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11697 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11698 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11700 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11705 GSETTINGS_CFLAGS
=""
11707 ## If we have a custom action on failure, don't print errors, but
11708 ## do set a variable so people can do so.
11709 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11721 if test $succeeded = yes; then
11727 if test "$HAVE_GSETTINGS" = "yes"; then
11729 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11731 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11732 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11737 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11741 # Extract the first word of "pkg-config", so it can be a program name with args.
11742 set dummy pkg-config
; ac_word
=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11748 case $PKG_CONFIG in
11750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11754 for as_dir
in $PATH
11757 test -z "$as_dir" && as_dir
=.
11758 for ac_exec_ext
in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11773 if test -n "$PKG_CONFIG"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11775 $as_echo "$PKG_CONFIG" >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11783 if test "$PKG_CONFIG" = "no" ; then
11786 PKG_CONFIG_MIN_VERSION
=0.9.0
11787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11789 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11791 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11792 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11793 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11800 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11801 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11803 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11810 ## If we have a custom action on failure, don't print errors, but
11811 ## do set a variable so people can do so.
11812 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11819 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11820 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11824 if test $succeeded = yes; then
11830 if test "$HAVE_GCONF" = yes; then
11832 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11834 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11835 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11839 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11840 SAVE_CFLAGS
="$CFLAGS"
11842 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11843 LIBS
="$SETTINGS_LIBS $LIBS"
11844 for ac_func
in g_type_init
11846 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11847 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11848 cat >>confdefs.h
<<_ACEOF
11849 #define HAVE_G_TYPE_INIT 1
11855 CFLAGS
="$SAVE_CFLAGS"
11864 if test "${with_selinux}" = "yes"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11866 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11867 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11870 ac_check_lib_save_LIBS
=$LIBS
11871 LIBS
="-lselinux $LIBS"
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11881 char lgetfilecon ();
11885 return lgetfilecon ();
11890 if ac_fn_c_try_link
"$LINENO"; then :
11891 ac_cv_lib_selinux_lgetfilecon
=yes
11893 ac_cv_lib_selinux_lgetfilecon
=no
11895 rm -f core conftest.err conftest.
$ac_objext \
11896 conftest
$ac_exeext conftest.
$ac_ext
11897 LIBS
=$ac_check_lib_save_LIBS
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11900 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11901 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11902 HAVE_LIBSELINUX
=yes
11907 if test "$HAVE_LIBSELINUX" = yes; then
11909 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11911 LIBSELINUX_LIBS
=-lselinux
11917 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11918 if test "${with_gnutls}" = "yes" ; then
11922 # Extract the first word of "pkg-config", so it can be a program name with args.
11923 set dummy pkg-config
; ac_word
=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11929 case $PKG_CONFIG in
11931 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11935 for as_dir
in $PATH
11938 test -z "$as_dir" && as_dir
=.
11939 for ac_exec_ext
in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11953 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11954 if test -n "$PKG_CONFIG"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11956 $as_echo "$PKG_CONFIG" >&6; }
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11964 if test "$PKG_CONFIG" = "no" ; then
11967 PKG_CONFIG_MIN_VERSION
=0.9.0
11968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11970 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11972 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11973 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11974 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11981 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11982 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11984 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 LIBGNUTLS_CFLAGS
=""
11991 ## If we have a custom action on failure, don't print errors, but
11992 ## do set a variable so people can do so.
11993 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12005 if test $succeeded = yes; then
12011 if test "${HAVE_GNUTLS}" = "yes"; then
12013 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12017 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12018 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12019 for ac_func
in gnutls_certificate_set_verify_function
12021 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12022 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
12023 cat >>confdefs.h
<<_ACEOF
12024 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12026 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
12031 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12033 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12043 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12044 if test "$with_xaw3d" != no
; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12046 $as_echo_n "checking for xaw3d... " >&6; }
12047 if test "${emacs_cv_xaw3d+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 #include <X11/Intrinsic.h>
12054 #include <X11/Xaw3d/Simple.h>
12063 if ac_fn_c_try_link
"$LINENO"; then :
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12065 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12066 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 ac_check_lib_save_LIBS
=$LIBS
12070 LIBS
="-lXaw3d $LIBS"
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12080 char XawScrollbarSetThumb ();
12084 return XawScrollbarSetThumb ();
12089 if ac_fn_c_try_link
"$LINENO"; then :
12090 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12094 rm -f core conftest.err conftest.
$ac_objext \
12095 conftest
$ac_exeext conftest.
$ac_ext
12096 LIBS
=$ac_check_lib_save_LIBS
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12099 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12100 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12109 rm -f core conftest.err conftest.
$ac_objext \
12110 conftest
$ac_exeext conftest.
$ac_ext
12116 if test $emacs_cv_xaw3d = yes; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12118 $as_echo "yes; using Lucid toolkit" >&6; }
12119 USE_X_TOOLKIT
=LUCID
12123 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12129 $as_echo_n "checking for libXaw... " >&6; }
12130 if test "${emacs_cv_xaw+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 #include <X11/Intrinsic.h>
12137 #include <X11/Xaw/Simple.h>
12146 if ac_fn_c_try_link
"$LINENO"; then :
12151 rm -f core conftest.err conftest.
$ac_objext \
12152 conftest
$ac_exeext conftest.
$ac_ext
12155 if test $emacs_cv_xaw = yes; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12157 $as_echo "yes; using Lucid toolkit" >&6; }
12158 USE_X_TOOLKIT
=LUCID
12160 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12161 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12163 as_fn_error
"No X toolkit could be found.
12164 If you are sure you want Emacs compiled without an X toolkit, pass
12165 --with-x-toolkit=no
12166 to configure. Otherwise, install the development libraries for the toolkit
12167 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12172 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12175 if test "${USE_X_TOOLKIT}" != "none"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12177 $as_echo_n "checking X11 toolkit version... " >&6; }
12178 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <X11/Intrinsic.h>
12187 #if XtSpecificationRelease < 6
12195 if ac_fn_c_try_link
"$LINENO"; then :
12196 emacs_cv_x11_toolkit_version_6
=yes
12198 emacs_cv_x11_toolkit_version_6
=no
12200 rm -f core conftest.err conftest.
$ac_objext \
12201 conftest
$ac_exeext conftest.
$ac_ext
12204 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12205 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12207 $as_echo "6 or newer" >&6; }
12209 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12211 LIBXTR6
="-lSM -lICE"
12213 ## Use libw.a along with X11R6 Xt.
12214 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12218 $as_echo "before 6" >&6; }
12222 if test x
$HAVE_X11XTR6 = xyes
; then
12223 LIBS
="-lXt -lSM -lICE $LIBS"
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12228 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12229 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12232 ac_check_lib_save_LIBS
=$LIBS
12234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12243 char XmuConvertStandardSelection ();
12247 return XmuConvertStandardSelection ();
12252 if ac_fn_c_try_link
"$LINENO"; then :
12253 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12255 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12257 rm -f core conftest.err conftest.
$ac_objext \
12258 conftest
$ac_exeext conftest.
$ac_ext
12259 LIBS
=$ac_check_lib_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12262 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12263 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12264 cat >>confdefs.h
<<_ACEOF
12265 #define HAVE_LIBXMU 1
12272 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12278 ## These systems don't supply Xmu.
12280 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12285 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12286 if test "${HAVE_X11}" = "yes"; then
12287 if test "${USE_X_TOOLKIT}" != "none"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12289 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12290 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12293 ac_check_lib_save_LIBS
=$LIBS
12294 LIBS
="-lXext $LIBS"
12295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12304 char XShapeQueryExtension ();
12308 return XShapeQueryExtension ();
12313 if ac_fn_c_try_link
"$LINENO"; then :
12314 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12316 ac_cv_lib_Xext_XShapeQueryExtension
=no
12318 rm -f core conftest.err conftest.
$ac_objext \
12319 conftest
$ac_exeext conftest.
$ac_ext
12320 LIBS
=$ac_check_lib_save_LIBS
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12323 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12324 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12325 cat >>confdefs.h
<<_ACEOF
12326 #define HAVE_LIBXEXT 1
12329 LIBS
="-lXext $LIBS"
12337 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12339 $as_echo_n "checking for Motif version 2.1... " >&6; }
12340 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12349 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12352 Motif version prior to 2.1.
12358 if ac_fn_c_try_compile
"$LINENO"; then :
12359 emacs_cv_motif_version_2_1
=yes
12361 emacs_cv_motif_version_2_1
=no
12363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12366 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12367 if test $emacs_cv_motif_version_2_1 = yes; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12369 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12370 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_check_lib_save_LIBS
=$LIBS
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12384 char XpCreateContext ();
12388 return XpCreateContext ();
12393 if ac_fn_c_try_link
"$LINENO"; then :
12394 ac_cv_lib_Xp_XpCreateContext
=yes
12396 ac_cv_lib_Xp_XpCreateContext
=no
12398 rm -f core conftest.err conftest.
$ac_objext \
12399 conftest
$ac_exeext conftest.
$ac_ext
12400 LIBS
=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12403 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12404 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12410 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12411 if test "${emacs_cv_lesstif+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 # We put this in CFLAGS temporarily to precede other -I options
12415 # that might be in CFLAGS temporarily.
12416 # We put this in CPPFLAGS where it precedes the other -I options.
12417 OLD_CPPFLAGS
=$CPPFLAGS
12419 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12420 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12432 if ac_fn_c_try_compile
"$LINENO"; then :
12433 emacs_cv_lesstif
=yes
12435 emacs_cv_lesstif
=no
12437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12440 $as_echo "$emacs_cv_lesstif" >&6; }
12441 if test $emacs_cv_lesstif = yes; then
12442 # Make sure this -I option remains in CPPFLAGS after it is set
12443 # back to REAL_CPPFLAGS.
12444 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12445 # have those other -I options anyway. Ultimately, having this
12446 # directory ultimately in CPPFLAGS will be enough.
12447 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12448 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12451 CPPFLAGS
=$OLD_CPPFLAGS
12454 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12455 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12458 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12465 USE_TOOLKIT_SCROLL_BARS
=no
12466 if test "${with_toolkit_scroll_bars}" != "no"; then
12467 if test "${USE_X_TOOLKIT}" != "none"; then
12468 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12469 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12472 USE_TOOLKIT_SCROLL_BARS
=yes
12473 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12474 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12476 USE_TOOLKIT_SCROLL_BARS
=yes
12478 elif test "${HAVE_GTK}" = "yes"; then
12479 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12481 USE_TOOLKIT_SCROLL_BARS
=yes
12482 elif test "${HAVE_NS}" = "yes"; then
12483 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12485 USE_TOOLKIT_SCROLL_BARS
=yes
12489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12492 #include <X11/Xlib.h>
12493 #include <X11/Xresource.h>
12502 if ac_fn_c_try_compile
"$LINENO"; then :
12505 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12513 if test "${with_xim}" != "no"; then
12515 $as_echo "#define USE_XIM 1" >>confdefs.h
12520 if test "${HAVE_XIM}" != "no"; then
12521 late_CFLAGS
=$CFLAGS
12522 if test "$GCC" = yes; then
12523 CFLAGS
="$CFLAGS --pedantic-errors"
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 #include <X11/Xlib.h>
12529 #include <X11/Xresource.h>
12538 XPointer *client_data;
12540 /* If we're not using GCC, it's probably not XFree86, and this is
12541 probably right, but we can't use something like --pedantic-errors. */
12542 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12543 char*, XIMProc, XPointer*);
12545 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12551 if ac_fn_c_try_compile
"$LINENO"; then :
12552 emacs_cv_arg6_star
=yes
12554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12555 if test "$emacs_cv_arg6_star" = yes; then
12556 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12559 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12562 CFLAGS
=$late_CFLAGS
12565 ### Start of font-backend (under any platform) section.
12566 # (nothing here yet -- this is a placeholder)
12567 ### End of font-backend (under any platform) section.
12569 ### Start of font-backend (under X11) section.
12570 if test "${HAVE_X11}" = "yes"; then
12574 # Extract the first word of "pkg-config", so it can be a program name with args.
12575 set dummy pkg-config
; ac_word
=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 case $PKG_CONFIG in
12583 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12587 for as_dir
in $PATH
12590 test -z "$as_dir" && as_dir
=.
12591 for ac_exec_ext
in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12605 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12606 if test -n "$PKG_CONFIG"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12608 $as_echo "$PKG_CONFIG" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12616 if test "$PKG_CONFIG" = "no" ; then
12619 PKG_CONFIG_MIN_VERSION
=0.9.0
12620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12622 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12624 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12625 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12626 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12633 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12634 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12636 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12641 FONTCONFIG_CFLAGS
=""
12643 ## If we have a custom action on failure, don't print errors, but
12644 ## do set a variable so people can do so.
12645 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12657 if test $succeeded = yes; then
12664 ## Use -lXft if available, unless `--with-xft=no'.
12666 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12669 if test "x${with_xft}" != "xno"; then
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config
; ac_word
=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12681 case $PKG_CONFIG in
12683 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12687 for as_dir
in $PATH
12690 test -z "$as_dir" && as_dir
=.
12691 for ac_exec_ext
in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12705 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12708 $as_echo "$PKG_CONFIG" >&6; }
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12716 if test "$PKG_CONFIG" = "no" ; then
12719 PKG_CONFIG_MIN_VERSION
=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12722 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12724 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
12725 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
12726 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
12733 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12734 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12736 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12743 ## If we have a custom action on failure, don't print errors, but
12744 ## do set a variable so people can do so.
12745 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12757 if test $succeeded = yes; then
12763 ## Because xftfont.c uses XRenderQueryExtension, we also
12764 ## need to link to -lXrender.
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12767 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12768 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12771 ac_check_lib_save_LIBS
=$LIBS
12772 LIBS
="-lXrender $LIBS"
12773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char XRenderQueryExtension ();
12786 return XRenderQueryExtension ();
12791 if ac_fn_c_try_link
"$LINENO"; then :
12792 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12794 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12796 rm -f core conftest.err conftest.
$ac_objext \
12797 conftest
$ac_exeext conftest.
$ac_ext
12798 LIBS
=$ac_check_lib_save_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12801 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12802 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12806 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12807 OLD_CPPFLAGS
="$CPPFLAGS"
12808 OLD_CFLAGS
="$CFLAGS"
12810 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12811 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12812 XFT_LIBS
="-lXrender $XFT_LIBS"
12813 LIBS
="$XFT_LIBS $LIBS"
12814 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12815 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12817 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12818 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12821 ac_check_lib_save_LIBS
=$LIBS
12822 LIBS
="-lXft $XFT_LIBS $LIBS"
12823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12832 char XftFontOpen ();
12836 return XftFontOpen ();
12841 if ac_fn_c_try_link
"$LINENO"; then :
12842 ac_cv_lib_Xft_XftFontOpen
=yes
12844 ac_cv_lib_Xft_XftFontOpen
=no
12846 rm -f core conftest.err conftest.
$ac_objext \
12847 conftest
$ac_exeext conftest.
$ac_ext
12848 LIBS
=$ac_check_lib_save_LIBS
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12851 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12852 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12860 if test "${HAVE_XFT}" = "yes"; then
12862 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12865 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12867 CPPFLAGS
="$OLD_CPPFLAGS"
12868 CFLAGS
="$OLD_CFLAGS"
12870 fi # "${HAVE_XFT}" = "yes"
12871 fi # "$HAVE_XFT" != no
12872 fi # "x${with_xft}" != "xno"
12874 ## We used to allow building with FreeType and without Xft.
12875 ## However, the ftx font backend driver is not in good shape.
12876 if test "$HAVE_XFT" != "yes"; then
12883 # Extract the first word of "pkg-config", so it can be a program name with args.
12884 set dummy pkg-config
; ac_word
=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 case $PKG_CONFIG in
12892 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12896 for as_dir
in $PATH
12899 test -z "$as_dir" && as_dir
=.
12900 for ac_exec_ext
in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12914 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12915 if test -n "$PKG_CONFIG"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12917 $as_echo "$PKG_CONFIG" >&6; }
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12925 if test "$PKG_CONFIG" = "no" ; then
12928 PKG_CONFIG_MIN_VERSION
=0.9.0
12929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12931 $as_echo_n "checking for freetype2... " >&6; }
12933 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12934 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12935 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12942 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12943 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12945 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12952 ## If we have a custom action on failure, don't print errors, but
12953 ## do set a variable so people can do so.
12954 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12966 if test $succeeded = yes; then
12973 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12977 if test "${HAVE_FREETYPE}" = "yes"; then
12979 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12981 if test "${with_libotf}" != "no"; then
12985 # Extract the first word of "pkg-config", so it can be a program name with args.
12986 set dummy pkg-config
; ac_word
=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12992 case $PKG_CONFIG in
12994 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12998 for as_dir
in $PATH
13001 test -z "$as_dir" && as_dir
=.
13002 for ac_exec_ext
in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13016 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13017 if test -n "$PKG_CONFIG"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13019 $as_echo "$PKG_CONFIG" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13027 if test "$PKG_CONFIG" = "no" ; then
13030 PKG_CONFIG_MIN_VERSION
=0.9.0
13031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13033 $as_echo_n "checking for libotf... " >&6; }
13035 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13036 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13037 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13044 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13045 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13047 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 $as_echo "no" >&6; }
13054 ## If we have a custom action on failure, don't print errors, but
13055 ## do set a variable so people can do so.
13056 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13068 if test $succeeded = yes; then
13074 if test "$HAVE_LIBOTF" = "yes"; then
13076 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13079 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13080 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13083 ac_check_lib_save_LIBS
=$LIBS
13085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13094 char OTF_get_variation_glyphs ();
13098 return OTF_get_variation_glyphs ();
13103 if ac_fn_c_try_link
"$LINENO"; then :
13104 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13106 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13108 rm -f core conftest.err conftest.
$ac_objext \
13109 conftest
$ac_exeext conftest.
$ac_ext
13110 LIBS
=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13113 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13114 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13115 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13117 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13120 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13122 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13130 if test "${HAVE_LIBOTF}" = yes; then
13131 if test "${with_m17n_flt}" != "no"; then
13135 # Extract the first word of "pkg-config", so it can be a program name with args.
13136 set dummy pkg-config
; ac_word
=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13142 case $PKG_CONFIG in
13144 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13148 for as_dir
in $PATH
13151 test -z "$as_dir" && as_dir
=.
13152 for ac_exec_ext
in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13166 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13167 if test -n "$PKG_CONFIG"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13169 $as_echo "$PKG_CONFIG" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 if test "$PKG_CONFIG" = "no" ; then
13180 PKG_CONFIG_MIN_VERSION
=0.9.0
13181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13183 $as_echo_n "checking for m17n-flt... " >&6; }
13185 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13186 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13187 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13194 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13195 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13197 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13204 ## If we have a custom action on failure, don't print errors, but
13205 ## do set a variable so people can do so.
13206 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13218 if test $succeeded = yes; then
13224 if test "$HAVE_M17N_FLT" = "yes"; then
13226 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13238 ### End of font-backend (under X11) section.
13249 ### Use -lXpm if available, unless `--with-xpm=no'.
13252 if test "${HAVE_X11}" = "yes"; then
13253 if test "${with_xpm}" != "no"; then
13254 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13255 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13257 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13258 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13261 ac_check_lib_save_LIBS
=$LIBS
13262 LIBS
="-lXpm -lX11 $LIBS"
13263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13272 char XpmReadFileToPixmap ();
13276 return XpmReadFileToPixmap ();
13281 if ac_fn_c_try_link
"$LINENO"; then :
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13284 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13286 rm -f core conftest.err conftest.
$ac_objext \
13287 conftest
$ac_exeext conftest.
$ac_ext
13288 LIBS
=$ac_check_lib_save_LIBS
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13291 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13292 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13299 if test "${HAVE_XPM}" = "yes"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13301 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #include "X11/xpm.h"
13305 #ifndef XpmReturnAllocPixels
13306 no_return_alloc_pixels
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13319 if test "${HAVE_XPM}" = "yes"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13321 $as_echo "yes" >&6; }
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test "${HAVE_XPM}" = "yes"; then
13331 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13338 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13341 if test "${HAVE_X11}" = "yes"; then
13342 if test "${with_jpeg}" != "no"; then
13343 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13344 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13346 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13347 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13350 ac_check_lib_save_LIBS
=$LIBS
13351 LIBS
="-ljpeg $LIBS"
13352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13355 /* Override any GCC internal prototype to avoid an error.
13356 Use char because int might match the return type of a GCC
13357 builtin and then its argument prototype would still apply. */
13361 char jpeg_destroy_compress ();
13365 return jpeg_destroy_compress ();
13370 if ac_fn_c_try_link
"$LINENO"; then :
13371 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13373 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13375 rm -f core conftest.err conftest.
$ac_objext \
13376 conftest
$ac_exeext conftest.
$ac_ext
13377 LIBS
=$ac_check_lib_save_LIBS
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13380 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13381 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13390 if test "${HAVE_JPEG}" = "yes"; then
13391 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 #include <jpeglib.h>
13396 version=JPEG_LIB_VERSION
13399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13400 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13401 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13405 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13411 if test "${HAVE_JPEG}" = "yes"; then
13417 ### Use -lpng if available, unless `--with-png=no'.
13420 if test "${HAVE_X11}" = "yes"; then
13421 if test "${with_png}" != "no"; then
13422 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13423 # in /usr/include/libpng.
13424 for ac_header
in png.h libpng
/png.h
13426 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13427 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13428 eval as_val
=\$
$as_ac_Header
13429 if test "x$as_val" = x
""yes; then :
13430 cat >>confdefs.h
<<_ACEOF
13431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13438 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13440 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13441 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13444 ac_check_lib_save_LIBS
=$LIBS
13445 LIBS
="-lpng -lz -lm $LIBS"
13446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13449 /* Override any GCC internal prototype to avoid an error.
13450 Use char because int might match the return type of a GCC
13451 builtin and then its argument prototype would still apply. */
13455 char png_get_channels ();
13459 return png_get_channels ();
13464 if ac_fn_c_try_link
"$LINENO"; then :
13465 ac_cv_lib_png_png_get_channels
=yes
13467 ac_cv_lib_png_png_get_channels
=no
13469 rm -f core conftest.err conftest.
$ac_objext \
13470 conftest
$ac_exeext conftest.
$ac_ext
13471 LIBS
=$ac_check_lib_save_LIBS
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13474 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13475 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13482 if test "${HAVE_PNG}" = "yes"; then
13484 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13486 LIBPNG
="-lpng -lz -lm"
13491 ### Use -ltiff if available, unless `--with-tiff=no'.
13494 if test "${HAVE_X11}" = "yes"; then
13495 if test "${with_tiff}" != "no"; then
13496 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13497 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13499 # At least one tiff package requires the jpeg library.
13500 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13502 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13503 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13506 ac_check_lib_save_LIBS
=$LIBS
13507 LIBS
="-ltiff $tifflibs $LIBS"
13508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13517 char TIFFGetVersion ();
13521 return TIFFGetVersion ();
13526 if ac_fn_c_try_link
"$LINENO"; then :
13527 ac_cv_lib_tiff_TIFFGetVersion
=yes
13529 ac_cv_lib_tiff_TIFFGetVersion
=no
13531 rm -f core conftest.err conftest.
$ac_objext \
13532 conftest
$ac_exeext conftest.
$ac_ext
13533 LIBS
=$ac_check_lib_save_LIBS
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13536 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13537 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13546 if test "${HAVE_TIFF}" = "yes"; then
13548 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13555 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13558 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13559 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13561 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13562 # Earlier versions can crash Emacs.
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13564 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13565 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 ac_check_lib_save_LIBS
=$LIBS
13570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13579 char EGifPutExtensionLast ();
13583 return EGifPutExtensionLast ();
13588 if ac_fn_c_try_link
"$LINENO"; then :
13589 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13591 ac_cv_lib_gif_EGifPutExtensionLast
=no
13593 rm -f core conftest.err conftest.
$ac_objext \
13594 conftest
$ac_exeext conftest.
$ac_ext
13595 LIBS
=$ac_check_lib_save_LIBS
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13598 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13599 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13609 if test "$HAVE_GIF" = yes; then
13611 elif test "$HAVE_GIF" = maybe
; then
13612 # If gif_lib.h but no libgif, try libungif.
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13614 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13615 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13618 ac_check_lib_save_LIBS
=$LIBS
13619 LIBS
="-lungif $LIBS"
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13629 char EGifPutExtensionLast ();
13633 return EGifPutExtensionLast ();
13638 if ac_fn_c_try_link
"$LINENO"; then :
13639 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13641 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13643 rm -f core conftest.err conftest.
$ac_objext \
13644 conftest
$ac_exeext conftest.
$ac_ext
13645 LIBS
=$ac_check_lib_save_LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13648 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13649 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13655 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13658 if test "${HAVE_GIF}" = "yes"; then
13660 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13666 if test "${HAVE_X11}" = "yes"; then
13669 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13670 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13671 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13672 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13673 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13674 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13675 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13676 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13677 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13678 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13680 if test "X${MISSING}" != X
; then
13681 as_fn_error
"The following required libraries were not found:
13683 Maybe some development libraries/packages are missing?
13684 If you don't want to link with them give
13686 as options to configure" "$LINENO" 5
13690 ### Use -lgpm if available, unless `--with-gpm=no'.
13693 if test "${with_gpm}" != "no"; then
13694 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13695 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13697 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13698 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13701 ac_check_lib_save_LIBS
=$LIBS
13703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13716 return Gpm_Open ();
13721 if ac_fn_c_try_link
"$LINENO"; then :
13722 ac_cv_lib_gpm_Gpm_Open
=yes
13724 ac_cv_lib_gpm_Gpm_Open
=no
13726 rm -f core conftest.err conftest.
$ac_objext \
13727 conftest
$ac_exeext conftest.
$ac_ext
13728 LIBS
=$ac_check_lib_save_LIBS
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13731 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13732 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13740 if test "${HAVE_GPM}" = "yes"; then
13742 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13749 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13750 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13752 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13759 ### Use NeXTstep API to implement GUI.
13760 if test "${HAVE_NS}" = "yes"; then
13762 $as_echo "#define HAVE_NS 1" >>confdefs.h
13764 if test "${NS_IMPL_COCOA}" = "yes"; then
13766 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13769 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13771 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13773 # See also .m.o rule in Makefile.in */
13774 # FIXME: are all these flags really needed? Document here why. */
13775 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13776 ## Extra CFLAGS applied to src/*.m files.
13777 GNU_OBJC_CFLAGS
="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13779 # We also have mouse menus.
13785 ### Use session management (-lSM -lICE) if available
13788 if test "${HAVE_X11}" = "yes"; then
13789 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13790 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13792 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13793 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13796 ac_check_lib_save_LIBS
=$LIBS
13797 LIBS
="-lSM -lICE $LIBS"
13798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13801 /* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13807 char SmcOpenConnection ();
13811 return SmcOpenConnection ();
13816 if ac_fn_c_try_link
"$LINENO"; then :
13817 ac_cv_lib_SM_SmcOpenConnection
=yes
13819 ac_cv_lib_SM_SmcOpenConnection
=no
13821 rm -f core conftest.err conftest.
$ac_objext \
13822 conftest
$ac_exeext conftest.
$ac_ext
13823 LIBS
=$ac_check_lib_save_LIBS
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13826 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13827 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13835 if test "${HAVE_X_SM}" = "yes"; then
13837 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13839 LIBXSM
="-lSM -lICE"
13842 *) LIBS
="$LIBXSM $LIBS" ;;
13848 ### Use libxml (-lxml2) if available
13850 if test "${with_xml2}" != "no"; then
13851 ### I'm not sure what the version number should be, so I just guessed.
13855 # Extract the first word of "pkg-config", so it can be a program name with args.
13856 set dummy pkg-config
; ac_word
=$2
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858 $as_echo_n "checking for $ac_word... " >&6; }
13859 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13862 case $PKG_CONFIG in
13864 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13868 for as_dir
in $PATH
13871 test -z "$as_dir" && as_dir
=.
13872 for ac_exec_ext
in '' $ac_executable_extensions; do
13873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13874 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13886 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13887 if test -n "$PKG_CONFIG"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13889 $as_echo "$PKG_CONFIG" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 $as_echo "no" >&6; }
13897 if test "$PKG_CONFIG" = "no" ; then
13900 PKG_CONFIG_MIN_VERSION
=0.9.0
13901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13903 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13905 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13906 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13907 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13914 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13915 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13917 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13924 ## If we have a custom action on failure, don't print errors, but
13925 ## do set a variable so people can do so.
13926 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13938 if test $succeeded = yes; then
13944 if test "${HAVE_LIBXML2}" = "yes"; then
13945 LIBS
="$LIBXML2_LIBS $LIBS"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13947 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13948 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13951 ac_check_lib_save_LIBS
=$LIBS
13952 LIBS
="-lxml2 $LIBS"
13953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13956 /* Override any GCC internal prototype to avoid an error.
13957 Use char because int might match the return type of a GCC
13958 builtin and then its argument prototype would still apply. */
13962 char htmlReadMemory ();
13966 return htmlReadMemory ();
13971 if ac_fn_c_try_link
"$LINENO"; then :
13972 ac_cv_lib_xml2_htmlReadMemory
=yes
13974 ac_cv_lib_xml2_htmlReadMemory
=no
13976 rm -f core conftest.err conftest.
$ac_objext \
13977 conftest
$ac_exeext conftest.
$ac_ext
13978 LIBS
=$ac_check_lib_save_LIBS
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13981 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13982 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13988 if test "${HAVE_LIBXML2}" = "yes"; then
13990 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14001 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14003 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14004 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14018 if ac_fn_c_try_link
"$LINENO"; then :
14019 emacs_cv_netdb_declares_h_errno
=yes
14021 emacs_cv_netdb_declares_h_errno
=no
14023 rm -f core conftest.err conftest.
$ac_objext \
14024 conftest
$ac_exeext conftest.
$ac_ext
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14027 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14028 if test $emacs_cv_netdb_declares_h_errno = yes; then
14030 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14034 # fmod, logb, and frexp are found in -lm on most systems.
14035 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14037 $as_echo_n "checking for sqrt in -lm... " >&6; }
14038 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 ac_check_lib_save_LIBS
=$LIBS
14043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14046 /* Override any GCC internal prototype to avoid an error.
14047 Use char because int might match the return type of a GCC
14048 builtin and then its argument prototype would still apply. */
14061 if ac_fn_c_try_link
"$LINENO"; then :
14062 ac_cv_lib_m_sqrt
=yes
14064 ac_cv_lib_m_sqrt
=no
14066 rm -f core conftest.err conftest.
$ac_objext \
14067 conftest
$ac_exeext conftest.
$ac_ext
14068 LIBS
=$ac_check_lib_save_LIBS
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14071 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14072 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14073 cat >>confdefs.h
<<_ACEOF
14074 #define HAVE_LIBM 1
14082 # Check for mail-locking functions in a "mail" library. Probably this should
14083 # have the same check as for liblockfile below.
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14085 $as_echo_n "checking for maillock in -lmail... " >&6; }
14086 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14089 ac_check_lib_save_LIBS
=$LIBS
14090 LIBS
="-lmail $LIBS"
14091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14104 return maillock ();
14109 if ac_fn_c_try_link
"$LINENO"; then :
14110 ac_cv_lib_mail_maillock
=yes
14112 ac_cv_lib_mail_maillock
=no
14114 rm -f core conftest.err conftest.
$ac_objext \
14115 conftest
$ac_exeext conftest.
$ac_ext
14116 LIBS
=$ac_check_lib_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14119 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14120 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14126 if test $have_mail = yes; then
14128 LIBS
="$LIBS_MAIL $LIBS"
14130 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14136 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14137 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14140 ac_check_lib_save_LIBS
=$LIBS
14141 LIBS
="-llockfile $LIBS"
14142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14155 return maillock ();
14160 if ac_fn_c_try_link
"$LINENO"; then :
14161 ac_cv_lib_lockfile_maillock
=yes
14163 ac_cv_lib_lockfile_maillock
=no
14165 rm -f core conftest.err conftest.
$ac_objext \
14166 conftest
$ac_exeext conftest.
$ac_ext
14167 LIBS
=$ac_check_lib_save_LIBS
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14170 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14171 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14177 if test $have_lockfile = yes; then
14178 LIBS_MAIL
=-llockfile
14179 LIBS
="$LIBS_MAIL $LIBS"
14181 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14184 # If we have the shared liblockfile, assume we must use it for mail
14185 # locking (e.g. Debian). If we couldn't link against liblockfile
14186 # (no liblockfile.a installed), ensure that we don't need to.
14187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14188 set dummy liblockfile.so
; ac_word
=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14194 if test -n "$liblockfile"; then
14195 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14198 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14199 for as_dir
in $as_dummy
14202 test -z "$as_dir" && as_dir
=.
14203 for ac_exec_ext
in '' $ac_executable_extensions; do
14204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14205 ac_cv_prog_liblockfile
="yes"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14216 liblockfile
=$ac_cv_prog_liblockfile
14217 if test -n "$liblockfile"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14219 $as_echo "$liblockfile" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14226 if test $ac_cv_prog_liblockfile = yes; then
14227 as_fn_error
"Shared liblockfile found but can't link against it.
14228 This probably means that movemail could lose mail.
14229 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14232 for ac_func
in touchlock
14234 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14235 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14236 cat >>confdefs.h
<<_ACEOF
14237 #define HAVE_TOUCHLOCK 1
14243 for ac_header
in maillock.h
14245 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14246 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14247 cat >>confdefs.h
<<_ACEOF
14248 #define HAVE_MAILLOCK_H 1
14257 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14258 ## interlock access to the mail spool. The alternative is a lock file named
14259 ## /usr/spool/mail/$USER.lock.
14262 aix4-2
) mail_lock
="lockf" ;;
14264 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14266 ## On GNU/Linux systems, both methods are used by various mail programs.
14267 ## I assume most people are using newer mailers that have heard of flock.
14268 ## Change this if you need to.
14269 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14270 ## configure gets the right answers, and that means *NOT* using flock.
14271 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14272 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14273 ## Debian maintainer hasn't provided a clean fix for Emacs.
14274 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14275 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14276 ## correct logic. -- fx
14277 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14278 ## liblockfile is a Free Software replacement for libmail, used on
14279 ## Debian systems and elsewhere. -rfr.
14282 if test $have_mail = yes ||
test $have_lockfile = yes; then
14283 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14289 case "$mail_lock" in
14291 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14295 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14298 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14303 for ac_func
in gethostname getdomainname \
14304 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14305 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14306 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14307 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14308 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14309 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14310 gai_strerror mkstemp getline getdelim mremap fsync sync \
14311 difftime mempcpy mblen mbrlen posix_memalign \
14312 getpwent endpwent getgrent endgrent \
14313 cfmakeraw cfsetspeed copysign __executable_start
14315 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14316 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14317 eval as_val
=\$
$as_ac_var
14318 if test "x$as_val" = x
""yes; then :
14319 cat >>confdefs.h
<<_ACEOF
14320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14328 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14329 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14338 __builtin_unwind_init ();
14343 if ac_fn_c_try_link
"$LINENO"; then :
14344 emacs_cv_func___builtin_unwind_init
=yes
14346 emacs_cv_func___builtin_unwind_init
=no
14348 rm -f core conftest.err conftest.
$ac_objext \
14349 conftest
$ac_exeext conftest.
$ac_ext
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14352 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14353 if test $emacs_cv_func___builtin_unwind_init = yes; then
14355 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14359 for ac_header
in sys
/un.h
14361 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14362 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14363 cat >>confdefs.h
<<_ACEOF
14364 #define HAVE_SYS_UN_H 1
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14373 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14374 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <sys/types.h> /* for off_t */
14385 int (*fp) (FILE *, off_t, int) = fseeko;
14386 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14391 if ac_fn_c_try_link
"$LINENO"; then :
14392 ac_cv_sys_largefile_source
=no
; break
14394 rm -f core conftest.err conftest.
$ac_objext \
14395 conftest
$ac_exeext conftest.
$ac_ext
14396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 #define _LARGEFILE_SOURCE 1
14399 #include <sys/types.h> /* for off_t */
14404 int (*fp) (FILE *, off_t, int) = fseeko;
14405 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14410 if ac_fn_c_try_link
"$LINENO"; then :
14411 ac_cv_sys_largefile_source
=1; break
14413 rm -f core conftest.err conftest.
$ac_objext \
14414 conftest
$ac_exeext conftest.
$ac_ext
14415 ac_cv_sys_largefile_source
=unknown
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14420 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14421 case $ac_cv_sys_largefile_source in #(
14424 cat >>confdefs.h
<<_ACEOF
14425 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14431 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14432 # in glibc 2.1.3, but that breaks too many other things.
14433 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14434 if test $ac_cv_sys_largefile_source != unknown
; then
14436 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14442 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14443 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14446 # Use it with a single arg.
14447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 $ac_includes_default
14458 if ac_fn_c_try_compile
"$LINENO"; then :
14459 ac_cv_func_getpgrp_void
=no
14461 ac_cv_func_getpgrp_void
=yes
14463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14467 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14468 if test $ac_cv_func_getpgrp_void = yes; then
14470 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14476 for ac_func
in grantpt
14478 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14479 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14480 cat >>confdefs.h
<<_ACEOF
14481 #define HAVE_GRANTPT 1
14488 # PTY-related GNU extensions.
14489 for ac_func
in getpt
14491 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14492 if test "x$ac_cv_func_getpt" = x
""yes; then :
14493 cat >>confdefs.h
<<_ACEOF
14494 #define HAVE_GETPT 1
14501 # Check this now, so that we will NOT find the above functions in ncurses.
14502 # That is because we have not set up to link ncurses in lib-src.
14503 # It's better to believe a function is not available
14504 # than to expect to find it in ncurses.
14505 # Also we need tputs and friends to be able to build at all.
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14507 $as_echo_n "checking for library containing tputs... " >&6; }
14508 # Run a test program that contains a call to tputs, a call that is
14509 # never executed. This tests whether a pre-'main' dynamic linker
14510 # works with the library. It's too much trouble to actually call
14511 # tputs in the test program, due to portability hassles. When
14512 # cross-compiling, assume the test program will run if it links.
14514 # Maybe curses should be tried earlier?
14515 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14516 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14518 if test -z "$tputs_library"; then
14520 msg
='none required'
14522 LIBS_TERMCAP
=-l$tputs_library
14524 LIBS
="$LIBS_TERMCAP $LIBS"
14526 if test "$cross_compiling" = yes; then :
14527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14530 extern void tputs (const char *, int, int (*)(int));
14531 int main (int argc, char **argv)
14534 tputs (argv[0], 0, 0);
14539 if ac_fn_c_try_link
"$LINENO"; then :
14544 rm -f core conftest.err conftest.
$ac_objext \
14545 conftest
$ac_exeext conftest.
$ac_ext
14547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14550 extern void tputs (const char *, int, int (*)(int));
14551 int main (int argc, char **argv)
14554 tputs (argv[0], 0, 0);
14559 if ac_fn_c_try_run
"$LINENO"; then :
14564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14569 if test "X$msg" != Xno
; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14574 $as_echo "$msg" >&6; }
14575 if test "X$msg" = Xno
; then
14576 as_fn_error
"The required function \`tputs' was not found in any library.
14577 The following libraries were tried (in order):
14578 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14579 Please try installing whichever of these libraries is most appropriate
14580 for your system, together with its header files.
14581 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14584 ## Use termcap instead of terminfo?
14585 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14587 ## FIXME? In the cases below where we unconditionally set
14588 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14589 ## if that was found above to have tputs.
14590 ## Should we use the gnu* logic everywhere?
14592 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14593 ## The ncurses library has been moved out of the System framework in
14594 ## Mac OS X 10.2. So if configure detects it, set the command-line
14595 ## option to use it.
14596 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14598 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14602 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14603 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 #include <osreldate.h>
14612 #if __FreeBSD_version < 400000
14620 if ac_fn_c_try_link
"$LINENO"; then :
14621 emacs_cv_freebsd_terminfo
=yes
14623 emacs_cv_freebsd_terminfo
=no
14625 rm -f core conftest.err conftest.
$ac_objext \
14626 conftest
$ac_exeext conftest.
$ac_ext
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14631 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14633 if test $emacs_cv_freebsd_terminfo = yes; then
14634 LIBS_TERMCAP
="-lncurses"
14637 LIBS_TERMCAP
="-ltermcap"
14642 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14644 LIBS_TERMCAP
="-ltermcap"
14648 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14650 ## hpux: Make sure we get select from libc rather than from libcurses
14651 ## because libcurses on HPUX 10.10 has a broken version of select.
14652 ## We used to use -lc -lcurses, but this may be cleaner.
14653 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14654 # set that way, now it uses the default). Isn't this a contradiction?
14655 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14659 TERMCAP_OBJ
=tparam.o
14660 if test $TERMINFO = yes; then
14662 $as_echo "#define TERMINFO 1" >>confdefs.h
14664 TERMCAP_OBJ
=terminfo.o
14670 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 #include <netinet/in.h>
14675 #include <arpa/nameser.h>
14676 #include <resolv.h>
14685 if ac_fn_c_try_link
"$LINENO"; then :
14690 rm -f core conftest.err conftest.
$ac_objext \
14691 conftest
$ac_exeext conftest.
$ac_ext
14692 if test "$have_res_init" = no
; then
14694 LIBS
="$LIBS -lresolv"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14696 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699 #include <netinet/in.h>
14700 #include <arpa/nameser.h>
14701 #include <resolv.h>
14710 if ac_fn_c_try_link
"$LINENO"; then :
14715 rm -f core conftest.err conftest.
$ac_objext \
14716 conftest
$ac_exeext conftest.
$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14718 $as_echo "$have_res_init" >&6; }
14719 if test "$have_res_init" = yes ; then
14725 if test "$have_res_init" = yes; then
14727 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14731 # Do we need the Hesiod library to provide the support routines?
14733 if test "$with_hesiod" != no
; then
14734 # Don't set $LIBS here -- see comments above. FIXME which comments?
14735 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14736 if test "x$ac_cv_func_res_send" = x
""yes; then :
14739 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14740 if test "x$ac_cv_func___res_send" = x
""yes; then :
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14744 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14745 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14748 ac_check_lib_save_LIBS
=$LIBS
14749 LIBS
="-lresolv $LIBS"
14750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14763 return res_send ();
14768 if ac_fn_c_try_link
"$LINENO"; then :
14769 ac_cv_lib_resolv_res_send
=yes
14771 ac_cv_lib_resolv_res_send
=no
14773 rm -f core conftest.err conftest.
$ac_objext \
14774 conftest
$ac_exeext conftest.
$ac_ext
14775 LIBS
=$ac_check_lib_save_LIBS
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14778 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14779 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14783 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14784 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14787 ac_check_lib_save_LIBS
=$LIBS
14788 LIBS
="-lresolv $LIBS"
14789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14792 /* Override any GCC internal prototype to avoid an error.
14793 Use char because int might match the return type of a GCC
14794 builtin and then its argument prototype would still apply. */
14798 char __res_send ();
14802 return __res_send ();
14807 if ac_fn_c_try_link
"$LINENO"; then :
14808 ac_cv_lib_resolv___res_send
=yes
14810 ac_cv_lib_resolv___res_send
=no
14812 rm -f core conftest.err conftest.
$ac_objext \
14813 conftest
$ac_exeext conftest.
$ac_ext
14814 LIBS
=$ac_check_lib_save_LIBS
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14817 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14818 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14828 if test "$resolv" = yes ; then
14833 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14834 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14838 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14839 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14842 ac_check_lib_save_LIBS
=$LIBS
14843 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14853 char hes_getmailhost ();
14857 return hes_getmailhost ();
14862 if ac_fn_c_try_link
"$LINENO"; then :
14863 ac_cv_lib_hesiod_hes_getmailhost
=yes
14865 ac_cv_lib_hesiod_hes_getmailhost
=no
14867 rm -f core conftest.err conftest.
$ac_objext \
14868 conftest
$ac_exeext conftest.
$ac_ext
14869 LIBS
=$ac_check_lib_save_LIBS
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14872 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14873 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14882 if test x
"$hesiod" = xyes
; then
14884 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14891 # Do we need libresolv (due to res_init or Hesiod)?
14892 if test "$resolv" = yes ; then
14894 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14902 # These tell us which Kerberos-related libraries to use.
14909 if test "${with_kerberos}" != no
; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14911 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14912 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14913 $as_echo_n "(cached) " >&6
14915 ac_check_lib_save_LIBS
=$LIBS
14916 LIBS
="-lcom_err $LIBS"
14917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14935 if ac_fn_c_try_link
"$LINENO"; then :
14936 ac_cv_lib_com_err_com_err
=yes
14938 ac_cv_lib_com_err_com_err
=no
14940 rm -f core conftest.err conftest.
$ac_objext \
14941 conftest
$ac_exeext conftest.
$ac_ext
14942 LIBS
=$ac_check_lib_save_LIBS
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14945 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14946 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14952 if test $have_com_err = yes; then
14953 COM_ERRLIB
=-lcom_err
14954 LIBS
="$COM_ERRLIB $LIBS"
14956 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14960 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14961 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14964 ac_check_lib_save_LIBS
=$LIBS
14965 LIBS
="-lcrypto $LIBS"
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14975 char mit_des_cbc_encrypt ();
14979 return mit_des_cbc_encrypt ();
14984 if ac_fn_c_try_link
"$LINENO"; then :
14985 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14987 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14989 rm -f core conftest.err conftest.
$ac_objext \
14990 conftest
$ac_exeext conftest.
$ac_ext
14991 LIBS
=$ac_check_lib_save_LIBS
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14994 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14995 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15001 if test $have_crypto = yes; then
15003 LIBS
="$CRYPTOLIB $LIBS"
15005 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15009 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15010 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15011 $as_echo_n "(cached) " >&6
15013 ac_check_lib_save_LIBS
=$LIBS
15014 LIBS
="-lk5crypto $LIBS"
15015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15018 /* Override any GCC internal prototype to avoid an error.
15019 Use char because int might match the return type of a GCC
15020 builtin and then its argument prototype would still apply. */
15024 char mit_des_cbc_encrypt ();
15028 return mit_des_cbc_encrypt ();
15033 if ac_fn_c_try_link
"$LINENO"; then :
15034 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15036 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15038 rm -f core conftest.err conftest.
$ac_objext \
15039 conftest
$ac_exeext conftest.
$ac_ext
15040 LIBS
=$ac_check_lib_save_LIBS
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15043 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15044 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15050 if test $have_k5crypto = yes; then
15051 CRYPTOLIB
=-lk5crypto
15052 LIBS
="$CRYPTOLIB $LIBS"
15054 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15058 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15059 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15062 ac_check_lib_save_LIBS
=$LIBS
15063 LIBS
="-lkrb5 $LIBS"
15064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15067 /* Override any GCC internal prototype to avoid an error.
15068 Use char because int might match the return type of a GCC
15069 builtin and then its argument prototype would still apply. */
15073 char krb5_init_context ();
15077 return krb5_init_context ();
15082 if ac_fn_c_try_link
"$LINENO"; then :
15083 ac_cv_lib_krb5_krb5_init_context
=yes
15085 ac_cv_lib_krb5_krb5_init_context
=no
15087 rm -f core conftest.err conftest.
$ac_objext \
15088 conftest
$ac_exeext conftest.
$ac_ext
15089 LIBS
=$ac_check_lib_save_LIBS
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15092 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15093 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15099 if test $have_krb5=yes; then
15101 LIBS
="$KRB5LIB $LIBS"
15103 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15106 if test "${with_kerberos5}" = no
; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15108 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15109 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15110 $as_echo_n "(cached) " >&6
15112 ac_check_lib_save_LIBS
=$LIBS
15113 LIBS
="-ldes425 $LIBS"
15114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15123 char des_cbc_encrypt ();
15127 return des_cbc_encrypt ();
15132 if ac_fn_c_try_link
"$LINENO"; then :
15133 ac_cv_lib_des425_des_cbc_encrypt
=yes
15135 ac_cv_lib_des425_des_cbc_encrypt
=no
15137 rm -f core conftest.err conftest.
$ac_objext \
15138 conftest
$ac_exeext conftest.
$ac_ext
15139 LIBS
=$ac_check_lib_save_LIBS
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15142 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15143 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15149 if test $have_des425 = yes; then
15151 LIBS
="$DESLIB $LIBS"
15153 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15157 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15158 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15159 $as_echo_n "(cached) " >&6
15161 ac_check_lib_save_LIBS
=$LIBS
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15172 char des_cbc_encrypt ();
15176 return des_cbc_encrypt ();
15181 if ac_fn_c_try_link
"$LINENO"; then :
15182 ac_cv_lib_des_des_cbc_encrypt
=yes
15184 ac_cv_lib_des_des_cbc_encrypt
=no
15186 rm -f core conftest.err conftest.
$ac_objext \
15187 conftest
$ac_exeext conftest.
$ac_ext
15188 LIBS
=$ac_check_lib_save_LIBS
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15191 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15192 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15198 if test $have_des = yes; then
15200 LIBS
="$DESLIB $LIBS"
15202 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15207 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15208 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15211 ac_check_lib_save_LIBS
=$LIBS
15212 LIBS
="-lkrb4 $LIBS"
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15222 char krb_get_cred ();
15226 return krb_get_cred ();
15231 if ac_fn_c_try_link
"$LINENO"; then :
15232 ac_cv_lib_krb4_krb_get_cred
=yes
15234 ac_cv_lib_krb4_krb_get_cred
=no
15236 rm -f core conftest.err conftest.
$ac_objext \
15237 conftest
$ac_exeext conftest.
$ac_ext
15238 LIBS
=$ac_check_lib_save_LIBS
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15241 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15242 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15248 if test $have_krb4 = yes; then
15250 LIBS
="$KRB4LIB $LIBS"
15252 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15256 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15257 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15260 ac_check_lib_save_LIBS
=$LIBS
15262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15271 char krb_get_cred ();
15275 return krb_get_cred ();
15280 if ac_fn_c_try_link
"$LINENO"; then :
15281 ac_cv_lib_krb_krb_get_cred
=yes
15283 ac_cv_lib_krb_krb_get_cred
=no
15285 rm -f core conftest.err conftest.
$ac_objext \
15286 conftest
$ac_exeext conftest.
$ac_ext
15287 LIBS
=$ac_check_lib_save_LIBS
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15290 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15291 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15297 if test $have_krb = yes; then
15299 LIBS
="$KRB4LIB $LIBS"
15301 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15307 if test "${with_kerberos5}" != no
; then
15308 for ac_header
in krb5.h
15310 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15311 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15312 cat >>confdefs.h
<<_ACEOF
15313 #define HAVE_KRB5_H 1
15315 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15317 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15319 cat >>confdefs.h
<<_ACEOF
15320 #define HAVE_KRB5_ERROR_TEXT 1
15325 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15327 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15329 cat >>confdefs.h
<<_ACEOF
15330 #define HAVE_KRB5_ERROR_E_TEXT 1
15341 for ac_header
in des.h
15343 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15344 if test "x$ac_cv_header_des_h" = x
""yes; then :
15345 cat >>confdefs.h
<<_ACEOF
15346 #define HAVE_DES_H 1
15350 for ac_header
in kerberosIV
/des.h
15352 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15353 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15354 cat >>confdefs.h
<<_ACEOF
15355 #define HAVE_KERBEROSIV_DES_H 1
15359 for ac_header
in kerberos
/des.h
15361 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15362 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15363 cat >>confdefs.h
<<_ACEOF
15364 #define HAVE_KERBEROS_DES_H 1
15379 for ac_header
in krb.h
15381 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15383 cat >>confdefs.h
<<_ACEOF
15384 #define HAVE_KRB_H 1
15388 for ac_header
in kerberosIV
/krb.h
15390 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15391 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15392 cat >>confdefs.h
<<_ACEOF
15393 #define HAVE_KERBEROSIV_KRB_H 1
15397 for ac_header
in kerberos
/krb.h
15399 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15400 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15401 cat >>confdefs.h
<<_ACEOF
15402 #define HAVE_KERBEROS_KRB_H 1
15418 for ac_header
in com_err.h
15420 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15421 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15422 cat >>confdefs.h
<<_ACEOF
15423 #define HAVE_COM_ERR_H 1
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15439 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15440 if test "${emacs_cv_localtime_cache+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15443 if test x
$ac_cv_func_tzset = xyes
; then
15444 if test "$cross_compiling" = yes; then :
15445 # If we have tzset, assume the worst when cross-compiling.
15446 emacs_cv_localtime_cache
=yes
15448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15451 char TZ_GMT0[] = "TZ=GMT0";
15452 char TZ_PST8[] = "TZ=PST8";
15455 time_t now = time ((time_t *) 0);
15456 int hour_GMT0, hour_unset;
15457 if (putenv (TZ_GMT0) != 0)
15459 hour_GMT0 = localtime (&now)->tm_hour;
15461 hour_unset = localtime (&now)->tm_hour;
15462 if (putenv (TZ_PST8) != 0)
15464 if (localtime (&now)->tm_hour == hour_GMT0)
15467 if (localtime (&now)->tm_hour != hour_unset)
15472 if ac_fn_c_try_run
"$LINENO"; then :
15473 emacs_cv_localtime_cache
=no
15475 emacs_cv_localtime_cache
=yes
15477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15482 # If we lack tzset, report that localtime does not cache TZ,
15483 # since we can't invalidate the cache if we don't have tzset.
15484 emacs_cv_localtime_cache
=no
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15488 $as_echo "$emacs_cv_localtime_cache" >&6; }
15489 if test $emacs_cv_localtime_cache = yes; then
15491 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15495 if test "x$HAVE_TIMEVAL" = xyes
; then
15496 for ac_func
in gettimeofday
15498 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15499 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15500 cat >>confdefs.h
<<_ACEOF
15501 #define HAVE_GETTIMEOFDAY 1
15507 if test $ac_cv_func_gettimeofday = yes; then
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15509 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15510 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15511 $as_echo_n "(cached) " >&6
15513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15516 #ifdef TIME_WITH_SYS_TIME
15517 #include <sys/time.h>
15520 #ifdef HAVE_SYS_TIME_H
15521 #include <sys/time.h>
15529 struct timeval time;
15530 gettimeofday (&time, 0);
15535 if ac_fn_c_try_compile
"$LINENO"; then :
15536 emacs_cv_gettimeofday_two_arguments
=yes
15538 emacs_cv_gettimeofday_two_arguments
=no
15540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15543 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15544 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15546 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15553 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15554 if test "x$ac_cv_func_socket" = x
""yes; then :
15560 if test $ok_so_far = yes; then
15561 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15562 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15570 if test $ok_so_far = yes; then
15571 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15572 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15580 if test $ok_so_far = yes; then
15582 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15586 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15588 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15593 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15594 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15596 $as_echo "yes" >&6; }
15598 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15605 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15606 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15610 cat >>confdefs.h
<<_ACEOF
15616 for ac_header
in vfork.h
15618 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15619 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15620 cat >>confdefs.h
<<_ACEOF
15621 #define HAVE_VFORK_H 1
15628 for ac_func
in fork vfork
15630 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15631 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15632 eval as_val
=\$
$as_ac_var
15633 if test "x$as_val" = x
""yes; then :
15634 cat >>confdefs.h
<<_ACEOF
15635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15641 if test "x$ac_cv_func_fork" = xyes
; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15643 $as_echo_n "checking for working fork... " >&6; }
15644 if test "${ac_cv_func_fork_works+set}" = set; then :
15645 $as_echo_n "(cached) " >&6
15647 if test "$cross_compiling" = yes; then :
15648 ac_cv_func_fork_works
=cross
15650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 $ac_includes_default
15657 /* By Ruediger Kuhlmann. */
15658 return fork () < 0;
15664 if ac_fn_c_try_run
"$LINENO"; then :
15665 ac_cv_func_fork_works
=yes
15667 ac_cv_func_fork_works
=no
15669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15670 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15675 $as_echo "$ac_cv_func_fork_works" >&6; }
15678 ac_cv_func_fork_works
=$ac_cv_func_fork
15680 if test "x$ac_cv_func_fork_works" = xcross
; then
15682 *-*-amigaos* |
*-*-msdosdjgpp*)
15683 # Override, as these systems have only a dummy fork() stub
15684 ac_cv_func_fork_works
=no
15687 ac_cv_func_fork_works
=yes
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15691 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15693 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15694 if test "x$ac_cv_func_vfork" = xyes
; then
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15696 $as_echo_n "checking for working vfork... " >&6; }
15697 if test "${ac_cv_func_vfork_works+set}" = set; then :
15698 $as_echo_n "(cached) " >&6
15700 if test "$cross_compiling" = yes; then :
15701 ac_cv_func_vfork_works
=cross
15703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 /* Thanks to Paul Eggert for this test. */
15706 $ac_includes_default
15707 #include <sys/wait.h>
15708 #ifdef HAVE_VFORK_H
15709 # include <vfork.h>
15711 /* On some sparc systems, changes by the child to local and incoming
15712 argument registers are propagated back to the parent. The compiler
15713 is told about this with #include <vfork.h>, but some compilers
15714 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15715 static variable whose address is put into a register that is
15716 clobbered by the vfork. */
15719 sparc_address_test (int arg)
15721 sparc_address_test (arg) int arg;
15724 static pid_t child;
15742 pid_t parent = getpid ();
15745 sparc_address_test (0);
15750 /* Here is another test for sparc vfork register problems. This
15751 test uses lots of local variables, at least as many local
15752 variables as main has allocated so far including compiler
15753 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15754 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15755 reuse the register of parent for one of the local variables,
15756 since it will think that parent can't possibly be used any more
15757 in this routine. Assigning to the local variable will thus
15758 munge parent in the parent process. */
15760 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15761 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15762 /* Convince the compiler that p..p7 are live; otherwise, it might
15763 use the same hardware register for all 8 local variables. */
15764 if (p != p1 || p != p2 || p != p3 || p != p4
15765 || p != p5 || p != p6 || p != p7)
15768 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15769 from child file descriptors. If the child closes a descriptor
15770 before it execs or exits, this munges the parent's descriptor
15771 as well. Test for this by closing stdout in the child. */
15772 _exit(close(fileno(stdout)) != 0);
15777 while (wait(&status) != child)
15780 /* Was there some problem with vforking? */
15783 /* Did the child fail? (This shouldn't happen.) */
15786 /* Did the vfork/compiler bug occur? */
15787 || parent != getpid()
15789 /* Did the file descriptor bug occur? */
15790 || fstat(fileno(stdout), &st) != 0
15795 if ac_fn_c_try_run
"$LINENO"; then :
15796 ac_cv_func_vfork_works
=yes
15798 ac_cv_func_vfork_works
=no
15800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15806 $as_echo "$ac_cv_func_vfork_works" >&6; }
15809 if test "x$ac_cv_func_fork_works" = xcross
; then
15810 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15812 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15815 if test "x$ac_cv_func_vfork_works" = xyes
; then
15817 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15821 $as_echo "#define vfork fork" >>confdefs.h
15824 if test "x$ac_cv_func_fork_works" = xyes
; then
15826 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15831 for ac_func
in snprintf
15833 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15834 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15835 cat >>confdefs.h
<<_ACEOF
15836 #define HAVE_SNPRINTF 1
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15844 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15845 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15846 $as_echo_n "(cached) " >&6
15848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #include <langinfo.h>
15854 char* cs = nl_langinfo(CODESET);
15859 if ac_fn_c_try_link
"$LINENO"; then :
15860 emacs_cv_langinfo_codeset
=yes
15862 emacs_cv_langinfo_codeset
=no
15864 rm -f core conftest.err conftest.
$ac_objext \
15865 conftest
$ac_exeext conftest.
$ac_ext
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15869 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15870 if test $emacs_cv_langinfo_codeset = yes; then
15872 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15877 $as_echo_n "checking for mbstate_t... " >&6; }
15878 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 # include <wchar.h>
15888 mbstate_t x; return sizeof x;
15893 if ac_fn_c_try_compile
"$LINENO"; then :
15894 ac_cv_type_mbstate_t
=yes
15896 ac_cv_type_mbstate_t
=no
15898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15901 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15902 if test $ac_cv_type_mbstate_t = yes; then
15904 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15908 $as_echo "#define mbstate_t int" >>confdefs.h
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15913 $as_echo_n "checking for C restricted array declarations... " >&6; }
15914 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15915 $as_echo_n "(cached) " >&6
15917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 void fred (int x[__restrict]);
15928 if ac_fn_c_try_compile
"$LINENO"; then :
15929 emacs_cv_c_restrict_arr
=yes
15931 emacs_cv_c_restrict_arr
=no
15933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15936 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15937 if test "$emacs_cv_c_restrict_arr" = yes; then
15939 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15944 # Set up the CFLAGS for real compilation, so we can substitute it.
15945 CFLAGS
="$REAL_CFLAGS"
15946 CPPFLAGS
="$REAL_CPPFLAGS"
15948 ## Hack to detect a buggy GCC version.
15949 if test "x$GCC" = xyes \
15950 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15951 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15952 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15953 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15956 version
=$PACKAGE_VERSION
15958 ### Specify what sort of things we'll be editing into Makefile and config.h.
15959 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15983 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15984 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15985 ## end of LIBX_BASE, but nothing ever set it.
15990 ## Used in lwlib/Makefile.in.
15992 if test -n "${machfile}"; then
15993 M_FILE
="\$(srcdir)/${machfile}"
15997 S_FILE
="\$(srcdir)/${opsysfile}"
16008 cat >>confdefs.h
<<_ACEOF
16009 #define EMACS_CONFIGURATION "${canonical}"
16013 cat >>confdefs.h
<<_ACEOF
16014 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16017 if test -n "$machfile"; then
16019 cat >>confdefs.h
<<_ACEOF
16020 #define config_machfile "${machfile}"
16025 cat >>confdefs.h
<<_ACEOF
16026 #define config_opsysfile "${opsysfile}"
16033 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16035 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16038 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16040 if test "$HAVE_XFT" = "yes"; then
16041 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16042 elif test "$HAVE_FREETYPE" = "yes"; then
16043 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16053 if test "${USE_X_TOOLKIT}" != "none" ; then
16054 WIDGET_OBJ
=widget.o
16056 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16058 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16060 $as_echo "#define USE_LUCID 1" >>confdefs.h
16062 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16064 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16069 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16070 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16074 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16075 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16076 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16080 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16081 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16084 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16090 case "$USE_X_TOOLKIT" in
16091 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16092 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16093 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16097 if test "$USE_X_TOOLKIT" = "none"; then
16098 LIBXT_OTHER
="\$(LIBXSM)"
16099 OLDXMENU_TARGET
="really-oldXMenu"
16101 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16102 OLDXMENU_TARGET
="really-lwlib"
16106 ## The X Menu stuff is present in the X10 distribution, but missing
16107 ## from X11. If we have X10, just use the installed library;
16108 ## otherwise, use our own copy.
16109 if test "${HAVE_X11}" = "yes" ; then
16111 $as_echo "#define HAVE_X11 1" >>confdefs.h
16114 if test "$USE_X_TOOLKIT" = "none"; then
16115 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16117 OLDXMENU
="\${lwlibdir}/liblw.a"
16119 LIBXMENU
="\$(OLDXMENU)"
16120 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16121 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16123 ## For a syntactically valid Makefile; not actually used for anything.
16124 ## See comments in src/Makefile.in.
16126 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16127 if test "${HAVE_X_WINDOWS}" = "yes"; then
16136 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16149 if test "${HAVE_MENUS}" = "yes" ; then
16151 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16155 if test "${GNU_MALLOC}" = "yes" ; then
16157 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16162 if test "${REL_ALLOC}" = "yes" ; then
16164 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16167 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16171 if test "$opsys" = "cygwin"; then
16172 CYGWIN_OBJ
="sheap.o"
16173 ## Cygwin differs because of its unexec().
16175 POST_ALLOC_OBJ
=lastfile.o
16178 PRE_ALLOC_OBJ
=lastfile.o
16185 # Configure gnulib here, now that we know LIBS.
16197 LIBC_FATAL_STDERR_
=1
16198 export LIBC_FATAL_STDERR_
16200 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16201 # for constant arguments. Useless!
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16203 $as_echo_n "checking for working alloca.h... " >&6; }
16204 if test "${ac_cv_working_alloca_h+set}" = set; then :
16205 $as_echo_n "(cached) " >&6
16207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16208 /* end confdefs.h. */
16209 #include <alloca.h>
16213 char *p = (char *) alloca (2 * sizeof (int));
16219 if ac_fn_c_try_link
"$LINENO"; then :
16220 ac_cv_working_alloca_h
=yes
16222 ac_cv_working_alloca_h
=no
16224 rm -f core conftest.err conftest.
$ac_objext \
16225 conftest
$ac_exeext conftest.
$ac_ext
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16228 $as_echo "$ac_cv_working_alloca_h" >&6; }
16229 if test $ac_cv_working_alloca_h = yes; then
16231 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16236 $as_echo_n "checking for alloca... " >&6; }
16237 if test "${ac_cv_func_alloca_works+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16243 # define alloca __builtin_alloca
16246 # include <malloc.h>
16247 # define alloca _alloca
16249 # ifdef HAVE_ALLOCA_H
16250 # include <alloca.h>
16255 # ifndef alloca /* predefined by HP cc +Olibcalls */
16266 char *p = (char *) alloca (1);
16272 if ac_fn_c_try_link
"$LINENO"; then :
16273 ac_cv_func_alloca_works
=yes
16275 ac_cv_func_alloca_works
=no
16277 rm -f core conftest.err conftest.
$ac_objext \
16278 conftest
$ac_exeext conftest.
$ac_ext
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16281 $as_echo "$ac_cv_func_alloca_works" >&6; }
16283 if test $ac_cv_func_alloca_works = yes; then
16285 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16288 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16289 # that cause trouble. Some versions do not even contain alloca or
16290 # contain a buggy version. If you still want to use their alloca,
16291 # use ar to extract alloca.o from them instead of compiling alloca.c.
16297 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16304 if test "${ac_cv_os_cray+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 #if defined CRAY && ! defined CRAY2
16316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16317 $EGREP "webecray" >/dev
/null
2>&1; then :
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16326 $as_echo "$ac_cv_os_cray" >&6; }
16327 if test $ac_cv_os_cray = yes; then
16328 for ac_func
in _getb67 GETB67 getb67
; do
16329 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16331 eval as_val
=\$
$as_ac_var
16332 if test "x$as_val" = x
""yes; then :
16334 cat >>confdefs.h
<<_ACEOF
16335 #define CRAY_STACKSEG_END $ac_func
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16345 $as_echo_n "checking stack direction for C alloca... " >&6; }
16346 if test "${ac_cv_c_stack_direction+set}" = set; then :
16347 $as_echo_n "(cached) " >&6
16349 if test "$cross_compiling" = yes; then :
16350 ac_cv_c_stack_direction
=0
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 $ac_includes_default
16356 find_stack_direction (int *addr, int depth)
16358 int dir, dummy = 0;
16361 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16362 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16363 return dir + dummy;
16367 main (int argc, char **argv)
16369 return find_stack_direction (0, argc + !argv + 20) < 0;
16372 if ac_fn_c_try_run
"$LINENO"; then :
16373 ac_cv_c_stack_direction
=1
16375 ac_cv_c_stack_direction
=-1
16377 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16378 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16383 $as_echo "$ac_cv_c_stack_direction" >&6; }
16384 cat >>confdefs.h
<<_ACEOF
16385 #define STACK_DIRECTION $ac_cv_c_stack_direction
16394 for ac_func
in $ac_func_list
16396 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16397 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16398 eval as_val
=\$
$as_ac_var
16399 if test "x$as_val" = x
""yes; then :
16400 cat >>confdefs.h
<<_ACEOF
16401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16411 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16412 if test "${ac_cv_c_bigendian+set}" = set; then :
16413 $as_echo_n "(cached) " >&6
16415 ac_cv_c_bigendian
=unknown
16416 # See if we're dealing with a universal compiler.
16417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #ifndef __APPLE_CC__
16420 not a universal capable compiler
16425 if ac_fn_c_try_compile
"$LINENO"; then :
16427 # Check for potential -arch flags. It is not universal unless
16428 # there are at least two -arch flags with different values.
16431 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16432 if test -n "$ac_prev"; then
16434 i?
86 | x86_64 | ppc | ppc64
)
16435 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16438 ac_cv_c_bigendian
=universal
16444 elif test "x$ac_word" = "x-arch"; then
16449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16450 if test $ac_cv_c_bigendian = unknown
; then
16451 # See if sys/param.h defines the BYTE_ORDER macro.
16452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 #include <sys/types.h>
16455 #include <sys/param.h>
16460 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16461 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16463 bogus endian macros
16470 if ac_fn_c_try_compile
"$LINENO"; then :
16471 # It does; now see whether it defined to BIG_ENDIAN or not.
16472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 #include <sys/types.h>
16475 #include <sys/param.h>
16480 #if BYTE_ORDER != BIG_ENDIAN
16488 if ac_fn_c_try_compile
"$LINENO"; then :
16489 ac_cv_c_bigendian
=yes
16491 ac_cv_c_bigendian
=no
16493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16497 if test $ac_cv_c_bigendian = unknown
; then
16498 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 #include <limits.h>
16506 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16507 bogus endian macros
16514 if ac_fn_c_try_compile
"$LINENO"; then :
16515 # It does; now see whether it defined to _BIG_ENDIAN or not.
16516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 #include <limits.h>
16523 #ifndef _BIG_ENDIAN
16531 if ac_fn_c_try_compile
"$LINENO"; then :
16532 ac_cv_c_bigendian
=yes
16534 ac_cv_c_bigendian
=no
16536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16540 if test $ac_cv_c_bigendian = unknown
; then
16541 # Compile a test program.
16542 if test "$cross_compiling" = yes; then :
16543 # Try to guess by grepping values from an object file.
16544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 short int ascii_mm[] =
16547 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16548 short int ascii_ii[] =
16549 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16550 int use_ascii (int i) {
16551 return ascii_mm[i] + ascii_ii[i];
16553 short int ebcdic_ii[] =
16554 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16555 short int ebcdic_mm[] =
16556 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16557 int use_ebcdic (int i) {
16558 return ebcdic_mm[i] + ebcdic_ii[i];
16565 return use_ascii (foo) == use_ebcdic (foo);
16570 if ac_fn_c_try_compile
"$LINENO"; then :
16571 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16572 ac_cv_c_bigendian
=yes
16574 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16575 if test "$ac_cv_c_bigendian" = unknown
; then
16576 ac_cv_c_bigendian
=no
16578 # finding both strings is unlikely to happen, but who knows?
16579 ac_cv_c_bigendian
=unknown
16583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587 $ac_includes_default
16592 /* Are we little or big endian? From Harbison&Steele. */
16596 char c[sizeof (long int)];
16599 return u.c[sizeof (long int) - 1] == 1;
16605 if ac_fn_c_try_run
"$LINENO"; then :
16606 ac_cv_c_bigendian
=no
16608 ac_cv_c_bigendian
=yes
16610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16617 $as_echo "$ac_cv_c_bigendian" >&6; }
16618 case $ac_cv_c_bigendian in #(
16620 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16626 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16630 as_fn_error
"unknown endianness
16631 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16636 $as_echo_n "checking for inline... " >&6; }
16637 if test "${ac_cv_c_inline+set}" = set; then :
16638 $as_echo_n "(cached) " >&6
16641 for ac_kw
in inline __inline__ __inline
; do
16642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644 #ifndef __cplusplus
16646 static $ac_kw foo_t static_foo () {return 0; }
16647 $ac_kw foo_t foo () {return 0; }
16651 if ac_fn_c_try_compile
"$LINENO"; then :
16652 ac_cv_c_inline
=$ac_kw
16654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16655 test "$ac_cv_c_inline" != no
&& break
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16660 $as_echo "$ac_cv_c_inline" >&6; }
16662 case $ac_cv_c_inline in
16665 case $ac_cv_c_inline in
16667 *) ac_val
=$ac_cv_c_inline;;
16669 cat >>confdefs.h
<<_ACEOF
16670 #ifndef __cplusplus
16671 #define inline $ac_val
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16679 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16680 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 /* On HP-UX before 11.23, strtold returns a struct instead of
16686 long double. Reject implementations like that, by requiring
16687 compatibility with the C99 prototype. */
16688 #include <stdlib.h>
16689 static long double (*p) (char const *, char **) = strtold;
16691 test (char const *nptr, char **endptr)
16694 r = strtold (nptr, endptr);
16700 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16705 if ac_fn_c_try_link
"$LINENO"; then :
16706 gl_cv_func_c99_strtold
=yes
16708 gl_cv_func_c99_strtold
=no
16710 rm -f core conftest.err conftest.
$ac_objext \
16711 conftest
$ac_exeext conftest.
$ac_ext
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16714 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16715 if test $gl_cv_func_c99_strtold = yes; then
16717 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16729 GNULIB_EUIDACCESS
=0;
16730 GNULIB_FACCESSAT
=0;
16733 GNULIB_FDATASYNC
=0;
16735 GNULIB_FTRUNCATE
=0;
16737 GNULIB_GETDOMAINNAME
=0;
16738 GNULIB_GETDTABLESIZE
=0;
16739 GNULIB_GETGROUPS
=0;
16740 GNULIB_GETHOSTNAME
=0;
16742 GNULIB_GETLOGIN_R
=0;
16743 GNULIB_GETPAGESIZE
=0;
16744 GNULIB_GETUSERSHELL
=0;
16745 GNULIB_GROUP_MEMBER
=0;
16756 GNULIB_READLINKAT
=0;
16760 GNULIB_SYMLINKAT
=0;
16761 GNULIB_TTYNAME_R
=0;
16762 GNULIB_UNISTD_H_GETOPT
=0;
16763 GNULIB_UNISTD_H_NONBLOCKING
=0;
16764 GNULIB_UNISTD_H_SIGPIPE
=0;
16779 HAVE_GETDTABLESIZE
=1;
16781 HAVE_GETHOSTNAME
=1;
16783 HAVE_GETPAGESIZE
=1;
16784 HAVE_GROUP_MEMBER
=1;
16799 HAVE_DECL_ENVIRON
=1;
16800 HAVE_DECL_FCHDIR
=1;
16801 HAVE_DECL_FDATASYNC
=1;
16802 HAVE_DECL_GETDOMAINNAME
=1;
16803 HAVE_DECL_GETLOGIN_R
=1;
16804 HAVE_DECL_GETPAGESIZE
=1;
16805 HAVE_DECL_GETUSERSHELL
=1;
16806 HAVE_DECL_TTYNAME_R
=1;
16808 HAVE_SYS_PARAM_H
=0;
16813 REPLACE_FCHOWNAT
=0;
16815 REPLACE_GETDOMAINNAME
=0;
16816 REPLACE_GETLOGIN_R
=0;
16817 REPLACE_GETGROUPS
=0;
16818 REPLACE_GETPAGESIZE
=0;
16826 REPLACE_READLINK
=0;
16830 REPLACE_TTYNAME_R
=0;
16832 REPLACE_UNLINKAT
=0;
16835 UNISTD_H_HAVE_WINSOCK2_H
=0;
16836 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16840 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16841 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16847 #include <sys/types.h>
16848 #include <sys/stat.h>
16852 struct stat s; s.st_dm_mode;
16857 if ac_fn_c_try_compile
"$LINENO"; then :
16858 ac_cv_struct_st_dm_mode
=yes
16860 ac_cv_struct_st_dm_mode
=no
16862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16865 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16867 if test $ac_cv_struct_st_dm_mode = yes; then
16869 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16874 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16875 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16881 cat >>confdefs.h
<<_ACEOF
16882 #define HAVE_DECL_STRMODE $ac_have_decl
16888 GNULIB_CALLOC_POSIX
=0;
16889 GNULIB_CANONICALIZE_FILE_NAME
=0;
16890 GNULIB_GETLOADAVG
=0;
16891 GNULIB_GETSUBOPT
=0;
16893 GNULIB_MALLOC_POSIX
=0;
16897 GNULIB_MKOSTEMPS
=0;
16903 GNULIB_REALLOC_POSIX
=0;
16910 GNULIB_SYSTEM_POSIX
=0;
16916 HAVE_CANONICALIZE_FILE_NAME
=1;
16917 HAVE_DECL_GETLOADAVG
=1;
16931 HAVE_DECL_SETENV
=1;
16935 HAVE_STRUCT_RANDOM_DATA
=1;
16936 HAVE_SYS_LOADAVG_H
=0;
16938 HAVE_DECL_UNSETENV
=1;
16940 REPLACE_CANONICALIZE_FILE_NAME
=0;
16946 REPLACE_REALPATH
=0;
16949 REPLACE_UNSETENV
=0;
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16955 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16956 if test "${gl_cv_have_include_next+set}" = set; then :
16957 $as_echo_n "(cached) " >&6
16959 rm -rf conftestd1a conftestd1b conftestd2
16960 mkdir conftestd1a conftestd1b conftestd2
16961 cat <<EOF > conftestd1a/conftest.h
16962 #define DEFINED_IN_CONFTESTD1
16963 #include_next <conftest.h>
16964 #ifdef DEFINED_IN_CONFTESTD2
16967 #error "include_next doesn't work"
16970 cat <<EOF > conftestd1b/conftest.h
16971 #define DEFINED_IN_CONFTESTD1
16973 #include_next <conftest.h>
16974 #ifdef DEFINED_IN_CONFTESTD2
16977 #error "include_next doesn't work"
16980 cat <<EOF > conftestd2/conftest.h
16981 #ifndef DEFINED_IN_CONFTESTD1
16982 #error "include_next test doesn't work"
16984 #define DEFINED_IN_CONFTESTD2
16986 gl_save_CPPFLAGS
="$CPPFLAGS"
16987 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <conftest.h>
16992 if ac_fn_c_try_compile
"$LINENO"; then :
16993 gl_cv_have_include_next
=yes
16995 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 #include <conftest.h>
17000 if ac_fn_c_try_compile
"$LINENO"; then :
17001 gl_cv_have_include_next
=buggy
17003 gl_cv_have_include_next
=no
17005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17009 CPPFLAGS
="$gl_save_CPPFLAGS"
17010 rm -rf conftestd1a conftestd1b conftestd2
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17014 $as_echo "$gl_cv_have_include_next" >&6; }
17015 PRAGMA_SYSTEM_HEADER
=
17016 if test $gl_cv_have_include_next = yes; then
17017 INCLUDE_NEXT
=include_next
17018 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17019 if test -n "$GCC"; then
17020 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17023 if test $gl_cv_have_include_next = buggy
; then
17024 INCLUDE_NEXT
=include
17025 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17027 INCLUDE_NEXT
=include
17028 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17035 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17036 if test "${gl_cv_pragma_columns+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
17039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17048 $EGREP "choke me" >/dev
/null
2>&1; then :
17049 gl_cv_pragma_columns
=yes
17051 gl_cv_pragma_columns
=no
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17058 $as_echo "$gl_cv_pragma_columns" >&6; }
17059 if test $gl_cv_pragma_columns = yes; then
17060 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17081 if test $gl_cv_have_include_next = yes; then
17082 gl_cv_next_getopt_h
='<'getopt.h
'>'
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17085 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17086 if test "${gl_cv_next_getopt_h+set}" = set; then :
17087 $as_echo_n "(cached) " >&6
17090 if test $ac_cv_header_getopt_h = yes; then
17093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 #include <getopt.h>
17099 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17100 *) gl_absname_cpp
="$ac_cpp" ;;
17105 gl_dirsep_regex
='[/\\]'
17108 gl_dirsep_regex
='/'
17112 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
17113 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17118 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17119 sed -n "$gl_absolute_header_sed"`'"'
17121 gl_cv_next_getopt_h
='<'getopt.h
'>'
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17127 $as_echo "$gl_cv_next_getopt_h" >&6; }
17129 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17131 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17133 gl_next_as_first_directive
='<'getopt.h
'>'
17135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17136 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17138 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17143 if test $ac_cv_header_getopt_h = yes; then
17152 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17153 for ac_header
in getopt.h
17155 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17156 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17157 cat >>confdefs.h
<<_ACEOF
17158 #define HAVE_GETOPT_H 1
17162 gl_replace_getopt
=yes
17169 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17170 for ac_func
in getopt_long_only
17172 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17173 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17174 cat >>confdefs.h
<<_ACEOF
17175 #define HAVE_GETOPT_LONG_ONLY 1
17179 gl_replace_getopt
=yes
17185 if test -z "$gl_replace_getopt"; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17187 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17188 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17189 $as_echo_n "(cached) " >&6
17192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 #include <unistd.h>
17198 int *p = &optreset; return optreset;
17203 if ac_fn_c_try_link
"$LINENO"; then :
17206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208 #include <getopt.h>
17212 return !getopt_clip;
17217 if ac_fn_c_try_compile
"$LINENO"; then :
17222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17224 rm -f core conftest.err conftest.
$ac_objext \
17225 conftest
$ac_exeext conftest.
$ac_ext
17227 gl_save_CPPFLAGS
=$CPPFLAGS
17228 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17229 if test "$cross_compiling" = yes; then :
17231 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17232 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17233 *) gl_cv_func_getopt_posix
="guessing yes";;
17237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17240 #include <unistd.h>
17241 #include <stdlib.h>
17242 #include <string.h>
17248 static char program[] = "program";
17249 static char a[] = "-a";
17250 static char foo[] = "foo";
17251 static char bar[] = "bar";
17252 char *argv[] = { program, a, foo, bar, NULL };
17255 optind = OPTIND_MIN;
17258 c = getopt (4, argv, "ab");
17261 c = getopt (4, argv, "ab");
17264 if (!(optind == 2))
17267 /* Some internal state exists at this point. */
17269 static char program[] = "program";
17270 static char donald[] = "donald";
17271 static char p[] = "-p";
17272 static char billy[] = "billy";
17273 static char duck[] = "duck";
17274 static char a[] = "-a";
17275 static char bar[] = "bar";
17276 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17279 optind = OPTIND_MIN;
17282 c = getopt (7, argv, "+abp:q:");
17285 if (!(strcmp (argv[0], "program") == 0))
17287 if (!(strcmp (argv[1], "donald") == 0))
17289 if (!(strcmp (argv[2], "-p") == 0))
17291 if (!(strcmp (argv[3], "billy") == 0))
17293 if (!(strcmp (argv[4], "duck") == 0))
17295 if (!(strcmp (argv[5], "-a") == 0))
17297 if (!(strcmp (argv[6], "bar") == 0))
17299 if (!(optind == 1))
17302 /* Detect MacOS 10.5, AIX 7.1 bug. */
17304 static char program[] = "program";
17305 static char ab[] = "-ab";
17306 char *argv[3] = { program, ab, NULL };
17307 optind = OPTIND_MIN;
17309 if (getopt (2, argv, "ab:") != 'a')
17311 if (getopt (2, argv, "ab:") != '?')
17323 if ac_fn_c_try_run
"$LINENO"; then :
17324 gl_cv_func_getopt_posix
=yes
17326 gl_cv_func_getopt_posix
=no
17328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17332 CPPFLAGS
=$gl_save_CPPFLAGS
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17336 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17337 case "$gl_cv_func_getopt_posix" in
17338 *no
) gl_replace_getopt
=yes ;;
17342 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17344 $as_echo_n "checking for working GNU getopt function... " >&6; }
17345 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17346 $as_echo_n "(cached) " >&6
17348 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17349 # optstring is necessary for programs like m4 that have POSIX-mandated
17350 # semantics for supporting options interspersed with files.
17351 # Also, since getopt_long is a GNU extension, we require optind=0.
17352 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17353 # so take care to revert to the correct (non-)export state.
17354 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17355 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17356 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17357 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17358 *) gl_had_POSIXLY_CORRECT
= ;;
17361 export POSIXLY_CORRECT
17362 if test "$cross_compiling" = yes; then :
17363 case $host_os:$ac_cv_have_decl_optreset in
17364 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17365 *:yes) gl_cv_func_getopt_gnu
=no
;;
17366 *) gl_cv_func_getopt_gnu
=yes;;
17370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 #include <getopt.h>
17373 #include <stddef.h>
17374 #include <string.h>
17376 #include <stdlib.h>
17377 #if defined __MACH__ && defined __APPLE__
17378 /* Avoid a crash on MacOS X. */
17379 #include <mach/mach.h>
17380 #include <mach/mach_error.h>
17381 #include <mach/thread_status.h>
17382 #include <mach/exception.h>
17383 #include <mach/task.h>
17384 #include <pthread.h>
17385 /* The exception port on which our thread listens. */
17386 static mach_port_t our_exception_port;
17387 /* The main function of the thread listening for exceptions of type
17390 mach_exception_thread (void *arg)
17392 /* Buffer for a message to be received. */
17394 mach_msg_header_t head;
17395 mach_msg_body_t msgh_body;
17398 mach_msg_return_t retval;
17399 /* Wait for a message on the exception port. */
17400 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17401 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17402 if (retval != MACH_MSG_SUCCESS)
17407 nocrash_init (void)
17409 mach_port_t self = mach_task_self ();
17410 /* Allocate a port on which the thread shall listen for exceptions. */
17411 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17413 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17414 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17415 MACH_MSG_TYPE_MAKE_SEND)
17417 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17419 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17420 /* Create the thread listening on the exception port. */
17421 pthread_attr_t attr;
17423 if (pthread_attr_init (&attr) == 0
17424 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17425 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17426 pthread_attr_destroy (&attr);
17427 /* Replace the exception port info for these exceptions with our own.
17428 Note that we replace the exception port for the entire task, not only
17429 for a particular thread. This has the effect that when our exception
17430 port gets the message, the thread specific exception port has already
17431 been asked, and we don't need to bother about it.
17432 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17433 task_set_exception_ports (self, mask, our_exception_port,
17434 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17439 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17440 /* Avoid a crash on native Windows. */
17441 #define WIN32_LEAN_AND_MEAN
17442 #include <windows.h>
17443 #include <winerror.h>
17445 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17447 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17449 case EXCEPTION_ACCESS_VIOLATION:
17450 case EXCEPTION_IN_PAGE_ERROR:
17451 case EXCEPTION_STACK_OVERFLOW:
17452 case EXCEPTION_GUARD_PAGE:
17453 case EXCEPTION_PRIV_INSTRUCTION:
17454 case EXCEPTION_ILLEGAL_INSTRUCTION:
17455 case EXCEPTION_DATATYPE_MISALIGNMENT:
17456 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17457 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17460 return EXCEPTION_CONTINUE_SEARCH;
17463 nocrash_init (void)
17465 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17468 /* Avoid a crash on POSIX systems. */
17469 #include <signal.h>
17470 /* A POSIX signal handler. */
17472 exception_handler (int sig)
17477 nocrash_init (void)
17480 signal (SIGSEGV, exception_handler);
17483 signal (SIGBUS, exception_handler);
17497 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17498 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17499 OSF/1 5.1, Solaris 10. */
17501 static char conftest[] = "conftest";
17502 static char plus[] = "-+";
17503 char *argv[3] = { conftest, plus, NULL };
17505 if (getopt (2, argv, "+a") != '?')
17508 /* This code succeeds on glibc 2.8, mingw,
17509 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17510 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17512 static char program[] = "program";
17513 static char p[] = "-p";
17514 static char foo[] = "foo";
17515 static char bar[] = "bar";
17516 char *argv[] = { program, p, foo, bar, NULL };
17519 if (getopt (4, argv, "p::") != 'p')
17521 else if (optarg != NULL)
17523 else if (getopt (4, argv, "p::") != -1)
17525 else if (optind != 2)
17528 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17530 static char program[] = "program";
17531 static char foo[] = "foo";
17532 static char p[] = "-p";
17533 char *argv[] = { program, foo, p, NULL };
17535 if (getopt (3, argv, "-p") != 1)
17537 else if (getopt (3, argv, "-p") != 'p')
17540 /* This code fails on glibc 2.11. */
17542 static char program[] = "program";
17543 static char b[] = "-b";
17544 static char a[] = "-a";
17545 char *argv[] = { program, b, a, NULL };
17546 optind = opterr = 0;
17547 if (getopt (3, argv, "+:a:b") != 'b')
17549 else if (getopt (3, argv, "+:a:b") != ':')
17552 /* This code dumps core on glibc 2.14. */
17554 static char program[] = "program";
17555 static char w[] = "-W";
17556 static char dummy[] = "dummy";
17557 char *argv[] = { program, w, dummy, NULL };
17558 optind = opterr = 1;
17559 if (getopt (3, argv, "W;") != 'W')
17568 if ac_fn_c_try_run
"$LINENO"; then :
17569 gl_cv_func_getopt_gnu
=yes
17571 gl_cv_func_getopt_gnu
=no
17573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17577 case $gl_had_POSIXLY_CORRECT in
17579 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17580 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17585 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17586 if test "$gl_cv_func_getopt_gnu" = "no"; then
17587 gl_replace_getopt
=yes
17598 if test -n "$gl_replace_getopt"; then :
17605 if test $REPLACE_GETOPT = 1; then
17609 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17613 GNULIB_UNISTD_H_GETOPT
=1
17616 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17617 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17623 cat >>confdefs.h
<<_ACEOF
17624 #define HAVE_DECL_GETENV $ac_have_decl
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17629 $as_echo_n "checking for unsigned long long int... " >&6; }
17630 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17631 $as_echo_n "(cached) " >&6
17633 ac_cv_type_unsigned_long_long_int
=yes
17634 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17638 /* For now, do not test the preprocessor; as of 2007 there are too many
17639 implementations with broken preprocessors. Perhaps this can
17640 be revisited in 2012. In the meantime, code should not expect
17641 #if to work with literals wider than 32 bits. */
17642 /* Test literals. */
17643 long long int ll = 9223372036854775807ll;
17644 long long int nll = -9223372036854775807LL;
17645 unsigned long long int ull = 18446744073709551615ULL;
17646 /* Test constant expressions. */
17647 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17649 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17655 /* Test availability of runtime routines for shift and division. */
17656 long long int llmax = 9223372036854775807ll;
17657 unsigned long long int ullmax = 18446744073709551615ull;
17658 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17659 | (llmax / ll) | (llmax % ll)
17660 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17661 | (ullmax / ull) | (ullmax % ull));
17667 if ac_fn_c_try_link
"$LINENO"; then :
17670 ac_cv_type_unsigned_long_long_int
=no
17672 rm -f core conftest.err conftest.
$ac_objext \
17673 conftest
$ac_exeext conftest.
$ac_ext
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17677 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17678 if test $ac_cv_type_unsigned_long_long_int = yes; then
17680 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17687 $as_echo_n "checking for long long int... " >&6; }
17688 if test "${ac_cv_type_long_long_int+set}" = set; then :
17689 $as_echo_n "(cached) " >&6
17691 ac_cv_type_long_long_int
=yes
17692 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17693 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17694 if test $ac_cv_type_long_long_int = yes; then
17695 if test "$cross_compiling" = yes; then :
17698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 #include <limits.h>
17703 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17704 # define LLONG_MAX (HALF - 1 + HALF)
17709 long long int n = 1;
17713 long long int m = n << i;
17716 if (LLONG_MAX / 2 < m)
17724 if ac_fn_c_try_run
"$LINENO"; then :
17727 ac_cv_type_long_long_int
=no
17729 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17730 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17737 $as_echo "$ac_cv_type_long_long_int" >&6; }
17738 if test $ac_cv_type_long_long_int = yes; then
17740 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17749 gl_cv_c_multiarch
=no
17750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752 #ifndef __APPLE_CC__
17753 not a universal capable compiler
17758 if ac_fn_c_try_compile
"$LINENO"; then :
17762 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17763 if test -n "$prev"; then
17765 i?
86 | x86_64 | ppc | ppc64
)
17766 if test -z "$arch" ||
test "$arch" = "$word"; then
17769 gl_cv_c_multiarch
=yes
17775 if test "x$word" = "x-arch"; then
17782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17783 if test $gl_cv_c_multiarch = yes; then
17784 APPLE_UNIVERSAL_BUILD
=1
17786 APPLE_UNIVERSAL_BUILD
=0
17793 if test $ac_cv_type_long_long_int = yes; then
17794 HAVE_LONG_LONG_INT
=1
17796 HAVE_LONG_LONG_INT
=0
17800 if test $ac_cv_type_unsigned_long_long_int = yes; then
17801 HAVE_UNSIGNED_LONG_LONG_INT
=1
17803 HAVE_UNSIGNED_LONG_LONG_INT
=0
17808 if test $ac_cv_header_wchar_h = yes; then
17815 if test $ac_cv_header_inttypes_h = yes; then
17822 if test $ac_cv_header_sys_types_h = yes; then
17838 if test $gl_cv_have_include_next = yes; then
17839 gl_cv_next_stdint_h
='<'stdint.h
'>'
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17842 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17843 if test "${gl_cv_next_stdint_h+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17847 if test $ac_cv_header_stdint_h = yes; then
17850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 #include <stdint.h>
17856 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17857 *) gl_absname_cpp
="$ac_cpp" ;;
17862 gl_dirsep_regex
='[/\\]'
17865 gl_dirsep_regex
='/'
17869 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
17870 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17875 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17876 sed -n "$gl_absolute_header_sed"`'"'
17878 gl_cv_next_stdint_h
='<'stdint.h
'>'
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17884 $as_echo "$gl_cv_next_stdint_h" >&6; }
17886 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17888 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17890 gl_next_as_first_directive
='<'stdint.h
'>'
17892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17893 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17895 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17900 if test $ac_cv_header_stdint_h = yes; then
17907 if test $ac_cv_header_stdint_h = yes; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17909 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17910 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17913 gl_cv_header_working_stdint_h
=no
17914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17918 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17919 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17920 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17921 #include <stdint.h>
17922 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17923 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17924 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17929 included before <wchar.h>. */
17930 #include <stddef.h>
17931 #include <signal.h>
17933 # include <stdio.h>
17935 # include <wchar.h>
17940 int8_t a1 = INT8_MAX;
17941 int8_t a1min = INT8_MIN;
17944 int16_t a2 = INT16_MAX;
17945 int16_t a2min = INT16_MIN;
17948 int32_t a3 = INT32_MAX;
17949 int32_t a3min = INT32_MIN;
17952 int64_t a4 = INT64_MAX;
17953 int64_t a4min = INT64_MIN;
17956 uint8_t b1 = UINT8_MAX;
17958 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17961 uint16_t b2 = UINT16_MAX;
17964 uint32_t b3 = UINT32_MAX;
17967 uint64_t b4 = UINT64_MAX;
17969 int_least8_t c1 = INT8_C (0x7f);
17970 int_least8_t c1max = INT_LEAST8_MAX;
17971 int_least8_t c1min = INT_LEAST8_MIN;
17972 int_least16_t c2 = INT16_C (0x7fff);
17973 int_least16_t c2max = INT_LEAST16_MAX;
17974 int_least16_t c2min = INT_LEAST16_MIN;
17975 int_least32_t c3 = INT32_C (0x7fffffff);
17976 int_least32_t c3max = INT_LEAST32_MAX;
17977 int_least32_t c3min = INT_LEAST32_MIN;
17978 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17979 int_least64_t c4max = INT_LEAST64_MAX;
17980 int_least64_t c4min = INT_LEAST64_MIN;
17981 uint_least8_t d1 = UINT8_C (0xff);
17982 uint_least8_t d1max = UINT_LEAST8_MAX;
17983 uint_least16_t d2 = UINT16_C (0xffff);
17984 uint_least16_t d2max = UINT_LEAST16_MAX;
17985 uint_least32_t d3 = UINT32_C (0xffffffff);
17986 uint_least32_t d3max = UINT_LEAST32_MAX;
17987 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17988 uint_least64_t d4max = UINT_LEAST64_MAX;
17989 int_fast8_t e1 = INT_FAST8_MAX;
17990 int_fast8_t e1min = INT_FAST8_MIN;
17991 int_fast16_t e2 = INT_FAST16_MAX;
17992 int_fast16_t e2min = INT_FAST16_MIN;
17993 int_fast32_t e3 = INT_FAST32_MAX;
17994 int_fast32_t e3min = INT_FAST32_MIN;
17995 int_fast64_t e4 = INT_FAST64_MAX;
17996 int_fast64_t e4min = INT_FAST64_MIN;
17997 uint_fast8_t f1 = UINT_FAST8_MAX;
17998 uint_fast16_t f2 = UINT_FAST16_MAX;
17999 uint_fast32_t f3 = UINT_FAST32_MAX;
18000 uint_fast64_t f4 = UINT_FAST64_MAX;
18002 intptr_t g = INTPTR_MAX;
18003 intptr_t gmin = INTPTR_MIN;
18006 uintptr_t h = UINTPTR_MAX;
18008 intmax_t i = INTMAX_MAX;
18009 uintmax_t j = UINTMAX_MAX;
18011 #include <limits.h> /* for CHAR_BIT */
18012 #define TYPE_MINIMUM(t) \
18013 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18014 #define TYPE_MAXIMUM(t) \
18015 ((t) ((t) 0 < (t) -1 \
18017 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18020 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18021 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18023 /* Detect bug in FreeBSD 6.0 / ia64. */
18024 int check_SIG_ATOMIC:
18025 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18026 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18028 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18030 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18031 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18033 /* Detect bug in mingw. */
18035 WINT_MIN == TYPE_MINIMUM (wint_t)
18036 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18039 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18041 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18042 int check_UINT16_C:
18043 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18045 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18047 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18050 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18053 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18056 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18058 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18059 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18060 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18061 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18062 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18063 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18064 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18065 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18066 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18067 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18068 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18079 if ac_fn_c_try_compile
"$LINENO"; then :
18080 if test "$cross_compiling" = yes; then :
18081 gl_cv_header_working_stdint_h
=yes
18084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18088 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18089 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18090 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18091 #include <stdint.h>
18094 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18095 included before <wchar.h>. */
18096 #include <stddef.h>
18097 #include <signal.h>
18099 # include <stdio.h>
18101 # include <wchar.h>
18106 #include <string.h>
18107 #define MVAL(macro) MVAL1(macro)
18108 #define MVAL1(expression) #expression
18109 static const char *macro_values[] =
18143 for (mv = macro_values; *mv != NULL; mv++)
18145 const char *value = *mv;
18146 /* Test whether it looks like a cast expression. */
18147 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18148 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18149 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18150 || strncmp (value, "((int)"/*)*/, 6) == 0
18151 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18152 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18153 return mv - macro_values + 1;
18161 if ac_fn_c_try_run
"$LINENO"; then :
18162 gl_cv_header_working_stdint_h
=yes
18164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18174 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18176 if test "$gl_cv_header_working_stdint_h" = yes; then
18179 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18181 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18182 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18183 eval as_val
=\$
$as_ac_Header
18184 if test "x$as_val" = x
""yes; then :
18185 cat >>confdefs.h
<<_ACEOF
18186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18193 if test $ac_cv_header_sys_inttypes_h = yes; then
18194 HAVE_SYS_INTTYPES_H
=1
18196 HAVE_SYS_INTTYPES_H
=0
18199 if test $ac_cv_header_sys_bitypes_h = yes; then
18200 HAVE_SYS_BITYPES_H
=1
18202 HAVE_SYS_BITYPES_H
=0
18208 if test $APPLE_UNIVERSAL_BUILD = 0; then
18211 for gltype
in ptrdiff_t size_t
; do
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18213 $as_echo_n "checking for bit size of $gltype... " >&6; }
18214 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18215 $as_echo_n "(cached) " >&6
18217 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18219 included before <wchar.h>. */
18220 #include <stddef.h>
18221 #include <signal.h>
18223 # include <stdio.h>
18225 # include <wchar.h>
18228 #include <limits.h>"; then :
18234 eval gl_cv_bitsizeof_
${gltype}=\
$result
18237 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 eval result
=\
$gl_cv_bitsizeof_${gltype}
18241 if test $result = unknown
; then
18244 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18245 cat >>confdefs.h
<<_ACEOF
18246 #define BITSIZEOF_${GLTYPE} $result
18249 eval BITSIZEOF_
${GLTYPE}=\
$result
18256 for gltype
in sig_atomic_t wchar_t wint_t
; do
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18258 $as_echo_n "checking for bit size of $gltype... " >&6; }
18259 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18260 $as_echo_n "(cached) " >&6
18262 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18263 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18264 included before <wchar.h>. */
18265 #include <stddef.h>
18266 #include <signal.h>
18268 # include <stdio.h>
18270 # include <wchar.h>
18273 #include <limits.h>"; then :
18279 eval gl_cv_bitsizeof_
${gltype}=\
$result
18282 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 eval result
=\
$gl_cv_bitsizeof_${gltype}
18286 if test $result = unknown
; then
18289 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18290 cat >>confdefs.h
<<_ACEOF
18291 #define BITSIZEOF_${GLTYPE} $result
18294 eval BITSIZEOF_
${GLTYPE}=\
$result
18300 for gltype
in sig_atomic_t wchar_t wint_t
; do
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18302 $as_echo_n "checking whether $gltype is signed... " >&6; }
18303 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18304 $as_echo_n "(cached) " >&6
18306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18310 included before <wchar.h>. */
18311 #include <stddef.h>
18312 #include <signal.h>
18314 # include <stdio.h>
18316 # include <wchar.h>
18319 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18328 if ac_fn_c_try_compile
"$LINENO"; then :
18333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18334 eval gl_cv_type_
${gltype}_signed
=\
$result
18337 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18339 $as_echo "$ac_res" >&6; }
18340 eval result
=\
$gl_cv_type_${gltype}_signed
18341 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18342 if test "$result" = yes; then
18343 cat >>confdefs.h
<<_ACEOF
18344 #define HAVE_SIGNED_${GLTYPE} 1
18347 eval HAVE_SIGNED_
${GLTYPE}=1
18349 eval HAVE_SIGNED_
${GLTYPE}=0
18354 gl_cv_type_ptrdiff_t_signed
=yes
18355 gl_cv_type_size_t_signed
=no
18356 if test $APPLE_UNIVERSAL_BUILD = 0; then
18359 for gltype
in ptrdiff_t size_t
; do
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18361 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18362 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18363 $as_echo_n "(cached) " >&6
18365 eval gl_cv_type_
${gltype}_suffix
=no
18366 eval result
=\
$gl_cv_type_${gltype}_signed
18367 if test "$result" = yes; then
18372 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18374 '') gltype1
='int';;
18375 l
) gltype1
='long int';;
18376 ll
) gltype1
='long long int';;
18377 i64
) gltype1
='__int64';;
18378 u
) gltype1
='unsigned int';;
18379 ul
) gltype1
='unsigned long int';;
18380 ull
) gltype1
='unsigned long long int';;
18381 ui64
)gltype1
='unsigned __int64';;
18383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18386 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18387 included before <wchar.h>. */
18388 #include <stddef.h>
18389 #include <signal.h>
18391 # include <stdio.h>
18393 # include <wchar.h>
18396 extern $gltype foo;
18397 extern $gltype1 foo;
18406 if ac_fn_c_try_compile
"$LINENO"; then :
18407 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18410 eval result
=\
$gl_cv_type_${gltype}_suffix
18411 test "$result" != no
&& break
18414 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18418 eval result
=\
$gl_cv_type_${gltype}_suffix
18419 test "$result" = no
&& result
=
18420 eval ${GLTYPE}_SUFFIX
=\
$result
18421 cat >>confdefs.h
<<_ACEOF
18422 #define ${GLTYPE}_SUFFIX $result
18431 for gltype
in sig_atomic_t wchar_t wint_t
; do
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18433 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18434 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18435 $as_echo_n "(cached) " >&6
18437 eval gl_cv_type_
${gltype}_suffix
=no
18438 eval result
=\
$gl_cv_type_${gltype}_signed
18439 if test "$result" = yes; then
18444 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18446 '') gltype1
='int';;
18447 l
) gltype1
='long int';;
18448 ll
) gltype1
='long long int';;
18449 i64
) gltype1
='__int64';;
18450 u
) gltype1
='unsigned int';;
18451 ul
) gltype1
='unsigned long int';;
18452 ull
) gltype1
='unsigned long long int';;
18453 ui64
)gltype1
='unsigned __int64';;
18455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18458 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18459 included before <wchar.h>. */
18460 #include <stddef.h>
18461 #include <signal.h>
18463 # include <stdio.h>
18465 # include <wchar.h>
18468 extern $gltype foo;
18469 extern $gltype1 foo;
18478 if ac_fn_c_try_compile
"$LINENO"; then :
18479 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18482 eval result
=\
$gl_cv_type_${gltype}_suffix
18483 test "$result" != no
&& break
18486 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18488 $as_echo "$ac_res" >&6; }
18489 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18490 eval result
=\
$gl_cv_type_${gltype}_suffix
18491 test "$result" = no
&& result
=
18492 eval ${GLTYPE}_SUFFIX
=\
$result
18493 cat >>confdefs.h
<<_ACEOF
18494 #define ${GLTYPE}_SUFFIX $result
18501 if test $BITSIZEOF_WINT_T -lt 32; then
18502 BITSIZEOF_WINT_T
=32
18508 if test -n "$STDINT_H"; then
18509 GL_GENERATE_STDINT_H_TRUE
=
18510 GL_GENERATE_STDINT_H_FALSE
='#'
18512 GL_GENERATE_STDINT_H_TRUE
='#'
18513 GL_GENERATE_STDINT_H_FALSE
=
18522 GNULIB_STRTOIMAX
=0;
18523 GNULIB_STRTOUMAX
=0;
18524 HAVE_DECL_IMAXABS
=1;
18525 HAVE_DECL_IMAXDIV
=1;
18526 HAVE_DECL_STRTOIMAX
=1;
18527 HAVE_DECL_STRTOUMAX
=1;
18528 INT32_MAX_LT_INTMAX_MAX
=1;
18529 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18530 PRI_MACROS_BROKEN
=0;
18531 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18532 UINT32_MAX_LT_UINTMAX_MAX
=1;
18533 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18549 if test $gl_cv_have_include_next = yes; then
18550 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18553 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18554 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18558 if test $ac_cv_header_inttypes_h = yes; then
18561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563 #include <inttypes.h>
18567 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18568 *) gl_absname_cpp
="$ac_cpp" ;;
18573 gl_dirsep_regex
='[/\\]'
18576 gl_dirsep_regex
='/'
18580 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18581 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18586 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18587 sed -n "$gl_absolute_header_sed"`'"'
18589 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18595 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18597 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18599 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18601 gl_next_as_first_directive
='<'inttypes.h
'>'
18603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18604 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18606 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18615 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18634 GNULIB_UTIMENSAT
=0;
18648 REPLACE_FUTIMENS
=0;
18654 REPLACE_UTIMENSAT
=0;
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18660 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18661 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18662 $as_echo_n "(cached) " >&6
18664 rm -f conftest.sym conftest.
file
18665 echo >conftest.
file
18666 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18667 if test "$cross_compiling" = yes; then :
18668 # When cross-compiling, be pessimistic so we will end up using the
18669 # replacement version of lstat that checks for trailing slashes and
18670 # calls lstat a second time when necessary.
18671 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 $ac_includes_default
18681 /* Linux will dereference the symlink and fail, as required by
18682 POSIX. That is better in the sense that it means we will not
18683 have to compile and use the lstat wrapper. */
18684 return lstat ("conftest.sym/", &sbuf) == 0;
18690 if ac_fn_c_try_run
"$LINENO"; then :
18691 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18693 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18700 # If the 'ln -s' command failed, then we probably don't even
18701 # have an lstat function.
18702 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18704 rm -f conftest.sym conftest.
file
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18708 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18709 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18711 cat >>confdefs.h
<<_ACEOF
18712 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18718 GNULIB_NANOSLEEP
=0;
18722 HAVE_DECL_LOCALTIME_R
=1;
18726 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18727 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18728 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18729 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18736 GNULIB_PTHREAD_SIGMASK
=0;
18738 GNULIB_SIGNAL_H_SIGPIPE
=0;
18739 GNULIB_SIGPROCMASK
=0;
18740 GNULIB_SIGACTION
=0;
18741 HAVE_POSIX_SIGNALBLOCKING
=1;
18742 HAVE_PTHREAD_SIGMASK
=1;
18747 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18749 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18751 HAVE_SIGHANDLER_T
=1;
18752 REPLACE_PTHREAD_SIGMASK
=0;
18758 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18759 #include <signal.h>
18760 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18761 #include <sys/types.h>
18764 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18766 cat >>confdefs.h
<<_ACEOF
18767 #define HAVE_SIGSET_T 1
18770 gl_cv_type_sigset_t
=yes
18772 gl_cv_type_sigset_t
=no
18775 if test $gl_cv_type_sigset_t != yes; then
18783 if test $ac_cv_header_sys_socket_h = no
; then
18784 for ac_header
in ws2tcpip.h
18786 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18787 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18788 cat >>confdefs.h
<<_ACEOF
18789 #define HAVE_WS2TCPIP_H 1
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18799 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18800 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 #include <stdbool.h>
18808 "error: bool is not defined"
18811 "error: false is not defined"
18814 "error: false is not 0"
18817 "error: true is not defined"
18820 "error: true is not 1"
18822 #ifndef __bool_true_false_are_defined
18823 "error: __bool_true_false_are_defined is not defined"
18826 struct s { _Bool s: 1; _Bool t; } s;
18828 char a[true == 1 ? 1 : -1];
18829 char b[false == 0 ? 1 : -1];
18830 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18831 char d[(bool) 0.5 == true ? 1 : -1];
18832 /* See body of main program for 'e'. */
18833 char f[(_Bool) 0.0 == false ? 1 : -1];
18835 char h[sizeof (_Bool)];
18836 char i[sizeof s.t];
18837 enum { j = false, k = true, l = false * true, m = true * 256 };
18838 /* The following fails for
18839 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18841 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18842 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18843 /* Catch a bug in an HP-UX C compiler. See
18844 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18845 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18857 /* Refer to every declared value, to avoid compiler optimizations. */
18858 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18859 + !m + !n + !o + !p + !q + !pq);
18865 if ac_fn_c_try_compile
"$LINENO"; then :
18866 ac_cv_header_stdbool_h
=yes
18868 ac_cv_header_stdbool_h
=no
18870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18873 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18874 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18875 if test "x$ac_cv_type__Bool" = x
""yes; then :
18877 cat >>confdefs.h
<<_ACEOF
18878 #define HAVE__BOOL 1
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18891 $as_echo_n "checking for wchar_t... " >&6; }
18892 if test "${gt_cv_c_wchar_t+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897 #include <stddef.h>
18898 wchar_t foo = (wchar_t)'\0';
18907 if ac_fn_c_try_compile
"$LINENO"; then :
18908 gt_cv_c_wchar_t
=yes
18912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18915 $as_echo "$gt_cv_c_wchar_t" >&6; }
18916 if test $gt_cv_c_wchar_t = yes; then
18918 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18931 GNULIB_FPRINTF_POSIX
=0;
18948 GNULIB_OBSTACK_PRINTF
=0;
18949 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18954 GNULIB_PRINTF_POSIX
=0;
18963 GNULIB_SPRINTF_POSIX
=0;
18964 GNULIB_STDIO_H_NONBLOCKING
=0;
18965 GNULIB_STDIO_H_SIGPIPE
=0;
18967 GNULIB_VASPRINTF
=0;
18972 GNULIB_VFPRINTF_POSIX
=0;
18974 GNULIB_VPRINTF_POSIX
=0;
18975 GNULIB_VSNPRINTF
=0;
18976 GNULIB_VSPRINTF_POSIX
=0;
18977 HAVE_DECL_FPURGE
=1;
18978 HAVE_DECL_FSEEKO
=1;
18979 HAVE_DECL_FTELLO
=1;
18980 HAVE_DECL_GETDELIM
=1;
18981 HAVE_DECL_GETLINE
=1;
18982 HAVE_DECL_OBSTACK_PRINTF
=1;
18983 HAVE_DECL_SNPRINTF
=1;
18984 HAVE_DECL_VSNPRINTF
=1;
19005 REPLACE_GETDELIM
=0;
19007 REPLACE_OBSTACK_PRINTF
=0;
19013 REPLACE_RENAMEAT
=0;
19014 REPLACE_SNPRINTF
=0;
19016 REPLACE_STDIO_READ_FUNCS
=0;
19017 REPLACE_STDIO_WRITE_FUNCS
=0;
19019 REPLACE_VASPRINTF
=0;
19020 REPLACE_VDPRINTF
=0;
19021 REPLACE_VFPRINTF
=0;
19023 REPLACE_VSNPRINTF
=0;
19024 REPLACE_VSPRINTF
=0;
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19027 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19028 if test "${ac_cv_struct_tm+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19032 /* end confdefs.h. */
19033 #include <sys/types.h>
19040 int *p = &tm.tm_sec;
19046 if ac_fn_c_try_compile
"$LINENO"; then :
19047 ac_cv_struct_tm
=time.h
19049 ac_cv_struct_tm
=sys
/time.h
19051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19054 $as_echo "$ac_cv_struct_tm" >&6; }
19055 if test $ac_cv_struct_tm = sys
/time.h
; then
19057 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19061 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19062 #include <$ac_cv_struct_tm>
19065 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19067 cat >>confdefs.h
<<_ACEOF
19068 #define HAVE_STRUCT_TM_TM_ZONE 1
19074 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19076 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19079 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19081 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19087 cat >>confdefs.h
<<_ACEOF
19088 #define HAVE_DECL_TZNAME $ac_have_decl
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19092 $as_echo_n "checking for tzname... " >&6; }
19093 if test "${ac_cv_var_tzname+set}" = set; then :
19094 $as_echo_n "(cached) " >&6
19096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19099 #if !HAVE_DECL_TZNAME
19100 extern char *tzname[];
19106 return tzname[0][0];
19111 if ac_fn_c_try_link
"$LINENO"; then :
19112 ac_cv_var_tzname
=yes
19114 ac_cv_var_tzname
=no
19116 rm -f core conftest.err conftest.
$ac_objext \
19117 conftest
$ac_exeext conftest.
$ac_ext
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19120 $as_echo "$ac_cv_var_tzname" >&6; }
19121 if test $ac_cv_var_tzname = yes; then
19123 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19129 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19131 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19133 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19142 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19143 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19149 cat >>confdefs.h
<<_ACEOF
19150 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19155 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19156 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19162 cat >>confdefs.h
<<_ACEOF
19163 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19169 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19170 if test "${ac_cv_header_stat_broken+set}" = set; then :
19171 $as_echo_n "(cached) " >&6
19173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19175 #include <sys/types.h>
19176 #include <sys/stat.h>
19178 #if defined S_ISBLK && defined S_IFDIR
19179 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19182 #if defined S_ISBLK && defined S_IFCHR
19183 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19186 #if defined S_ISLNK && defined S_IFREG
19187 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19190 #if defined S_ISSOCK && defined S_IFREG
19191 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19195 if ac_fn_c_try_compile
"$LINENO"; then :
19196 ac_cv_header_stat_broken
=no
19198 ac_cv_header_stat_broken
=yes
19200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19203 $as_echo "$ac_cv_header_stat_broken" >&6; }
19204 if test $ac_cv_header_stat_broken = yes; then
19206 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19212 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19213 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19217 cat >>confdefs.h
<<_ACEOF
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19224 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19225 if test "${ac_cv_c_restrict+set}" = set; then :
19226 $as_echo_n "(cached) " >&6
19228 ac_cv_c_restrict
=no
19229 # The order here caters to the fact that C++ does not require restrict.
19230 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 typedef int * int_ptr;
19234 int foo (int_ptr $ac_kw ip) {
19241 int * $ac_kw t = s;
19248 if ac_fn_c_try_compile
"$LINENO"; then :
19249 ac_cv_c_restrict
=$ac_kw
19251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19252 test "$ac_cv_c_restrict" != no
&& break
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19257 $as_echo "$ac_cv_c_restrict" >&6; }
19259 case $ac_cv_c_restrict in
19261 no
) $as_echo "#define restrict /**/" >>confdefs.h
19263 *) cat >>confdefs.h
<<_ACEOF
19264 #define restrict $ac_cv_c_restrict
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19274 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19275 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19276 $as_echo_n "(cached) " >&6
19278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19285 static struct timespec x; x.tv_sec = x.tv_nsec;
19290 if ac_fn_c_try_compile
"$LINENO"; then :
19291 gl_cv_sys_struct_timespec_in_time_h
=yes
19293 gl_cv_sys_struct_timespec_in_time_h
=no
19295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19298 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19300 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19301 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19302 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19303 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19304 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19307 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19308 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19309 $as_echo_n "(cached) " >&6
19311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19313 #include <sys/time.h>
19318 static struct timespec x; x.tv_sec = x.tv_nsec;
19323 if ac_fn_c_try_compile
"$LINENO"; then :
19324 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19326 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19331 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19332 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19333 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19336 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19337 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19338 $as_echo_n "(cached) " >&6
19340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 #include <pthread.h>
19347 static struct timespec x; x.tv_sec = x.tv_nsec;
19352 if ac_fn_c_try_compile
"$LINENO"; then :
19353 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19355 gl_cv_sys_struct_timespec_in_pthread_h
=no
19357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19360 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19361 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19362 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19381 if test $gl_cv_have_include_next = yes; then
19382 gl_cv_next_time_h
='<'time.h
'>'
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19385 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19386 if test "${gl_cv_next_time_h+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19396 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19397 *) gl_absname_cpp
="$ac_cpp" ;;
19402 gl_dirsep_regex
='[/\\]'
19405 gl_dirsep_regex
='/'
19409 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19410 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19415 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19416 sed -n "$gl_absolute_header_sed"`'"'
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19421 $as_echo "$gl_cv_next_time_h" >&6; }
19423 NEXT_TIME_H
=$gl_cv_next_time_h
19425 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19427 gl_next_as_first_directive
='<'time.h
'>'
19429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19430 gl_next_as_first_directive
=$gl_cv_next_time_h
19432 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19439 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19440 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19446 cat >>confdefs.h
<<_ACEOF
19447 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19454 GL_COND_LIBTOOL_TRUE
=
19455 GL_COND_LIBTOOL_FALSE
='#'
19457 GL_COND_LIBTOOL_TRUE
='#'
19458 GL_COND_LIBTOOL_FALSE
=
19461 gl_cond_libtool
=false
19474 gl_source_base
='lib'
19477 if test $ac_cv_func_alloca_works = no
; then
19481 # Define an additional variable used in the Makefile substitution.
19482 if test $ac_cv_working_alloca_h = yes; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19484 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19485 if test "${gl_cv_rpl_alloca+set}" = set; then :
19486 $as_echo_n "(cached) " >&6
19489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19492 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19498 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19499 gl_cv_rpl_alloca
=yes
19501 gl_cv_rpl_alloca
=no
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19508 $as_echo "$gl_cv_rpl_alloca" >&6; }
19509 if test $gl_cv_rpl_alloca = yes; then
19511 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19521 if test -n "$ALLOCA_H"; then
19522 GL_GENERATE_ALLOCA_H_TRUE
=
19523 GL_GENERATE_ALLOCA_H_FALSE
='#'
19525 GL_GENERATE_ALLOCA_H_TRUE
='#'
19526 GL_GENERATE_ALLOCA_H_FALSE
=
19555 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19558 if test $HAVE_DUP2 = 1; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19560 $as_echo_n "checking whether dup2 works... " >&6; }
19561 if test "${gl_cv_func_dup2_works+set}" = set; then :
19562 $as_echo_n "(cached) " >&6
19564 if test "$cross_compiling" = yes; then :
19566 mingw
*) # on this platform, dup2 always returns 0 for success
19567 gl_cv_func_dup2_works
=no
;;
19568 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19569 gl_cv_func_dup2_works
=no
;;
19570 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19571 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19572 gl_cv_func_dup2_works
=no
;;
19573 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19574 gl_cv_func_dup2_works
=no
;;
19575 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19576 gl_cv_func_dup2_works
=no
;;
19577 *) gl_cv_func_dup2_works
=yes;;
19580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 #include <unistd.h>
19591 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19594 if (dup2 (1, 1) == 0)
19597 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19601 if (dup2 (0, 0) != -1)
19603 /* Many gnulib modules require POSIX conformance of EBADF. */
19604 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19613 if ac_fn_c_try_run
"$LINENO"; then :
19614 gl_cv_func_dup2_works
=yes
19616 gl_cv_func_dup2_works
=no
19618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19625 $as_echo "$gl_cv_func_dup2_works" >&6; }
19626 if test "$gl_cv_func_dup2_works" = no
; then
19632 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19641 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19662 # Persuade glibc <stdlib.h> to declare getloadavg().
19667 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19668 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19670 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19671 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19674 gl_func_getloadavg_done
=no
19676 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19677 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19678 # to get the right answer into the cache.
19679 # For kstat on solaris, we need to test for libelf and libkvm to force the
19680 # definition of SVR4 below.
19681 if test $gl_func_getloadavg_done = no
; then
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19683 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19684 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19685 $as_echo_n "(cached) " >&6
19687 ac_check_lib_save_LIBS
=$LIBS
19689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19702 return elf_begin ();
19707 if ac_fn_c_try_link
"$LINENO"; then :
19708 ac_cv_lib_elf_elf_begin
=yes
19710 ac_cv_lib_elf_elf_begin
=no
19712 rm -f core conftest.err conftest.
$ac_objext \
19713 conftest
$ac_exeext conftest.
$ac_ext
19714 LIBS
=$ac_check_lib_save_LIBS
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19717 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19718 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19723 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19724 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19727 ac_check_lib_save_LIBS
=$LIBS
19729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19742 return kvm_open ();
19747 if ac_fn_c_try_link
"$LINENO"; then :
19748 ac_cv_lib_kvm_kvm_open
=yes
19750 ac_cv_lib_kvm_kvm_open
=no
19752 rm -f core conftest.err conftest.
$ac_objext \
19753 conftest
$ac_exeext conftest.
$ac_ext
19754 LIBS
=$ac_check_lib_save_LIBS
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19757 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19758 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19762 # Check for the 4.4BSD definition of getloadavg.
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19764 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19765 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19766 $as_echo_n "(cached) " >&6
19768 ac_check_lib_save_LIBS
=$LIBS
19769 LIBS
="-lutil $LIBS"
19770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19779 char getloadavg ();
19783 return getloadavg ();
19788 if ac_fn_c_try_link
"$LINENO"; then :
19789 ac_cv_lib_util_getloadavg
=yes
19791 ac_cv_lib_util_getloadavg
=no
19793 rm -f core conftest.err conftest.
$ac_objext \
19794 conftest
$ac_exeext conftest.
$ac_ext
19795 LIBS
=$ac_check_lib_save_LIBS
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19798 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19799 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19800 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19805 if test $gl_func_getloadavg_done = no
; then
19806 # There is a commonly available library for RS/6000 AIX.
19807 # Since it is not a standard part of AIX, it might be installed locally.
19808 gl_getloadavg_LIBS
=$LIBS
19809 LIBS
="-L/usr/local/lib $LIBS"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19811 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19812 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19813 $as_echo_n "(cached) " >&6
19815 ac_check_lib_save_LIBS
=$LIBS
19816 LIBS
="-lgetloadavg $LIBS"
19817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19820 /* Override any GCC internal prototype to avoid an error.
19821 Use char because int might match the return type of a GCC
19822 builtin and then its argument prototype would still apply. */
19826 char getloadavg ();
19830 return getloadavg ();
19835 if ac_fn_c_try_link
"$LINENO"; then :
19836 ac_cv_lib_getloadavg_getloadavg
=yes
19838 ac_cv_lib_getloadavg_getloadavg
=no
19840 rm -f core conftest.err conftest.
$ac_objext \
19841 conftest
$ac_exeext conftest.
$ac_ext
19842 LIBS
=$ac_check_lib_save_LIBS
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19845 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19846 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19847 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19849 LIBS
=$gl_getloadavg_LIBS
19854 # Set up the replacement function if necessary.
19855 if test $gl_func_getloadavg_done = no
; then
19858 # Solaris has libkstat which does not require root.
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19860 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19861 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19862 $as_echo_n "(cached) " >&6
19864 ac_check_lib_save_LIBS
=$LIBS
19865 LIBS
="-lkstat $LIBS"
19866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19867 /* end confdefs.h. */
19869 /* Override any GCC internal prototype to avoid an error.
19870 Use char because int might match the return type of a GCC
19871 builtin and then its argument prototype would still apply. */
19875 char kstat_open ();
19879 return kstat_open ();
19884 if ac_fn_c_try_link
"$LINENO"; then :
19885 ac_cv_lib_kstat_kstat_open
=yes
19887 ac_cv_lib_kstat_kstat_open
=no
19889 rm -f core conftest.err conftest.
$ac_objext \
19890 conftest
$ac_exeext conftest.
$ac_ext
19891 LIBS
=$ac_check_lib_save_LIBS
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19894 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19895 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19896 cat >>confdefs.h
<<_ACEOF
19897 #define HAVE_LIBKSTAT 1
19900 LIBS
="-lkstat $LIBS"
19904 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19906 # AIX has libperfstat which does not require root
19907 if test $gl_func_getloadavg_done = no
; then
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19909 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19910 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19913 ac_check_lib_save_LIBS
=$LIBS
19914 LIBS
="-lperfstat $LIBS"
19915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19918 /* Override any GCC internal prototype to avoid an error.
19919 Use char because int might match the return type of a GCC
19920 builtin and then its argument prototype would still apply. */
19924 char perfstat_cpu_total ();
19928 return perfstat_cpu_total ();
19933 if ac_fn_c_try_link
"$LINENO"; then :
19934 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19936 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19938 rm -f core conftest.err conftest.
$ac_objext \
19939 conftest
$ac_exeext conftest.
$ac_ext
19940 LIBS
=$ac_check_lib_save_LIBS
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19943 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19944 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19945 cat >>confdefs.h
<<_ACEOF
19946 #define HAVE_LIBPERFSTAT 1
19949 LIBS
="-lperfstat $LIBS"
19953 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19956 if test $gl_func_getloadavg_done = no
; then
19957 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19958 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19959 gl_func_getloadavg_done
=yes
19961 $as_echo "#define DGUX 1" >>confdefs.h
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19964 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19965 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19966 $as_echo_n "(cached) " >&6
19968 ac_check_lib_save_LIBS
=$LIBS
19970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19971 /* end confdefs.h. */
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply. */
19979 char dg_sys_info ();
19983 return dg_sys_info ();
19988 if ac_fn_c_try_link
"$LINENO"; then :
19989 ac_cv_lib_dgc_dg_sys_info
=yes
19991 ac_cv_lib_dgc_dg_sys_info
=no
19993 rm -f core conftest.err conftest.
$ac_objext \
19994 conftest
$ac_exeext conftest.
$ac_ext
19995 LIBS
=$ac_check_lib_save_LIBS
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19998 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19999 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20000 cat >>confdefs.h
<<_ACEOF
20001 #define HAVE_LIBDGC 1
20016 if test "x$gl_save_LIBS" = x
; then
20017 GETLOADAVG_LIBS
=$LIBS
20019 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20024 # Test whether the system declares getloadavg. Solaris has the function
20025 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20026 for ac_header
in sys
/loadavg.h
20028 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20029 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20030 cat >>confdefs.h
<<_ACEOF
20031 #define HAVE_SYS_LOADAVG_H 1
20038 if test $ac_cv_header_sys_loadavg_h = yes; then
20039 HAVE_SYS_LOADAVG_H
=1
20041 HAVE_SYS_LOADAVG_H
=0
20043 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20044 # include <sys/loadavg.h>
20046 #include <stdlib.h>
20048 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20051 HAVE_DECL_GETLOADAVG
=0
20055 if test $HAVE_GETLOADAVG = 0; then
20064 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20067 # Figure out what our getloadavg.c needs.
20069 # On HPUX9, an unprivileged user can get load averages this way.
20070 if test $gl_func_getloadavg_done = no
; then
20071 for ac_func
in pstat_getdynamic
20073 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20074 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20075 cat >>confdefs.h
<<_ACEOF
20076 #define HAVE_PSTAT_GETDYNAMIC 1
20078 gl_func_getloadavg_done
=yes
20084 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20085 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20086 # Irix 4.0.5F has the header but not the library.
20087 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20088 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20089 gl_func_getloadavg_done
=yes
20091 $as_echo "#define SVR4 1" >>confdefs.h
20095 if test $gl_func_getloadavg_done = no
; then
20096 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20097 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20098 gl_func_getloadavg_done
=yes
20100 $as_echo "#define UMAX 1" >>confdefs.h
20103 $as_echo "#define UMAX4_3 1" >>confdefs.h
20110 if test $gl_func_getloadavg_done = no
; then
20111 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20112 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20113 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20120 if test $gl_func_getloadavg_done = no
; then
20121 for ac_header
in mach
/mach.h
20123 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20124 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20125 cat >>confdefs.h
<<_ACEOF
20126 #define HAVE_MACH_MACH_H 1
20135 for ac_header
in nlist.h
20137 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20138 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20139 cat >>confdefs.h
<<_ACEOF
20140 #define HAVE_NLIST_H 1
20142 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20144 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20146 cat >>confdefs.h
<<_ACEOF
20147 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h. */
20160 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20161 x.n_un.n_name = "";
20169 if ac_fn_c_try_link
"$LINENO"; then :
20171 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20174 rm -f core conftest.err conftest.
$ac_objext \
20175 conftest
$ac_exeext conftest.
$ac_ext
20187 GNULIB_GETLOADAVG
=1
20198 if test $REPLACE_GETOPT = 1; then
20207 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20217 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20231 if test -n "$gl_replace_getopt"; then :
20238 if test $REPLACE_GETOPT = 1; then
20242 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20246 GNULIB_UNISTD_H_GETOPT
=1
20249 if test $REPLACE_GETOPT = 1; then
20258 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20268 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20279 if test $ac_cv_func_lstat = yes; then
20281 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20288 if test $REPLACE_LSTAT = 1; then
20297 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20321 if test $APPLE_UNIVERSAL_BUILD = 1; then
20322 # A universal build on Apple MacOS X platforms.
20323 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20324 # But we need a configuration result that is valid in both modes.
20325 gl_cv_func_working_mktime
=no
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20328 $as_echo_n "checking for working mktime... " >&6; }
20329 if test "${gl_cv_func_working_mktime+set}" = set; then :
20330 $as_echo_n "(cached) " >&6
20332 if test "$cross_compiling" = yes; then :
20333 gl_cv_func_working_mktime
=no
20335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 /* Test program from Paul Eggert and Tony Leneis. */
20338 #include <limits.h>
20339 #include <stdlib.h>
20342 #ifdef HAVE_UNISTD_H
20343 # include <unistd.h>
20347 # define alarm(X) /* empty */
20350 /* Work around redefinition to rpl_putenv by other config tests. */
20353 static time_t time_t_max;
20354 static time_t time_t_min;
20356 /* Values we'll use to set the TZ environment variable. */
20357 static char *tz_strings[] = {
20358 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20359 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20361 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20363 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20364 Based on a problem report from Andreas Jaeger. */
20366 spring_forward_gap ()
20368 /* glibc (up to about 1998-10-07) failed this test. */
20371 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20372 instead of "TZ=America/Vancouver" in order to detect the bug even
20373 on systems that don't support the Olson extension, or don't have the
20374 full zoneinfo tables installed. */
20375 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20384 return mktime (&tm) != (time_t) -1;
20388 mktime_test1 (time_t now)
20391 return ! (lt = localtime (&now)) || mktime (lt) == now;
20395 mktime_test (time_t now)
20397 return (mktime_test1 (now)
20398 && mktime_test1 ((time_t) (time_t_max - now))
20399 && mktime_test1 ((time_t) (time_t_min + now)));
20405 /* Based on code from Ariel Faigon. */
20415 return tm.tm_mon == 2 && tm.tm_mday == 31;
20419 bigtime_test (int j)
20423 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20424 now = mktime (&tm);
20425 if (now != (time_t) -1)
20427 struct tm *lt = localtime (&now);
20429 && lt->tm_year == tm.tm_year
20430 && lt->tm_mon == tm.tm_mon
20431 && lt->tm_mday == tm.tm_mday
20432 && lt->tm_hour == tm.tm_hour
20433 && lt->tm_min == tm.tm_min
20434 && lt->tm_sec == tm.tm_sec
20435 && lt->tm_yday == tm.tm_yday
20436 && lt->tm_wday == tm.tm_wday
20437 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20438 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20447 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20448 ignoring leap seconds. */
20449 unsigned long int answer = 2527315200UL;
20453 tm.tm_year = 2050 - 1900;
20456 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20459 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20460 instead of "TZ=America/Vancouver" in order to detect the bug even
20461 on systems that don't support the Olson extension, or don't have the
20462 full zoneinfo tables installed. */
20463 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20467 /* Check that the result is either a failure, or close enough
20468 to the correct answer that we can assume the discrepancy is
20469 due to leap seconds. */
20470 return (t == (time_t) -1
20471 || (0 < t && answer - 120 <= t && t <= answer + 120));
20480 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20481 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20483 /* This test makes some buggy mktime implementations loop.
20484 Give up after 60 seconds; a mktime slower than that
20485 isn't worth using anyway. */
20488 time_t_max = (! time_t_signed
20490 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20492 time_t_min = (! time_t_signed
20494 : time_t_signed_magnitude
20498 delta = time_t_max / 997; /* a suitable prime number */
20499 for (i = 0; i < N_STRINGS; i++)
20502 putenv (tz_strings[i]);
20504 for (t = 0; t <= time_t_max - delta; t += delta)
20505 if (! mktime_test (t))
20507 if (! (mktime_test ((time_t) 1)
20508 && mktime_test ((time_t) (60 * 60))
20509 && mktime_test ((time_t) (60 * 60 * 24))))
20512 for (j = 1; ; j <<= 1)
20513 if (! bigtime_test (j))
20515 else if (INT_MAX / 2 < j)
20517 if (! bigtime_test (INT_MAX))
20520 if (! irix_6_4_bug ())
20522 if (! spring_forward_gap ())
20524 if (! year_2050_test ())
20529 if ac_fn_c_try_run
"$LINENO"; then :
20530 gl_cv_func_working_mktime
=yes
20532 gl_cv_func_working_mktime
=no
20534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20541 $as_echo "$gl_cv_func_working_mktime" >&6; }
20543 if test $gl_cv_func_working_mktime = no
; then
20549 if test $REPLACE_MKTIME = 1; then
20558 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20578 LIB_PTHREAD_SIGMASK
=
20581 if test $ac_cv_func_pthread_sigmask = yes; then
20584 HAVE_PTHREAD_SIGMASK
=0
20585 REPLACE_PTHREAD_SIGMASK
=1
20591 if test $HAVE_PTHREAD_SIGMASK = 1; then
20594 if test -z "$LIB_PTHREAD_SIGMASK"; then
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20596 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20597 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20601 if test "$cross_compiling" = yes; then :
20604 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20605 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20607 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20614 #include <pthread.h>
20615 #include <signal.h>
20616 #include <stddef.h>
20620 sigemptyset (&set);
20621 return pthread_sigmask (1729, &set, NULL) != 0;
20624 if ac_fn_c_try_run
"$LINENO"; then :
20625 gl_cv_func_pthread_sigmask_in_libc_works
=no
20627 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20636 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20637 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20639 REPLACE_PTHREAD_SIGMASK
=1
20641 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20648 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20649 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20650 $as_echo_n "(cached) " >&6
20653 gl_save_LIBS
="$LIBS"
20654 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20655 if test "$cross_compiling" = yes; then :
20658 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20660 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20667 #include <pthread.h>
20668 #include <signal.h>
20669 #include <stddef.h>
20673 sigemptyset (&set);
20674 if (pthread_sigmask (1729, &set, NULL) == -1)
20679 if ac_fn_c_try_run
"$LINENO"; then :
20680 gl_cv_func_pthread_sigmask_return_works
=yes
20682 gl_cv_func_pthread_sigmask_return_works
=no
20684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20688 LIBS
="$gl_save_LIBS"
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20692 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20693 case "$gl_cv_func_pthread_sigmask_return_works" in
20695 REPLACE_PTHREAD_SIGMASK
=1
20697 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20703 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20704 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20710 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20712 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20714 gl_save_LIBS
="$LIBS"
20715 LIBS
="$LIBS $LIBMULTITHREAD"
20716 if test "$cross_compiling" = yes; then :
20719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20722 #include <pthread.h>
20723 #include <signal.h>
20725 #include <stdlib.h>
20726 #include <unistd.h>
20727 static volatile int sigint_occurred;
20729 sigint_handler (int sig)
20736 int pid = getpid ();
20738 signal (SIGINT, sigint_handler);
20739 sigemptyset (&set);
20740 sigaddset (&set, SIGINT);
20741 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20743 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20744 if (!(system (command) == 0))
20747 if (!(sigint_occurred == 0))
20749 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20751 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20756 if ac_fn_c_try_run
"$LINENO"; then :
20759 gl_cv_func_pthread_sigmask_unblock_works
=no
20761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20765 LIBS
="$gl_save_LIBS"
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20769 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20770 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20772 REPLACE_PTHREAD_SIGMASK
=1
20774 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20780 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20789 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20792 if test $HAVE_PTHREAD_SIGMASK = 1; then
20794 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20804 GNULIB_PTHREAD_SIGMASK
=1
20813 if test $ac_cv_func_readlink = no
; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20817 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20818 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20823 #include <unistd.h>
20824 /* Cause compilation failure if original declaration has wrong type. */
20825 ssize_t readlink (const char *, char *, size_t);
20834 if ac_fn_c_try_compile
"$LINENO"; then :
20835 gl_cv_decl_readlink_works
=yes
20837 gl_cv_decl_readlink_works
=no
20839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20842 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20844 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20845 if test "${gl_cv_func_readlink_works+set}" = set; then :
20846 $as_echo_n "(cached) " >&6
20848 # We have readlink, so assume ln -s works.
20849 ln -s conftest.no-such conftest.link
20850 ln -s conftest.link conftest.lnk2
20851 if test "$cross_compiling" = yes; then :
20852 gl_cv_func_readlink_works
="guessing no"
20854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20856 #include <unistd.h>
20862 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20867 if ac_fn_c_try_run
"$LINENO"; then :
20868 gl_cv_func_readlink_works
=yes
20870 gl_cv_func_readlink_works
=no
20872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20876 rm -f conftest.link conftest.lnk2
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20879 $as_echo "$gl_cv_func_readlink_works" >&6; }
20880 if test "$gl_cv_func_readlink_works" != yes; then
20882 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20885 elif test "$gl_cv_decl_readlink_works" != yes; then
20890 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20899 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20927 if test $gl_cv_have_include_next = yes; then
20928 gl_cv_next_signal_h
='<'signal.h
'>'
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20931 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20932 if test "${gl_cv_next_signal_h+set}" = set; then :
20933 $as_echo_n "(cached) " >&6
20936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20938 #include <signal.h>
20942 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20943 *) gl_absname_cpp
="$ac_cpp" ;;
20948 gl_dirsep_regex
='[/\\]'
20951 gl_dirsep_regex
='/'
20955 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
20956 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20961 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20962 sed -n "$gl_absolute_header_sed"`'"'
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20967 $as_echo "$gl_cv_next_signal_h" >&6; }
20969 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20971 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20972 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20973 gl_next_as_first_directive
='<'signal.h
'>'
20975 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20976 gl_next_as_first_directive
=$gl_cv_next_signal_h
20978 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20984 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20985 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20986 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20987 #include <signal.h>
20990 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20993 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21002 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21003 #include <signal.h>
21006 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21009 HAVE_SIGHANDLER_T
=0
21015 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21016 /* <sys/types.h> is not needed according to POSIX, but the
21017 <sys/socket.h> in i386-unknown-freebsd4.10 and
21018 powerpc-apple-darwin5.5 required it. */
21019 #include <sys/types.h>
21020 #if HAVE_SYS_SOCKET_H
21021 # include <sys/socket.h>
21022 #elif HAVE_WS2TCPIP_H
21023 # include <ws2tcpip.h>
21027 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21031 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21032 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21033 $as_echo_n "(cached) " >&6
21035 # Systems have either "struct sockaddr *" or
21036 # "void *" as the second argument to getpeername
21037 gl_cv_socklen_t_equiv
=
21038 for arg2
in "struct sockaddr" void
; do
21039 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21042 #include <sys/types.h>
21043 #include <sys/socket.h>
21045 int getpeername (int, $arg2 *, $t *);
21050 getpeername (0, 0, &len);
21055 if ac_fn_c_try_compile
"$LINENO"; then :
21056 gl_cv_socklen_t_equiv
="$t"
21058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21059 test "$gl_cv_socklen_t_equiv" != "" && break
21061 test "$gl_cv_socklen_t_equiv" != "" && break
21066 if test "$gl_cv_socklen_t_equiv" = ""; then
21067 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21070 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21072 cat >>confdefs.h
<<_ACEOF
21073 #define socklen_t $gl_cv_socklen_t_equiv
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21080 $as_echo_n "checking for ssize_t... " >&6; }
21081 if test "${gt_cv_ssize_t+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h. */
21086 #include <sys/types.h>
21090 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21096 if ac_fn_c_try_compile
"$LINENO"; then :
21101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21104 $as_echo "$gt_cv_ssize_t" >&6; }
21105 if test $gt_cv_ssize_t = no
; then
21107 $as_echo "#define ssize_t int" >>confdefs.h
21113 NEXT_STDARG_H
='<stdarg.h>'
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21115 $as_echo_n "checking for va_copy... " >&6; }
21116 if test "${gl_cv_func_va_copy+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21121 /* end confdefs.h. */
21122 #include <stdarg.h>
21128 void (*func) (va_list, va_list) = va_copy;
21135 if ac_fn_c_try_compile
"$LINENO"; then :
21136 gl_cv_func_va_copy
=yes
21138 gl_cv_func_va_copy
=no
21140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21144 $as_echo "$gl_cv_func_va_copy" >&6; }
21145 if test $gl_cv_func_va_copy = no
; then
21146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21148 #if defined _AIX && !defined __GNUC__
21153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21154 $EGREP "vaccine" >/dev
/null
2>&1; then :
21161 if test $gl_aixcc = yes; then
21171 if test $gl_cv_have_include_next = yes; then
21172 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21175 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21176 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
21180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21181 /* end confdefs.h. */
21182 #include <stdarg.h>
21186 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21187 *) gl_absname_cpp
="$ac_cpp" ;;
21192 gl_dirsep_regex
='[/\\]'
21195 gl_dirsep_regex
='/'
21199 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
21200 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21205 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21206 sed -n "$gl_absolute_header_sed"`'"'
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21211 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21213 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
21215 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21217 gl_next_as_first_directive
='<'stdarg.h
'>'
21219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21220 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
21222 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
21227 if test "$gl_cv_next_stdarg_h" = '""'; then
21228 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
21229 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
21233 saved_as_echo_n
="$as_echo_n"
21235 if test "${gl_cv_func___va_copy+set}" = set; then :
21236 $as_echo_n "(cached) " >&6
21239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21240 /* end confdefs.h. */
21241 #include <stdarg.h>
21254 if ac_fn_c_try_compile
"$LINENO"; then :
21255 gl_cv_func___va_copy
=yes
21257 gl_cv_func___va_copy
=no
21259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21262 as_echo_n
="$saved_as_echo_n"
21264 if test $gl_cv_func___va_copy = yes; then
21266 $as_echo "#define va_copy __va_copy" >>confdefs.h
21271 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21277 if test -n "$STDARG_H"; then
21278 GL_GENERATE_STDARG_H_TRUE
=
21279 GL_GENERATE_STDARG_H_FALSE
='#'
21281 GL_GENERATE_STDARG_H_TRUE
='#'
21282 GL_GENERATE_STDARG_H_FALSE
=
21290 # Define two additional variables used in the Makefile substitution.
21292 if test "$ac_cv_header_stdbool_h" = yes; then
21295 STDBOOL_H
='stdbool.h'
21298 if test -n "$STDBOOL_H"; then
21299 GL_GENERATE_STDBOOL_H_TRUE
=
21300 GL_GENERATE_STDBOOL_H_FALSE
='#'
21302 GL_GENERATE_STDBOOL_H_TRUE
='#'
21303 GL_GENERATE_STDBOOL_H_FALSE
=
21307 if test "$ac_cv_type__Bool" = yes; then
21318 if test $gt_cv_c_wchar_t = no
; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21323 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21324 if test "${gl_cv_decl_null_works+set}" = set; then :
21325 $as_echo_n "(cached) " >&6
21327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21329 #include <stddef.h>
21330 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21340 if ac_fn_c_try_compile
"$LINENO"; then :
21341 gl_cv_decl_null_works
=yes
21343 gl_cv_decl_null_works
=no
21345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21348 $as_echo "$gl_cv_decl_null_works" >&6; }
21349 if test $gl_cv_decl_null_works = no
; then
21354 if test -n "$STDDEF_H"; then
21355 GL_GENERATE_STDDEF_H_TRUE
=
21356 GL_GENERATE_STDDEF_H_FALSE
='#'
21358 GL_GENERATE_STDDEF_H_TRUE
='#'
21359 GL_GENERATE_STDDEF_H_FALSE
=
21362 if test -n "$STDDEF_H"; then
21371 if test $gl_cv_have_include_next = yes; then
21372 gl_cv_next_stddef_h
='<'stddef.h
'>'
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21375 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21376 if test "${gl_cv_next_stddef_h+set}" = set; then :
21377 $as_echo_n "(cached) " >&6
21380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21382 #include <stddef.h>
21386 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21387 *) gl_absname_cpp
="$ac_cpp" ;;
21392 gl_dirsep_regex
='[/\\]'
21395 gl_dirsep_regex
='/'
21399 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21400 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21405 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21406 sed -n "$gl_absolute_header_sed"`'"'
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21411 $as_echo "$gl_cv_next_stddef_h" >&6; }
21413 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21415 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21417 gl_next_as_first_directive
='<'stddef.h
'>'
21419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21420 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21422 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21441 if test $gl_cv_have_include_next = yes; then
21442 gl_cv_next_stdio_h
='<'stdio.h
'>'
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21445 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21446 if test "${gl_cv_next_stdio_h+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
21450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21456 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21457 *) gl_absname_cpp
="$ac_cpp" ;;
21462 gl_dirsep_regex
='[/\\]'
21465 gl_dirsep_regex
='/'
21469 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21470 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21475 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21476 sed -n "$gl_absolute_header_sed"`'"'
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21481 $as_echo "$gl_cv_next_stdio_h" >&6; }
21483 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21485 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21487 gl_next_as_first_directive
='<'stdio.h
'>'
21489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21490 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21492 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21533 if test $gl_cv_have_include_next = yes; then
21534 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21537 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21538 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 #include <stdlib.h>
21548 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21549 *) gl_absname_cpp
="$ac_cpp" ;;
21554 gl_dirsep_regex
='[/\\]'
21557 gl_dirsep_regex
='/'
21561 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21562 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21567 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21568 sed -n "$gl_absolute_header_sed"`'"'
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21573 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21575 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21577 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21578 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21579 gl_next_as_first_directive
='<'stdlib.h
'>'
21581 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21582 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21584 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21594 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21602 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21611 if test "$ac_cv_have_decl_strtoimax" != yes; then
21612 HAVE_DECL_STRTOIMAX
=0
21615 if test $ac_cv_func_strtoimax = no
; then
21624 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21627 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21628 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21634 cat >>confdefs.h
<<_ACEOF
21635 #define HAVE_DECL_STRTOLL $ac_have_decl
21656 if test "$ac_cv_have_decl_strtoumax" != yes; then
21657 HAVE_DECL_STRTOUMAX
=0
21660 if test $ac_cv_func_strtoumax = no
; then
21669 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21672 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21673 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21679 cat >>confdefs.h
<<_ACEOF
21680 #define HAVE_DECL_STRTOULL $ac_have_decl
21699 if test $ac_cv_func_symlink = no
; then
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21703 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21704 if test "${gl_cv_func_symlink_works+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21707 if test "$cross_compiling" = yes; then :
21708 gl_cv_func_symlink_works
="guessing no"
21710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21711 /* end confdefs.h. */
21712 #include <unistd.h>
21718 if (!symlink ("a", "conftest.link/"))
21720 if (symlink ("conftest.f", "conftest.lnk2"))
21722 else if (!symlink ("a", "conftest.lnk2/"))
21730 if ac_fn_c_try_run
"$LINENO"; then :
21731 gl_cv_func_symlink_works
=yes
21733 gl_cv_func_symlink_works
=no
21735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21736 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21739 rm -f conftest.f conftest.link conftest.lnk2
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21742 $as_echo "$gl_cv_func_symlink_works" >&6; }
21743 if test "$gl_cv_func_symlink_works" != yes; then
21748 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21757 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21787 if test $gl_cv_have_include_next = yes; then
21788 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21791 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21792 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21796 if test $ac_cv_header_sys_stat_h = yes; then
21799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21801 #include <sys/stat.h>
21805 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21806 *) gl_absname_cpp
="$ac_cpp" ;;
21811 gl_dirsep_regex
='[/\\]'
21814 gl_dirsep_regex
='/'
21818 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21819 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21824 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21825 sed -n "$gl_absolute_header_sed"`'"'
21827 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21833 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21835 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21837 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21838 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21839 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21841 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21842 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21844 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21852 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21853 #include <sys/stat.h>
21855 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21859 $as_echo "#define nlink_t int" >>confdefs.h
21877 if test $ac_cv_have_decl_localtime_r = no
; then
21878 HAVE_DECL_LOCALTIME_R
=0
21882 if test $ac_cv_func_localtime_r = yes; then
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21885 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21886 if test "${gl_cv_time_r_posix+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21895 /* We don't need to append 'restrict's to the argument types,
21896 even though the POSIX signature has the 'restrict's,
21897 since C99 says they can't affect type compatibility. */
21898 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21900 /* Check the return type is a pointer.
21901 On HP-UX 10 it is 'int'. */
21902 *localtime_r (0, 0);
21908 if ac_fn_c_try_compile
"$LINENO"; then :
21909 gl_cv_time_r_posix
=yes
21911 gl_cv_time_r_posix
=no
21913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21917 $as_echo "$gl_cv_time_r_posix" >&6; }
21918 if test $gl_cv_time_r_posix = yes; then
21919 REPLACE_LOCALTIME_R
=0
21921 REPLACE_LOCALTIME_R
=1
21927 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21936 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21967 if test $gl_cv_have_include_next = yes; then
21968 gl_cv_next_unistd_h
='<'unistd.h
'>'
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21971 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21972 if test "${gl_cv_next_unistd_h+set}" = set; then :
21973 $as_echo_n "(cached) " >&6
21976 if test $ac_cv_header_unistd_h = yes; then
21979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21980 /* end confdefs.h. */
21981 #include <unistd.h>
21985 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21986 *) gl_absname_cpp
="$ac_cpp" ;;
21991 gl_dirsep_regex
='[/\\]'
21994 gl_dirsep_regex
='/'
21998 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
21999 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22004 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22005 sed -n "$gl_absolute_header_sed"`'"'
22007 gl_cv_next_unistd_h
='<'unistd.h
'>'
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22013 $as_echo "$gl_cv_next_unistd_h" >&6; }
22015 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22017 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22019 gl_next_as_first_directive
='<'unistd.h
'>'
22021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22022 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22024 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22029 if test $ac_cv_header_unistd_h = yes; then
22041 gl_gnulib_enabled_dosname
=false
22042 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
22043 gl_gnulib_enabled_pathmax
=false
22044 gl_gnulib_enabled_sigprocmask
=false
22045 gl_gnulib_enabled_stat
=false
22046 gl_gnulib_enabled_strtoll
=false
22047 gl_gnulib_enabled_strtoull
=false
22048 gl_gnulib_enabled_verify
=false
22049 func_gl_gnulib_m4code_dosname
()
22051 if ! $gl_gnulib_enabled_dosname; then
22052 gl_gnulib_enabled_dosname
=true
22055 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
22057 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22060 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
22063 func_gl_gnulib_m4code_pathmax
()
22065 if ! $gl_gnulib_enabled_pathmax; then
22069 gl_gnulib_enabled_pathmax
=true
22072 func_gl_gnulib_m4code_sigprocmask
()
22074 if ! $gl_gnulib_enabled_sigprocmask; then
22078 if test $gl_cv_type_sigset_t = yes; then
22079 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22080 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
22081 gl_cv_func_sigprocmask
=1
22085 if test -z "$gl_cv_func_sigprocmask"; then
22086 HAVE_POSIX_SIGNALBLOCKING
=0
22089 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22098 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
22109 GNULIB_SIGPROCMASK
=1
22115 gl_gnulib_enabled_sigprocmask
=true
22118 func_gl_gnulib_m4code_stat
()
22120 if ! $gl_gnulib_enabled_stat; then
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22125 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22126 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22129 if test "$cross_compiling" = yes; then :
22131 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22132 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22137 #include <sys/stat.h>
22142 struct stat st; return stat (".", &st) != stat ("./", &st);
22147 if ac_fn_c_try_run
"$LINENO"; then :
22148 gl_cv_func_stat_dir_slash
=yes
22150 gl_cv_func_stat_dir_slash
=no
22152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22158 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22160 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22161 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22162 $as_echo_n "(cached) " >&6
22165 # Assume that if we have lstat, we can also check symlinks.
22166 if test $ac_cv_func_lstat = yes; then
22167 ln -s conftest.tmp conftest.lnk
22169 if test "$cross_compiling" = yes; then :
22170 gl_cv_func_stat_file_slash
="guessing no"
22172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22174 #include <sys/stat.h>
22181 if (!stat ("conftest.tmp/", &st))
22184 if (!stat ("conftest.lnk/", &st))
22193 if ac_fn_c_try_run
"$LINENO"; then :
22194 gl_cv_func_stat_file_slash
=yes
22196 gl_cv_func_stat_file_slash
=no
22198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22202 rm -f conftest.tmp conftest.lnk
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22205 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22206 case $gl_cv_func_stat_dir_slash in
22207 *no
) REPLACE_STAT
=1
22209 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22212 case $gl_cv_func_stat_file_slash in
22213 *no
) REPLACE_STAT
=1
22215 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22219 if test $REPLACE_STAT = 1; then
22228 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22246 gl_gnulib_enabled_stat
=true
22247 if test $REPLACE_STAT = 1; then
22248 func_gl_gnulib_m4code_dosname
22250 if test $REPLACE_STAT = 1; then
22251 func_gl_gnulib_m4code_pathmax
22253 if test $REPLACE_STAT = 1; then
22254 func_gl_gnulib_m4code_verify
22258 func_gl_gnulib_m4code_strtoll
()
22260 if ! $gl_gnulib_enabled_strtoll; then
22264 if test "$ac_cv_type_long_long_int" = yes; then
22265 for ac_func
in strtoll
22267 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22268 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22269 cat >>confdefs.h
<<_ACEOF
22270 #define HAVE_STRTOLL 1
22276 if test $ac_cv_func_strtoll = no
; then
22281 if test $HAVE_STRTOLL = 0; then
22290 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22307 gl_gnulib_enabled_strtoll
=true
22310 func_gl_gnulib_m4code_strtoull
()
22312 if ! $gl_gnulib_enabled_strtoull; then
22316 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22317 for ac_func
in strtoull
22319 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22320 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22321 cat >>confdefs.h
<<_ACEOF
22322 #define HAVE_STRTOULL 1
22328 if test $ac_cv_func_strtoull = no
; then
22333 if test $HAVE_STRTOULL = 0; then
22342 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22359 gl_gnulib_enabled_strtoull
=true
22362 func_gl_gnulib_m4code_verify
()
22364 if ! $gl_gnulib_enabled_verify; then
22365 gl_gnulib_enabled_verify
=true
22368 if test $REPLACE_GETOPT = 1; then
22369 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22371 if test $REPLACE_LSTAT = 1; then
22372 func_gl_gnulib_m4code_dosname
22374 if test $REPLACE_LSTAT = 1; then
22375 func_gl_gnulib_m4code_stat
22377 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22378 func_gl_gnulib_m4code_sigprocmask
22380 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22381 func_gl_gnulib_m4code_stat
22383 if test $ac_cv_func_strtoimax = no
; then
22384 func_gl_gnulib_m4code_verify
22386 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22387 func_gl_gnulib_m4code_strtoll
22389 if test $ac_cv_func_strtoumax = no
; then
22390 func_gl_gnulib_m4code_verify
22392 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22393 func_gl_gnulib_m4code_strtoull
22396 if $gl_gnulib_enabled_dosname; then
22397 gl_GNULIB_ENABLED_dosname_TRUE
=
22398 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22400 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22401 gl_GNULIB_ENABLED_dosname_FALSE
=
22404 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22405 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22406 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22408 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22409 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22412 if $gl_gnulib_enabled_pathmax; then
22413 gl_GNULIB_ENABLED_pathmax_TRUE
=
22414 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22416 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22417 gl_GNULIB_ENABLED_pathmax_FALSE
=
22420 if $gl_gnulib_enabled_sigprocmask; then
22421 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22422 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22424 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22425 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22428 if $gl_gnulib_enabled_stat; then
22429 gl_GNULIB_ENABLED_stat_TRUE
=
22430 gl_GNULIB_ENABLED_stat_FALSE
='#'
22432 gl_GNULIB_ENABLED_stat_TRUE
='#'
22433 gl_GNULIB_ENABLED_stat_FALSE
=
22436 if $gl_gnulib_enabled_strtoll; then
22437 gl_GNULIB_ENABLED_strtoll_TRUE
=
22438 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22440 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22441 gl_GNULIB_ENABLED_strtoll_FALSE
=
22444 if $gl_gnulib_enabled_strtoull; then
22445 gl_GNULIB_ENABLED_strtoull_TRUE
=
22446 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22448 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22449 gl_GNULIB_ENABLED_strtoull_FALSE
=
22452 if $gl_gnulib_enabled_verify; then
22453 gl_GNULIB_ENABLED_verify_TRUE
=
22454 gl_GNULIB_ENABLED_verify_FALSE
='#'
22456 gl_GNULIB_ENABLED_verify_TRUE
='#'
22457 gl_GNULIB_ENABLED_verify_FALSE
=
22460 # End of code from modules
22481 gl_source_base
='tests'
22482 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
22484 gl_module_indicator_condition
=$gltests_WITNESS
22495 LIBGNU_LIBDEPS
="$gl_libdeps"
22497 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22502 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22505 ## The -headerpad option tells ld (see man page) to leave room at the
22506 ## end of the header for adding load commands. Needed for dumping.
22507 ## 0x690 is the total size of 30 segment load commands (at 56
22508 ## each); under Cocoa 31 commands are required.
22509 if test "$HAVE_NS" = "yes"; then
22510 libs_nsgui
="-framework AppKit"
22511 headerpad_extra
=6C8
22514 headerpad_extra
=690
22516 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22518 ## This is here because src/Makefile.in did some extra fiddling around
22519 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22520 ## #ifndef LD_SWITCH_SYSTEM
22521 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22522 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22523 ## not using gcc, darwin system not on an alpha (ie darwin, since
22524 ## darwin + alpha does not occur).
22525 ## Because this was done in src/Makefile.in, the resulting part of
22526 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22527 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22528 ## rather than LD_SWITCH_SYSTEM.
22529 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22530 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22533 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22534 ## find X at run-time.
22535 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22536 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22537 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22538 ## had different values in configure (in ac_link) and src/Makefile.in.
22539 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22540 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22542 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22545 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22546 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22555 ## gnu: GNU needs its own crt0.
22556 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22558 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22559 ## library search parth, i.e. it won't search /usr/lib for libc and
22560 ## friends. Using -nostartfiles instead avoids this problem, and
22561 ## will also work on earlier NetBSD releases.
22562 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22564 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22565 ## MkLinux/LinuxPPC needs this.
22566 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22569 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22575 if test "x$ORDINARY_LINK" = "xyes"; then
22579 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22582 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22583 ## freebsd, gnu-* not on macppc|ibms390x.
22584 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22586 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22587 ## places that are difficult to figure out at make time. Fortunately,
22588 ## these same versions allow you to pass arbitrary flags on to the
22589 ## linker, so there is no reason not to use it as a linker.
22591 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22592 ## searching for libraries in its internal directories, so we have to
22593 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22594 LD_FIRSTFLAG
="-nostdlib"
22597 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22598 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22603 ## FIXME? The logic here is not precisely the same as that above.
22604 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22605 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22607 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22610 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22613 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22614 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22620 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22621 ## immediately undefine it again and redefine it to empty.
22622 ## Was the C_SWITCH_X_SITE part really necessary?
22623 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22629 ## Ask GCC where to find libgcc.a.
22630 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22635 ## If we're using X11/GNUstep, define some consequences.
22636 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22638 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22641 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22648 #### Report on what we decided to do.
22649 #### Report GTK as a toolkit, even if it doesn't use Xt.
22650 #### It makes printing result more understandable as using GTK sets
22651 #### toolkit_scroll_bars to yes by default.
22652 if test "${HAVE_GTK}" = "yes"; then
22657 if test -n "$machfile"; then
22658 and_machfile
=" and \`${machfile}'"
22662 Configured for \`${canonical}'.
22664 Where should the build process find the source code? ${srcdir}
22665 What operating system and machine description files should Emacs use?
22666 \`${opsysfile}'${and_machfile}
22667 What compiler should emacs be built with? ${CC} ${CFLAGS}
22668 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22669 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22670 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22671 What window system should Emacs use? ${window_system}
22672 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22674 if test -n "${x_includes}"; then
22675 echo " Where do we find X Windows header files? ${x_includes}"
22677 echo " Where do we find X Windows header files? Standard dirs"
22679 if test -n "${x_libraries}"; then
22680 echo " Where do we find X Windows libraries? ${x_libraries}"
22682 echo " Where do we find X Windows libraries? Standard dirs"
22685 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22686 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22687 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22688 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22689 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22690 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22691 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22692 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22694 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22695 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22696 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22697 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22698 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22699 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22700 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22702 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22703 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22704 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22705 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22707 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22710 if test -n "${EMACSDATA}"; then
22711 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22713 if test -n "${EMACSDOC}"; then
22714 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22717 if test $USE_XASSERTS = yes; then
22718 echo " Compiling with asserts turned on."
22719 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22724 if test "$HAVE_NS" = "yes"; then
22726 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22727 The installed application will go to nextstep/Emacs.app and can be
22728 run or moved from there."
22729 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22730 echo "The application will be fully self-contained."
22732 echo "The lisp resources for the application will be installed under ${prefix}.
22733 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22734 to run if these resources are not installed."
22739 if test "${opsys}" = "cygwin"; then
22741 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
22742 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
22748 # Remove any trailing slashes in these variables.
22749 test "${prefix}" != NONE
&&
22750 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22751 test "${exec_prefix}" != NONE
&&
22752 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22754 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"
22756 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"
22759 opt_makefile
=test
/automated
/Makefile
22761 if test -f $srcdir/${opt_makefile}.
in; then
22762 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22763 ac_config_files
="$ac_config_files test/automated/Makefile"
22768 opt_makefile
=admin
/unidata
/Makefile
22770 if test -f $srcdir/${opt_makefile}.
in; then
22771 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22772 ac_config_files
="$ac_config_files admin/unidata/Makefile"
22777 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22781 ac_config_commands
="$ac_config_commands mkdirs"
22784 ac_config_commands
="$ac_config_commands epaths"
22787 ac_config_commands
="$ac_config_commands gdbinit"
22790 cat >confcache
<<\_ACEOF
22791 # This file is a shell script that caches the results of configure
22792 # tests run on this system so they can be shared between configure
22793 # scripts and configure runs, see configure's option --config-cache.
22794 # It is not useful on other systems. If it contains results you don't
22795 # want to keep, you may remove or edit it.
22797 # config.status only pays attention to the cache file if you give it
22798 # the --recheck option to rerun configure.
22800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22802 # following values.
22806 # The following way of writing the cache mishandles newlines in values,
22807 # but we know of no workaround that is simple, portable, and efficient.
22808 # So, we kill variables containing newlines.
22809 # Ultrix sh set writes to stderr and can't be redirected directly,
22810 # and sets the high bit in the cache file unless we assign to the vars.
22812 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22813 eval ac_val
=\$
$ac_var
22817 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22821 _ | IFS | as_nl
) ;; #(
22822 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22823 *) { eval $ac_var=; unset $ac_var;} ;;
22829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22830 *${as_nl}ac_space
=\
*)
22831 # `set' does not quote correctly, so add quotes: double-quote
22832 # substitution turns \\\\ into \\, and sed turns \\ into \.
22835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22838 # `set' quotes correctly as required by POSIX, so do not add quotes.
22839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22852 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22853 if test -w "$cache_file"; then
22854 test "x$cache_file" != "x/dev/null" &&
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22856 $as_echo "$as_me: updating cache $cache_file" >&6;}
22857 cat confcache
>$cache_file
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22865 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22866 # Let make expand exec_prefix.
22867 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22869 DEFS
=-DHAVE_CONFIG_H
22873 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22874 # 1. Remove the extension, and $U if already installed.
22875 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22876 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22878 # will be set to the directory where LIBOBJS objects are built.
22879 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22880 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22882 LIBOBJS
=$ac_libobjs
22884 LTLIBOBJS
=$ac_ltlibobjs
22887 if test -n "$EXEEXT"; then
22889 am__EXEEXT_FALSE
='#'
22891 am__EXEEXT_TRUE
='#'
22895 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22896 as_fn_error
"conditional \"AMDEP\" was never defined.
22897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22900 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22904 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22905 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22908 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22909 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22913 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22914 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22917 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22918 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22921 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22922 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22925 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22926 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22929 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22930 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22933 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22934 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22937 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22938 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22941 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22942 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22945 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22946 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22949 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22950 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22953 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22954 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22957 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22958 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22964 if test -n "$gl_LIBOBJS"; then
22965 # Remove the extension.
22966 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22967 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22968 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22969 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22972 gl_LIBOBJS
=$gl_libobjs
22974 gl_LTLIBOBJS
=$gl_ltlibobjs
22980 if test -n "$gltests_LIBOBJS"; then
22981 # Remove the extension.
22982 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22983 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22984 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22985 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22988 gltests_LIBOBJS
=$gltests_libobjs
22990 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22994 : ${CONFIG_STATUS=./config.status}
22996 ac_clean_files_save
=$ac_clean_files
22997 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22999 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23001 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23003 # Generated by $as_me.
23004 # Run this file to recreate the current configuration.
23005 # Compiler output produced by configure, useful for debugging
23006 # configure, is in config.log if it exists.
23009 ac_cs_recheck=false
23012 SHELL=\${CONFIG_SHELL-$SHELL}
23015 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23016 ## -------------------- ##
23017 ## M4sh Initialization. ##
23018 ## -------------------- ##
23020 # Be more Bourne compatible
23021 DUALCASE
=1; export DUALCASE
# for MKS sh
23022 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23026 # is contrary to our usage. Disable this feature.
23027 alias -g '${1+"$@"}'='"$@"'
23028 setopt NO_GLOB_SUBST
23030 case `(set -o) 2>/dev/null` in #(
23042 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23043 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23046 # Prefer a ksh shell builtin over an external printf program on Solaris,
23047 # but without wasting forks for bash or zsh.
23048 if test -z "$BASH_VERSION$ZSH_VERSION" \
23049 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23050 as_echo='print
-r --'
23051 as_echo_n='print
-rn --'
23052 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23053 as_echo='printf %s
\n'
23054 as_echo_n='printf %s
'
23056 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23057 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23058 as_echo_n='/usr
/ucb
/echo -n'
23060 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23061 as_echo_n_body='eval
23065 expr "X$arg" : "X\\(.*\\)$as_nl";
23066 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23068 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23070 export as_echo_n_body
23071 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23073 export as_echo_body
23074 as_echo='sh
-c $as_echo_body as_echo
'
23077 # The user is always right.
23078 if test "${PATH_SEPARATOR+set}" != set; then
23080 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23081 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23088 # We need space, tab and new line, in precisely that order. Quoting is
23089 # there to prevent editors from complaining about space-tab.
23090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23091 # splitting by setting IFS to empty value.)
23094 # Find who we are. Look in the path if we contain no directory separator.
23096 *[\\/]* ) as_myself=$0 ;;
23097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23098 for as_dir in $PATH
23101 test -z "$as_dir" && as_dir=.
23102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23108 # We did not find ourselves, most probably we were run as `sh COMMAND'
23109 # in which case we are not to be found in the path.
23110 if test "x$as_myself" = x
; then
23113 if test ! -f "$as_myself"; then
23114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23118 # Unset variables that we do not need and which cause bugs (e.g. in
23119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23120 # suppresses any "Segmentation fault" message there. '((' could
23121 # trigger a bug in pdksh 5.2.14.
23122 for as_var
in BASH_ENV ENV MAIL MAILPATH
23123 do eval test x\
${$as_var+set} = xset \
23124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23140 # as_fn_error ERROR [LINENO LOG_FD]
23141 # ---------------------------------
23142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23144 # script with status $?, using 1 if that was 0.
23147 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23149 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23152 $as_echo "$as_me: error: $1" >&2
23153 as_fn_exit
$as_status
23157 # as_fn_set_status STATUS
23158 # -----------------------
23159 # Set $? to STATUS, without forking.
23160 as_fn_set_status
()
23163 } # as_fn_set_status
23165 # as_fn_exit STATUS
23166 # -----------------
23167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23171 as_fn_set_status
$1
23177 # Portably unset VAR.
23180 { eval $1=; unset $1;}
23182 as_unset
=as_fn_unset
23183 # as_fn_append VAR VALUE
23184 # ----------------------
23185 # Append the text in VALUE to the end of the definition contained in VAR. Take
23186 # advantage of any shell optimizations that allow amortized linear growth over
23187 # repeated appends, instead of the typical quadratic growth present in naive
23189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23190 eval 'as_fn_append ()
23201 # as_fn_arith ARG...
23202 # ------------------
23203 # Perform arithmetic evaluation on the ARGs, and store the result in the
23204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23205 # must be portable across $(()) and expr.
23206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23207 eval 'as_fn_arith ()
23214 as_val
=`expr "$@" || test $? -eq 1`
23219 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23220 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23226 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23227 as_basename
=basename
23232 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23238 as_me
=`$as_basename -- "$0" ||
23239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23240 X"$0" : 'X\(//\)$' \| \
23241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23243 sed '/^.*\/\([^/][^/]*\)\/*$/{
23257 # Avoid depending upon Character Ranges.
23258 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23259 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23260 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23261 as_cr_digits
='0123456789'
23262 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23264 ECHO_C
= ECHO_N
= ECHO_T
=
23265 case `echo -n x` in #(((((
23267 case `echo 'xy\c'` in
23268 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23270 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23277 rm -f conf$$ conf$$.exe conf$$.
file
23278 if test -d conf$$.dir
; then
23279 rm -f conf$$.dir
/conf$$.
file
23282 mkdir conf$$.dir
2>/dev
/null
23284 if (echo >conf$$.
file) 2>/dev
/null
; then
23285 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23287 # ... but there are two gotchas:
23288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23290 # In both cases, we have to default to `cp -p'.
23291 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23293 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23301 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23302 rmdir conf$$.dir
2>/dev
/null
23307 # Create "$as_dir" as a directory, including parents if necessary.
23312 -*) as_dir
=.
/$as_dir;;
23314 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23318 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23319 *) as_qdir
=$as_dir;;
23321 as_dirs
="'$as_qdir' $as_dirs"
23322 as_dir
=`$as_dirname -- "$as_dir" ||
23323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23324 X"$as_dir" : 'X\(//\)[^/]' \| \
23325 X"$as_dir" : 'X\(//\)$' \| \
23326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23327 $as_echo X"$as_dir" |
23328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23332 /^X\(\/\/\)[^/].*/{
23345 test -d "$as_dir" && break
23347 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23348 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23352 if mkdir
-p .
2>/dev
/null
; then
23353 as_mkdir_p
='mkdir -p "$as_dir"'
23355 test -d .
/-p && rmdir .
/-p
23359 if test -x / >/dev
/null
2>&1; then
23360 as_test_x
='test -x'
23362 if ls -dL / >/dev
/null
2>&1; then
23369 if test -d "$1"; then
23375 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23376 ???[sx]*):;;*)false;;esac;fi
23380 as_executable_p
=$as_test_x
23382 # Sed expression to map a string onto a valid CPP name.
23383 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23385 # Sed expression to map a string onto a valid variable name.
23386 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23390 ## ----------------------------------- ##
23391 ## Main body of $CONFIG_STATUS script. ##
23392 ## ----------------------------------- ##
23394 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23397 # Save the log message, to keep $0 and so on meaningful, and to
23398 # report actual input values of CONFIG_FILES etc. instead of their
23399 # values after options handling.
23401 This file was extended by emacs $as_me 24.1.50, which was
23402 generated by GNU Autoconf 2.65. Invocation command line was
23404 CONFIG_FILES = $CONFIG_FILES
23405 CONFIG_HEADERS = $CONFIG_HEADERS
23406 CONFIG_LINKS = $CONFIG_LINKS
23407 CONFIG_COMMANDS = $CONFIG_COMMANDS
23410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23415 case $ac_config_files in *"
23416 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23419 case $ac_config_headers in *"
23420 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23425 # Files that config.status was made for.
23426 config_files="$ac_config_files"
23427 config_headers="$ac_config_headers"
23428 config_commands="$ac_config_commands"
23432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23434 \`$as_me' instantiates files and other configuration actions
23435 from templates according to the current configuration. Unless the files
23436 and actions are specified as TAGs, all are instantiated by default.
23438 Usage: $0 [OPTION]... [TAG]...
23440 -h, --help print this help, then exit
23441 -V, --version print version number and configuration settings, then exit
23442 --config print configuration, then exit
23443 -q, --quiet, --silent
23444 do not print progress messages
23445 -d, --debug don't remove temporary files
23446 --recheck update $as_me by reconfiguring in the same conditions
23447 --file=FILE[:TEMPLATE]
23448 instantiate the configuration file FILE
23449 --header=FILE[:TEMPLATE]
23450 instantiate the configuration header FILE
23452 Configuration files:
23455 Configuration headers:
23458 Configuration commands:
23461 Report bugs to the package provider."
23464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23467 emacs config.status 24.1.50
23468 configured by $0, generated by GNU Autoconf 2.65,
23469 with options \\"\$ac_cs_config\\"
23471 Copyright (C) 2009 Free Software Foundation, Inc.
23472 This config.status script is free software; the Free Software Foundation
23473 gives unlimited permission to copy, distribute and modify it."
23480 test -n "\$AWK" || AWK=awk
23483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23484 # The default lists apply if the user does not specify any file.
23490 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23491 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23502 # Handling of the options.
23503 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23505 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23506 $as_echo "$ac_cs_version"; exit ;;
23507 --config |
--confi |
--conf |
--con |
--co |
--c )
23508 $as_echo "$ac_cs_config"; exit ;;
23509 --debug |
--debu |
--deb |
--de |
--d |
-d )
23511 --file |
--fil |
--fi |
--f )
23514 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23516 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23517 ac_need_defaults
=false
;;
23518 --header |
--heade |
--head |
--hea )
23521 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23523 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23524 ac_need_defaults
=false
;;
23526 # Conflict between --help and --header
23527 as_fn_error
"ambiguous option: \`$1'
23528 Try \`$0 --help' for more information.";;
23529 --help |
--hel |
-h )
23530 $as_echo "$ac_cs_usage"; exit ;;
23531 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23532 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23535 # This is an error.
23536 -*) as_fn_error
"unrecognized option: \`$1'
23537 Try \`$0 --help' for more information." ;;
23539 *) as_fn_append ac_config_targets
" $1"
23540 ac_need_defaults
=false
;;
23546 ac_configure_extra_args
=
23548 if $ac_cs_silent; then
23550 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23555 if \$ac_cs_recheck; then
23556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23559 CONFIG_SHELL='$SHELL'
23560 export CONFIG_SHELL
23565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23570 ## Running $as_me. ##
23576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23581 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23587 # Handling of arguments.
23588 for ac_config_target
in $ac_config_targets
23590 case $ac_config_target in
23591 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23592 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23593 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23594 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23595 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23596 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23597 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23598 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23599 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23600 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23601 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23602 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23603 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23604 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23605 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23606 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23607 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23608 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23609 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23611 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23616 # If the user did not use the arguments to specify the items to instantiate,
23617 # then the envvar interface is used. Set only those that are not.
23618 # We use the long form for the default assignment because of an extremely
23619 # bizarre bug on SunOS 4.1.3.
23620 if $ac_need_defaults; then
23621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23626 # Have a temporary directory for convenience. Make it in the build tree
23627 # simply because there is no reason against having it here, and in addition,
23628 # creating and moving files from /tmp can sometimes cause problems.
23629 # Hook for its removal unless debugging.
23630 # Note that there is a small window in which the directory will not be cleaned:
23631 # after its creation but before its name has been assigned to `$tmp'.
23635 trap 'exit_status=$?
23636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23638 trap 'as_fn_exit 1' 1 2 13 15
23640 # Create a (secure) tmp directory for tmp files.
23643 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23644 test -n "$tmp" && test -d "$tmp"
23647 tmp
=.
/conf$$
-$RANDOM
23648 (umask 077 && mkdir
"$tmp")
23649 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23651 # Set up the scripts for CONFIG_FILES section.
23652 # No need to generate them if there are no CONFIG_FILES.
23653 # This happens for instance with `./config.status config.h'.
23654 if test -n "$CONFIG_FILES"; then
23656 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23657 ac_cs_awk_getline
=:
23658 ac_cs_awk_pipe_init
=
23659 ac_cs_awk_read_file
='
23660 while ((getline aline < (F[key])) > 0)
23663 ac_cs_awk_pipe_fini
=
23665 ac_cs_awk_getline
=false
23666 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23667 ac_cs_awk_read_file
='
23669 print "cat " F[key] " &&"
23670 '$ac_cs_awk_pipe_init
23671 # The final `:' finishes the AND list.
23672 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23674 ac_cr
=`echo X | tr X '\015'`
23675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23676 # But we know of no other shell where ac_cr would be empty at this
23677 # point, so we can use a bashism as a fallback.
23678 if test "x$ac_cr" = x
; then
23679 eval ac_cr
=\$
\'\\r
\'
23681 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23685 ac_cs_awk_cr
=$ac_cr
23688 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23691 # Create commands to substitute file output variables.
23693 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23694 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23695 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23698 } >conf$
$files.sh
&&
23699 . .
/conf$
$files.sh ||
23700 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23701 rm -f conf$
$files.sh
23704 echo "cat >conf$$subs.awk <<_ACEOF" &&
23705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23707 } >conf$$subs.sh ||
23708 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23709 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23711 for ac_last_try in false false false false false :; do
23712 . ./conf$$subs.sh ||
23713 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23715 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23716 if test $ac_delim_n = $ac_delim_num; then
23718 elif $ac_last_try; then
23719 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23721 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23724 rm -f conf$$subs.sh
23726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23727 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23731 s/^/S["/; s
/!.
*/"]=/
23741 s/\(.\{148\}\)..*/\1/
23743 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23748 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23755 s/\(.\{148\}\)..*/\1/
23757 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23761 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23766 ' <conf$$subs.awk | sed '
23771 ' >>$CONFIG_STATUS || ac_write_fail=1
23772 rm -f conf$$subs.awk
23773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23775 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23776 for (key in S) S_is_set[key] = 1
23778 \$ac_cs_awk_pipe_init
23782 nfields = split(line, field, "@
")
23784 len = length(field[1])
23785 for (i = 2; i < nfields; i++) {
23787 keylen = length(key)
23788 if (S_is_set[key]) {
23790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23791 len += length(value) + length(field[++i])
23796 if (nfields == 3 && !substed) {
23798 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23799 \$ac_cs_awk_read_file
23805 \$ac_cs_awk_pipe_fini
23808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23809 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23810 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23813 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23814 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23819 # trailing colons and then remove the whole line if VPATH becomes empty
23820 # (actually we leave an empty line to preserve line numbers).
23821 if test "x
$srcdir" = x.; then
23822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23823 s/:*\$(srcdir):*/:/
23824 s/:*\${srcdir}:*/:/
23826 s/^\([^=]*=[ ]*\):*/\1/
23832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23833 fi # test -n "$CONFIG_FILES"
23835 # Set up the scripts for CONFIG_HEADERS section.
23836 # No need to generate them if there are no CONFIG_HEADERS.
23837 # This happens for instance with `./config.status Makefile'.
23838 if test -n "$CONFIG_HEADERS"; then
23839 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23843 # Transform confdefs.h into an awk script `defines.awk', embedded as
23844 # here-document in config.status, that substitutes the proper values into
23845 # config.h.in to produce config.h.
23847 # Create a delimiter string that does not exist in confdefs.h, to ease
23848 # handling of long lines.
23850 for ac_last_try in false false :; do
23851 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23852 if test -z "$ac_t"; then
23854 elif $ac_last_try; then
23855 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23857 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23861 # For the awk script, D is an array of macro values keyed by name,
23862 # likewise P contains macro parameters if any. Preserve backslash
23863 # newline sequences.
23865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23867 s/.\{148\}/&'"$ac_delim"'/g
23870 s/^[ ]*#[ ]*define[ ][ ]*/ /
23877 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23879 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23884 D["\
1"]=" \
3\\\\\\n
"\\/p
23886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23891 s/.\{148\}/&'"$ac_delim"'/g
23896 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23899 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23901 ' <confdefs.h | sed '
23902 s/'"$ac_delim"'/"\\\
23903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23906 for (key in D) D_is_set[key] = 1
23909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23911 split(line, arg, " ")
23912 if (arg[1] == "#") {
23916 defundef
= substr
(arg
[1], 2)
23919 split(mac1
, mac2
, "(") #)
23921 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23922 if (D_is_set
[macro
]) {
23923 # Preserve the white space surrounding the "#".
23924 print prefix
"define", macro P
[macro
] D
[macro
]
23927 # Replace #undef with comments. This is necessary, for example,
23928 # in the case of _POSIX_SOURCE, which is predefined and required
23929 # on some systems where configure will not decide to define it.
23930 if (defundef
== "undef") {
23931 print
"/*", prefix defundef
, macro
, "*/"
23939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23940 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23941 fi # test -n "$CONFIG_HEADERS"
23944 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23949 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23951 case $ac_mode$ac_tag in
23953 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23954 :[FH
]-) ac_tag
=-:-;;
23955 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23972 -) ac_f
="$tmp/stdin";;
23973 *) # Look for the file first in the build tree, then in the source tree
23974 # (if the path is not absolute). The absolute path cannot be DOS-style,
23975 # because $ac_f cannot contain `:'.
23979 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23981 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23983 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23984 as_fn_append ac_file_inputs
" '$ac_f'"
23987 # Let's still pretend it is `configure' which instantiates (i.e., don't
23988 # use $as_me), people would be surprised to read:
23989 # /* config.h. Generated by config.status. */
23990 configure_input
='Generated from '`
23991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23993 if test x
"$ac_file" != x-
; then
23994 configure_input
="$ac_file. $configure_input"
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23996 $as_echo "$as_me: creating $ac_file" >&6;}
23998 # Neutralize special characters interpreted by sed in replacement strings.
23999 case $configure_input in #(
24000 *\
&* |
*\|
* |
*\\* )
24001 ac_sed_conf_input
=`$as_echo "$configure_input" |
24002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24003 *) ac_sed_conf_input
=$configure_input;;
24007 *:-:* |
*:-) cat >"$tmp/stdin" \
24008 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24013 ac_dir
=`$as_dirname -- "$ac_file" ||
24014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015 X"$ac_file" : 'X\(//\)[^/]' \| \
24016 X"$ac_file" : 'X\(//\)$' \| \
24017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24018 $as_echo X"$ac_file" |
24019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24023 /^X\(\/\/\)[^/].*/{
24036 as_dir
="$ac_dir"; as_fn_mkdir_p
24040 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24042 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24043 # A ".." for each directory in $ac_dir_suffix.
24044 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24045 case $ac_top_builddir_sub in
24046 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24047 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24050 ac_abs_top_builddir
=$ac_pwd
24051 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24052 # for backward compatibility:
24053 ac_top_builddir
=$ac_top_build_prefix
24056 .
) # We are building in place.
24058 ac_top_srcdir
=$ac_top_builddir_sub
24059 ac_abs_top_srcdir
=$ac_pwd ;;
24060 [\\/]* | ?
:[\\/]* ) # Absolute name.
24061 ac_srcdir
=$srcdir$ac_dir_suffix;
24062 ac_top_srcdir
=$srcdir
24063 ac_abs_top_srcdir
=$srcdir ;;
24064 *) # Relative name.
24065 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24066 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24067 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24069 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24079 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24080 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24082 ac_MKDIR_P
=$MKDIR_P
24084 [\\/$
]* | ?
:[\\/]* ) ;;
24085 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24090 # If the template does not know about datarootdir, expand it.
24091 # FIXME: This hack should be removed a few years after 2.60.
24092 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24104 *datarootdir
*) ac_datarootdir_seen
=yes;;
24105 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24110 ac_datarootdir_hack='
24111 s&@datadir@&$datadir&g
24112 s&@docdir@&$docdir&g
24113 s&@infodir@&$infodir&g
24114 s&@localedir@&$localedir&g
24115 s&@mandir@&$mandir&g
24116 s&\\\${datarootdir}&$datarootdir&g' ;;
24120 # Neutralize VPATH when `$srcdir' = `.'.
24121 # Shell code in configure.ac might set extrasub.
24122 # FIXME: do we really want to maintain this feature?
24123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24124 ac_sed_extra="$ac_vpsub
24127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24129 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24130 s|@configure_input@|
$ac_sed_conf_input|
;t t
24131 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24132 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24133 s
&@srcdir@
&$ac_srcdir&;t t
24134 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24135 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24136 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24137 s
&@builddir@
&$ac_builddir&;t t
24138 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24139 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24140 s
&@INSTALL@
&$ac_INSTALL&;t t
24141 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24142 $ac_datarootdir_hack
24144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24145 if $ac_cs_awk_getline; then
24146 $AWK -f "$tmp/subs.
awk"
24148 $AWK -f "$tmp/subs.
awk" | $SHELL
24150 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24156 which seems to be undefined. Please make sure it is defined." >&5
24157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24158 which seems to be undefined. Please make sure it is defined." >&2;}
24162 -) cat "$tmp/out" && rm -f "$tmp/out";;
24163 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24165 || as_fn_error "could not create $ac_file" "$LINENO" 5
24171 if test x"$ac_file" != x-; then
24173 $as_echo "/* $configure_input */" \
24174 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24175 } >"$tmp/config.h" \
24176 || as_fn_error "could not create $ac_file" "$LINENO" 5
24177 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24182 mv "$tmp/config.h" "$ac_file" \
24183 || as_fn_error "could not create $ac_file" "$LINENO" 5
24186 $as_echo "/* $configure_input */" \
24187 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24188 || as_fn_error "could not create -" "$LINENO" 5
24190 # Compute "$ac_file"'s index
in $config_headers.
24193 for _am_header
in $config_headers :; do
24194 case $_am_header in
24195 $_am_arg |
$_am_arg:* )
24198 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24203 X"$_am_arg" : 'X\(//\)[^/]' \| \
24204 X"$_am_arg" : 'X\(//\)$' \| \
24205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24206 $as_echo X"$_am_arg" |
24207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24211 /^X\(\/\/\)[^/].*/{
24223 s/.*/./; q'`/stamp-h
$_am_stamp_count
24226 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24227 $as_echo "$as_me: executing $ac_file commands" >&6;}
24232 case $ac_file$ac_mode in
24233 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24234 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24235 # are listed without --file. Let's play safe and only enable the eval
24236 # if we detect the quoting.
24237 case $CONFIG_FILES in
24238 *\'*) eval set x
"$CONFIG_FILES" ;;
24239 *) set x
$CONFIG_FILES ;;
24244 # Strip MF so we end up with the name of the file.
24245 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24246 # Check whether this is an Automake generated Makefile or not.
24247 # We used to match only the files named `Makefile.in', but
24248 # some people rename them; so instead we look at the file content.
24249 # Grep'ing the first line is not enough: some people post-process
24250 # each Makefile.in and add a new line on top of each file to say so.
24251 # Grep'ing the whole file is not good either: AIX grep has a line
24252 # limit of 2048, but all sed's we know have understand at least 4000.
24253 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24254 dirpart
=`$as_dirname -- "$mf" ||
24255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24256 X"$mf" : 'X\(//\)[^/]' \| \
24257 X"$mf" : 'X\(//\)$' \| \
24258 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24264 /^X\(\/\/\)[^/].*/{
24280 # Extract the definition of DEPDIR, am__include, and am__quote
24281 # from the Makefile without running `make'.
24282 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24283 test -z "$DEPDIR" && continue
24284 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24285 test -z "am__include" && continue
24286 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24287 # When using ansi2knr, U may be empty or an underscore; expand it
24288 U
=`sed -n 's/^U = //p' < "$mf"`
24289 # Find all dependency output files, they are included files with
24290 # $(DEPDIR) in their names. We invoke sed twice because it is the
24291 # simplest approach to changing $(DEPDIR) to its actual value in the
24293 for file in `sed -n "
24294 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24295 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24296 # Make sure the directory exists.
24297 test -f "$dirpart/$file" && continue
24298 fdir
=`$as_dirname -- "$file" ||
24299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300 X"$file" : 'X\(//\)[^/]' \| \
24301 X"$file" : 'X\(//\)$' \| \
24302 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24303 $as_echo X"$file" |
24304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24308 /^X\(\/\/\)[^/].*/{
24321 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24322 # echo "creating $dirpart/$file"
24323 echo '# dummy' > "$dirpart/$file"
24329 for dir
in etc lisp
; do
24330 test -d ${dir} || mkdir
${dir}
24334 echo creating src
/epaths.h
24335 ${MAKE-make} epaths-force
24338 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24339 echo creating src
/.gdbinit
24340 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24350 ac_clean_files
=$ac_clean_files_save
24352 test $ac_write_fail = 0 ||
24353 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24356 # configure is writing to config.log, and then calls config.status.
24357 # config.status does its own redirection, appending to config.log.
24358 # Unfortunately, on DOS this fails, as config.log is still kept open
24359 # by configure, so config.status won't be able to write to it; its
24360 # output is simply discarded. So we exec the FD to /dev/null,
24361 # effectively closing config.log, so it can be properly (re)opened and
24362 # appended to by config.status. When coming back to configure, we
24363 # need to make the FD available again.
24364 if test "$no_create" != yes; then
24366 ac_config_status_args
=
24367 test "$silent" = yes &&
24368 ac_config_status_args
="$ac_config_status_args --quiet"
24370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24373 # would make configure fail if this is the last instruction.
24374 $ac_cs_success || as_fn_exit $?
24376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}